Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/math
R2Path
Class R2Path
Hierarchy
R2Shape
R2Path
Implements
Equals
Equivalent
Debug
Index
Constructors
constructor
Properties
bounding
Box
path
String
splines
Accessors
bounds
x
Max
x
Min
y
Max
y
Min
Methods
contains
debug
draw
equals
equivalent
To
interpolate
interpolateX
interpolateY
intersects
is
Defined
split
subdivide
to
Attribute
String
to
Path
String
to
String
transform
transform
Draw
union
write
Path
builder
closed
empty
from
Any
is
Any
of
open
parse
Constructors
constructor
new
R2Path
(
splines
:
readonly
R2Spline
[]
)
:
R2Path
Parameters
splines:
readonly
R2Spline
[]
Returns
R2Path
Properties
Readonly
bounding
Box
bounding
Box
:
null
|
R2Box
Readonly
path
String
path
String
:
undefined
|
string
Readonly
splines
splines
:
readonly
R2Spline
[]
Accessors
bounds
get
bounds
(
)
:
R2Box
Returns
R2Box
x
Max
get
xMax
(
)
:
number
Returns
number
x
Min
get
xMin
(
)
:
number
Returns
number
y
Max
get
yMax
(
)
:
number
Returns
number
y
Min
get
yMin
(
)
:
number
Returns
number
Methods
contains
contains
(
that
:
AnyR2Shape
)
:
boolean
contains
(
x
:
number
, y
:
number
)
:
boolean
Parameters
that:
AnyR2Shape
Returns
boolean
Parameters
x:
number
y:
number
Returns
boolean
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
draw
draw
(
context
:
R2PathContext
)
:
void
Parameters
context:
R2PathContext
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
equivalent
To
equivalent
To
(
that
:
unknown
, epsilon
?:
number
)
:
boolean
Parameters
that:
unknown
Optional
epsilon:
number
Returns
boolean
interpolate
interpolate
(
u
:
number
)
:
R2Point
Parameters
u:
number
Returns
R2Point
interpolateX
interpolateX
(
u
:
number
)
:
number
Parameters
u:
number
Returns
number
interpolateY
interpolateY
(
u
:
number
)
:
number
Parameters
u:
number
Returns
number
intersects
intersects
(
that
:
AnyR2Shape
)
:
boolean
Parameters
that:
AnyR2Shape
Returns
boolean
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
split
split
(
u
:
number
)
:
[
R2Path
,
R2Path
]
Parameters
u:
number
Returns
[
R2Path
,
R2Path
]
subdivide
subdivide
(
u
:
number
)
:
R2Path
Parameters
u:
number
Returns
R2Path
to
Attribute
String
to
Attribute
String
(
)
:
string
Returns
string
to
Path
String
to
Path
String
(
outputSettings
?:
AnyOutputSettings
)
:
string
Parameters
Optional
outputSettings:
AnyOutputSettings
Returns
string
to
String
to
String
(
)
:
string
Returns
string
transform
transform
(
f
:
R2Function
)
:
R2Path
Parameters
f:
R2Function
Returns
R2Path
transform
Draw
transform
Draw
(
context
:
R2PathContext
, f
:
R2Function
)
:
void
Parameters
context:
R2PathContext
f:
R2Function
Returns
void
union
union
(
that
:
AnyR2Shape
)
:
R2Shape
Parameters
that:
AnyR2Shape
Returns
R2Shape
write
Path
write
Path
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
Static
builder
builder
(
)
:
R2PathBuilder
Returns
R2PathBuilder
Static
closed
closed
(
...
curves
:
R2Curve
[]
)
:
R2Path
Parameters
Rest
...
curves:
R2Curve
[]
Returns
R2Path
Static
empty
empty
(
)
:
R2Path
Returns
R2Path
Static
from
Any
from
Any
(
value
:
AnyR2Shape
|
AnyR2Path
)
:
R2Path
Parameters
value:
AnyR2Shape
|
AnyR2Path
Returns
R2Path
Static
is
Any
is
Any
(
value
:
unknown
)
:
value
is
AnyR2Shape
Parameters
value:
unknown
Returns
value
is
AnyR2Shape
Static
of
of
(
...
splines
:
R2Spline
[]
)
:
R2Path
Parameters
Rest
...
splines:
R2Spline
[]
Returns
R2Path
Static
open
open
(
...
curves
:
R2Curve
[]
)
:
R2Path
Parameters
Rest
...
curves:
R2Curve
[]
Returns
R2Path
Static
parse
parse
(
string
:
string
)
:
R2Path
Parameters
string:
string
Returns
R2Path
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
R2
Path
constructor
bounding
Box
path
String
splines
bounds
x
Max
x
Min
y
Max
y
Min
contains
debug
draw
equals
equivalent
To
interpolate
interpolateX
interpolateY
intersects
is
Defined
split
subdivide
to
Attribute
String
to
Path
String
to
String
transform
transform
Draw
union
write
Path
builder
closed
empty
from
Any
is
Any
of
open
parse
Generated using
TypeDoc