Skip to content

Documentation / @ripl/3d / Cylinder

Class: Cylinder

Defined in: 3d/src/elements/cylinder.ts:28

A 3D cylinder shape with independent top and bottom radii for truncated cones.

Extends

Constructors

Constructor

new Cylinder(options): Cylinder

Defined in: 3d/src/elements/cylinder.ts:66

Parameters

ParameterType
optionsShape3DOptions<CylinderState>

Returns

Cylinder

Overrides

Shape3D.constructor

Properties

PropertyModifierTypeDefault valueDescriptionInherited fromDefined in
abstractpublicbooleanfalseWhen true, the element skips transform and drawing-state application during Element.render; used by containers such as Group.Shape3D.abstractcore/src/core/element.ts:423
classListreadonlySet<string>undefinedSet of CSS-like class names used for querying and selection.Shape3D.classListcore/src/core/element.ts:420
context?protectedContext<Element, Record<string, unknown>>undefined-Shape3D.contextcore/src/core/element.ts:413
datapublicunknownundefinedArbitrary user data bound to the element, typically the datum backing a data-driven visual.Shape3D.datacore/src/core/element.ts:429
hitPath?protectedContextPathundefined-Shape3D.hitPath3d/src/core/shape.ts:105
idpublicstringundefinedUnique identifier for this element, defaulting to type:uniqueId when not supplied.Shape3D.idcore/src/core/element.ts:416
parent?publicGroup<ElementEventMap>undefinedThe parent Group this element is attached to, or undefined when detached.Shape3D.parentcore/src/core/element.ts:427
pointerEventspublicElementPointerEvents'all'Controls which parts of the element respond to pointer hit testing. See ElementPointerEvents.Shape3D.pointerEventscore/src/core/element.ts:425
stateprotectedCylinderStateundefined-Shape3D.statecore/src/core/element.ts:412
typereadonlystringundefinedThe element type name (e.g. circle, rect, group).Shape3D.typecore/src/core/element.ts:418
defaultKeyreadonlytypeof defaultKeyundefinedThe key under which resources are retained when no explicit key is provided.Shape3D.defaultKeycore/src/core/disposer.ts:11

Accessors

direction

Get Signature

get direction(): TState["direction"]

Defined in: core/src/core/element.ts:434

Text directionality used when rendering text, mirroring the canvas direction drawing-state property (inherit, ltr, or rtl).

Returns

TState["direction"]

Set Signature

set direction(value): void

Defined in: core/src/core/element.ts:438

Parameters
ParameterType
valueTState["direction"]
Returns

void

Inherited from

Shape3D.direction


fill

Get Signature

get fill(): TState["fill"]

Defined in: core/src/core/element.ts:443

Fill style (colour or gradient) painted inside the element, mirroring the canvas fillStyle drawing-state property.

Returns

TState["fill"]

Set Signature

set fill(value): void

Defined in: core/src/core/element.ts:447

Parameters
ParameterType
valueTState["fill"]
Returns

void

Inherited from

Shape3D.fill


filter

Get Signature

get filter(): TState["filter"]

Defined in: core/src/core/element.ts:452

Filter effects applied to the element, mirroring the canvas filter drawing-state property.

Returns

TState["filter"]

Set Signature

set filter(value): void

Defined in: core/src/core/element.ts:456

Parameters
ParameterType
valueTState["filter"]
Returns

void

Inherited from

Shape3D.filter


font

Get Signature

get font(): TState["font"]

Defined in: core/src/core/element.ts:461

Font used for text rendering, mirroring the canvas font drawing-state property.

Returns

TState["font"]

Set Signature

set font(value): void

Defined in: core/src/core/element.ts:465

Parameters
ParameterType
valueTState["font"]
Returns

void

Inherited from

Shape3D.font


globalCompositeOperation

Get Signature

get globalCompositeOperation(): TState["globalCompositeOperation"]

Defined in: core/src/core/element.ts:479

Compositing/blend mode used to draw the element, mirroring the canvas globalCompositeOperation drawing-state property.

Returns

TState["globalCompositeOperation"]

Set Signature

set globalCompositeOperation(value): void

Defined in: core/src/core/element.ts:483

Parameters
ParameterType
valueTState["globalCompositeOperation"]
Returns

void

Inherited from

Shape3D.globalCompositeOperation


height

Get Signature

get height(): number

Defined in: 3d/src/elements/cylinder.ts:49

The height of the cylinder along the Y axis, in world units.

Returns

number

Set Signature

set height(value): void

Defined in: 3d/src/elements/cylinder.ts:53

Parameters
ParameterType
valuenumber
Returns

void


lineCap

Get Signature

get lineCap(): TState["lineCap"]

Defined in: core/src/core/element.ts:488

Cap style drawn at the ends of stroked lines, mirroring the canvas lineCap drawing-state property (butt, round, or square).

Returns

TState["lineCap"]

Set Signature

set lineCap(value): void

Defined in: core/src/core/element.ts:492

Parameters
ParameterType
valueTState["lineCap"]
Returns

void

Inherited from

Shape3D.lineCap


lineDash

Get Signature

get lineDash(): TState["lineDash"]

Defined in: core/src/core/element.ts:497

Dash pattern for stroked lines, mirroring the canvas line-dash array set via setLineDash.

Returns

TState["lineDash"]

Set Signature

set lineDash(value): void

Defined in: core/src/core/element.ts:501

Parameters
ParameterType
valueTState["lineDash"]
Returns

void

Inherited from

Shape3D.lineDash


lineDashOffset

Get Signature

get lineDashOffset(): TState["lineDashOffset"]

Defined in: core/src/core/element.ts:506

Offset into the line-dash pattern, mirroring the canvas lineDashOffset drawing-state property.

Returns

TState["lineDashOffset"]

Set Signature

set lineDashOffset(value): void

Defined in: core/src/core/element.ts:510

Parameters
ParameterType
valueTState["lineDashOffset"]
Returns

void

Inherited from

Shape3D.lineDashOffset


lineJoin

Get Signature

get lineJoin(): TState["lineJoin"]

Defined in: core/src/core/element.ts:515

Join style drawn where stroked segments meet, mirroring the canvas lineJoin drawing-state property (bevel, miter, or round).

Returns

TState["lineJoin"]

Set Signature

set lineJoin(value): void

Defined in: core/src/core/element.ts:519

Parameters
ParameterType
valueTState["lineJoin"]
Returns

void

Inherited from

Shape3D.lineJoin


lineWidth

Get Signature

get lineWidth(): TState["lineWidth"]

Defined in: core/src/core/element.ts:524

Width of stroked lines in pixels, mirroring the canvas lineWidth drawing-state property.

Returns

TState["lineWidth"]

Set Signature

set lineWidth(value): void

Defined in: core/src/core/element.ts:528

Parameters
ParameterType
valueTState["lineWidth"]
Returns

void

Inherited from

Shape3D.lineWidth


miterLimit

Get Signature

get miterLimit(): TState["miterLimit"]

Defined in: core/src/core/element.ts:533

Miter length limit for miter line joins, mirroring the canvas miterLimit drawing-state property.

Returns

TState["miterLimit"]

Set Signature

set miterLimit(value): void

Defined in: core/src/core/element.ts:537

Parameters
ParameterType
valueTState["miterLimit"]
Returns

void

Inherited from

Shape3D.miterLimit


opacity

Get Signature

get opacity(): TState["opacity"]

Defined in: core/src/core/element.ts:470

Opacity of the element from 0 (transparent) to 1 (opaque), mapping to the canvas globalAlpha drawing-state property.

Returns

TState["opacity"]

Set Signature

set opacity(value): void

Defined in: core/src/core/element.ts:474

Parameters
ParameterType
valueTState["opacity"]
Returns

void

Inherited from

Shape3D.opacity


radiusBottom

Get Signature

get radiusBottom(): number

Defined in: 3d/src/elements/cylinder.ts:40

The radius of the bottom cap, in world units.

Returns

number

Set Signature

set radiusBottom(value): void

Defined in: 3d/src/elements/cylinder.ts:44

Parameters
ParameterType
valuenumber
Returns

void


radiusTop

Get Signature

get radiusTop(): number

Defined in: 3d/src/elements/cylinder.ts:31

The radius of the top cap, in world units.

Returns

number

Set Signature

set radiusTop(value): void

Defined in: 3d/src/elements/cylinder.ts:35

Parameters
ParameterType
valuenumber
Returns

void


rotation

Get Signature

get rotation(): TState["rotation"]

Defined in: core/src/core/element.ts:650

Rotation applied to the element during rendering, in radians or as a CSS-like angle string.

Returns

TState["rotation"]

Set Signature

set rotation(value): void

Defined in: core/src/core/element.ts:654

Parameters
ParameterType
valueTState["rotation"]
Returns

void

Inherited from

Shape3D.rotation


rotationX

Get Signature

get rotationX(): TState["rotationX"]

Defined in: 3d/src/core/shape.ts:138

The rotation around the X axis, in radians.

Returns

TState["rotationX"]

Set Signature

set rotationX(value): void

Defined in: 3d/src/core/shape.ts:142

Parameters
ParameterType
valueTState["rotationX"]
Returns

void

Inherited from

Shape3D.rotationX


rotationY

Get Signature

get rotationY(): TState["rotationY"]

Defined in: 3d/src/core/shape.ts:147

The rotation around the Y axis, in radians.

Returns

TState["rotationY"]

Set Signature

set rotationY(value): void

Defined in: 3d/src/core/shape.ts:151

Parameters
ParameterType
valueTState["rotationY"]
Returns

void

Inherited from

Shape3D.rotationY


rotationZ

Get Signature

get rotationZ(): TState["rotationZ"]

Defined in: 3d/src/core/shape.ts:156

The rotation around the Z axis, in radians.

Returns

TState["rotationZ"]

Set Signature

set rotationZ(value): void

Defined in: 3d/src/core/shape.ts:160

Parameters
ParameterType
valueTState["rotationZ"]
Returns

void

Inherited from

Shape3D.rotationZ


segments

Get Signature

get segments(): number

Defined in: 3d/src/elements/cylinder.ts:58

The number of segments around the circumference.

Returns

number

Set Signature

set segments(value): void

Defined in: 3d/src/elements/cylinder.ts:62

Parameters
ParameterType
valuenumber
Returns

void


shadowBlur

Get Signature

get shadowBlur(): TState["shadowBlur"]

Defined in: core/src/core/element.ts:542

Blur radius applied to the element's shadow, mirroring the canvas shadowBlur drawing-state property.

Returns

TState["shadowBlur"]

Set Signature

set shadowBlur(value): void

Defined in: core/src/core/element.ts:546

Parameters
ParameterType
valueTState["shadowBlur"]
Returns

void

Inherited from

Shape3D.shadowBlur


shadowColor

Get Signature

get shadowColor(): TState["shadowColor"]

Defined in: core/src/core/element.ts:551

Colour of the element's shadow, mirroring the canvas shadowColor drawing-state property.

Returns

TState["shadowColor"]

Set Signature

set shadowColor(value): void

Defined in: core/src/core/element.ts:555

Parameters
ParameterType
valueTState["shadowColor"]
Returns

void

Inherited from

Shape3D.shadowColor


shadowOffsetX

Get Signature

get shadowOffsetX(): TState["shadowOffsetX"]

Defined in: core/src/core/element.ts:560

Horizontal offset of the element's shadow, mirroring the canvas shadowOffsetX drawing-state property.

Returns

TState["shadowOffsetX"]

Set Signature

set shadowOffsetX(value): void

Defined in: core/src/core/element.ts:564

Parameters
ParameterType
valueTState["shadowOffsetX"]
Returns

void

Inherited from

Shape3D.shadowOffsetX


shadowOffsetY

Get Signature

get shadowOffsetY(): TState["shadowOffsetY"]

Defined in: core/src/core/element.ts:569

Vertical offset of the element's shadow, mirroring the canvas shadowOffsetY drawing-state property.

Returns

TState["shadowOffsetY"]

Set Signature

set shadowOffsetY(value): void

Defined in: core/src/core/element.ts:573

Parameters
ParameterType
valueTState["shadowOffsetY"]
Returns

void

Inherited from

Shape3D.shadowOffsetY


stroke

Get Signature

get stroke(): TState["stroke"]

Defined in: core/src/core/element.ts:578

Stroke style (colour or gradient) painted along the element's outline, mirroring the canvas strokeStyle drawing-state property.

Returns

TState["stroke"]

Set Signature

set stroke(value): void

Defined in: core/src/core/element.ts:582

Parameters
ParameterType
valueTState["stroke"]
Returns

void

Inherited from

Shape3D.stroke


textAlign

Get Signature

get textAlign(): TState["textAlign"]

Defined in: core/src/core/element.ts:587

Horizontal alignment of rendered text, mirroring the canvas textAlign drawing-state property.

Returns

TState["textAlign"]

Set Signature

set textAlign(value): void

Defined in: core/src/core/element.ts:591

Parameters
ParameterType
valueTState["textAlign"]
Returns

void

Inherited from

Shape3D.textAlign


textBaseline

Get Signature

get textBaseline(): TState["textBaseline"]

Defined in: core/src/core/element.ts:596

Vertical baseline of rendered text, mirroring the canvas textBaseline drawing-state property.

Returns

TState["textBaseline"]

Set Signature

set textBaseline(value): void

Defined in: core/src/core/element.ts:600

Parameters
ParameterType
valueTState["textBaseline"]
Returns

void

Inherited from

Shape3D.textBaseline


transformOriginX

Get Signature

get transformOriginX(): TState["transformOriginX"]

Defined in: core/src/core/element.ts:659

Horizontal origin about which transforms are applied, as a pixel value or percentage string.

Returns

TState["transformOriginX"]

Set Signature

set transformOriginX(value): void

Defined in: core/src/core/element.ts:663

Parameters
ParameterType
valueTState["transformOriginX"]
Returns

void

Inherited from

Shape3D.transformOriginX


transformOriginY

Get Signature

get transformOriginY(): TState["transformOriginY"]

Defined in: core/src/core/element.ts:668

Vertical origin about which transforms are applied, as a pixel value or percentage string.

Returns

TState["transformOriginY"]

Set Signature

set transformOriginY(value): void

Defined in: core/src/core/element.ts:672

Parameters
ParameterType
valueTState["transformOriginY"]
Returns

void

Inherited from

Shape3D.transformOriginY


transformScaleX

Get Signature

get transformScaleX(): TState["transformScaleX"]

Defined in: core/src/core/element.ts:632

Horizontal scale factor applied to the element during rendering (1 is unscaled).

Returns

TState["transformScaleX"]

Set Signature

set transformScaleX(value): void

Defined in: core/src/core/element.ts:636

Parameters
ParameterType
valueTState["transformScaleX"]
Returns

void

Inherited from

Shape3D.transformScaleX


transformScaleY

Get Signature

get transformScaleY(): TState["transformScaleY"]

Defined in: core/src/core/element.ts:641

Vertical scale factor applied to the element during rendering (1 is unscaled).

Returns

TState["transformScaleY"]

Set Signature

set transformScaleY(value): void

Defined in: core/src/core/element.ts:645

Parameters
ParameterType
valueTState["transformScaleY"]
Returns

void

Inherited from

Shape3D.transformScaleY


translateX

Get Signature

get translateX(): TState["translateX"]

Defined in: core/src/core/element.ts:614

Horizontal translation applied to the element during rendering, in pixels.

Returns

TState["translateX"]

Set Signature

set translateX(value): void

Defined in: core/src/core/element.ts:618

Parameters
ParameterType
valueTState["translateX"]
Returns

void

Inherited from

Shape3D.translateX


translateY

Get Signature

get translateY(): TState["translateY"]

Defined in: core/src/core/element.ts:623

Vertical translation applied to the element during rendering, in pixels.

Returns

TState["translateY"]

Set Signature

set translateY(value): void

Defined in: core/src/core/element.ts:627

Parameters
ParameterType
valueTState["translateY"]
Returns

void

Inherited from

Shape3D.translateY


x

Get Signature

get x(): TState["x"]

Defined in: 3d/src/core/shape.ts:111

The X position of the shape's origin in world space.

Returns

TState["x"]

Set Signature

set x(value): void

Defined in: 3d/src/core/shape.ts:115

Parameters
ParameterType
valueTState["x"]
Returns

void

Inherited from

Shape3D.x


y

Get Signature

get y(): TState["y"]

Defined in: 3d/src/core/shape.ts:120

The Y position of the shape's origin in world space.

Returns

TState["y"]

Set Signature

set y(value): void

Defined in: 3d/src/core/shape.ts:124

Parameters
ParameterType
valueTState["y"]
Returns

void

Inherited from

Shape3D.y


z

Get Signature

get z(): TState["z"]

Defined in: 3d/src/core/shape.ts:129

The Z position of the shape's origin in world space.

Returns

TState["z"]

Set Signature

set z(value): void

Defined in: 3d/src/core/shape.ts:133

Parameters
ParameterType
valueTState["z"]
Returns

void

Inherited from

Shape3D.z


zIndex

Get Signature

get zIndex(): number

Defined in: 3d/src/core/shape.ts:165

The stacking order, derived from the shape's projected depth (nearer shapes sort above farther ones). Not settable on 3D shapes.

Returns

number

Set Signature

set zIndex(_value): void

Defined in: 3d/src/core/shape.ts:169

Effective stacking order of the element, combining its own z-index with its parent Group's. Higher values render on top.

Parameters
ParameterType
_valuenumber
Returns

void

Inherited from

Shape3D.zIndex

Methods

clone()

clone(): Element<CylinderState, ElementEventMap>

Defined in: core/src/core/element.ts:762

Creates a shallow clone of this element with the same id, classes, and state.

Returns

Element<CylinderState, ElementEventMap>

Inherited from

Shape3D.clone


closest()

closest<TElement>(selector): TElement | undefined

Defined in: core/src/core/element.ts:776

Returns the closest ancestor (including this element) matching the CSS-like selector, or undefined.

Type Parameters

Type ParameterDefault type
TElement extends Element<Partial<BaseState>, ElementEventMap>Element<Partial<BaseState>, ElementEventMap>

Parameters

ParameterType
selectorstring

Returns

TElement | undefined

Inherited from

Shape3D.closest


computeFaces()

protected computeFaces(): Face3D[]

Defined in: 3d/src/elements/cylinder.ts:73

Returns

Face3D[]

Overrides

Shape3D.computeFaces


destroy()

destroy(): void

Defined in: core/src/core/element.ts:870

Detaches the element from its parent Group and tears down its event subscriptions.

Returns

void

Inherited from

Shape3D.destroy


dispose()

protected dispose(key?): void

Defined in: core/src/core/disposer.ts:25

Disposes all resources under the given key, or all resources if no key is provided.

Parameters

ParameterType
key?PropertyKey

Returns

void

Inherited from

Shape3D.dispose


emit()

Call Signature

emit<TEvent>(event): TEvent

Defined in: core/src/core/event-bus.ts:137

Emits an event, invoking all matching handlers and bubbling to the parent if applicable.

Type Parameters
Type ParameterDefault type
TEvent extends Event<undefined>Event<undefined>
Parameters
ParameterType
eventTEvent
Returns

TEvent

Inherited from

Shape3D.emit

Call Signature

emit<TEvent>(type, data): Event<ElementEventMap[TEvent]>

Defined in: core/src/core/event-bus.ts:138

Emits an event, invoking all matching handlers and bubbling to the parent if applicable.

Type Parameters
Type Parameter
TEvent extends keyof ElementEventMap
Parameters
ParameterType
typeTEvent
dataElementEventMap[TEvent]
Returns

Event<ElementEventMap[TEvent]>

Inherited from

Shape3D.emit


getBoundingBox()

getBoundingBox(local?): Box

Defined in: core/src/core/element.ts:796

Returns this element's bounding box: the on-screen (world) box by default, or the raw local box when local is true. The world box applies this element's own and every ancestor group's transform (mirroring the DOM's getBoundingClientRect); a rotated element yields a conservative axis-aligned box.

Parameters

ParameterTypeDefault valueDescription
localbooleanfalsewhen true, returns the untransformed authored geometry instead of the world box.

Returns

Box

Inherited from

Shape3D.getBoundingBox


getComputedStateValue()

protected getComputedStateValue<TKey>(key): CylinderState[TKey]

Defined in: core/src/core/element.ts:714

Resolves a state value against the parent chain (own value, else the nearest ancestor's) — the effective value an element renders with. Used where the resolved value is needed without a live context, such as computing a transition's start value.

Type Parameters

Type Parameter
TKey extends keyof CylinderState

Parameters

ParameterType
keyTKey

Returns

CylinderState[TKey]

Inherited from

Shape3D.getComputedStateValue


getDepth()

getDepth(context): number

Defined in: 3d/src/core/shape.ts:214

Returns the projected depth of this shape's origin in the given 3D context.

Parameters

ParameterType
contextContext3D

Returns

number

Inherited from

Shape3D.getDepth


getModelMatrix()

protected getModelMatrix(): Matrix4

Defined in: 3d/src/core/shape.ts:196

Returns

Matrix4

Inherited from

Shape3D.getModelMatrix


getStateValue()

protected getStateValue<TKey>(key): CylinderState[TKey]

Defined in: core/src/core/element.ts:705

Reads this element's own state value (no inheritance). Inherited paint now cascades through the render tree — a group applies its paint at its boundary (Context.pushGroup) and descendants pick it up from the context's copied state — so property getters return own values only, mirroring how the browser resolves computed style at paint time. Use Element.getComputedStateValue when the effective (inheritance-resolved) value is required outside a render pass (e.g. animation start values).

Type Parameters

Type Parameter
TKey extends keyof CylinderState

Parameters

ParameterType
keyTKey

Returns

CylinderState[TKey]

Inherited from

Shape3D.getStateValue


has()

has(type): boolean

Defined in: core/src/core/event-bus.ts:94

Returns whether there are any listeners registered for the given event type.

Parameters

ParameterType
typekeyof ElementEventMap

Returns

boolean

Inherited from

Shape3D.has


interpolate()

interpolate(newState, interpolators?): Interpolator<void>

Defined in: core/src/core/element.ts:810

Creates an interpolator that transitions from the current state towards the target state, supporting keyframes and custom interpolator overrides.

Parameters

ParameterType
newStatePartial<ElementInterpolationState<TState>>
interpolatorsPartial<ElementInterpolators<TState>>

Returns

Interpolator<void>

Inherited from

Shape3D.interpolate


intersectsWith()

intersectsWith(x, y, options?): boolean

Defined in: 3d/src/core/shape.ts:336

Tests whether a point intersects this element’s bounding box. Override for custom hit testing.

Parameters

ParameterType
xnumber
ynumber
options?Partial<ElementIntersectionOptions>

Returns

boolean

Inherited from

Shape3D.intersectsWith


matches()

matches(selector): boolean

Defined in: core/src/core/element.ts:771

Tests whether this element matches the CSS-like selector.

Parameters

ParameterType
selectorstring

Returns

boolean

Inherited from

Shape3D.matches


off()

off<TEvent>(type, handler): void

Defined in: core/src/core/event-bus.ts:112

Removes a previously registered handler for the given event type.

Type Parameters

Type Parameter
TEvent extends keyof ElementEventMap

Parameters

ParameterType
typeTEvent
handlerEventHandler<ElementEventMap[TEvent]>

Returns

void

Inherited from

Shape3D.off


on()

on<TEvent>(event, handler, options?): Disposable

Defined in: core/src/core/element.ts:744

Subscribes a handler to an element event, returning a disposable subscription.

Overrides EventBus.on to additionally invalidate the Context's tracked-element cache for interaction events, keeping hit testing accurate as listeners are added and removed.

Type Parameters

Type Parameter
TEvent extends keyof ElementEventMap

Parameters

ParameterTypeDescription
eventTEventThe event name to listen for.
handlerEventHandler<ElementEventMap[TEvent]>Callback invoked when the event is emitted.
options?EventSubscriptionOptionsOptional subscription options (e.g. self-only filtering).

Returns

Disposable

A disposable used to remove the subscription.

Inherited from

Shape3D.on


once()

once<TEvent>(type, handler, options?): Disposable

Defined in: core/src/core/event-bus.ts:127

Subscribes a handler that is automatically removed after it fires once.

Type Parameters

Type Parameter
TEvent extends keyof ElementEventMap

Parameters

ParameterType
typeTEvent
handlerEventHandler<ElementEventMap[TEvent]>
options?EventSubscriptionOptions

Returns

Disposable

Inherited from

Shape3D.once


render()

render(context): void

Defined in: 3d/src/core/shape.ts:253

Renders this element by applying transforms and context state, then invoking the optional callback.

Parameters

ParameterType
contextContext

Returns

void

Inherited from

Shape3D.render


retain()

protected retain(value, key?): void

Defined in: core/src/core/disposer.ts:14

Registers a disposable resource under an optional key for later cleanup.

Parameters

ParameterTypeDefault value
valueDisposableundefined
keyPropertyKeyDisposer.defaultKey

Returns

void

Inherited from

Shape3D.retain


setStateValue()

protected setStateValue<TKey>(key, value): void

Defined in: 3d/src/core/shape.ts:187

Sets a state value and emits an updated event.

Type Parameters

Type Parameter
TKey extends keyof CylinderState

Parameters

ParameterType
keyTKey
valueCylinderState[TKey]

Returns

void

Inherited from

Shape3D.setStateValue


transformVertices()

protected transformVertices(vertices, matrix?): Vector3[]

Defined in: 3d/src/core/shape.ts:207

Parameters

ParameterType
verticesVector3[]
matrix?Matrix4

Returns

Vector3[]

Inherited from

Shape3D.transformVertices