microboard-temp 0.13.41 → 0.13.43

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.
Files changed (138) hide show
  1. package/dist/cjs/browser.js +55398 -52148
  2. package/dist/cjs/index.js +55392 -52147
  3. package/dist/cjs/node.js +58180 -54930
  4. package/dist/esm/browser.js +55385 -52198
  5. package/dist/esm/index.js +55381 -52199
  6. package/dist/esm/node.js +57588 -54407
  7. package/dist/types/Board.d.ts +9 -7
  8. package/dist/types/BoardCommand.d.ts +2 -2
  9. package/dist/types/Camera/Camera.d.ts +4 -1
  10. package/dist/types/Events/BaseCommand.d.ts +5 -4
  11. package/dist/types/Events/Command.d.ts +11 -7
  12. package/dist/types/Events/CreateCommand.d.ts +5 -0
  13. package/dist/types/Events/Events.d.ts +2 -1
  14. package/dist/types/Events/EventsOperations.d.ts +23 -15
  15. package/dist/types/Events/Log/EventsLog.d.ts +6 -5
  16. package/dist/types/Events/Log/createEventsList.d.ts +3 -1
  17. package/dist/types/Events/Log/deserializeAndApplyToList.d.ts +2 -2
  18. package/dist/types/Events/MessageRouter/boardMessageInterface.d.ts +57 -3
  19. package/dist/types/Events/MessageRouter/handleAiChatMassage.d.ts +1 -5
  20. package/dist/types/Events/MessageRouter/handleBoardEventMessage.d.ts +1 -8
  21. package/dist/types/Events/MessageRouter/handleConfirmation.d.ts +1 -6
  22. package/dist/types/Events/MessageRouter/handleCreateSnapshotRequestMessage.d.ts +2 -5
  23. package/dist/types/Events/MessageRouter/handleModeMessage.d.ts +1 -5
  24. package/dist/types/Events/MessageRouter/handlePresenceEventMessage.d.ts +1 -1
  25. package/dist/types/Events/MessageRouter/index.d.ts +0 -5
  26. package/dist/types/Events/index.d.ts +2 -1
  27. package/dist/types/Items/AINode/AINode.d.ts +2 -2
  28. package/dist/types/Items/Anchor/Anchor.d.ts +2 -1
  29. package/dist/types/Items/Arc/Arc.d.ts +4 -1
  30. package/dist/types/Items/Audio/Audio.d.ts +3 -3
  31. package/dist/types/Items/BaseItem/BaseItem.d.ts +10 -9
  32. package/dist/types/Items/Comment/Comment.d.ts +1 -1
  33. package/dist/types/Items/Connector/Connector.d.ts +13 -18
  34. package/dist/types/Items/Connector/ConnectorCommand.d.ts +2 -2
  35. package/dist/types/Items/Connector/ConnectorOperations.d.ts +1 -1
  36. package/dist/types/Items/Connector/ConnectorTypes.d.ts +10 -0
  37. package/dist/types/Items/Connector/Pointers/Pointers.d.ts +3 -2
  38. package/dist/types/Items/Connector/Pointers/index.d.ts +1 -1
  39. package/dist/types/Items/Connector/getLine/getLine.d.ts +1 -1
  40. package/dist/types/Items/Connector/index.d.ts +3 -2
  41. package/dist/types/Items/Curve/Curve.d.ts +4 -4
  42. package/dist/types/Items/Drawing/Drawing.d.ts +7 -6
  43. package/dist/types/Items/Drawing/DrawingCommand.d.ts +2 -2
  44. package/dist/types/Items/Examples/CardGame/Card/Card.d.ts +12 -9
  45. package/dist/types/Items/Examples/CardGame/Deck/Deck.d.ts +1 -1
  46. package/dist/types/Items/Examples/CardGame/Dice/Dice.d.ts +11 -2
  47. package/dist/types/Items/Examples/CardGame/Screen/Screen.d.ts +7 -2
  48. package/dist/types/Items/Examples/Counter/Counter.d.ts +1 -1
  49. package/dist/types/Items/Examples/Star/Star.d.ts +1 -1
  50. package/dist/types/Items/Frame/Frame.d.ts +12 -3
  51. package/dist/types/Items/Frame/FrameData.d.ts +3 -3
  52. package/dist/types/Items/Geometry.d.ts +1 -1
  53. package/dist/types/Items/Group/Group.d.ts +9 -5
  54. package/dist/types/Items/Image/Image.d.ts +5 -4
  55. package/dist/types/Items/Item.d.ts +15 -15
  56. package/dist/types/Items/Line/Line.d.ts +1 -1
  57. package/dist/types/Items/Mbr/Mbr.d.ts +5 -5
  58. package/dist/types/Items/Placeholder/Placeholder.d.ts +13 -8
  59. package/dist/types/Items/Point/Point.d.ts +1 -1
  60. package/dist/types/Items/RegisterItem.d.ts +3 -1
  61. package/dist/types/Items/RichText/EditorContainer.d.ts +2 -2
  62. package/dist/types/Items/RichText/RichText.d.ts +12 -6
  63. package/dist/types/Items/RichText/RichTextCommand.d.ts +2 -2
  64. package/dist/types/Items/RichText/RichTextData.d.ts +1 -1
  65. package/dist/types/Items/RichText/RichTextOperations.d.ts +1 -1
  66. package/dist/types/Items/RichText/editorHelpers/common/getAreAllChildrenEmpty.d.ts +1 -1
  67. package/dist/types/Items/RichText/editorHelpers/lists/getBlockParentList.d.ts +2 -2
  68. package/dist/types/Items/Shape/BPMN/BPMN_Annotation/index.d.ts +2 -1
  69. package/dist/types/Items/Shape/BPMN/BPMN_DataObject/index.d.ts +3 -1
  70. package/dist/types/Items/Shape/BPMN/BPMN_DataStore/index.d.ts +3 -1
  71. package/dist/types/Items/Shape/BPMN/BPMN_EndEvent/index.d.ts +3 -1
  72. package/dist/types/Items/Shape/BPMN/BPMN_EventSubprocess/index.d.ts +3 -1
  73. package/dist/types/Items/Shape/BPMN/BPMN_Gateway/index.d.ts +3 -1
  74. package/dist/types/Items/Shape/BPMN/BPMN_GatewayParallel/index.d.ts +3 -1
  75. package/dist/types/Items/Shape/BPMN/BPMN_GatewayXOR/index.d.ts +3 -1
  76. package/dist/types/Items/Shape/BPMN/BPMN_Group/index.d.ts +3 -1
  77. package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEvent/index.d.ts +3 -1
  78. package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEventNoneInterrupting/index.d.ts +3 -1
  79. package/dist/types/Items/Shape/BPMN/BPMN_Participant/index.d.ts +3 -1
  80. package/dist/types/Items/Shape/BPMN/BPMN_StartEvent/index.d.ts +3 -1
  81. package/dist/types/Items/Shape/BPMN/BPMN_StartEventNoneInterrupting/index.d.ts +3 -1
  82. package/dist/types/Items/Shape/BPMN/BPMN_Task/index.d.ts +3 -1
  83. package/dist/types/Items/Shape/BPMN/BPMN_Transaction/index.d.ts +3 -1
  84. package/dist/types/Items/Shape/Basic/ArrowBlockLeft/index.d.ts +3 -1
  85. package/dist/types/Items/Shape/Basic/ArrowBlockRigth/index.d.ts +3 -1
  86. package/dist/types/Items/Shape/Basic/ArrowLeft/index.d.ts +3 -1
  87. package/dist/types/Items/Shape/Basic/ArrowLeftRight/index.d.ts +3 -1
  88. package/dist/types/Items/Shape/Basic/ArrowRight/index.d.ts +3 -1
  89. package/dist/types/Items/Shape/Basic/BracesLeft/index.d.ts +2 -1
  90. package/dist/types/Items/Shape/Basic/BracesRight/index.d.ts +2 -1
  91. package/dist/types/Items/Shape/Basic/Circle/index.d.ts +3 -1
  92. package/dist/types/Items/Shape/Basic/Cloud/index.d.ts +3 -1
  93. package/dist/types/Items/Shape/Basic/Cross/index.d.ts +3 -1
  94. package/dist/types/Items/Shape/Basic/Cylinder/index.d.ts +3 -1
  95. package/dist/types/Items/Shape/Basic/Hexagon/index.d.ts +3 -1
  96. package/dist/types/Items/Shape/Basic/Octagon/index.d.ts +3 -1
  97. package/dist/types/Items/Shape/Basic/Parallelogram/index.d.ts +3 -1
  98. package/dist/types/Items/Shape/Basic/Pentagon/index.d.ts +3 -1
  99. package/dist/types/Items/Shape/Basic/PredefinedProcess/index.d.ts +3 -1
  100. package/dist/types/Items/Shape/Basic/Rectangle/index.d.ts +3 -1
  101. package/dist/types/Items/Shape/Basic/ReversedParallelogram/index.d.ts +3 -1
  102. package/dist/types/Items/Shape/Basic/ReversedTriangle/index.d.ts +3 -1
  103. package/dist/types/Items/Shape/Basic/Rhombus/index.d.ts +3 -1
  104. package/dist/types/Items/Shape/Basic/RoundedRectangle/index.d.ts +3 -1
  105. package/dist/types/Items/Shape/Basic/SpeachBubble/index.d.ts +3 -1
  106. package/dist/types/Items/Shape/Basic/Star/index.d.ts +3 -1
  107. package/dist/types/Items/Shape/Basic/Trapezoid/index.d.ts +3 -1
  108. package/dist/types/Items/Shape/Basic/Triangle/index.d.ts +3 -1
  109. package/dist/types/Items/Shape/Shape.d.ts +8 -2
  110. package/dist/types/Items/Shape/ShapeCommand.d.ts +2 -2
  111. package/dist/types/Items/Shape/ShapeOperation.d.ts +1 -1
  112. package/dist/types/Items/Shape/ShapeType.d.ts +3 -0
  113. package/dist/types/Items/Shape/index.d.ts +1 -3
  114. package/dist/types/Items/Sticker/Sticker.d.ts +7 -5
  115. package/dist/types/Items/Transformation/Matrix.d.ts +1 -1
  116. package/dist/types/Items/Transformation/TransformationCommand.d.ts +1 -1
  117. package/dist/types/Items/Video/Video.d.ts +2 -2
  118. package/dist/types/Items/index.d.ts +2 -3
  119. package/dist/types/Presence/Events.d.ts +1 -20
  120. package/dist/types/Presence/Presence.d.ts +2 -1
  121. package/dist/types/Selection/Selection.d.ts +11 -8
  122. package/dist/types/Selection/SelectionItems.d.ts +1 -0
  123. package/dist/types/SessionStorage.d.ts +1 -1
  124. package/dist/types/Settings.d.ts +17 -12
  125. package/dist/types/SpatialIndex/LayeredIndex/index.d.ts +12 -8
  126. package/dist/types/SpatialIndex/RTreeIndex/index.d.ts +12 -7
  127. package/dist/types/SpatialIndex/SimpleSpatialIndex.d.ts +28 -10
  128. package/dist/types/SpatialIndex/SpacialIndex.d.ts +89 -10
  129. package/dist/types/Tools/AddConnector/AddConnector.d.ts +1 -1
  130. package/dist/types/Tools/CustomTool.d.ts +3 -3
  131. package/dist/types/Tools/Tools.d.ts +3 -2
  132. package/dist/types/Validators/Validators.d.ts +4 -3
  133. package/dist/types/api/MockPath2D.d.ts +3 -3
  134. package/dist/types/api/Path2DFactory.d.ts +1 -1
  135. package/dist/types/itemFactories.d.ts +27 -1
  136. package/dist/types/parserHTML.d.ts +1 -2
  137. package/dist/types/sha256.d.ts +1 -1
  138. package/package.json +1 -1
@@ -1,4 +1,6 @@
1
- import { Mbr, Point, Paths } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Paths } from '../../../Path/Paths';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const BPMN_GatewayParallel: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Point, Paths } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Paths } from '../../../Path/Paths';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const BPMN_GatewayXOR: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const BPMN_Group: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Point, Paths } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Paths } from '../../../Path/Paths';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const BPMN_IntermediateEvent: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Point, Paths } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Paths } from '../../../Path/Paths';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const BPMN_IntermediateEventNoneInterrupting: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Point, Paths } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Point } from '../../../Point/Point';
3
+ import { Paths } from '../../../Path/Paths';
2
4
  export declare const BPMN_Participant: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const BPMN_StartEvent: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const BPMN_StartEventNoneInterrupting: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const BPMN_Task: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Point, Paths } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Paths } from '../../../Path/Paths';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const BPMN_Transaction: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const ArrowBlockLeft: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const ArrowBlockRight: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const ArrowLeft: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const ArrowLeftRight: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const ArrowRight: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,5 @@
1
- import { Mbr, Path } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
2
3
  export declare const BracesLeft: {
3
4
  name: string;
4
5
  textBounds: Mbr;
@@ -1,4 +1,5 @@
1
- import { Mbr, Path } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
2
3
  export declare const BracesRight: {
3
4
  name: string;
4
5
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Circle: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Cloud: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Cross: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Paths, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Paths } from '../../../Path/Paths';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Cylinder: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Hexagon: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Octagon: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Parallelogram: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Pentagon: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Paths, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Paths } from '../../../Path/Paths';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const PredefinedProcess: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Rectangle: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const ReversedParallelogram: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const ReversedTriangle: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Rhombus: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const RoundedRectangle: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const SpeachBubble: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Star: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Trapezoid: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,6 @@
1
- import { Mbr, Path, Point } from '../../../../Items';
1
+ import { Mbr } from '../../../Mbr/Mbr';
2
+ import { Path } from '../../../Path/Path';
3
+ import { Point } from '../../../Point/Point';
2
4
  export declare const Triangle: {
3
5
  name: string;
4
6
  textBounds: Mbr;
@@ -1,4 +1,10 @@
1
- import { Mbr, Line, Point, Transformation, Path, Paths, Matrix } from "..";
1
+ import { Mbr } from "../Mbr/Mbr";
2
+ import { Line } from "../Line/Line";
3
+ import { Point } from "../Point/Point";
4
+ import { Transformation } from "../Transformation/Transformation";
5
+ import { Path } from "../Path/Path";
6
+ import { Paths } from "../Path/Paths";
7
+ import { Matrix } from "../Transformation/Matrix";
2
8
  import { ShapeType } from "./index";
3
9
  import { BorderStyle, BorderWidth } from "../Path";
4
10
  import { RichText } from "../RichText";
@@ -344,7 +350,7 @@ export declare const Shapes: {
344
350
  useMbrUnderPointer: boolean;
345
351
  };
346
352
  };
347
- export declare class Shape extends BaseItem {
353
+ export declare class Shape extends BaseItem<Shape> {
348
354
  shapeType: ShapeType;
349
355
  backgroundColor: ColorValue;
350
356
  backgroundOpacity: number;
@@ -1,12 +1,12 @@
1
1
  import { Shape } from "./Shape";
2
2
  import { ShapeOperation } from "./ShapeOperation";
3
- import { Command } from "../../Events";
3
+ import { Command, Operation } from "../../Events";
4
4
  export declare class ShapeCommand implements Command {
5
5
  private shape;
6
6
  private operation;
7
7
  private reverse;
8
8
  constructor(shape: Shape[], operation: ShapeOperation);
9
- merge(op: ShapeOperation): this;
9
+ merge(op: Operation): this;
10
10
  apply(): void;
11
11
  revert(): void;
12
12
  getReverse(): {
@@ -1,5 +1,5 @@
1
1
  import { BorderStyle } from "../Path";
2
- import { ShapeType } from "./index";
2
+ import { ShapeType } from "./ShapeType";
3
3
  import { ColorValue } from "../../..";
4
4
  export type ShapeOperation = SetBackgroundColor | SetBackgroundOpacity | SetBorderColor | SetBorderOpacity | SetBorderStyle | SetBorderWidth | SetShapeType;
5
5
  interface BaseShapeOperation {
@@ -0,0 +1,3 @@
1
+ export type BasicShapeType = "Rectangle" | "Triangle" | "ReversedTriangle" | "Circle" | "ArrowLeft" | "ArrowLeftRight" | "ArrowRight" | "ArrowBlockLeft" | "ArrowBlockRight" | "BracesLeft" | "BracesRight" | "Cloud" | "Cross" | "Cylinder" | "Hexagon" | "Octagon" | "Parallelogram" | "ReversedParallelogram" | "Pentagon" | "PredefinedProcess" | "Rhombus" | "RoundedRectangle" | "SpeachBubble" | "Star" | "Trapezoid";
2
+ export type BPMN_ShapeType = "BPMN_Gateway" | "BPMN_DataStore" | "BPMN_GatewayParallel" | "BPMN_GatewayXOR" | "BPMN_EndEvent" | "BPMN_StartEvent" | "BPMN_StartEventNoneInterrupting" | "BPMN_IntermediateEvent" | "BPMN_IntermediateEventNoneInterrupting" | "BPMN_Group" | "BPMN_Participant" | "BPMN_Task" | "BPMN_Transaction" | "BPMN_EventSubprocess" | "BPMN_Annotation" | "BPMN_DataObject";
3
+ export type ShapeType = BasicShapeType | BPMN_ShapeType;
@@ -1,8 +1,6 @@
1
- import { BasicShapes } from "./Basic";
2
- import { BPMN } from "./BPMN";
3
1
  export { Shape, Shapes } from "./Shape";
4
2
  export { ShapeCommand } from "./ShapeCommand";
5
3
  export type { ShapeOperation } from "./ShapeOperation";
6
4
  export * from "./ShapeData";
7
- export type ShapeType = keyof typeof BasicShapes | BPMN;
5
+ export type { ShapeType } from "./ShapeType";
8
6
  export { DefaultShapeData } from "./ShapeData";
@@ -1,20 +1,22 @@
1
1
  import { Operation } from "../../Events";
2
2
  import { Subject } from "../../Subject";
3
- import { Line } from "../Line";
3
+ import { Line } from "../Line/Line";
4
4
  import { Matrix } from "../Transformation/Matrix";
5
5
  import { Mbr } from "../Mbr/Mbr";
6
- import { Path, Paths } from "../Path";
6
+ import { Path } from "../Path/Path";
7
+ import { Paths } from "../Path/Paths";
7
8
  import { Point } from "../Point/Point";
8
9
  import { Transformation } from "../Transformation/Transformation";
9
10
  import { ResizeType } from "../../Selection/Transformer/TransformerHelpers/getResizeType";
10
11
  import { DrawingContext } from "../DrawingContext";
11
12
  import { GeometricNormal } from "../GeometricNormal";
12
- import { RichText } from "../RichText";
13
+ import { RichText } from "../RichText/RichText";
13
14
  import { StickerData, StickerOperation } from "./StickerOperation";
14
15
  import { LinkTo } from "../LinkTo/LinkTo";
15
16
  import { Board } from "../../Board";
16
17
  import { DocumentFactory } from "../../api/DocumentFactory";
17
- import { BaseItem, SerializedItemData } from "../BaseItem";
18
+ import { BaseItem } from "../BaseItem/BaseItem";
19
+ import type { SerializedItemData } from "../BaseItem/BaseItem";
18
20
  import { ColorValue } from "../../..";
19
21
  export declare const stickerColors: {
20
22
  [color: string]: string;
@@ -25,7 +27,7 @@ export declare const StickerShape: {
25
27
  anchorPoints: Point[];
26
28
  DEFAULTS: number[];
27
29
  };
28
- export declare class Sticker extends BaseItem {
30
+ export declare class Sticker extends BaseItem<Sticker> {
29
31
  backgroundColor: ColorValue;
30
32
  parent: string;
31
33
  readonly itemType = "Sticker";
@@ -1,4 +1,4 @@
1
- import { Point } from '..';
1
+ import { Point } from '../Point/Point';
2
2
  export declare class Matrix {
3
3
  translateX: number;
4
4
  translateY: number;
@@ -16,7 +16,7 @@ export declare class TransformationCommand implements Command {
16
16
  /** Map from Transformation → Item, populated when items are passed to the constructor. */
17
17
  private itemsMap;
18
18
  constructor(transformation: Transformation[], operation: TransformationOperation, items?: TransformableItem[]);
19
- merge(op: TransformationOperation): this;
19
+ merge(op: Operation): this;
20
20
  apply(): void;
21
21
  revert(): void;
22
22
  getReverse(): {
@@ -1,7 +1,7 @@
1
1
  import { DocumentFactory } from "../../api/DocumentFactory";
2
2
  import { Board } from "../../Board";
3
3
  import { Events, Operation } from "../../Events";
4
- import { Point } from "../../Items";
4
+ import { Point } from "../Point/Point";
5
5
  import { DrawingContext } from "../DrawingContext";
6
6
  import { LinkTo } from "../LinkTo/LinkTo";
7
7
  import { Mbr } from "../Mbr";
@@ -29,7 +29,7 @@ export interface VideoConstructorData {
29
29
  previewUrl?: string;
30
30
  }
31
31
  export declare const createPlaceholderImage: (width: number, height: number) => HTMLImageElement;
32
- export declare class VideoItem extends BaseItem {
32
+ export declare class VideoItem extends BaseItem<VideoItem> {
33
33
  private events?;
34
34
  private extension;
35
35
  readonly itemType = "Video";
@@ -1,3 +1,5 @@
1
+ export { BaseItem } from "./BaseItem";
2
+ export type { BaseItemData, SerializedItemData } from "./BaseItem";
1
3
  export { Point } from "./Point";
2
4
  export { Line } from "./Line";
3
5
  export { CubicBezier, QuadraticBezier } from "./Curve";
@@ -15,13 +17,10 @@ export * from "./Frame";
15
17
  export * from "./Video";
16
18
  export * from "./Audio";
17
19
  export * from "./AINode";
18
- export * from "./Point";
19
20
  export * from "./Image";
20
21
  export * from "./Drawing";
21
22
  export * from "./Placeholder";
22
23
  export * from "./Group";
23
- export { BaseItem } from "./BaseItem";
24
- export type { BaseItemData, SerializedItemData } from "./BaseItem";
25
24
  export type { Item, ItemType, ItemData } from "./Item";
26
25
  export { registerItem } from "./RegisterItem";
27
26
  export { Star } from "./Examples/Star";
@@ -1,4 +1,4 @@
1
- import { PresenceUser } from "./Presence";
1
+ export type { PresenceUser } from "./Presence";
2
2
  export interface PointerMoveEvent {
3
3
  method: "PointerMove";
4
4
  position: {
@@ -63,22 +63,3 @@ export interface FollowEvent {
63
63
  export interface PresenceUserSnapshot {
64
64
  }
65
65
  export type PresenceEventType = PointerMoveEvent | SelectionEvent | SetUserColorEvent | DrawSelectEvent | CancelDrawSelectEvent | CameraEvent | PresencePingEvent | BringToMeEvent | StopFollowingEvent | FollowEvent;
66
- export interface UserJoinMsg {
67
- type: "UserJoin";
68
- timestamp: number;
69
- userId: number;
70
- boardId: string;
71
- snapshots: Record<string, PresenceUser>;
72
- }
73
- export interface PresenceEventMsg<T = PresenceEventType> {
74
- type: "PresenceEvent";
75
- boardId: string;
76
- event: T;
77
- userId: string;
78
- softId: string | null;
79
- hardId: string | null;
80
- messageId: string;
81
- nickname: string;
82
- color: string | null;
83
- avatar: string | null;
84
- }
@@ -3,7 +3,8 @@ import { Events } from '../Events';
3
3
  import { Item } from '../Items';
4
4
  import { DrawingContext } from '../Items/DrawingContext';
5
5
  import { Subject } from '../Subject';
6
- import { PresenceEventType, PresenceEventMsg, UserJoinMsg, PointerMoveEvent, SelectionEvent, SetUserColorEvent, DrawSelectEvent, CancelDrawSelectEvent, CameraEvent, PresencePingEvent, BringToMeEvent, StopFollowingEvent, FollowEvent } from './Events';
6
+ import { PresenceEventType, PointerMoveEvent, SelectionEvent, SetUserColorEvent, DrawSelectEvent, CancelDrawSelectEvent, CameraEvent, PresencePingEvent, BringToMeEvent, StopFollowingEvent, FollowEvent } from './Events';
7
+ import { PresenceEventMsg, UserJoinMsg } from '../Events/MessageRouter/boardMessageInterface';
7
8
  export declare const PRESENCE_CURSOR_THROTTLE: number;
8
9
  export declare const CURSORS_ANIMATION_DURATION: number;
9
10
  export declare const PRESENCE_CLEANUP_USER_TIMER = 180000;
@@ -1,15 +1,18 @@
1
1
  import { Board } from "../Board";
2
- import { Item, BaseItem, RichText, Mbr, ItemData } from "../Items";
3
- import { AINode } from "../Items/AINode";
2
+ import type { Item, ItemData } from "../Items/Item";
3
+ import type { BaseItem } from "../Items/BaseItem/BaseItem";
4
+ import type { RichText } from "../Items/RichText/RichText";
5
+ import { Mbr } from "../Items/Mbr/Mbr";
6
+ import { AINode } from "../Items/AINode/AINode";
4
7
  import { HorisontalAlignment, VerticalAlignment } from "../Items/Alignment";
5
- import { ColorValue } from "../..";
6
- import { ConnectorLineStyle } from "../Items/Connector";
8
+ import { ColorValue } from "../Color/ColorValue";
9
+ import { ConnectorLineStyle } from "../Items/Connector/ConnectorTypes";
7
10
  import { ConnectorPointerStyle } from "../Items/Connector/Pointers/Pointers";
8
11
  import { DrawingContext } from "../Items/DrawingContext";
9
12
  import { FrameType } from "../Items/Frame/Basic";
10
- import { BorderStyle } from "../Items/Path";
11
- import { TextStyle } from "../Items/RichText";
12
- import { ShapeType } from "../Items/Shape";
13
+ import { BorderStyle } from "../Items/Path/Path";
14
+ import { TextStyle } from "../Items/RichText/Editor/TextNode";
15
+ import { ShapeType } from "../Items/Shape/ShapeType";
13
16
  import { ApplyMatrixItem } from "../Items/Transformation/TransformationOperations";
14
17
  import { Subject } from "../Subject";
15
18
  import { Tool } from "../Tools/Tool";
@@ -59,7 +62,7 @@ export declare class BoardSelection {
59
62
  private emitApplied;
60
63
  private emitCommand;
61
64
  updateQueue: Set<() => void>;
62
- decorateObserverToScheduleUpdate<T extends (...args: any[]) => void>(observer: T): T;
65
+ decorateObserverToScheduleUpdate<T extends (...args: never[]) => void>(observer: T): T;
63
66
  updateScheduledObservers: () => void;
64
67
  private itemObserver;
65
68
  decoratedItemObserver: (item: Item) => void;
@@ -6,6 +6,7 @@ export declare class SelectionItems {
6
6
  removeAll(): void;
7
7
  findById(itemId: string): Item | null;
8
8
  list(): Item[];
9
+ listAll(): Item[];
9
10
  isEmpty(): boolean;
10
11
  isSingle(): boolean;
11
12
  values(): IterableIterator<Item>;
@@ -1,6 +1,6 @@
1
1
  import { ShapeData } from './Items';
2
2
  import { ConnectorLineStyle } from './Items/Connector';
3
- import { ConnectionLineWidth } from './Items/Connector/Connector';
3
+ import { ConnectionLineWidth } from './Items/Connector/ConnectorTypes';
4
4
  import { ConnectorEdge } from './Items/Connector/Pointers';
5
5
  import { ConnectorPointerStyle } from './Items/Connector/Pointers/Pointers';
6
6
  import { BorderStyle } from './Items/Path';