@activecollab/components 2.0.603 → 2.0.605
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Dialog/Styles.js +1 -1
- package/dist/cjs/components/Dialog/Styles.js.map +1 -1
- package/dist/cjs/components/Icons/collection/AnchorPointBottom.js +92 -0
- package/dist/cjs/components/Icons/collection/AnchorPointBottom.js.map +1 -0
- package/dist/cjs/components/Icons/collection/AnchorPointBottomLeft.js +92 -0
- package/dist/cjs/components/Icons/collection/AnchorPointBottomLeft.js.map +1 -0
- package/dist/cjs/components/Icons/collection/AnchorPointBottomRight.js +92 -0
- package/dist/cjs/components/Icons/collection/AnchorPointBottomRight.js.map +1 -0
- package/dist/cjs/components/Icons/collection/AnchorPointCenter.js +96 -0
- package/dist/cjs/components/Icons/collection/AnchorPointCenter.js.map +1 -0
- package/dist/cjs/components/Icons/collection/AnchorPointLeft.js +92 -0
- package/dist/cjs/components/Icons/collection/AnchorPointLeft.js.map +1 -0
- package/dist/cjs/components/Icons/collection/AnchorPointRight.js +92 -0
- package/dist/cjs/components/Icons/collection/AnchorPointRight.js.map +1 -0
- package/dist/cjs/components/Icons/collection/AnchorPointTop.js +92 -0
- package/dist/cjs/components/Icons/collection/AnchorPointTop.js.map +1 -0
- package/dist/cjs/components/Icons/collection/AnchorPointTopLeft.js +92 -0
- package/dist/cjs/components/Icons/collection/AnchorPointTopLeft.js.map +1 -0
- package/dist/cjs/components/Icons/collection/AnchorPointTopRight.js +92 -0
- package/dist/cjs/components/Icons/collection/AnchorPointTopRight.js.map +1 -0
- package/dist/cjs/components/Icons/collection/AnchorPoints.js +106 -0
- package/dist/cjs/components/Icons/collection/AnchorPoints.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineEndArrow.js +66 -0
- package/dist/cjs/components/Icons/collection/LineEndArrow.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineEndBox.js +67 -0
- package/dist/cjs/components/Icons/collection/LineEndBox.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineEndChevron.js +66 -0
- package/dist/cjs/components/Icons/collection/LineEndChevron.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineEndCircle.js +67 -0
- package/dist/cjs/components/Icons/collection/LineEndCircle.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineEndDot.js +68 -0
- package/dist/cjs/components/Icons/collection/LineEndDot.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineEndRotatedBox.js +67 -0
- package/dist/cjs/components/Icons/collection/LineEndRotatedBox.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineEndRotatedSquare.js +66 -0
- package/dist/cjs/components/Icons/collection/LineEndRotatedSquare.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineEndSquare.js +70 -0
- package/dist/cjs/components/Icons/collection/LineEndSquare.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineEndpointNone.js +64 -0
- package/dist/cjs/components/Icons/collection/LineEndpointNone.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineStartArrow.js +66 -0
- package/dist/cjs/components/Icons/collection/LineStartArrow.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineStartBox.js +67 -0
- package/dist/cjs/components/Icons/collection/LineStartBox.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineStartChevron.js +66 -0
- package/dist/cjs/components/Icons/collection/LineStartChevron.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineStartCircle.js +67 -0
- package/dist/cjs/components/Icons/collection/LineStartCircle.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineStartDot.js +68 -0
- package/dist/cjs/components/Icons/collection/LineStartDot.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineStartRotatedBox.js +67 -0
- package/dist/cjs/components/Icons/collection/LineStartRotatedBox.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineStartRotatedSquare.js +66 -0
- package/dist/cjs/components/Icons/collection/LineStartRotatedSquare.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineStartSquare.js +70 -0
- package/dist/cjs/components/Icons/collection/LineStartSquare.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineStyle.js +102 -0
- package/dist/cjs/components/Icons/collection/LineStyle.js.map +1 -0
- package/dist/cjs/components/Icons/collection/LineThickness.js +76 -0
- package/dist/cjs/components/Icons/collection/LineThickness.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +203 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/components/WhiteboardLineGlyphs/WhiteboardLineGlyphs.js +184 -0
- package/dist/cjs/components/WhiteboardLineGlyphs/WhiteboardLineGlyphs.js.map +1 -0
- package/dist/cjs/components/WhiteboardLineGlyphs/index.js +17 -0
- package/dist/cjs/components/WhiteboardLineGlyphs/index.js.map +1 -0
- package/dist/cjs/components/index.js +12 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/elementToolbars.js +47 -14
- package/dist/cjs/presentation/whiteboard/elementToolbars.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/lineModel.js +48 -77
- package/dist/cjs/presentation/whiteboard/lineModel.js.map +1 -1
- package/dist/cjs/presentation/whiteboardModern/contextToolbar.js +4 -3
- package/dist/cjs/presentation/whiteboardModern/contextToolbar.js.map +1 -1
- package/dist/esm/components/Dialog/Styles.d.ts.map +1 -1
- package/dist/esm/components/Dialog/Styles.js +1 -1
- package/dist/esm/components/Dialog/Styles.js.map +1 -1
- package/dist/esm/components/Icons/collection/AnchorPointBottom.d.ts +32 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottom.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottom.js +85 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottom.js.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottomLeft.d.ts +32 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottomLeft.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottomLeft.js +85 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottomLeft.js.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottomRight.d.ts +32 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottomRight.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottomRight.js +85 -0
- package/dist/esm/components/Icons/collection/AnchorPointBottomRight.js.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointCenter.d.ts +32 -0
- package/dist/esm/components/Icons/collection/AnchorPointCenter.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointCenter.js +89 -0
- package/dist/esm/components/Icons/collection/AnchorPointCenter.js.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointLeft.d.ts +32 -0
- package/dist/esm/components/Icons/collection/AnchorPointLeft.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointLeft.js +85 -0
- package/dist/esm/components/Icons/collection/AnchorPointLeft.js.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointRight.d.ts +32 -0
- package/dist/esm/components/Icons/collection/AnchorPointRight.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointRight.js +85 -0
- package/dist/esm/components/Icons/collection/AnchorPointRight.js.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointTop.d.ts +32 -0
- package/dist/esm/components/Icons/collection/AnchorPointTop.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointTop.js +85 -0
- package/dist/esm/components/Icons/collection/AnchorPointTop.js.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointTopLeft.d.ts +32 -0
- package/dist/esm/components/Icons/collection/AnchorPointTopLeft.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointTopLeft.js +85 -0
- package/dist/esm/components/Icons/collection/AnchorPointTopLeft.js.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointTopRight.d.ts +32 -0
- package/dist/esm/components/Icons/collection/AnchorPointTopRight.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPointTopRight.js +85 -0
- package/dist/esm/components/Icons/collection/AnchorPointTopRight.js.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPoints.d.ts +32 -0
- package/dist/esm/components/Icons/collection/AnchorPoints.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/AnchorPoints.js +99 -0
- package/dist/esm/components/Icons/collection/AnchorPoints.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndArrow.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineEndArrow.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndArrow.js +59 -0
- package/dist/esm/components/Icons/collection/LineEndArrow.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndBox.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineEndBox.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndBox.js +60 -0
- package/dist/esm/components/Icons/collection/LineEndBox.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndChevron.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineEndChevron.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndChevron.js +59 -0
- package/dist/esm/components/Icons/collection/LineEndChevron.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndCircle.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineEndCircle.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndCircle.js +60 -0
- package/dist/esm/components/Icons/collection/LineEndCircle.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndDot.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineEndDot.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndDot.js +61 -0
- package/dist/esm/components/Icons/collection/LineEndDot.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndRotatedBox.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineEndRotatedBox.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndRotatedBox.js +60 -0
- package/dist/esm/components/Icons/collection/LineEndRotatedBox.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndRotatedSquare.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineEndRotatedSquare.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndRotatedSquare.js +59 -0
- package/dist/esm/components/Icons/collection/LineEndRotatedSquare.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndSquare.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineEndSquare.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndSquare.js +63 -0
- package/dist/esm/components/Icons/collection/LineEndSquare.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndpointNone.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineEndpointNone.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineEndpointNone.js +57 -0
- package/dist/esm/components/Icons/collection/LineEndpointNone.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartArrow.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineStartArrow.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartArrow.js +59 -0
- package/dist/esm/components/Icons/collection/LineStartArrow.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartBox.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineStartBox.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartBox.js +60 -0
- package/dist/esm/components/Icons/collection/LineStartBox.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartChevron.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineStartChevron.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartChevron.js +59 -0
- package/dist/esm/components/Icons/collection/LineStartChevron.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartCircle.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineStartCircle.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartCircle.js +60 -0
- package/dist/esm/components/Icons/collection/LineStartCircle.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartDot.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineStartDot.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartDot.js +61 -0
- package/dist/esm/components/Icons/collection/LineStartDot.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartRotatedBox.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineStartRotatedBox.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartRotatedBox.js +60 -0
- package/dist/esm/components/Icons/collection/LineStartRotatedBox.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartRotatedSquare.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineStartRotatedSquare.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartRotatedSquare.js +59 -0
- package/dist/esm/components/Icons/collection/LineStartRotatedSquare.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartSquare.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineStartSquare.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineStartSquare.js +63 -0
- package/dist/esm/components/Icons/collection/LineStartSquare.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineStyle.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineStyle.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineStyle.js +95 -0
- package/dist/esm/components/Icons/collection/LineStyle.js.map +1 -0
- package/dist/esm/components/Icons/collection/LineThickness.d.ts +32 -0
- package/dist/esm/components/Icons/collection/LineThickness.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/LineThickness.js +69 -0
- package/dist/esm/components/Icons/collection/LineThickness.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +29 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +29 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/components/WhiteboardLineGlyphs/WhiteboardLineGlyphs.d.ts +23 -0
- package/dist/esm/components/WhiteboardLineGlyphs/WhiteboardLineGlyphs.d.ts.map +1 -0
- package/dist/esm/components/WhiteboardLineGlyphs/WhiteboardLineGlyphs.js +163 -0
- package/dist/esm/components/WhiteboardLineGlyphs/WhiteboardLineGlyphs.js.map +1 -0
- package/dist/esm/components/WhiteboardLineGlyphs/index.d.ts +2 -0
- package/dist/esm/components/WhiteboardLineGlyphs/index.d.ts.map +1 -0
- package/dist/esm/components/WhiteboardLineGlyphs/index.js +2 -0
- package/dist/esm/components/WhiteboardLineGlyphs/index.js.map +1 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/presentation/whiteboard/elementToolbars.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/elementToolbars.js +49 -16
- package/dist/esm/presentation/whiteboard/elementToolbars.js.map +1 -1
- package/dist/esm/presentation/whiteboard/lineModel.d.ts +4 -19
- package/dist/esm/presentation/whiteboard/lineModel.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboard/lineModel.js +47 -75
- package/dist/esm/presentation/whiteboard/lineModel.js.map +1 -1
- package/dist/esm/presentation/whiteboardModern/contextToolbar.d.ts +2 -1
- package/dist/esm/presentation/whiteboardModern/contextToolbar.d.ts.map +1 -1
- package/dist/esm/presentation/whiteboardModern/contextToolbar.js +4 -3
- package/dist/esm/presentation/whiteboardModern/contextToolbar.js.map +1 -1
- package/dist/index.js +5144 -3007
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;A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W,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC"}
|
|
@@ -105,6 +105,7 @@ export * from "./Dot";
|
|
|
105
105
|
export * from "./Entity";
|
|
106
106
|
export * from "./Filter";
|
|
107
107
|
export * from "./Wizard";
|
|
108
|
+
export * from "./WhiteboardLineGlyphs";
|
|
108
109
|
export * from "./ContentWizard";
|
|
109
110
|
export * from "./IconButton";
|
|
110
111
|
export * from "./IdentityMark";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["suspendModalRoots","useSuspendModalRoots"],"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from \"./Button\";\nexport * from \"./CaretButton\";\nexport * from \"./CellTrigger\";\nexport * from \"./ButtonGroup\";\nexport * from \"./Breadcrumbs\";\nexport * from \"./CounterButton\";\nexport * from \"./Steppers\";\nexport * from \"./Tables\";\nexport * from \"./CompleteCheckbox\";\nexport * from \"./Paper\";\nexport * from \"./ScaleBar\";\nexport * from \"./Card\";\nexport * from \"./EntityCard\";\nexport * from \"./EntitiesHeader\";\nexport * from \"./Signifier\";\nexport * from \"./Avatar\";\nexport * from \"./Tag\";\nexport * from \"./Loaders\";\nexport * from \"./LogoField\";\nexport * from \"./MainMenu\";\nexport * from \"./Nav\";\nexport * from \"./SideNav\";\nexport * from \"./Bubble\";\nexport * from \"./Input\";\nexport * from \"./Display\";\nexport * from \"./DrilldownMenu\";\nexport * from \"./Menu\";\nexport * from \"./Expanders\";\nexport * from \"./DatePicker\";\nexport * from \"./List\";\nexport * from \"./MenuSelector\";\nexport * from \"./MultiAvatar\";\nexport * from \"./RadioButton\";\nexport * from \"./RadioCard\";\nexport * from \"./RadioGroup\";\nexport * from \"./RaisedAddButton\";\nexport * from \"./ScrollArea\";\nexport * from \"./ScrollShadow\";\nexport * from \"./ScrollToToast\";\nexport * from \"./SwatchPalette\";\nexport * from \"./Icons\";\nexport * from \"./Textarea\";\nexport * from \"./Timesheet\";\nexport * from \"./Modal\";\nexport * from \"./BatchEdit\";\nexport * from \"./BlockingProgress\";\nexport * from \"./Sheet\";\nexport * from \"./Drawer\";\nexport * from \"./Header\";\nexport * from \"./HeaderControls\";\nexport * from \"./AutoResizeTextarea\";\nexport * from \"./Overlay\";\nexport * from \"./Accordion\";\nexport * from \"./ActivityRail\";\nexport * from \"./Choose\";\nexport * from \"./ChooseV2\";\nexport * from \"./Links\";\nexport * from \"./SelectDate\";\nexport * from \"./Popper\";\nexport * from \"./ThemeSwatch\";\nexport * from \"./ToastMessage\";\nexport * from \"./Tooltip\";\nexport * from \"./Transitions\";\nexport * from \"./Window\";\nexport * from \"./ValueButton\";\nexport * from \"./PillButton\";\nexport * from \"./PillGroup\";\nexport * from \"./ViewSettings\";\nexport * from \"./ViewSwitcher\";\nexport * from \"./Select\";\nexport * from \"./SelectTrigger\";\nexport * from \"./SelectTime\";\nexport * from \"./Dialog\";\nexport * from \"./Divider\";\nexport * from \"./ObjectFormModal\";\nexport * from \"./ConfirmDialog\";\nexport * from \"./MediaViewer\";\nexport * from \"./Checkbox\";\nexport * from \"./Toggle\";\nexport * from \"./Typography\";\nexport * from \"./Autocomplete\";\nexport * from \"./ComboBox\";\nexport * from \"./Button/AddToListButton\";\nexport * from \"./PortableText\";\nexport * from \"./PresenceCapsule\";\nexport * from \"./ProgressBar\";\nexport * from \"./ProgressPie\";\nexport * from \"./Reactions\";\nexport * from \"./Label\";\nexport * from \"./GlobalPortal\";\nexport { suspendModalRoots } from \"./ModalRoot/modalRootStack\";\nexport { useSuspendModalRoots } from \"./ModalRoot/useSuspendModalRoots\";\nexport * from \"./GlobalStyle\";\nexport * from \"./ProgressRing\";\nexport * from \"./ProjectColor\";\nexport * from \"./ProjectIconPicker\";\nexport * from \"./EditableContent\";\nexport * from \"./EditableText\";\nexport * from \"./EditableHours\";\nexport * from \"./EditableCurrency\";\nexport * from \"./Folder\";\nexport * from \"./Chip\";\nexport * from \"./Trigger\";\nexport * from \"./Dot\";\nexport * from \"./Entity\";\nexport * from \"./Filter\";\nexport * from \"./Wizard\";\nexport * from \"./ContentWizard\";\nexport * from \"./IconButton\";\nexport * from \"./IdentityMark\";\nexport * from \"./Typography\";\nexport * from \"./Badge\";\nexport * from \"./AvatarGroup\";\nexport * from \"./CommandPalette\";\nexport * from \"./CommentsRail\";\nexport * from \"./EmptySlate\";\nexport * from \"./Illustrations\";\nexport * from \"./NoResultsSlate\";\nexport * from \"./FilterInput\";\nexport * from \"./Toolbar\";\nexport * from \"./InfoBox\";\nexport * from \"./Sort\";\nexport * from \"./StepSequence\";\nexport * from \"./Stopwatch\";\nexport * from \"./StackedCard\";\nexport * from \"./Stack\";\nexport * from \"./SwatchPicker\";\nexport * from \"./Row\";\nexport * from \"./Columns\";\nexport * from \"./Tiles\";\nexport * from \"./Media\";\nexport * from \"./TitledText\";\nexport * from \"./LayoutTokens\";\nexport * from \"./Section\";\nexport * from \"./Collapse\";\nexport * from \"./LabeledDivider\";\nexport * from \"./FloatingPill\";\nexport * from \"./Capsule\";\nexport * from \"./ClampedContent\";\nexport * from \"./ResizeHandle\";\nexport * from \"./ObjectLayout\";\nexport * from \"./ListRow\";\nexport * from \"./ListGroupHeading\";\nexport * from \"./FileTile\";\nexport * from \"./DropZone\";\nexport * from \"./EditorFrame\";\nexport * from \"./PropertyList\";\nexport * from \"./TicketPerforation\";\nexport * from \"./MessageBubble\";\nexport * from \"./DockedCard\";\nexport * from \"./NoteCard\";\nexport * from \"./NotebookCard\";\nexport * from \"./NotebookTile\";\nexport * from \"./ListSection\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,oBAAoB;AAClC,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,kBAAkB;AAChC,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,OAAO;AACrB,cAAc,WAAW;AACzB,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,OAAO;AACrB,cAAc,WAAW;AACzB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,iBAAiB;AAC/B,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,mBAAmB;AACjC,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc,SAAS;AACvB,cAAc,aAAa;AAC3B,cAAc,oBAAoB;AAClC,cAAc,SA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AAC/B,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,cAAc;AAC5B,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,kBAAkB;AAChC,cAAc,eAAe;AAC7B,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,gBAAgB;AAC9B,cAAc,OAAO;AACrB,cAAc,WAAW;AACzB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,YAAY;AAC1B,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,oBAAoB;AAClC,cAAc,YAAY;AAC1B,cAAc,YAAY;AAC1B,cAAc,eAAe;AAC7B,cAAc,gBAAgB;AAC9B,cAAc,qBAAqB;AACnC,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,YAAY;AAC1B,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,eAAe","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["suspendModalRoots","useSuspendModalRoots"],"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from \"./Button\";\nexport * from \"./CaretButton\";\nexport * from \"./CellTrigger\";\nexport * from \"./ButtonGroup\";\nexport * from \"./Breadcrumbs\";\nexport * from \"./CounterButton\";\nexport * from \"./Steppers\";\nexport * from \"./Tables\";\nexport * from \"./CompleteCheckbox\";\nexport * from \"./Paper\";\nexport * from \"./ScaleBar\";\nexport * from \"./Card\";\nexport * from \"./EntityCard\";\nexport * from \"./EntitiesHeader\";\nexport * from \"./Signifier\";\nexport * from \"./Avatar\";\nexport * from \"./Tag\";\nexport * from \"./Loaders\";\nexport * from \"./LogoField\";\nexport * from \"./MainMenu\";\nexport * from \"./Nav\";\nexport * from \"./SideNav\";\nexport * from \"./Bubble\";\nexport * from \"./Input\";\nexport * from \"./Display\";\nexport * from \"./DrilldownMenu\";\nexport * from \"./Menu\";\nexport * from \"./Expanders\";\nexport * from \"./DatePicker\";\nexport * from \"./List\";\nexport * from \"./MenuSelector\";\nexport * from \"./MultiAvatar\";\nexport * from \"./RadioButton\";\nexport * from \"./RadioCard\";\nexport * from \"./RadioGroup\";\nexport * from \"./RaisedAddButton\";\nexport * from \"./ScrollArea\";\nexport * from \"./ScrollShadow\";\nexport * from \"./ScrollToToast\";\nexport * from \"./SwatchPalette\";\nexport * from \"./Icons\";\nexport * from \"./Textarea\";\nexport * from \"./Timesheet\";\nexport * from \"./Modal\";\nexport * from \"./BatchEdit\";\nexport * from \"./BlockingProgress\";\nexport * from \"./Sheet\";\nexport * from \"./Drawer\";\nexport * from \"./Header\";\nexport * from \"./HeaderControls\";\nexport * from \"./AutoResizeTextarea\";\nexport * from \"./Overlay\";\nexport * from \"./Accordion\";\nexport * from \"./ActivityRail\";\nexport * from \"./Choose\";\nexport * from \"./ChooseV2\";\nexport * from \"./Links\";\nexport * from \"./SelectDate\";\nexport * from \"./Popper\";\nexport * from \"./ThemeSwatch\";\nexport * from \"./ToastMessage\";\nexport * from \"./Tooltip\";\nexport * from \"./Transitions\";\nexport * from \"./Window\";\nexport * from \"./ValueButton\";\nexport * from \"./PillButton\";\nexport * from \"./PillGroup\";\nexport * from \"./ViewSettings\";\nexport * from \"./ViewSwitcher\";\nexport * from \"./Select\";\nexport * from \"./SelectTrigger\";\nexport * from \"./SelectTime\";\nexport * from \"./Dialog\";\nexport * from \"./Divider\";\nexport * from \"./ObjectFormModal\";\nexport * from \"./ConfirmDialog\";\nexport * from \"./MediaViewer\";\nexport * from \"./Checkbox\";\nexport * from \"./Toggle\";\nexport * from \"./Typography\";\nexport * from \"./Autocomplete\";\nexport * from \"./ComboBox\";\nexport * from \"./Button/AddToListButton\";\nexport * from \"./PortableText\";\nexport * from \"./PresenceCapsule\";\nexport * from \"./ProgressBar\";\nexport * from \"./ProgressPie\";\nexport * from \"./Reactions\";\nexport * from \"./Label\";\nexport * from \"./GlobalPortal\";\nexport { suspendModalRoots } from \"./ModalRoot/modalRootStack\";\nexport { useSuspendModalRoots } from \"./ModalRoot/useSuspendModalRoots\";\nexport * from \"./GlobalStyle\";\nexport * from \"./ProgressRing\";\nexport * from \"./ProjectColor\";\nexport * from \"./ProjectIconPicker\";\nexport * from \"./EditableContent\";\nexport * from \"./EditableText\";\nexport * from \"./EditableHours\";\nexport * from \"./EditableCurrency\";\nexport * from \"./Folder\";\nexport * from \"./Chip\";\nexport * from \"./Trigger\";\nexport * from \"./Dot\";\nexport * from \"./Entity\";\nexport * from \"./Filter\";\nexport * from \"./Wizard\";\nexport * from \"./WhiteboardLineGlyphs\";\nexport * from \"./ContentWizard\";\nexport * from \"./IconButton\";\nexport * from \"./IdentityMark\";\nexport * from \"./Typography\";\nexport * from \"./Badge\";\nexport * from \"./AvatarGroup\";\nexport * from \"./CommandPalette\";\nexport * from \"./CommentsRail\";\nexport * from \"./EmptySlate\";\nexport * from \"./Illustrations\";\nexport * from \"./NoResultsSlate\";\nexport * from \"./FilterInput\";\nexport * from \"./Toolbar\";\nexport * from \"./InfoBox\";\nexport * from \"./Sort\";\nexport * from \"./StepSequence\";\nexport * from \"./Stopwatch\";\nexport * from \"./StackedCard\";\nexport * from \"./Stack\";\nexport * from \"./SwatchPicker\";\nexport * from \"./Row\";\nexport * from \"./Columns\";\nexport * from \"./Tiles\";\nexport * from \"./Media\";\nexport * from \"./TitledText\";\nexport * from \"./LayoutTokens\";\nexport * from \"./Section\";\nexport * from \"./Collapse\";\nexport * from \"./LabeledDivider\";\nexport * from \"./FloatingPill\";\nexport * from \"./Capsule\";\nexport * from \"./ClampedContent\";\nexport * from \"./ResizeHandle\";\nexport * from \"./ObjectLayout\";\nexport * from \"./ListRow\";\nexport * from \"./ListGroupHeading\";\nexport * from \"./FileTile\";\nexport * from \"./DropZone\";\nexport * from \"./EditorFrame\";\nexport * from \"./PropertyList\";\nexport * from \"./TicketPerforation\";\nexport * from \"./MessageBubble\";\nexport * from \"./DockedCard\";\nexport * from \"./NoteCard\";\nexport * from \"./NotebookCard\";\nexport * from \"./NotebookTile\";\nexport * from \"./ListSection\";\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,iBAAiB;AAC/B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,oBAAoB;AAClC,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,cAAc;AAC5B,cAAc,kBAAkB;AAChC,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,OAAO;AACrB,cAAc,WAAW;AACzB,cAAc,aAAa;AAC3B,cAAc,YAAY;AAC1B,cAAc,OAAO;AACrB,cAAc,WAAW;AACzB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,iBAAiB;AAC/B,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,mBAAmB;AACjC,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,aAAa;AAC3B,cAAc,SAAS;AACvB,cAAc,aAA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AACxB,cAAc,UAAU;AACxB,cAAc,wBAAwB;AACtC,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,cAAc;AAC5B,cAAc,SAAS;AACvB,cAAc,eAAe;AAC7B,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,kBAAkB;AAChC,cAAc,eAAe;AAC7B,cAAc,WAAW;AACzB,cAAc,WAAW;AACzB,cAAc,QAAQ;AACtB,cAAc,gBAAgB;AAC9B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,SAAS;AACvB,cAAc,gBAAgB;AAC9B,cAAc,OAAO;AACrB,cAAc,WAAW;AACzB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,cAAc;AAC5B,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,YAAY;AAC1B,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,kBAAkB;AAChC,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,WAAW;AACzB,cAAc,oBAAoB;AAClC,cAAc,YAAY;AAC1B,cAAc,YAAY;AAC1B,cAAc,eAAe;AAC7B,cAAc,gBAAgB;AAC9B,cAAc,qBAAqB;AACnC,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,YAAY;AAC1B,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,eAAe","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elementToolbars.d.ts","sourceRoot":"","sources":["../../../../src/presentation/whiteboard/elementToolbars.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAML,iBAAiB,EACjB,eAAe,EAEhB,MAAM,YAAY,CAAC;AACpB,OAAO,EAE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,EAAE,SAAS,CAAC;IAChB,YAAY,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACvC,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IACrD,cAAc,EAAE,CAAC,IAAI,EAAE,OAAO,GAAG,KAAK,EAAE,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC1E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,qBAAqB,GAAI,4GAWnC,0BAA0B,KAAG,YA0G/B,CAAC;AAEF,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC;IAChD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,gBAAgB,GAAI,2CAM9B,qBAAqB,KAAG,YAmC1B,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { FONT_SIZE_OPTIONS, RADIUS_OPTIONS, SHAPE_TYPE_ICON, THICKNESS_OPTIONS, SHAPE_TYPE_OPTIONS } from "./elements";
|
|
4
|
-
import { ANCHOR_OPTIONS,
|
|
4
|
+
import { ANCHOR_OPTIONS, LINE_END_OPTIONS, LINE_PATTERN_OPTIONS, LINE_TYPE_OPTIONS } from "./lineModel";
|
|
5
5
|
import { boardColorOptions } from "./palette";
|
|
6
|
-
import {
|
|
6
|
+
import { AnchorPointBottomIcon, AnchorPointBottomLeftIcon, AnchorPointBottomRightIcon, AnchorPointCenterIcon, AnchorPointLeftIcon, AnchorPointRightIcon, AnchorPointTopIcon, AnchorPointTopLeftIcon, AnchorPointTopRightIcon, AnchorPointsIcon, LineEndArrowIcon, LineEndBoxIcon, LineEndChevronIcon, LineEndCircleIcon, LineEndDotIcon, LineEndRotatedBoxIcon, LineEndRotatedSquareIcon, LineEndSquareIcon, LineEndpointNoneIcon, LineStartArrowIcon, LineStartBoxIcon, LineStartChevronIcon, LineStartCircleIcon, LineStartDotIcon, LineStartRotatedBoxIcon, LineStartRotatedSquareIcon, LineStartSquareIcon, LineStyleIcon, LineThicknessIcon, LockIcon, TrashIcon } from "../../components/Icons";
|
|
7
|
+
import { WhiteboardCornerRadiusGlyph, WhiteboardLinePatternGlyph, WhiteboardLineThicknessGlyph, WhiteboardLineTypeGlyph } from "../../components/WhiteboardLineGlyphs";
|
|
7
8
|
import { ContextToolbar } from "../whiteboardModern/contextToolbar";
|
|
8
9
|
|
|
9
10
|
/* ------------------------------------------------------------------ */
|
|
@@ -128,6 +129,30 @@ export const PostitFormattingToolbar = _ref2 => {
|
|
|
128
129
|
})], ...textGroups(value, update), lockDeleteGroup(locked, onToggleLock, onDelete)]
|
|
129
130
|
});
|
|
130
131
|
};
|
|
132
|
+
const LINE_END_ICONS = {
|
|
133
|
+
start: {
|
|
134
|
+
none: /*#__PURE__*/React.createElement(LineEndpointNoneIcon, null),
|
|
135
|
+
arrow: /*#__PURE__*/React.createElement(LineStartArrowIcon, null),
|
|
136
|
+
chevron: /*#__PURE__*/React.createElement(LineStartChevronIcon, null),
|
|
137
|
+
dot: /*#__PURE__*/React.createElement(LineStartDotIcon, null),
|
|
138
|
+
circle: /*#__PURE__*/React.createElement(LineStartCircleIcon, null),
|
|
139
|
+
square: /*#__PURE__*/React.createElement(LineStartSquareIcon, null),
|
|
140
|
+
box: /*#__PURE__*/React.createElement(LineStartBoxIcon, null),
|
|
141
|
+
rotatedSquare: /*#__PURE__*/React.createElement(LineStartRotatedSquareIcon, null),
|
|
142
|
+
rotatedBox: /*#__PURE__*/React.createElement(LineStartRotatedBoxIcon, null)
|
|
143
|
+
},
|
|
144
|
+
end: {
|
|
145
|
+
none: /*#__PURE__*/React.createElement(LineEndpointNoneIcon, null),
|
|
146
|
+
arrow: /*#__PURE__*/React.createElement(LineEndArrowIcon, null),
|
|
147
|
+
chevron: /*#__PURE__*/React.createElement(LineEndChevronIcon, null),
|
|
148
|
+
dot: /*#__PURE__*/React.createElement(LineEndDotIcon, null),
|
|
149
|
+
circle: /*#__PURE__*/React.createElement(LineEndCircleIcon, null),
|
|
150
|
+
square: /*#__PURE__*/React.createElement(LineEndSquareIcon, null),
|
|
151
|
+
box: /*#__PURE__*/React.createElement(LineEndBoxIcon, null),
|
|
152
|
+
rotatedSquare: /*#__PURE__*/React.createElement(LineEndRotatedSquareIcon, null),
|
|
153
|
+
rotatedBox: /*#__PURE__*/React.createElement(LineEndRotatedBoxIcon, null)
|
|
154
|
+
}
|
|
155
|
+
};
|
|
131
156
|
const endMenu = (label, side, value, onChange) => ({
|
|
132
157
|
kind: "menu",
|
|
133
158
|
label,
|
|
@@ -135,23 +160,30 @@ const endMenu = (label, side, value, onChange) => ({
|
|
|
135
160
|
options: LINE_END_OPTIONS.map(option => ({
|
|
136
161
|
id: option.id,
|
|
137
162
|
label: option.name,
|
|
138
|
-
icon:
|
|
139
|
-
type: option.id,
|
|
140
|
-
side: side
|
|
141
|
-
})
|
|
163
|
+
icon: LINE_END_ICONS[side][option.id]
|
|
142
164
|
})),
|
|
143
165
|
onChange: id => onChange(id)
|
|
144
166
|
});
|
|
167
|
+
const ANCHOR_ICONS = {
|
|
168
|
+
center: /*#__PURE__*/React.createElement(AnchorPointCenterIcon, null),
|
|
169
|
+
"top-left": /*#__PURE__*/React.createElement(AnchorPointTopLeftIcon, null),
|
|
170
|
+
top: /*#__PURE__*/React.createElement(AnchorPointTopIcon, null),
|
|
171
|
+
"top-right": /*#__PURE__*/React.createElement(AnchorPointTopRightIcon, null),
|
|
172
|
+
right: /*#__PURE__*/React.createElement(AnchorPointRightIcon, null),
|
|
173
|
+
"bottom-right": /*#__PURE__*/React.createElement(AnchorPointBottomRightIcon, null),
|
|
174
|
+
bottom: /*#__PURE__*/React.createElement(AnchorPointBottomIcon, null),
|
|
175
|
+
"bottom-left": /*#__PURE__*/React.createElement(AnchorPointBottomLeftIcon, null),
|
|
176
|
+
left: /*#__PURE__*/React.createElement(AnchorPointLeftIcon, null)
|
|
177
|
+
};
|
|
145
178
|
const anchorMenu = (label, value, onChange) => ({
|
|
146
179
|
kind: "menu",
|
|
147
180
|
label,
|
|
148
181
|
value,
|
|
182
|
+
triggerIcon: /*#__PURE__*/React.createElement(AnchorPointsIcon, null),
|
|
149
183
|
options: ANCHOR_OPTIONS.map(option => ({
|
|
150
184
|
id: option.id,
|
|
151
185
|
label: option.name,
|
|
152
|
-
icon:
|
|
153
|
-
className: "i16"
|
|
154
|
-
})
|
|
186
|
+
icon: ANCHOR_ICONS[option.id]
|
|
155
187
|
})),
|
|
156
188
|
onChange: id => onChange(id)
|
|
157
189
|
});
|
|
@@ -179,7 +211,7 @@ export const LineFormattingToolbar = _ref3 => {
|
|
|
179
211
|
options: LINE_TYPE_OPTIONS.map(option => ({
|
|
180
212
|
id: option.id,
|
|
181
213
|
label: option.name,
|
|
182
|
-
icon: /*#__PURE__*/React.createElement(
|
|
214
|
+
icon: /*#__PURE__*/React.createElement(WhiteboardLineTypeGlyph, {
|
|
183
215
|
type: option.id
|
|
184
216
|
})
|
|
185
217
|
})),
|
|
@@ -188,10 +220,11 @@ export const LineFormattingToolbar = _ref3 => {
|
|
|
188
220
|
kind: "menu",
|
|
189
221
|
label: "Style",
|
|
190
222
|
value: style.stroke_pattern,
|
|
223
|
+
triggerIcon: /*#__PURE__*/React.createElement(LineStyleIcon, null),
|
|
191
224
|
options: LINE_PATTERN_OPTIONS.map(option => ({
|
|
192
225
|
id: option.id,
|
|
193
226
|
label: option.name,
|
|
194
|
-
icon: /*#__PURE__*/React.createElement(
|
|
227
|
+
icon: /*#__PURE__*/React.createElement(WhiteboardLinePatternGlyph, {
|
|
195
228
|
pattern: option.id
|
|
196
229
|
})
|
|
197
230
|
})),
|
|
@@ -202,11 +235,12 @@ export const LineFormattingToolbar = _ref3 => {
|
|
|
202
235
|
kind: "menu",
|
|
203
236
|
label: "Thickness",
|
|
204
237
|
value: String(style.stroke_width),
|
|
238
|
+
triggerIcon: /*#__PURE__*/React.createElement(LineThicknessIcon, null),
|
|
205
239
|
options: THICKNESS_OPTIONS.map(width => ({
|
|
206
240
|
id: String(width),
|
|
207
241
|
label: width + " pt",
|
|
208
|
-
icon: /*#__PURE__*/React.createElement(
|
|
209
|
-
|
|
242
|
+
icon: /*#__PURE__*/React.createElement(WhiteboardLineThicknessGlyph, {
|
|
243
|
+
thickness: width
|
|
210
244
|
})
|
|
211
245
|
})),
|
|
212
246
|
onChange: id => onStyleChange({
|
|
@@ -219,7 +253,7 @@ export const LineFormattingToolbar = _ref3 => {
|
|
|
219
253
|
options: RADIUS_OPTIONS.map(radius => ({
|
|
220
254
|
id: String(radius),
|
|
221
255
|
label: radius + " px",
|
|
222
|
-
icon: /*#__PURE__*/React.createElement(
|
|
256
|
+
icon: /*#__PURE__*/React.createElement(WhiteboardCornerRadiusGlyph, {
|
|
223
257
|
radius: radius
|
|
224
258
|
})
|
|
225
259
|
})),
|
|
@@ -234,8 +268,7 @@ export const LineFormattingToolbar = _ref3 => {
|
|
|
234
268
|
arrow_end
|
|
235
269
|
})), ...(connector ? [anchorMenu("End Point", (_line$end_anchor = line.end_anchor) != null ? _line$end_anchor : "center", anchor => onAnchorChange("end", anchor))] : [])], [{
|
|
236
270
|
kind: "action",
|
|
237
|
-
label:
|
|
238
|
-
icon: /*#__PURE__*/React.createElement(TextIcon, null),
|
|
271
|
+
label: "Label",
|
|
239
272
|
tooltip: line.label ? "Edit label (Enter)" : "Add label (Enter)",
|
|
240
273
|
onClick: onLabel
|
|
241
274
|
}], lockDeleteGroup(locked, onToggleLock, onDelete)]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elementToolbars.js","names":["React","FONT_SIZE_OPTIONS","RADIUS_OPTIONS","SHAPE_TYPE_ICON","THICKNESS_OPTIONS","SHAPE_TYPE_OPTIONS","ANCHOR_OPTIONS","CornerRadiusGlyph","LINE_END_OPTIONS","LINE_PATTERN_OPTIONS","LINE_TYPE_OPTIONS","LineEndGlyph","LinePatternGlyph","LineThicknessGlyph","LineTypeGlyph","boardColorOptions","ConnectionIcon","LockIcon","TextIcon","TrashIcon","ContextToolbar","ALIGN_ORDER","lockDeleteGroup","locked","onToggleLock","onDelete","kind","label","keys","icon","createElement","on","onClick","trashGroup","colorItem","role","value","onChange","options","paletteTitle","map","option","id","textGroups","fontSize","steps","bold","italic","underline","strikethrough","onToggle","key","align","ShapeFormattingToolbar","_ref","_element$align","element","onUpdate","groups","type","_SHAPE_TYPE_OPTIONS$f","find","fill","includeTransparent","_extends","PostitFormattingToolbar","_ref2","update","partial","color","includeDefault","endMenu","side","name","anchorMenu","className","LineFormattingToolbar","_ref3","_line$start_anchor","_line$end_anchor","line","onTypeChange","onStyleChange","onAnchorChange","onLabel","left","top","connector","style","stroke_pattern","pattern","String","stroke_width","width","Number","corner_radius","radius","stroke","start_anchor","anchor","arrow_start","arrow_end","end_anchor","tooltip","LineLabelToolbar","_ref4","onRemove","font_size"],"sources":["../../../../src/presentation/whiteboard/elementToolbars.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport {\n FONT_SIZE_OPTIONS,\n RADIUS_OPTIONS,\n SHAPE_TYPE_ICON,\n THICKNESS_OPTIONS,\n SHAPE_TYPE_OPTIONS,\n ShapeElementState,\n StickyTextStyle,\n TextAlign,\n} from \"./elements\";\nimport {\n ANCHOR_OPTIONS,\n BoardLine,\n ConnectionAnchor,\n CornerRadiusGlyph,\n LINE_END_OPTIONS,\n LINE_PATTERN_OPTIONS,\n LINE_TYPE_OPTIONS,\n LineEndGlyph,\n LineEndType,\n LineLabel,\n LinePattern,\n LinePatternGlyph,\n LineStyle,\n LineThicknessGlyph,\n LineType,\n LineTypeGlyph,\n} from \"./lineModel\";\nimport { ColorRole, boardColorOptions } from \"./palette\";\nimport {\n ConnectionIcon,\n LockIcon,\n TextIcon,\n TrashIcon,\n} from \"../../components/Icons\";\nimport {\n ContextToolbar,\n ContextToolbarGroup,\n ContextToolbarItem,\n} from \"../whiteboardModern/contextToolbar\";\n\n/* ------------------------------------------------------------------ */\n/* The board's element toolbars, drawn by the modern ContextToolbar */\n/* ------------------------------------------------------------------ */\n\nconst ALIGN_ORDER: TextAlign[] = [\"left\", \"center\", \"right\", \"justify\"];\n\n/* The trailing Lock · Delete group every toolbar of a lockable element\n carries. Mirrors app `toolbar/ToolbarActions.jsx`. */\nexport const lockDeleteGroup = (\n locked: boolean,\n onToggleLock: () => void,\n onDelete: () => void\n): ContextToolbarGroup => [\n {\n kind: \"button\",\n label: locked ? \"Unlock\" : \"Lock\",\n keys: [\"⇧\", \"⌘\", \"L\"],\n icon: <LockIcon />,\n on: locked,\n onClick: onToggleLock,\n },\n { kind: \"button\", label: \"Delete\", icon: <TrashIcon />, onClick: onDelete },\n];\n\n/* The single trailing action of a card (link, file): bin it. */\nexport const trashGroup = (onDelete: () => void): ContextToolbarGroup => [\n {\n kind: \"button\",\n label: \"Move to Trash\",\n icon: <TrashIcon />,\n onClick: onDelete,\n },\n];\n\nconst colorItem = (\n label: string,\n role: ColorRole,\n value: string,\n onChange: (value: string) => void,\n options: { includeTransparent?: boolean; includeDefault?: boolean }\n): ContextToolbarItem => ({\n kind: \"color\",\n label,\n paletteTitle: label,\n role,\n value,\n options: boardColorOptions(role, value, options).map((option) => option.id),\n onChange,\n});\n\ntype TextFields = Pick<\n StickyTextStyle,\n \"fontSize\" | \"bold\" | \"italic\" | \"underline\" | \"strikethrough\" | \"align\"\n>;\n\n/* The text controls the shape and sticky toolbars share: size · B / I / U / S\n and alignment. */\nconst textGroups = (\n value: TextFields,\n onChange: (partial: Partial<TextFields>) => void\n): ContextToolbarGroup[] => [\n [\n {\n kind: \"fontSize\",\n value: value.fontSize,\n steps: FONT_SIZE_OPTIONS,\n onChange: (fontSize) => onChange({ fontSize }),\n },\n ],\n [\n {\n kind: \"textStyles\",\n value: {\n bold: value.bold,\n italic: value.italic,\n underline: value.underline,\n strikethrough: value.strikethrough,\n },\n onToggle: (key) => onChange({ [key]: !value[key] }),\n },\n {\n kind: \"align\",\n value: value.align,\n options: ALIGN_ORDER,\n onChange: (align) => onChange({ align }),\n },\n ],\n];\n\nexport interface ShapeFormattingToolbarProps {\n element: ShapeElementState;\n onUpdate: (partial: Partial<ShapeElementState>) => void;\n onDelete: () => void;\n locked: boolean;\n onToggleLock: () => void;\n}\n\n/* Shape type and fill · the shared text controls · Lock / Delete. Stroke is\n edited only in the Inspector's Stroke group. Mirrors the app's\n ShapeFormattingToolbar. */\nexport const ShapeFormattingToolbar = ({\n element,\n onUpdate,\n onDelete,\n locked,\n onToggleLock,\n}: ShapeFormattingToolbarProps): ReactElement => (\n <ContextToolbar\n groups={[\n [\n {\n kind: \"menu\",\n label: \"Shape\",\n value: element.type,\n options: SHAPE_TYPE_OPTIONS.map((option) => ({\n id: option.type,\n label: option.label,\n icon: SHAPE_TYPE_ICON[option.type],\n })),\n onChange: (id) => {\n const type = SHAPE_TYPE_OPTIONS.find(\n (option) => option.type === id\n )?.type;\n\n if (type) {\n onUpdate({ type });\n }\n },\n },\n colorItem(\n \"Fill color\",\n \"fill\",\n element.fill,\n (fill) => onUpdate({ fill }),\n { includeTransparent: true }\n ),\n ],\n ...textGroups({ ...element, align: element.align ?? \"left\" }, onUpdate),\n lockDeleteGroup(locked, onToggleLock, onDelete),\n ]}\n />\n);\n\nexport interface PostitFormattingToolbarProps {\n value: StickyTextStyle;\n onChange: (next: StickyTextStyle) => void;\n onDelete: () => void;\n locked: boolean;\n onToggleLock: () => void;\n}\n\n/* Note colour · the shared text controls · Lock / Delete. The note's colour is\n its whole point, so its palette offers neither Default nor Transparent.\n Mirrors the app's PostitFormattingToolbar. */\nexport const PostitFormattingToolbar = ({\n value,\n onChange,\n onDelete,\n locked,\n onToggleLock,\n}: PostitFormattingToolbarProps): ReactElement => {\n const update = (partial: Partial<StickyTextStyle>): void =>\n onChange({ ...value, ...partial });\n\n return (\n <ContextToolbar\n groups={[\n [\n colorItem(\n \"Note color\",\n \"sticky\",\n value.color,\n (color) => update({ color }),\n { includeDefault: false }\n ),\n ],\n ...textGroups(value, update),\n lockDeleteGroup(locked, onToggleLock, onDelete),\n ]}\n />\n );\n};\n\nconst endMenu = (\n label: string,\n side: \"start\" | \"end\",\n value: LineEndType,\n onChange: (value: LineEndType) => void\n): ContextToolbarItem => ({\n kind: \"menu\",\n label,\n value,\n options: LINE_END_OPTIONS.map((option) => ({\n id: option.id,\n label: option.name,\n icon: <LineEndGlyph type={option.id} side={side} />,\n })),\n onChange: (id) => onChange(id as LineEndType),\n});\n\nconst anchorMenu = (\n label: string,\n value: ConnectionAnchor,\n onChange: (value: ConnectionAnchor) => void\n): ContextToolbarItem => ({\n kind: \"menu\",\n label,\n value,\n options: ANCHOR_OPTIONS.map((option) => ({\n id: option.id,\n label: option.name,\n icon: <ConnectionIcon className=\"i16\" />,\n })),\n onChange: (id) => onChange(id as ConnectionAnchor),\n});\n\nexport interface LineFormattingToolbarProps {\n line: BoardLine;\n onTypeChange: (type: LineType) => void;\n onStyleChange: (partial: Partial<LineStyle>) => void;\n onAnchorChange: (side: \"start\" | \"end\", anchor: ConnectionAnchor) => void;\n onLabel: () => void;\n onDelete: () => void;\n locked: boolean;\n onToggleLock: () => void;\n left?: number;\n top?: number;\n}\n\nexport const LineFormattingToolbar = ({\n line,\n onTypeChange,\n onStyleChange,\n onAnchorChange,\n onLabel,\n onDelete,\n locked,\n onToggleLock,\n left,\n top,\n}: LineFormattingToolbarProps): ReactElement => {\n const connector = line.kind === \"connector\";\n const { style } = line;\n\n return (\n <ContextToolbar\n left={left}\n top={top}\n groups={[\n [\n {\n kind: \"menu\",\n label: \"Line type\",\n value: line.type,\n options: LINE_TYPE_OPTIONS.map((option) => ({\n id: option.id,\n label: option.name,\n icon: <LineTypeGlyph type={option.id} />,\n })),\n onChange: (id) => onTypeChange(id as LineType),\n },\n {\n kind: \"menu\",\n label: \"Style\",\n value: style.stroke_pattern,\n options: LINE_PATTERN_OPTIONS.map((option) => ({\n id: option.id,\n label: option.name,\n icon: <LinePatternGlyph pattern={option.id} />,\n })),\n onChange: (id) =>\n onStyleChange({ stroke_pattern: id as LinePattern }),\n },\n {\n kind: \"menu\",\n label: \"Thickness\",\n value: String(style.stroke_width),\n options: THICKNESS_OPTIONS.map((width) => ({\n id: String(width),\n label: `${width} pt`,\n icon: <LineThicknessGlyph width={width} />,\n })),\n onChange: (id) => onStyleChange({ stroke_width: Number(id) }),\n },\n ...(line.type === \"elbow\"\n ? [\n {\n kind: \"menu\",\n label: \"Corner radius\",\n value: String(style.corner_radius),\n options: RADIUS_OPTIONS.map((radius) => ({\n id: String(radius),\n label: `${radius} px`,\n icon: <CornerRadiusGlyph radius={radius} />,\n })),\n onChange: (id) =>\n onStyleChange({ corner_radius: Number(id) }),\n } as ContextToolbarItem,\n ]\n : []),\n colorItem(\n \"Stroke Color\",\n \"stroke\",\n style.stroke,\n (stroke) => onStyleChange({ stroke }),\n {}\n ),\n ],\n [\n ...(connector\n ? [\n anchorMenu(\n \"Start Point\",\n line.start_anchor ?? \"center\",\n (anchor) => onAnchorChange(\"start\", anchor)\n ),\n ]\n : []),\n endMenu(\"Start Arrow\", \"start\", style.arrow_start, (arrow_start) =>\n onStyleChange({ arrow_start })\n ),\n endMenu(\"End Arrow\", \"end\", style.arrow_end, (arrow_end) =>\n onStyleChange({ arrow_end })\n ),\n ...(connector\n ? [\n anchorMenu(\"End Point\", line.end_anchor ?? \"center\", (anchor) =>\n onAnchorChange(\"end\", anchor)\n ),\n ]\n : []),\n ],\n [\n {\n kind: \"action\",\n label: line.label ? \"Edit label\" : \"Add label\",\n icon: <TextIcon />,\n tooltip: line.label ? \"Edit label (Enter)\" : \"Add label (Enter)\",\n onClick: onLabel,\n },\n ],\n lockDeleteGroup(locked, onToggleLock, onDelete),\n ]}\n />\n );\n};\n\nexport interface LineLabelToolbarProps {\n label: LineLabel;\n onChange: (partial: Partial<LineLabel>) => void;\n onRemove: () => void;\n left?: number;\n top?: number;\n}\n\nexport const LineLabelToolbar = ({\n label,\n onChange,\n onRemove,\n left,\n top,\n}: LineLabelToolbarProps): ReactElement => (\n <ContextToolbar\n left={left}\n top={top}\n groups={[\n [\n {\n kind: \"fontSize\",\n value: label.font_size,\n steps: FONT_SIZE_OPTIONS,\n onChange: (font_size) => onChange({ font_size }),\n },\n ],\n [\n {\n kind: \"textStyles\",\n value: {\n bold: label.bold,\n italic: label.italic,\n underline: label.underline,\n strikethrough: label.strikethrough,\n },\n onToggle: (key) => onChange({ [key]: !label[key] }),\n },\n ],\n [\n {\n kind: \"button\",\n label: \"Remove label\",\n icon: <TrashIcon />,\n onClick: onRemove,\n },\n ],\n ]}\n />\n);\n"],"mappings":";AAAA,OAAOA,KAAK,MAAwB,OAAO;AAE3C,SACEC,iBAAiB,EACjBC,cAAc,EACdC,eAAe,EACfC,iBAAiB,EACjBC,kBAAkB,QAIb,YAAY;AACnB,SACEC,cAAc,EAGdC,iBAAiB,EACjBC,gBAAgB,EAChBC,oBAAoB,EACpBC,iBAAiB,EACjBC,YAAY,EAIZC,gBAAgB,EAEhBC,kBAAkB,EAElBC,aAAa,QACR,aAAa;AACpB,SAAoBC,iBAAiB,QAAQ,WAAW;AACxD,SACEC,cAAc,EACdC,QAAQ,EACRC,QAAQ,EACRC,SAAS,QACJ,wBAAwB;AAC/B,SACEC,cAAc,QAGT,oCAAoC;;AAE3C;AACA;AACA;;AAEA,MAAMC,WAAwB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAA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A8B,aAAA,CAACX,SAAS,MAAE,CAAC;MACnBa,OAAO,EAAE0E;IACX,CAAC,CACF;EACD,CACH,CAAC;AAAA,CACH","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"elementToolbars.js","names":["React","FONT_SIZE_OPTIONS","RADIUS_OPTIONS","SHAPE_TYPE_ICON","THICKNESS_OPTIONS","SHAPE_TYPE_OPTIONS","ANCHOR_OPTIONS","LINE_END_OPTIONS","LINE_PATTERN_OPTIONS","LINE_TYPE_OPTIONS","boardColorOptions","AnchorPointBottomIcon","AnchorPointBottomLeftIcon","AnchorPointBottomRightIcon","AnchorPointCenterIcon","AnchorPointLeftIcon","AnchorPointRightIcon","AnchorPointTopIcon","AnchorPointTopLeftIcon","AnchorPointTopRightIcon","AnchorPointsIcon","LineEndArrowIcon","LineEndBoxIcon","LineEndChevronIcon","LineEndCircleIcon","LineEndDotIcon","LineEndRotatedBoxIcon","LineEndRotatedSquareIcon","LineEndSquareIcon","LineEndpointNoneIcon","LineStartArrowIcon","LineStartBoxIcon","LineStartChevronIcon","LineStartCircleIcon","LineStartDotIcon","LineStartRotatedBoxIcon","LineStartRotatedSquareIcon","LineStartSquareIcon","LineStyleIcon","LineThicknessIcon","LockIcon","TrashIcon","WhiteboardCornerRadiusGlyph","WhiteboardLinePatternGlyph","WhiteboardLineThicknessGlyph","WhiteboardLineTypeGlyph","ContextToolbar","ALIGN_ORDER","lockDeleteGroup","locked","onToggleLock","onDelete","kind","label","keys","icon","createElement","on","onClick","trashGroup","colorItem","role","value","onChange","options","paletteTitle","map","option","id","textGroups","fontSize","steps","bold","italic","underline","strikethrough","onToggle","key","align","ShapeFormattingToolbar","_ref","_element$align","element","onUpdate","groups","type","_SHAPE_TYPE_OPTIONS$f","find","fill","includeTransparent","_extends","PostitFormattingToolbar","_ref2","update","partial","color","includeDefault","LINE_END_ICONS","start","none","arrow","chevron","dot","circle","square","box","rotatedSquare","rotatedBox","end","endMenu","side","name","ANCHOR_ICONS","center","top","right","bottom","left","anchorMenu","triggerIcon","LineFormattingToolbar","_ref3","_line$start_anchor","_line$end_anchor","line","onTypeChange","onStyleChange","onAnchorChange","onLabel","connector","style","stroke_pattern","pattern","String","stroke_width","width","thickness","Number","corner_radius","radius","stroke","start_anchor","anchor","arrow_start","arrow_end","end_anchor","tooltip","LineLabelToolbar","_ref4","onRemove","font_size"],"sources":["../../../../src/presentation/whiteboard/elementToolbars.tsx"],"sourcesContent":["import React, { ReactElement } from \"react\";\n\nimport {\n FONT_SIZE_OPTIONS,\n RADIUS_OPTIONS,\n SHAPE_TYPE_ICON,\n THICKNESS_OPTIONS,\n SHAPE_TYPE_OPTIONS,\n ShapeElementState,\n StickyTextStyle,\n TextAlign,\n} from \"./elements\";\nimport {\n ANCHOR_OPTIONS,\n BoardLine,\n ConnectionAnchor,\n LINE_END_OPTIONS,\n LINE_PATTERN_OPTIONS,\n LINE_TYPE_OPTIONS,\n LineEndType,\n LineLabel,\n LinePattern,\n LineStyle,\n LineType,\n} from \"./lineModel\";\nimport { ColorRole, boardColorOptions } from \"./palette\";\nimport {\n AnchorPointBottomIcon,\n AnchorPointBottomLeftIcon,\n AnchorPointBottomRightIcon,\n AnchorPointCenterIcon,\n AnchorPointLeftIcon,\n AnchorPointRightIcon,\n AnchorPointTopIcon,\n AnchorPointTopLeftIcon,\n AnchorPointTopRightIcon,\n AnchorPointsIcon,\n LineEndArrowIcon,\n LineEndBoxIcon,\n LineEndChevronIcon,\n LineEndCircleIcon,\n LineEndDotIcon,\n LineEndRotatedBoxIcon,\n LineEndRotatedSquareIcon,\n LineEndSquareIcon,\n LineEndpointNoneIcon,\n LineStartArrowIcon,\n LineStartBoxIcon,\n LineStartChevronIcon,\n LineStartCircleIcon,\n LineStartDotIcon,\n LineStartRotatedBoxIcon,\n LineStartRotatedSquareIcon,\n LineStartSquareIcon,\n LineStyleIcon,\n LineThicknessIcon,\n LockIcon,\n TrashIcon,\n} from \"../../components/Icons\";\nimport {\n WhiteboardCornerRadiusGlyph,\n WhiteboardLinePatternGlyph,\n WhiteboardLineThicknessGlyph,\n WhiteboardLineTypeGlyph,\n} from \"../../components/WhiteboardLineGlyphs\";\nimport {\n ContextToolbar,\n ContextToolbarGroup,\n ContextToolbarItem,\n} from \"../whiteboardModern/contextToolbar\";\n\n/* ------------------------------------------------------------------ */\n/* The board's element toolbars, drawn by the modern ContextToolbar */\n/* ------------------------------------------------------------------ */\n\nconst ALIGN_ORDER: TextAlign[] = [\"left\", \"center\", \"right\", \"justify\"];\n\n/* The trailing Lock · Delete group every toolbar of a lockable element\n carries. Mirrors app `toolbar/ToolbarActions.jsx`. */\nexport const lockDeleteGroup = (\n locked: boolean,\n onToggleLock: () => void,\n onDelete: () => void\n): ContextToolbarGroup => [\n {\n kind: \"button\",\n label: locked ? \"Unlock\" : \"Lock\",\n keys: [\"⇧\", \"⌘\", \"L\"],\n icon: <LockIcon />,\n on: locked,\n onClick: onToggleLock,\n },\n { kind: \"button\", label: \"Delete\", icon: <TrashIcon />, onClick: onDelete },\n];\n\n/* The single trailing action of a card (link, file): bin it. */\nexport const trashGroup = (onDelete: () => void): ContextToolbarGroup => [\n {\n kind: \"button\",\n label: \"Move to Trash\",\n icon: <TrashIcon />,\n onClick: onDelete,\n },\n];\n\nconst colorItem = (\n label: string,\n role: ColorRole,\n value: string,\n onChange: (value: string) => void,\n options: { includeTransparent?: boolean; includeDefault?: boolean }\n): ContextToolbarItem => ({\n kind: \"color\",\n label,\n paletteTitle: label,\n role,\n value,\n options: boardColorOptions(role, value, options).map((option) => option.id),\n onChange,\n});\n\ntype TextFields = Pick<\n StickyTextStyle,\n \"fontSize\" | \"bold\" | \"italic\" | \"underline\" | \"strikethrough\" | \"align\"\n>;\n\n/* The text controls the shape and sticky toolbars share: size · B / I / U / S\n and alignment. */\nconst textGroups = (\n value: TextFields,\n onChange: (partial: Partial<TextFields>) => void\n): ContextToolbarGroup[] => [\n [\n {\n kind: \"fontSize\",\n value: value.fontSize,\n steps: FONT_SIZE_OPTIONS,\n onChange: (fontSize) => onChange({ fontSize }),\n },\n ],\n [\n {\n kind: \"textStyles\",\n value: {\n bold: value.bold,\n italic: value.italic,\n underline: value.underline,\n strikethrough: value.strikethrough,\n },\n onToggle: (key) => onChange({ [key]: !value[key] }),\n },\n {\n kind: \"align\",\n value: value.align,\n options: ALIGN_ORDER,\n onChange: (align) => onChange({ align }),\n },\n ],\n];\n\nexport interface ShapeFormattingToolbarProps {\n element: ShapeElementState;\n onUpdate: (partial: Partial<ShapeElementState>) => void;\n onDelete: () => void;\n locked: boolean;\n onToggleLock: () => void;\n}\n\n/* Shape type and fill · the shared text controls · Lock / Delete. Stroke is\n edited only in the Inspector's Stroke group. Mirrors the app's\n ShapeFormattingToolbar. */\nexport const ShapeFormattingToolbar = ({\n element,\n onUpdate,\n onDelete,\n locked,\n onToggleLock,\n}: ShapeFormattingToolbarProps): ReactElement => (\n <ContextToolbar\n groups={[\n [\n {\n kind: \"menu\",\n label: \"Shape\",\n value: element.type,\n options: SHAPE_TYPE_OPTIONS.map((option) => ({\n id: option.type,\n label: option.label,\n icon: SHAPE_TYPE_ICON[option.type],\n })),\n onChange: (id) => {\n const type = SHAPE_TYPE_OPTIONS.find(\n (option) => option.type === id\n )?.type;\n\n if (type) {\n onUpdate({ type });\n }\n },\n },\n colorItem(\n \"Fill color\",\n \"fill\",\n element.fill,\n (fill) => onUpdate({ fill }),\n { includeTransparent: true }\n ),\n ],\n ...textGroups({ ...element, align: element.align ?? \"left\" }, onUpdate),\n lockDeleteGroup(locked, onToggleLock, onDelete),\n ]}\n />\n);\n\nexport interface PostitFormattingToolbarProps {\n value: StickyTextStyle;\n onChange: (next: StickyTextStyle) => void;\n onDelete: () => void;\n locked: boolean;\n onToggleLock: () => void;\n}\n\n/* Note colour · the shared text controls · Lock / Delete. The note's colour is\n its whole point, so its palette offers neither Default nor Transparent.\n Mirrors the app's PostitFormattingToolbar. */\nexport const PostitFormattingToolbar = ({\n value,\n onChange,\n onDelete,\n locked,\n onToggleLock,\n}: PostitFormattingToolbarProps): ReactElement => {\n const update = (partial: Partial<StickyTextStyle>): void =>\n onChange({ ...value, ...partial });\n\n return (\n <ContextToolbar\n groups={[\n [\n colorItem(\n \"Note color\",\n \"sticky\",\n value.color,\n (color) => update({ color }),\n { includeDefault: false }\n ),\n ],\n ...textGroups(value, update),\n lockDeleteGroup(locked, onToggleLock, onDelete),\n ]}\n />\n );\n};\n\nconst LINE_END_ICONS: Record<\n \"start\" | \"end\",\n Record<LineEndType, ReactElement>\n> = {\n start: {\n none: <LineEndpointNoneIcon />,\n arrow: <LineStartArrowIcon />,\n chevron: <LineStartChevronIcon />,\n dot: <LineStartDotIcon />,\n circle: <LineStartCircleIcon />,\n square: <LineStartSquareIcon />,\n box: <LineStartBoxIcon />,\n rotatedSquare: <LineStartRotatedSquareIcon />,\n rotatedBox: <LineStartRotatedBoxIcon />,\n },\n end: {\n none: <LineEndpointNoneIcon />,\n arrow: <LineEndArrowIcon />,\n chevron: <LineEndChevronIcon />,\n dot: <LineEndDotIcon />,\n circle: <LineEndCircleIcon />,\n square: <LineEndSquareIcon />,\n box: <LineEndBoxIcon />,\n rotatedSquare: <LineEndRotatedSquareIcon />,\n rotatedBox: <LineEndRotatedBoxIcon />,\n },\n};\n\nconst endMenu = (\n label: string,\n side: \"start\" | \"end\",\n value: LineEndType,\n onChange: (value: LineEndType) => void\n): ContextToolbarItem => ({\n kind: \"menu\",\n label,\n value,\n options: LINE_END_OPTIONS.map((option) => ({\n id: option.id,\n label: option.name,\n icon: LINE_END_ICONS[side][option.id],\n })),\n onChange: (id) => onChange(id as LineEndType),\n});\n\nconst ANCHOR_ICONS: Record<ConnectionAnchor, ReactElement> = {\n center: <AnchorPointCenterIcon />,\n \"top-left\": <AnchorPointTopLeftIcon />,\n top: <AnchorPointTopIcon />,\n \"top-right\": <AnchorPointTopRightIcon />,\n right: <AnchorPointRightIcon />,\n \"bottom-right\": <AnchorPointBottomRightIcon />,\n bottom: <AnchorPointBottomIcon />,\n \"bottom-left\": <AnchorPointBottomLeftIcon />,\n left: <AnchorPointLeftIcon />,\n};\n\nconst anchorMenu = (\n label: string,\n value: ConnectionAnchor,\n onChange: (value: ConnectionAnchor) => void\n): ContextToolbarItem => ({\n kind: \"menu\",\n label,\n value,\n triggerIcon: <AnchorPointsIcon />,\n options: ANCHOR_OPTIONS.map((option) => ({\n id: option.id,\n label: option.name,\n icon: ANCHOR_ICONS[option.id],\n })),\n onChange: (id) => onChange(id as ConnectionAnchor),\n});\n\nexport interface LineFormattingToolbarProps {\n line: BoardLine;\n onTypeChange: (type: LineType) => void;\n onStyleChange: (partial: Partial<LineStyle>) => void;\n onAnchorChange: (side: \"start\" | \"end\", anchor: ConnectionAnchor) => void;\n onLabel: () => void;\n onDelete: () => void;\n locked: boolean;\n onToggleLock: () => void;\n left?: number;\n top?: number;\n}\n\nexport const LineFormattingToolbar = ({\n line,\n onTypeChange,\n onStyleChange,\n onAnchorChange,\n onLabel,\n onDelete,\n locked,\n onToggleLock,\n left,\n top,\n}: LineFormattingToolbarProps): ReactElement => {\n const connector = line.kind === \"connector\";\n const { style } = line;\n\n return (\n <ContextToolbar\n left={left}\n top={top}\n groups={[\n [\n {\n kind: \"menu\",\n label: \"Line type\",\n value: line.type,\n options: LINE_TYPE_OPTIONS.map((option) => ({\n id: option.id,\n label: option.name,\n icon: <WhiteboardLineTypeGlyph type={option.id} />,\n })),\n onChange: (id) => onTypeChange(id as LineType),\n },\n {\n kind: \"menu\",\n label: \"Style\",\n value: style.stroke_pattern,\n triggerIcon: <LineStyleIcon />,\n options: LINE_PATTERN_OPTIONS.map((option) => ({\n id: option.id,\n label: option.name,\n icon: <WhiteboardLinePatternGlyph pattern={option.id} />,\n })),\n onChange: (id) =>\n onStyleChange({ stroke_pattern: id as LinePattern }),\n },\n {\n kind: \"menu\",\n label: \"Thickness\",\n value: String(style.stroke_width),\n triggerIcon: <LineThicknessIcon />,\n options: THICKNESS_OPTIONS.map((width) => ({\n id: String(width),\n label: `${width} pt`,\n icon: <WhiteboardLineThicknessGlyph thickness={width} />,\n })),\n onChange: (id) => onStyleChange({ stroke_width: Number(id) }),\n },\n ...(line.type === \"elbow\"\n ? [\n {\n kind: \"menu\",\n label: \"Corner radius\",\n value: String(style.corner_radius),\n options: RADIUS_OPTIONS.map((radius) => ({\n id: String(radius),\n label: `${radius} px`,\n icon: <WhiteboardCornerRadiusGlyph radius={radius} />,\n })),\n onChange: (id) =>\n onStyleChange({ corner_radius: Number(id) }),\n } as ContextToolbarItem,\n ]\n : []),\n colorItem(\n \"Stroke Color\",\n \"stroke\",\n style.stroke,\n (stroke) => onStyleChange({ stroke }),\n {}\n ),\n ],\n [\n ...(connector\n ? [\n anchorMenu(\n \"Start Point\",\n line.start_anchor ?? \"center\",\n (anchor) => onAnchorChange(\"start\", anchor)\n ),\n ]\n : []),\n endMenu(\"Start Arrow\", \"start\", style.arrow_start, (arrow_start) =>\n onStyleChange({ arrow_start })\n ),\n endMenu(\"End Arrow\", \"end\", style.arrow_end, (arrow_end) =>\n onStyleChange({ arrow_end })\n ),\n ...(connector\n ? [\n anchorMenu(\"End Point\", line.end_anchor ?? \"center\", (anchor) =>\n onAnchorChange(\"end\", anchor)\n ),\n ]\n : []),\n ],\n [\n {\n kind: \"action\",\n label: \"Label\",\n tooltip: line.label ? \"Edit label (Enter)\" : \"Add label (Enter)\",\n onClick: onLabel,\n },\n ],\n lockDeleteGroup(locked, onToggleLock, onDelete),\n ]}\n />\n );\n};\n\nexport interface LineLabelToolbarProps {\n label: LineLabel;\n onChange: (partial: Partial<LineLabel>) => void;\n onRemove: () => void;\n left?: number;\n top?: number;\n}\n\nexport const LineLabelToolbar = ({\n label,\n onChange,\n onRemove,\n left,\n top,\n}: LineLabelToolbarProps): ReactElement => (\n <ContextToolbar\n left={left}\n top={top}\n groups={[\n [\n {\n kind: \"fontSize\",\n value: label.font_size,\n steps: FONT_SIZE_OPTIONS,\n onChange: (font_size) => onChange({ font_size }),\n },\n ],\n [\n {\n kind: \"textStyles\",\n value: {\n bold: label.bold,\n italic: label.italic,\n underline: label.underline,\n strikethrough: label.strikethrough,\n },\n onToggle: (key) => onChange({ [key]: !label[key] }),\n },\n ],\n [\n {\n kind: \"button\",\n label: \"Remove label\",\n icon: <TrashIcon />,\n onClick: onRemove,\n },\n ],\n ]}\n />\n);\n"],"mappings":";AAAA,OAAOA,KAAK,MAAwB,OAAO;AAE3C,SACEC,iBAAiB,EACjBC,cAAc,EACdC,eAAe,EACfC,iBAAiB,EACjBC,kBAAkB,QAIb,YAAY;AACnB,SACEC,cAAc,EAGdC,gBAAgB,EAChBC,oBAAoB,EACpBC,iBAAiB,QAMZ,aAAa;AACpB,SAAoBC,iBAAiB,QAAQ,WAAW;AACxD,SACEC,qBAAqB,EACrBC,yBAAyB,EACzBC,0BAA0B,EAC1BC,qBAAqB,EACrBC,mBAAmB,EACnBC,oBAAoB,EACpBC,kBAAkB,EAClBC,sBAAsB,EACtBC,uBAAuB,EACvBC,gBAAgB,EAChBC,gBAAgB,EAChBC,cAAc,EACdC,kBAAkB,EAClBC,iBAAiB,EACjBC,cAAc,EACdC,qBAAqB,EACrBC,wBAAwB,EACxBC,iBAAiB,EACjBC,oBAAoB,EACpBC,kBAAkB,EAClBC,gBAAgB,EAChBC,oBAAoB,EACpBC,mBAAmB,EACnBC,gBAAgB,EAChBC,uBAAuB,EACvBC,0BAA0B,EAC1BC,mBAAmB,EACnBC,aAAa,EACbC,iBAAiB,EACjBC,QAAQ,EACRC,SAAS,QACJ,wBAAwB;AAC/B,SACEC,2BAA2B,EAC3BC,0BAA0B,EAC1BC,4BAA4B,EAC5BC,uBAAuB,QAClB,uCAAuC;AAC9C,SACEC,cAAc,QAGT,oCAAoC;;AAE3C;AACA;AACA;;AAEA,MAAMC,WAAwB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;;AAEvE;AACA;AACA,OAAO,MAAMC,eAAe,GAAGA,CAC7BC,MAAe,EACfC,YAAwB,EACx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ACV,cAAc;IACbuE,IAAI,EAAEA,IAAK;IACXH,GAAG,EAAEA,GAAI;IACT9B,MAAM,EAAE,CACN,CACE;MACEhC,IAAI,EAAE,UAAU;MAChBU,KAAK,EAAET,KAAK,CAACiG,SAAS;MACtB/E,KAAK,EAAEtE,iBAAiB;MACxB8D,QAAQ,EAAGuF,SAAS,IAAKvF,QAAQ,CAAC;QAAEuF;MAAU,CAAC;IACjD,CAAC,CACF,EACD,CACE;MACElG,IAAI,EAAE,YAAY;MAClBU,KAAK,EAAE;QACLU,IAAI,EAAEnB,KAAK,CAACmB,IAAI;QAChBC,MAAM,EAAEpB,KAAK,CAACoB,MAAM;QACpBC,SAAS,EAAErB,KAAK,CAACqB,SAAS;QAC1BC,aAAa,EAAEtB,KAAK,CAACsB;MACvB,CAAC;MACDC,QAAQ,EAAGC,GAAG,IAAKd,QAAQ,CAAC;QAAE,CAACc,GAAG,GAAG,CAACxB,KAAK,CAACwB,GAAG;MAAE,CAAC;IACpD,CAAC,CACF,EACD,CACE;MACEzB,IAAI,EAAE,QAAQ;MACdC,KAAK,EAAE,cAAc;MACrBE,IAAI,eAAEvD,KAAA,CAAAwD,aAAA,CAACf,SAAS,MAAE,CAAC;MACnBiB,OAAO,EAAE2F;IACX,CAAC,CACF;EACD,CACH,CAAC;AAAA,CACH","ignoreList":[]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
|
+
import { WhiteboardLineEnd, WhiteboardLinePattern, WhiteboardLineType } from "../../components/WhiteboardLineGlyphs";
|
|
2
3
|
export interface Point {
|
|
3
4
|
x: number;
|
|
4
5
|
y: number;
|
|
@@ -9,9 +10,9 @@ export interface Box {
|
|
|
9
10
|
width: number;
|
|
10
11
|
height: number;
|
|
11
12
|
}
|
|
12
|
-
export type LineType =
|
|
13
|
-
export type LineEndType =
|
|
14
|
-
export type LinePattern =
|
|
13
|
+
export type LineType = WhiteboardLineType;
|
|
14
|
+
export type LineEndType = WhiteboardLineEnd | "chevron" | "box" | "rotatedBox";
|
|
15
|
+
export type LinePattern = WhiteboardLinePattern;
|
|
15
16
|
export type ConnectionAnchor = "center" | "top-left" | "top" | "top-right" | "right" | "bottom-right" | "bottom" | "bottom-left" | "left";
|
|
16
17
|
export interface LineStyle {
|
|
17
18
|
stroke: string;
|
|
@@ -126,22 +127,6 @@ export declare const projectOnSamples: (samples: Point[], sampleSegments: number
|
|
|
126
127
|
export declare const withLineType: (line: BoardLine, type: LineType, start: Point, end: Point, snap?: (point: Point) => Point) => BoardLine;
|
|
127
128
|
export declare const constrainAngle: (from: Point, to: Point) => Point;
|
|
128
129
|
export declare const lineEndGlyph: (type: LineEndType, at: Point, angle: number, width: number, color: string) => ReactElement | null;
|
|
129
|
-
export declare const LineTypeGlyph: ({ type }: {
|
|
130
|
-
type: LineType;
|
|
131
|
-
}) => ReactElement;
|
|
132
|
-
export declare const LineEndGlyph: ({ type, side, }: {
|
|
133
|
-
type: LineEndType;
|
|
134
|
-
side: "start" | "end";
|
|
135
|
-
}) => ReactElement;
|
|
136
|
-
export declare const LinePatternGlyph: ({ pattern, }: {
|
|
137
|
-
pattern: LinePattern;
|
|
138
|
-
}) => ReactElement;
|
|
139
|
-
export declare const LineThicknessGlyph: ({ width, }: {
|
|
140
|
-
width: number;
|
|
141
|
-
}) => ReactElement;
|
|
142
|
-
export declare const CornerRadiusGlyph: ({ radius, }: {
|
|
143
|
-
radius: number;
|
|
144
|
-
}) => ReactElement;
|
|
145
130
|
export declare const resolveEndpoints: (line: BoardLine, boxOf: (id: string) => Box | null) => {
|
|
146
131
|
start: Point;
|
|
147
132
|
end: Point;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lineModel.d.ts","sourceRoot":"","sources":["../../../../src/presentation/whiteboard/lineModel.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"lineModel.d.ts","sourceRoot":"","sources":["../../../../src/presentation/whiteboard/lineModel.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,uCAAuC,CAAC;AAE/C,MAAM,WAAW,KAAK;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,MAAM,WAAW,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,QAAQ,GAAG,kBAAkB,CAAC;AAC1C,MAAM,MAAM,WAAW,GAAG,iBAAiB,GAAG,SAAS,GAAG,KAAK,GAAG,YAAY,CAAC;AAC/E,MAAM,MAAM,WAAW,GAAG,qBAAqB,CAAC;AAChD,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,UAAU,GACV,KAAK,GACL,WAAW,GACX,OAAO,GACP,cAAc,GACd,QAAQ,GACR,aAAa,GACb,MAAM,CAAC;AAGX,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,WAAW,CAAC;IAC5B,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,WAAW,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;CACvB;AAGD,MAAM,WAA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gBAAgB,GAC3B,MAAM,SAAS,EACf,OAAO,CAAC,EAAE,EAAE,MAAM,KAAK,GAAG,GAAG,IAAI,KAChC;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,KAAK,CAAA;CAuB5B,CAAC"}
|
|
@@ -26,18 +26,27 @@ export const LINE_END_OPTIONS = [{
|
|
|
26
26
|
}, {
|
|
27
27
|
id: "arrow",
|
|
28
28
|
name: "Arrow"
|
|
29
|
+
}, {
|
|
30
|
+
id: "chevron",
|
|
31
|
+
name: "Chevron"
|
|
29
32
|
}, {
|
|
30
33
|
id: "dot",
|
|
31
34
|
name: "Dot"
|
|
35
|
+
}, {
|
|
36
|
+
id: "circle",
|
|
37
|
+
name: "Circle"
|
|
32
38
|
}, {
|
|
33
39
|
id: "square",
|
|
34
40
|
name: "Square"
|
|
41
|
+
}, {
|
|
42
|
+
id: "box",
|
|
43
|
+
name: "Box"
|
|
35
44
|
}, {
|
|
36
45
|
id: "rotatedSquare",
|
|
37
46
|
name: "Rotated Square"
|
|
38
47
|
}, {
|
|
39
|
-
id: "
|
|
40
|
-
name: "
|
|
48
|
+
id: "rotatedBox",
|
|
49
|
+
name: "Rotated Box"
|
|
41
50
|
}];
|
|
42
51
|
export const LINE_PATTERN_OPTIONS = [{
|
|
43
52
|
id: "solid",
|
|
@@ -661,83 +670,46 @@ export const lineEndGlyph = (type, at, angle, width, color) => {
|
|
|
661
670
|
stroke: color
|
|
662
671
|
}
|
|
663
672
|
});
|
|
673
|
+
case "box":
|
|
674
|
+
case "rotatedBox":
|
|
675
|
+
return /*#__PURE__*/React.createElement("rect", {
|
|
676
|
+
x: at.x - size / 2,
|
|
677
|
+
y: at.y - size / 2,
|
|
678
|
+
width: size,
|
|
679
|
+
height: size,
|
|
680
|
+
transform: type === "rotatedBox" ? "rotate(45 " + at.x + " " + at.y + ")" : undefined,
|
|
681
|
+
strokeWidth: Math.max(1.5, width * 0.75),
|
|
682
|
+
style: {
|
|
683
|
+
fill: "var(--page-paper-main)",
|
|
684
|
+
stroke: color
|
|
685
|
+
}
|
|
686
|
+
});
|
|
687
|
+
case "chevron":
|
|
688
|
+
{
|
|
689
|
+
const reach = length / 2;
|
|
690
|
+
const cos = Math.cos(angle);
|
|
691
|
+
const sin = Math.sin(angle);
|
|
692
|
+
const arms = at.x + reach * sin + "," + (at.y - reach * cos) + " " + (at.x - reach * cos) + "," + (at.y - reach * sin) + " " + (at.x - reach * sin) + "," + (at.y + reach * cos);
|
|
693
|
+
return /*#__PURE__*/React.createElement("g", null, /*#__PURE__*/React.createElement("polygon", {
|
|
694
|
+
points: arms + " " + (at.x + width * cos) + "," + (at.y + width * sin),
|
|
695
|
+
style: {
|
|
696
|
+
fill: "var(--page-paper-main)"
|
|
697
|
+
}
|
|
698
|
+
}), /*#__PURE__*/React.createElement("polyline", {
|
|
699
|
+
points: arms,
|
|
700
|
+
fill: "none",
|
|
701
|
+
strokeWidth: width,
|
|
702
|
+
strokeLinecap: "round",
|
|
703
|
+
strokeLinejoin: "round",
|
|
704
|
+
style: {
|
|
705
|
+
stroke: color
|
|
706
|
+
}
|
|
707
|
+
}));
|
|
708
|
+
}
|
|
664
709
|
default:
|
|
665
710
|
return null;
|
|
666
711
|
}
|
|
667
712
|
};
|
|
668
|
-
const GLYPH_PROPS = {
|
|
669
|
-
width: 20,
|
|
670
|
-
height: 20,
|
|
671
|
-
viewBox: "0 0 20 20",
|
|
672
|
-
fill: "none",
|
|
673
|
-
style: {
|
|
674
|
-
stroke: "currentColor"
|
|
675
|
-
},
|
|
676
|
-
strokeWidth: 1.5,
|
|
677
|
-
strokeLinecap: "round",
|
|
678
|
-
strokeLinejoin: "round"
|
|
679
|
-
};
|
|
680
|
-
const TYPE_PATHS = {
|
|
681
|
-
line: "M3 17 L17 3",
|
|
682
|
-
curved: "M3 16 C 9 16, 11 4, 17 4",
|
|
683
|
-
elbow: "M3 16 H10 V4 H17"
|
|
684
|
-
};
|
|
685
|
-
|
|
686
|
-
// ds-exception: no line-type glyphs in src/components/Icons — Design System task
|
|
687
|
-
export const LineTypeGlyph = _ref3 => {
|
|
688
|
-
let type = _ref3.type;
|
|
689
|
-
return /*#__PURE__*/React.createElement("svg", GLYPH_PROPS, /*#__PURE__*/React.createElement("path", {
|
|
690
|
-
d: TYPE_PATHS[type]
|
|
691
|
-
}));
|
|
692
|
-
};
|
|
693
|
-
|
|
694
|
-
// ds-exception: no line-end glyphs in src/components/Icons — Design System task
|
|
695
|
-
export const LineEndGlyph = _ref4 => {
|
|
696
|
-
let type = _ref4.type,
|
|
697
|
-
side = _ref4.side;
|
|
698
|
-
const tip = side === "end" ? {
|
|
699
|
-
x: 17,
|
|
700
|
-
y: 10
|
|
701
|
-
} : {
|
|
702
|
-
x: 3,
|
|
703
|
-
y: 10
|
|
704
|
-
};
|
|
705
|
-
return /*#__PURE__*/React.createElement("svg", GLYPH_PROPS, /*#__PURE__*/React.createElement("path", {
|
|
706
|
-
d: "M3 10 H17",
|
|
707
|
-
strokeDasharray: type === "none" ? "2 2" : undefined
|
|
708
|
-
}), lineEndGlyph(type, tip, side === "end" ? 0 : Math.PI, 1.5, "currentColor"));
|
|
709
|
-
};
|
|
710
|
-
|
|
711
|
-
// ds-exception: no stroke-pattern glyphs in src/components/Icons — Design System task
|
|
712
|
-
export const LinePatternGlyph = _ref5 => {
|
|
713
|
-
let pattern = _ref5.pattern;
|
|
714
|
-
return /*#__PURE__*/React.createElement("svg", _extends({}, GLYPH_PROPS, {
|
|
715
|
-
strokeWidth: 2,
|
|
716
|
-
strokeLinecap: "butt"
|
|
717
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
718
|
-
d: "M2 10 H18",
|
|
719
|
-
strokeDasharray: dashArray(pattern, 2)
|
|
720
|
-
}));
|
|
721
|
-
};
|
|
722
|
-
|
|
723
|
-
// ds-exception: no stroke-thickness glyphs in src/components/Icons — Design System task
|
|
724
|
-
export const LineThicknessGlyph = _ref6 => {
|
|
725
|
-
let width = _ref6.width;
|
|
726
|
-
return /*#__PURE__*/React.createElement("svg", _extends({}, GLYPH_PROPS, {
|
|
727
|
-
strokeWidth: width
|
|
728
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
729
|
-
d: "M3 10 H17"
|
|
730
|
-
}));
|
|
731
|
-
};
|
|
732
|
-
|
|
733
|
-
// ds-exception: no corner-radius glyph in src/components/Icons — Design System task
|
|
734
|
-
export const CornerRadiusGlyph = _ref7 => {
|
|
735
|
-
let radius = _ref7.radius;
|
|
736
|
-
const size = Math.min(10, radius / 4);
|
|
737
|
-
return /*#__PURE__*/React.createElement("svg", GLYPH_PROPS, /*#__PURE__*/React.createElement("path", {
|
|
738
|
-
d: size ? "M4 17 V" + (4 + size) + " A" + size + " " + size + " 0 0 1 " + (4 + size) + " 4 H17" : "M4 17 V4 H17"
|
|
739
|
-
}));
|
|
740
|
-
};
|
|
741
713
|
const boxCenter = box => ({
|
|
742
714
|
x: box.x + box.width / 2,
|
|
743
715
|
y: box.y + box.height / 2
|