Documentation / @ripl/charts / positionSymbol
Function: positionSymbol() ​
positionSymbol(
element,cx,cy):void
Defined in: charts/src/components/symbols.ts:69
Repositions a symbol element, keeping a rotated symbol's transform origin locked to its center (a square is a 45°-rotated regular quad, so its origin must follow cx/cy).
Parameters ​
| Parameter | Type | Description |
|---|---|---|
element | SymbolElement | The symbol element to move. |
cx | number | The new center x-coordinate. |
cy | number | The new center y-coordinate. |
Returns ​
void