From c32088bba64b9e529465ec8aae96b55c25269615 Mon Sep 17 00:00:00 2001 From: Jan Bicker Date: Fri, 12 Jan 2024 11:46:29 +0100 Subject: [PATCH] Added documentation about EdgePlacement to SLabelImpl (#31) * Added documentation about EdgePlacement to SLabelImpl * Update hugo/content/docs/smodel.md Co-authored-by: Guillaume Fontorbe --------- Co-authored-by: Guillaume Fontorbe --- hugo/content/docs/smodel.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/hugo/content/docs/smodel.md b/hugo/content/docs/smodel.md index a561eb5..989c565 100644 --- a/hugo/content/docs/smodel.md +++ b/hugo/content/docs/smodel.md @@ -208,6 +208,13 @@ A label represents some text to be displayed and attached to a node, compartment * `alignment: Point`: The alignment of the label. Defaults to `Point.ORIGIN`. * `opacity: number`: The opacity of the label. Defaults to `1`. * `edgePlacement: EdgePlacement` - *optional*: The placement of the label on an edge. Defaults to `EdgePlacement.NONE`. + * `rotate: boolean` - true, if the label should be rotated to touch the edge tangentially + * `side: EdgeSide` - where is the label relative to the line's direction. Possible values are 'bottom', 'top', 'left', 'right', and 'on'. + * `position: number` - between 0 (source anchor) and 1 (target anchor) + * `offset: number` - space between label and edge/connected nodes + * `moveMode: 'edge' | 'free' | 'none'` - *optional* constrains where the label can be moved when move feature is enabled for the respective Label. + `edge` means the label can be moved along the edge, `free` means the label can be moved freely, `none` means the label cannot moved. + Defaults to `edge`. *Inheritance:*