@fabwcie/free-drawing / utils/shapeLinks
utils/shapeLinks
Classes
ShapeLinks
Defined in: packages/free-drawing/src/utils/shapeLinks.ts:34
Icons of shapes having a link (Drawer.setShapeLink) in the selection layer, at their top right corner (end of the title row of frames): same size whatever the zoom, a click opens the link (also in read only), its address shown on hover. Placed again each time the drawing is drawn (moves, zoom, changes, loading...), not exported
Constructors
Constructor
new ShapeLinks(
drawer):ShapeLinks
Defined in: packages/free-drawing/src/utils/shapeLinks.ts:46
Show icons of linked shapes, updated after each drawing of the draw layer
Parameters
drawer
Drawer whose shape links are shown
Returns
Properties
drawer
drawer:
Drawer
Defined in: packages/free-drawing/src/utils/shapeLinks.ts:36
Drawer whose shape links are shown
Methods
_createIcon()
private_createIcon(node,group):Group
Defined in: packages/free-drawing/src/utils/shapeLinks.ts:97
Icon opening the link of a shape on click, its address shown on hover
Parameters
node
Node
shape with a link
group
Group
group of icons
Returns
Group
icon added to the group
update()
update():
void
Defined in: packages/free-drawing/src/utils/shapeLinks.ts:54
Icons of visible shapes with a link (shapes of groups and frames too) created, placed at their shape or removed
Returns
void
Variables
shapeLinkName
constshapeLinkName:"drawer-shape-link"='drawer-shape-link'
Defined in: packages/free-drawing/src/utils/shapeLinks.ts:15
Name of the icon of a shape link (a click opens it)
shapeLinksName
constshapeLinksName:"drawer-shape-links"='drawer-shape-links'
Defined in: packages/free-drawing/src/utils/shapeLinks.ts:12
Name of the group of link icons, in the selection layer