Class PartMarker<N>
Type Parameters
- N extends string = string
Accessors
active
True when any rendering of this identity (prose/shape/anim) is active.
Returns Cell<boolean>
Constructors
constructor
- new PartMarker<N extends string = string>(
name: N,
source: PartContent,
group?: PartMarker<string> | null,
): PartMarker<N>Type Parameters
- N extends string = string
Parameters
- name: N
- source: PartContent
- group: PartMarker<string> | null = null
Returns PartMarker<N>
Methods
bind
expand
Expand into named child markers sharing this identity (1↔N morph).
Type Parameters
- T extends Record<string, PartContent>
Parameters
- spec: T
Returns { readonly [K in string]: PartMarker<K> }
register
Register in the global lookup under
id.Parameters
- id: string
Returns this
Marker emitted by
part()/parts(); valid insidetex\…`holes. Group members share one innerMarker` so they share identity.