Skip to main content

Class: UppKonvaStairsShape

Defined in: shapes/upp-konva-stairs-shape.ts:5

Stairs shape.

Extends

Constructors

Constructor

new UppKonvaStairsShape(opts): UppKonvaStairsShape

Defined in: shapes/upp-konva-stairs-shape.ts:10

Parameters

opts

UppKonvaStairsShapeOptions

Returns

UppKonvaStairsShape

Overrides

UppKonvaShape.constructor

Properties

custom?

optional custom?: unknown

Defined in: upp-konva-shape.ts:136

Opaque bag on wire (optional).

Inherited from

UppKonvaShape.custom


data

data: Record<string, unknown>

Defined in: upp-konva-shape.ts:119

JSON data fields per shape kind (chairs, door variant, bar stools, etc.). Hydrated from the row DTO (UppKonvaShapeSource.data); cm geometry syncs with the canvas in edit mode.

Inherited from

UppKonvaShape.data


height

height: number

Defined in: upp-konva-shape.ts:111

Height in cm (plan contract).

Inherited from

UppKonvaShape.height


id

readonly id: string

Defined in: upp-konva-shape.ts:102

Inherited from

UppKonvaShape.id


kind

readonly kind: "STAIRS"

Defined in: shapes/upp-konva-stairs-shape.ts:7

Overrides

UppKonvaShape.kind


label

label: string

Defined in: upp-konva-shape.ts:124

Primary label on the canvas (empty = no text). After in-place edits use syncLabelsToStage or notifyPresentationDirty on the area.

Inherited from

UppKonvaShape.label


mode?

optional mode?: string

Defined in: upp-konva-shape.ts:134

Per-shape mode on wire (optional).

Inherited from

UppKonvaShape.mode


onRemoved$

readonly onRemoved$: Observable<void>

Defined in: upp-konva-shape.ts:100

Fires once when the shape is removed via UppKonvaArea.removeShapes / UppKonvaShape.remove, synchronously before parentArea is cleared and before doDestroy. Does not fire when the instance is torn down because source was replaced (hydration / adapter redraw).

Inherited from

UppKonvaShape.onRemoved$


onSelected$

readonly onSelected$: Observable<UppKonvaShapeEventPayload>

Defined in: upp-konva-shape.ts:88

Fires when the user selects the shape on the canvas while the model is in VIEW. Subscribe from the app.

Inherited from

UppKonvaShape.onSelected$


onUpdated$

readonly onUpdated$: Observable<UppKonvaShapeEventPayload>

Defined in: upp-konva-shape.ts:93

Fires when the shape is edited in place in EDIT. Does not imply a structural area.shapes change or onModelChanged.

Inherited from

UppKonvaShape.onUpdated$


rotation

rotation: number

Defined in: upp-konva-shape.ts:113

Rotation in degrees (plan contract).

Inherited from

UppKonvaShape.rotation


sublabel

sublabel: string

Defined in: upp-konva-shape.ts:129

Optional subtitle (typically smaller than label). See syncLabelsToStage.

Inherited from

UppKonvaShape.sublabel


width

width: number

Defined in: upp-konva-shape.ts:109

Width in cm (plan contract).

Inherited from

UppKonvaShape.width


x

x: number

Defined in: upp-konva-shape.ts:105

X position in cm (plan contract).

Inherited from

UppKonvaShape.x


y

y: number

Defined in: upp-konva-shape.ts:107

Y position in cm (plan contract).

Inherited from

UppKonvaShape.y


zIndex?

optional zIndex?: number

Defined in: upp-konva-shape.ts:132

Z order in document / wire (optional).

Inherited from

UppKonvaShape.zIndex

Accessors

attention

Get Signature

get attention(): boolean

Defined in: upp-konva-shape.ts:148

English comment normalized. Compatibility: assigning true is equivalent to setHighlight('WARNING', true); false to clearHighlight. Not part of the persisted DTO UppKonvaShapeSource.

Returns

boolean

Set Signature

set attention(enabled): void

Defined in: upp-konva-shape.ts:155

Parameters
enabled

boolean

Returns

void

Inherited from

UppKonvaShape.attention


highlight

Get Signature

get highlight(): { animated: boolean; tone: UppKonvaAttention; } | null

Defined in: upp-konva-shape.ts:165

Highlight state with tone and pulse; null if no highlight is active (applies only to TABLE on canvas).

Returns

{ animated: boolean; tone: UppKonvaAttention; } | null

Inherited from

UppKonvaShape.highlight


parentArea

Get Signature

get parentArea(): UppKonvaArea | null

Defined in: upp-konva-shape.ts:139

Owning area for this row in shapes, or null when not wired or after doDestroy.

Returns

UppKonvaArea | null

Inherited from

UppKonvaShape.parentArea

Methods

clearHighlight()

clearHighlight(): void

Defined in: upp-konva-shape.ts:186

Clears the highlight state (same as setHighlight reset).

Returns

void

Inherited from

UppKonvaShape.clearHighlight


doDestroy()

doDestroy(): void

Defined in: upp-konva-shape.ts:63

Completes shape observables; idempotent.

Returns

void

Inherited from

UppKonvaShape.doDestroy


remove()

remove(): boolean

Defined in: upp-konva-shape.ts:235

Removes this shape from the area and destroys it.

Returns

boolean

false without an owning area or when already destroyed.

Inherited from

UppKonvaShape.remove


setHighlight()

setHighlight(tone, animated): void

Defined in: upp-konva-shape.ts:178

Enables highlight only if the row is a table; does nothing for other types.

Parameters

tone

UppKonvaAttention

SUCCESS, WARNING or DANGER (floor-plan theme palette). English comment normalized.

animated

boolean

Returns

void

Inherited from

UppKonvaShape.setHighlight


setSublabel()

setSublabel(text): void

Defined in: upp-konva-shape.ts:194

Assigns the secondary badge text and syncs it with the wired stage.

Parameters

text

string

Returns

void

Inherited from

UppKonvaShape.setSublabel


syncLabelsToStage()

syncLabelsToStage(): void

Defined in: upp-konva-shape.ts:222

After mutating label / sublabel in place, updates the scene node and canvas badge.

Returns

void

Inherited from

UppKonvaShape.syncLabelsToStage


syncPresentationToStage()

syncPresentationToStage(): void

Defined in: upp-konva-shape.ts:208

After mutating data in place (visual variant, chairs, stools, …), applies presentation on the canvas without changing global geometry. Requires a wired area and stage. Repaint is coalesced on the wired area (package-internal). For x/y/dimensions use area.notifyPresentationDirty() or area.source = ….

Returns

void

Inherited from

UppKonvaShape.syncPresentationToStage