Class: Latex
Defined in: components/latex/src/node.ts:7
Extends
ShapeNode<LatexProps>
Constructors
Constructor
new Latex(
props):Latex
Defined in: components/latex/src/node.ts:31
Parameters
props
NodeConfig<Latex, LatexProps>
Returns
Latex
Overrides
ShapeNode<LatexProps>.constructor
Properties
__mappers?
optional__mappers?:Map<string, (ext,prev?) =>any>
Defined in: core/dist/nodes/base/node.d.ts:126
Maps external prop value → internal cell value for fields that need it.
Inherited from
ShapeNode.__mappers
__signals?
optional__signals?:Map<string,Signal<any>>
Defined in: core/dist/nodes/base/node.d.ts:122
Inherited from
ShapeNode.__signals
__tweens?
optional__tweens?:Map<string,TweenFn<any>>
Defined in: core/dist/nodes/base/node.d.ts:124
Inherited from
ShapeNode.__tweens
__upgraders?
optional__upgraders?:Map<string, () =>Signal<any>>
Defined in: core/dist/nodes/base/node.d.ts:123
Inherited from
ShapeNode.__upgraders
clip
readonlyclip:boolean
Defined in: core/dist/nodes/geometry/shape-node.d.ts:38
Inherited from
ShapeNode.clip
colSpan
readonlycolSpan:number
Defined in: core/dist/nodes/base/node.d.ts:140
Inherited from
ShapeNode.colSpan
column
readonlycolumn:number|undefined
Defined in: core/dist/nodes/base/node.d.ts:138
Inherited from
ShapeNode.column
effects
readonlyeffects:SceneEffect[]
Defined in: core/dist/nodes/base/node.d.ts:134
Inherited from
ShapeNode.effects
end
readonlyend:number
Defined in: core/dist/nodes/geometry/shape-node.d.ts:37
Inherited from
ShapeNode.end
fill
readonlyfill:FillResolved[]
Defined in: core/dist/nodes/geometry/shape-node.d.ts:33
Inherited from
ShapeNode.fill
flex
readonlyflex:number
Defined in: core/dist/nodes/base/node.d.ts:137
Inherited from
ShapeNode.flex
fontSize
readonlyfontSize:number
Defined in: components/latex/src/node.ts:12
height
readonlyheight:SizeInput
Defined in: core/dist/nodes/base/node.d.ts:130
Inherited from
ShapeNode.height
id
readonlyid:string
Defined in: core/dist/nodes/base/node.d.ts:121
Inherited from
ShapeNode.id
latex
readonlylatex:string
Defined in: components/latex/src/node.ts:11
opacity
readonlyopacity:number
Defined in: core/dist/nodes/base/node.d.ts:133
Inherited from
ShapeNode.opacity
padding
readonlypadding:PaddingResolved
Defined in: components/latex/src/node.ts:13
Overrides
ShapeNode.padding
pivot
readonlypivot:Vector2
Defined in: core/dist/nodes/base/node.d.ts:136
Inherited from
ShapeNode.pivot
rotation
readonlyrotation:number
Defined in: core/dist/nodes/base/node.d.ts:132
Inherited from
ShapeNode.rotation
row
readonlyrow:number|undefined
Defined in: core/dist/nodes/base/node.d.ts:139
Inherited from
ShapeNode.row
rowSpan
readonlyrowSpan:number
Defined in: core/dist/nodes/base/node.d.ts:141
Inherited from
ShapeNode.rowSpan
scale
readonlyscale:number
Defined in: core/dist/nodes/base/node.d.ts:131
Inherited from
ShapeNode.scale
shadow
readonlyshadow:ShadowResolved[]
Defined in: core/dist/nodes/geometry/shape-node.d.ts:35
Inherited from
ShapeNode.shadow
start
readonlystart:number
Defined in: core/dist/nodes/geometry/shape-node.d.ts:36
Inherited from
ShapeNode.start
stroke
readonlystroke:StrokeResolved[]
Defined in: core/dist/nodes/geometry/shape-node.d.ts:34
Inherited from
ShapeNode.stroke
width
readonlywidth:SizeInput
Defined in: core/dist/nodes/base/node.d.ts:129
Inherited from
ShapeNode.width
x
readonlyx:number
Defined in: core/dist/nodes/base/node.d.ts:127
Inherited from
ShapeNode.x
y
readonlyy:number
Defined in: core/dist/nodes/base/node.d.ts:128
Inherited from
ShapeNode.y
Accessors
assets
Get Signature
get assets():
AssetCatalog
Defined in: core/dist/nodes/base/node.d.ts:118
Returns
AssetCatalog
Inherited from
ShapeNode.assets
bottomCenter
Get Signature
get bottomCenter():
Vector2
Defined in: core/dist/nodes/base/node.d.ts:263
Returns
Vector2
Inherited from
ShapeNode.bottomCenter
bottomLeft
Get Signature
get bottomLeft():
Vector2
Defined in: core/dist/nodes/base/node.d.ts:260
Returns
Vector2
Inherited from
ShapeNode.bottomLeft
bottomRight
Get Signature
get bottomRight():
Vector2
Defined in: core/dist/nodes/base/node.d.ts:261
Returns
Vector2
Inherited from
ShapeNode.bottomRight
center
Get Signature
get center():
Vector2
Defined in: core/dist/nodes/base/node.d.ts:257
Center of the node — equivalent to its x/y position (0,0 is the center of the layout cell).
Returns
Vector2
Inherited from
ShapeNode.center
children
Get Signature
get children():
Node<NodeProps>[]
Defined in: core/dist/nodes/base/node.d.ts:268
Returns
Node<NodeProps>[]
Inherited from
ShapeNode.children
clock
Get Signature
get clock():
Readonly<NodeClock>
Defined in: core/dist/nodes/base/node.d.ts:241
Internal timing state.
Returns
Readonly<NodeClock>
Inherited from
ShapeNode.clock
leftCenter
Get Signature
get leftCenter():
Vector2
Defined in: core/dist/nodes/base/node.d.ts:264
Returns
Vector2
Inherited from
ShapeNode.leftCenter
measuredHeight
Get Signature
get measuredHeight():
number
Defined in: core/dist/nodes/base/node.d.ts:253
Returns
number
Inherited from
ShapeNode.measuredHeight
measuredWidth
Get Signature
get measuredWidth():
number
Defined in: core/dist/nodes/base/node.d.ts:252
Returns
number
Inherited from
ShapeNode.measuredWidth
name
Get Signature
get name():
string
Defined in: core/dist/nodes/base/node.d.ts:180
Returns
string
Inherited from
ShapeNode.name
parent
Get Signature
get parent():
Node<NodeProps> |null
Defined in: core/dist/nodes/base/node.d.ts:117
Returns
Node<NodeProps> | null
Inherited from
ShapeNode.parent
properties
Get Signature
get properties():
P
Defined in: core/dist/nodes/base/node.d.ts:179
Returns
P
Inherited from
ShapeNode.properties
rightCenter
Get Signature
get rightCenter():
Vector2
Defined in: core/dist/nodes/base/node.d.ts:265
Returns
Vector2
Inherited from
ShapeNode.rightCenter
topCenter
Get Signature
get topCenter():
Vector2
Defined in: core/dist/nodes/base/node.d.ts:262
Returns
Vector2
Inherited from
ShapeNode.topCenter
topLeft
Get Signature
get topLeft():
Vector2
Defined in: core/dist/nodes/base/node.d.ts:258
Returns
Vector2
Inherited from
ShapeNode.topLeft
topRight
Get Signature
get topRight():
Vector2
Defined in: core/dist/nodes/base/node.d.ts:259
Returns
Vector2
Inherited from
ShapeNode.topRight
Methods
_prepareStep()
_prepareStep(
to,duration,easing?):TweenStepper
Defined in: core/dist/nodes/base/node.d.ts:191
Resolve a single to() step into a flat TweenStepper — all the
per-key setup (anchor handling, mapper, numeric-vs-custom routing) happens
once here, then advance(dt) is allocation-free. Used by both the
generator path (_toGen) and the batched parallel path.
Parameters
to
Partial<P>
duration
number
easing?
EaseFunction
Returns
TweenStepper
Inherited from
ShapeNode._prepareStep
_toGen()
_toGen(
to,duration,easing?):FrameGenerator
Defined in: components/latex/src/node.ts:90
Parameters
to
Partial<LatexProps>
duration
number
easing?
EaseFunction
Returns
FrameGenerator
Overrides
ShapeNode._toGen
addChild()
addChild(
child):void
Defined in: core/dist/nodes/base/node.d.ts:269
Parameters
child
Node
Returns
void
Inherited from
ShapeNode.addChild
addChildAt()
Call Signature
addChildAt(
child,index):void
Defined in: core/dist/nodes/base/node.d.ts:273
Parameters
child
Node
index
number
Returns
void
Inherited from
ShapeNode.addChildAt
Call Signature
addChildAt(
child,index,duration,easing?):FrameGenerator
Defined in: core/dist/nodes/base/node.d.ts:274
Parameters
child
Node
index
number
duration
number
easing?
EaseFunction
Returns
FrameGenerator
Inherited from
ShapeNode.addChildAt
addChildren()
addChildren(
children):void
Defined in: core/dist/nodes/base/node.d.ts:271
Parameters
children
Node<NodeProps>[]
Returns
void
Inherited from
ShapeNode.addChildren
afterRender()
afterRender(
ctx):void
Defined in: core/dist/nodes/base/node.d.ts:291
Parameters
ctx
RenderContext
Returns
void
Inherited from
ShapeNode.afterRender
beforeRender()
beforeRender(
ctx):void
Defined in: core/dist/nodes/base/node.d.ts:282
Parameters
ctx
RenderContext
Returns
void
Inherited from
ShapeNode.beforeRender
bindAssets()
bindAssets(
context):void
Defined in: core/dist/nodes/base/node.d.ts:243
Parameters
context
AssetCatalog
Returns
void
Inherited from
ShapeNode.bindAssets
clearChildren()
clearChildren():
void
Defined in: core/dist/nodes/base/node.d.ts:272
Returns
void
Inherited from
ShapeNode.clearChildren
dispose()
dispose():
void
Defined in: core/dist/nodes/base/node.d.ts:301
Returns
void
Inherited from
ShapeNode.dispose
ellapse()
ellapse(
totalTime):void
Defined in: core/dist/nodes/base/node.d.ts:242
Parameters
totalTime
number
Returns
void
Inherited from
ShapeNode.ellapse
fadeTo()
fadeTo(
opacity,duration,ease?):FrameGenerator
Defined in: core/dist/nodes/base/node.d.ts:222
Animate opacity to the target value.
Parameters
opacity
number
Target opacity in the range [0, 1].
duration
number
ease?
EaseFunction
Returns
FrameGenerator
Example
yield* node.fadeTo(0, 0.3); // fade out
yield* node.fadeTo(1, 0.3); // fade in
Inherited from
ShapeNode.fadeTo
getName()
getName():
string
Defined in: components/latex/src/node.ts:9
Returns
string
getType()
getType():
string
Defined in: components/latex/src/node.ts:8
Returns
string
isAutoSize()
isAutoSize(
axis):boolean
Defined in: core/dist/nodes/base/node.d.ts:266
Parameters
axis
"height" | "width"
Returns
boolean
Inherited from
ShapeNode.isAutoSize
layout()
layout(
rect,_scope):void
Defined in: core/dist/nodes/base/node.d.ts:294
Parameters
rect
BoxBounds
_scope
MeasureScope
Returns
void
Inherited from
ShapeNode.layout
measure()
measure(
constraints):Partial<Size2D>
Defined in: components/latex/src/node.ts:66
Parameters
constraints
SizeConstraints
Returns
Partial<Size2D>
Overrides
ShapeNode.measure
moveTo()
moveTo(
x,y,duration,ease?):FrameGenerator
Defined in: core/dist/nodes/base/node.d.ts:199
Animate both x and y to the given position.
Parameters
x
number
y
number
duration
number
ease?
EaseFunction
Returns
FrameGenerator
Example
yield* node.moveTo(200, 100, 0.5, ease.outCubic);
Inherited from
ShapeNode.moveTo
moveX()
moveX(
x,duration,ease?):FrameGenerator
Defined in: core/dist/nodes/base/node.d.ts:206
Animate only the horizontal position (x).
Parameters
x
number
duration
number
ease?
EaseFunction
Returns
FrameGenerator
Example
yield* node.moveX(300, 0.4);
Inherited from
ShapeNode.moveX
moveY()
moveY(
y,duration,ease?):FrameGenerator
Defined in: core/dist/nodes/base/node.d.ts:213
Animate only the vertical position (y).
Parameters
y
number
duration
number
ease?
EaseFunction
Returns
FrameGenerator
Example
yield* node.moveY(-50, 0.4);
Inherited from
ShapeNode.moveY
onRender()
onRender(
ctx):void
Defined in: core/dist/nodes/geometry/shape-node.d.ts:66
Parameters
ctx
RenderContext
Returns
void
Inherited from
ShapeNode.onRender
prepare()
prepare(
tracker):void
Defined in: core/dist/nodes/geometry/shape-node.d.ts:44
Parameters
tracker
AssetTracker
Returns
void
Inherited from
ShapeNode.prepare
prepareAssets()
prepareAssets(
storage):void
Defined in: core/dist/nodes/base/node.d.ts:251
Parameters
storage
AssetTracker
Returns
void
Inherited from
ShapeNode.prepareAssets
removeChild()
removeChild(
child):Node<NodeProps> |null
Defined in: core/dist/nodes/base/node.d.ts:270
Parameters
child
Node
Returns
Node<NodeProps> | null
Inherited from
ShapeNode.removeChild
removeChildAt()
Call Signature
removeChildAt(
index):Node<NodeProps> |null
Defined in: core/dist/nodes/base/node.d.ts:275
Parameters
index
number
Returns
Node<NodeProps> | null
Inherited from
ShapeNode.removeChildAt
Call Signature
removeChildAt(
index,duration,easing?):FrameGenerator
Defined in: core/dist/nodes/base/node.d.ts:276
Parameters
index
number
duration
number
easing?
EaseFunction
Returns
FrameGenerator
Inherited from
ShapeNode.removeChildAt
render()
render(
ctx):void
Defined in: core/dist/nodes/base/node.d.ts:292
Parameters
ctx
RenderContext
Returns
void
Inherited from
ShapeNode.render
renderChildren()
renderChildren(
ctx):void
Defined in: core/dist/nodes/base/node.d.ts:281
Parameters
ctx
RenderContext
Returns
void
Inherited from
ShapeNode.renderChildren
reparent()
Call Signature
reparent(
newParent):void
Defined in: core/dist/nodes/base/node.d.ts:296
Parameters
newParent
Node
Returns
void
Inherited from
ShapeNode.reparent
Call Signature
reparent(
newParent,duration,easing?):FrameGenerator
Defined in: core/dist/nodes/base/node.d.ts:297
Parameters
newParent
Node
duration
number
easing?
EaseFunction
Returns
FrameGenerator
Inherited from
ShapeNode.reparent
resolveSizeInput()
resolveSizeInput(
sizeInput,availableSize,childrenSize):number
Defined in: core/dist/nodes/base/node.d.ts:267
Parameters
sizeInput
SizeInput
availableSize
number
childrenSize
number
Returns
number
Inherited from
ShapeNode.resolveSizeInput
rotateTo()
rotateTo(
rotation,duration,ease?):FrameGenerator
Defined in: core/dist/nodes/base/node.d.ts:229
Animate rotate to the target angle (degrees, clockwise).
Parameters
rotation
number
duration
number
ease?
EaseFunction
Returns
FrameGenerator
Example
yield* node.rotateTo(180, 0.6, ease.inOutQuad);
Inherited from
ShapeNode.rotateTo
scaleTo()
scaleTo(
scale,duration,ease?):FrameGenerator
Defined in: core/dist/nodes/base/node.d.ts:237
Animate scale to the target factor.
Parameters
scale
number
duration
number
ease?
EaseFunction
Returns
FrameGenerator
Example
yield* node.scaleTo(1.5, 0.4); // grow
yield* node.scaleTo(0, 0.3); // shrink to nothing
Inherited from
ShapeNode.scaleTo
set()
set(
props):void
Defined in: core/dist/nodes/base/node.d.ts:181
Parameters
props
bottomCenter?
Vector2 | (() => Vector2) | (() => Vector2 | (() => Vector2))
bottomLeft?
Vector2 | (() => Vector2) | (() => Vector2 | (() => Vector2))
bottomRight?
Vector2 | (() => Vector2) | (() => Vector2 | (() => Vector2))
center?
Vector2 | (() => Vector2) | (() => Vector2 | (() => Vector2))
children?
Node<NodeProps> | Node<NodeProps>[] | (() => Node<NodeProps> | Node<NodeProps>[])
clip?
boolean | (() => boolean | undefined)
When true, content drawn outside this shape's outline is clipped away.
colSpan?
number | (() => number)
How many grid columns this child spans. Default 1.
column?
number | (() => number)
1-based column index for explicit grid placement. Undefined = auto-placed.
effects?
ChainableFx | (() => ChainableFx)
end?
number | (() => number | undefined)
fill?
ChainableFill | (() => ChainableFill | undefined)
Fill layer(s). Each item can be:
- A plain CSS color string → treated as a solid fill
- A fill prop object (SolidFillProp, LinearGradientFillProp, …)
- An already-resolved fill object
- A FillChain from the
Fillbuilder (e.g.Fill.color('red'))
flex?
number | (() => number)
Proportional share of the free space along the parent's main axis,
relative to sibling fill children (like Flutter's Expanded(flex:)).
Only meaningful when this node fills the main axis — in a row that's
width:'fill', in a column height:'fill'. Two siblings with flex 2
and 1 split the free space 2:1. Defaults to 1. Specifying flex without
an explicit width/height defaults both to 'fill'.
fontSize?
number | (() => number)
height?
SizeInput | (() => SizeInput)
latex?
string | (() => string)
leftCenter?
Vector2 | (() => Vector2) | (() => Vector2 | (() => Vector2))
opacity?
number | (() => number)
padding?
PaddingProps | (() => PaddingProps)
Inner spacing between this node's edges and its content/children.
pivot?
Vector2 | (() => Vector2)
Pivot point for rotation and scale. (0,0)=center, (-1,1)=top-left, (1,-1)=bottom-right. Set automatically when an anchor prop is used.
rightCenter?
Vector2 | (() => Vector2) | (() => Vector2 | (() => Vector2))
rotation?
number | (() => number)
row?
number | (() => number)
1-based row index for explicit grid placement. Undefined = auto-placed.
rowSpan?
number | (() => number)
How many grid rows this child spans. Default 1.
scale?
number | (() => number)
shadow?
ShadowProp | ShadowProp[] | (() => ShadowProp | ShadowProp[] | undefined)
Shadow layer(s). fill inside each shadow accepts the same loose
values as the top-level fill prop.
start?
number | (() => number | undefined)
stroke?
StrokeProp | StrokeProp[] | (() => StrokeProp | StrokeProp[] | undefined)
Stroke layer(s). fill inside each stroke accepts the same loose
values as the top-level fill prop.
topCenter?
Vector2 | (() => Vector2) | (() => Vector2 | (() => Vector2))
topLeft?
Vector2 | (() => Vector2) | (() => Vector2 | (() => Vector2))
topRight?
Vector2 | (() => Vector2) | (() => Vector2 | (() => Vector2))
width?
SizeInput | (() => SizeInput)
x?
number | (() => number)
y?
number | (() => number)
Returns
void
Inherited from
ShapeNode.set
tick()
tick(
time):void
Defined in: core/dist/nodes/geometry/shape-node.d.ts:43
Parameters
time
number
Returns
void
Inherited from
ShapeNode.tick
to()
to(
to,duration,easing?):AnimationBuilder<LatexProps>
Defined in: components/latex/src/node.ts:86
Parameters
to
Partial<LatexProps>
duration
number
easing?
EaseFunction
Returns
AnimationBuilder<LatexProps>
Overrides
ShapeNode.to
waveform()
waveform():
WaveformInfo[] |undefined
Defined in: core/dist/nodes/base/node.d.ts:250
Audio clips this node owns, surfaced to the timeline as waveforms. The base node has no audio; nodes that do (e.g. Scene) override this. Returns undefined when there is nothing to show.
Returns
WaveformInfo[] | undefined
Inherited from
ShapeNode.waveform