Class: UppKonvaGroup
Defined in: upp-konva-group.ts:33
Multi-selection view (≥2 items). On onGrouped$ the library supplies instances wired with a stage delegate;
selection holds the same references as area.shapes.
Constructors
Constructor
new UppKonvaGroup(
_stageDelegate?):UppKonvaGroup
Defined in: upp-konva-group.ts:42
Parameters
_stageDelegate?
UppKonvaGroupStageDelegate | null
Stage delegate; the library usually supplies one. null for manually constructed groups
(operations are no-ops).
Returns
UppKonvaGroup
Accessors
height
Get Signature
get height():
number|null
Defined in: upp-konva-group.ts:132
Returns
number | null
Set Signature
set height(
v):void
Defined in: upp-konva-group.ts:136
Parameters
v
number
Returns
void
rotation
Get Signature
get rotation():
number|null
Defined in: upp-konva-group.ts:145
Returns
number | null
Set Signature
set rotation(
v):void
Defined in: upp-konva-group.ts:149
Parameters
v
number
Returns
void
selection
Get Signature
get selection(): readonly
UppKonvaShape[]
Defined in: upp-konva-group.ts:49
Model shapes (area.shapes); not copies.
Returns
readonly UppKonvaShape[]
Set Signature
set selection(
next):void
Defined in: upp-konva-group.ts:53
Parameters
next
readonly UppKonvaShape[]
Returns
void
type
Get Signature
get type():
UppKonvaShapeKind|null
Defined in: upp-konva-group.ts:63
Common kind when every selected shape shares the same type and there are ≥2 items; otherwise null.
Returns
UppKonvaShapeKind | null
The shared UppKonvaShapeKind, or null.
width
Get Signature
get width():
number|null
Defined in: upp-konva-group.ts:119
Returns
number | null
Set Signature
set width(
v):void
Defined in: upp-konva-group.ts:123
Parameters
v
number
Returns
void
x
Get Signature
get x():
number|null
Defined in: upp-konva-group.ts:75
Returns
number | null
Set Signature
set x(
v):void
Defined in: upp-konva-group.ts:79
Parameters
v
number
Returns
void
y
Get Signature
get y():
number|null
Defined in: upp-konva-group.ts:97
Returns
number | null
Set Signature
set y(
v):void
Defined in: upp-konva-group.ts:101
Parameters
v
number
Returns
void
Methods
align()
align(
axis):void
Defined in: upp-konva-group.ts:163
Aligns centers on the screen axis (same rule as the stage). No-op without a delegate.
Parameters
axis
Returns
void
applyUniformGeometry()
applyUniformGeometry(
widthCm,heightCm,rotationDeg):boolean
Defined in: upp-konva-group.ts:180
Applies the same width, height, and rotation to every selected transformable of the same kind.
Parameters
widthCm
number
Width in cm.
heightCm
number
Height in cm.
rotationDeg
number
Rotation in degrees.
Returns
boolean
true when the stage applied the change; false without a delegate.
distribute()
distribute(
axis):void
Defined in: upp-konva-group.ts:168
Even spacing along the screen axis. No-op without a delegate.
Parameters
axis
Returns
void
remove()
remove():
void
Defined in: upp-konva-group.ts:188
Removes every shape in selection from the area (one structural emission and a single host selection clear when
they share the same parentArea).
Returns
void