microboard-temp 0.5.13 → 0.5.15

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 (209) hide show
  1. package/dist/cjs/browser.js +5 -32
  2. package/dist/cjs/index.js +5 -32
  3. package/dist/cjs/node.js +5 -32
  4. package/dist/esm/browser.js +5 -32
  5. package/dist/esm/index.js +5 -32
  6. package/dist/esm/node.js +5 -32
  7. package/dist/types/Board.d.ts +18 -18
  8. package/dist/types/BoardCommand.d.ts +1 -1
  9. package/dist/types/Camera/Camera.d.ts +4 -4
  10. package/dist/types/Events/Command.d.ts +2 -2
  11. package/dist/types/Events/Events.d.ts +4 -4
  12. package/dist/types/Events/EventsCommand.d.ts +1 -1
  13. package/dist/types/Events/EventsOperations.d.ts +6 -6
  14. package/dist/types/Events/Log/EventsLog.d.ts +1 -1
  15. package/dist/types/Events/Log/deserializeAndApplyToList.d.ts +1 -1
  16. package/dist/types/Events/Log/deserializeIntoList.d.ts +1 -1
  17. package/dist/types/Events/Log/getSnapshotFromList.d.ts +1 -1
  18. package/dist/types/Events/Log/insertEventsFromOtherConnectionsIntoList.d.ts +1 -1
  19. package/dist/types/Events/MessageRouter/boardMessageInterface.d.ts +2 -2
  20. package/dist/types/Events/MessageRouter/createMessageRouter.d.ts +1 -1
  21. package/dist/types/Events/MessageRouter/handleAiChatMassage.d.ts +1 -1
  22. package/dist/types/Events/MessageRouter/handleBoardEventMessage.d.ts +1 -1
  23. package/dist/types/Events/MessageRouter/handleBoardSubscriptionCompletedMsg.d.ts +1 -1
  24. package/dist/types/Events/MessageRouter/handleConfirmation.d.ts +1 -1
  25. package/dist/types/Events/MessageRouter/handleCreateSnapshotRequestMessage.d.ts +1 -1
  26. package/dist/types/Events/MessageRouter/handleModeMessage.d.ts +1 -1
  27. package/dist/types/Events/MessageRouter/handlePresenceEventMessage.d.ts +2 -2
  28. package/dist/types/Events/SyncLog.d.ts +1 -1
  29. package/dist/types/Events/Transform/Transform.d.ts +1 -1
  30. package/dist/types/Events/handleRemoveSnappedObject.d.ts +1 -1
  31. package/dist/types/Items/AINode/AINode.d.ts +16 -16
  32. package/dist/types/Items/AINode/AINodeData.d.ts +6 -6
  33. package/dist/types/Items/Anchor/Anchor.d.ts +1 -1
  34. package/dist/types/Items/Audio/Audio.d.ts +7 -11
  35. package/dist/types/Items/Audio/AudioCommand.d.ts +1 -1
  36. package/dist/types/Items/Audio/AudioHelpers.d.ts +3 -3
  37. package/dist/types/Items/BaseItem/BaseItem.d.ts +11 -11
  38. package/dist/types/Items/Comment/Comment.d.ts +3 -3
  39. package/dist/types/Items/Connector/Connector.d.ts +5 -5
  40. package/dist/types/Items/Connector/Pointers/Pointers.d.ts +2 -2
  41. package/dist/types/Items/Connector/Pointers/index.d.ts +1 -1
  42. package/dist/types/Items/Connector/getLine/findOrthogonalPath.d.ts +1 -1
  43. package/dist/types/Items/Connector/getLine/getOrthogonalLine.d.ts +1 -1
  44. package/dist/types/Items/Connector/getLine/getStraightLine.d.ts +1 -1
  45. package/dist/types/Items/Drawing/Drawing.d.ts +5 -5
  46. package/dist/types/Items/Drawing/DrawingCommand.d.ts +1 -1
  47. package/dist/types/Items/DrawingContext.d.ts +1 -1
  48. package/dist/types/Items/Examples/CardGame/Card/Card.d.ts +7 -7
  49. package/dist/types/Items/Examples/CardGame/Card/CardOperation.d.ts +1 -1
  50. package/dist/types/Items/Examples/CardGame/Deck/Deck.d.ts +6 -6
  51. package/dist/types/Items/Examples/CardGame/Deck/DeckOperation.d.ts +1 -1
  52. package/dist/types/Items/Examples/CardGame/Dice/AddDice.d.ts +2 -2
  53. package/dist/types/Items/Examples/CardGame/Dice/DiceOperation.d.ts +1 -1
  54. package/dist/types/Items/Examples/CardGame/Screen/AddScreen.d.ts +2 -2
  55. package/dist/types/Items/Examples/CardGame/Screen/Screen.d.ts +4 -4
  56. package/dist/types/Items/Examples/CardGame/Screen/ScreenOperation.d.ts +1 -1
  57. package/dist/types/Items/Examples/Counter/AddCounter.d.ts +2 -2
  58. package/dist/types/Items/Examples/Counter/Counter.d.ts +8 -8
  59. package/dist/types/Items/Examples/Counter/CounterOperation.d.ts +1 -1
  60. package/dist/types/Items/Examples/Star/AddStar.d.ts +2 -2
  61. package/dist/types/Items/Examples/Star/Star.d.ts +9 -9
  62. package/dist/types/Items/Examples/Star/StarOperation.d.ts +1 -1
  63. package/dist/types/Items/Frame/Basic/1-1/index.d.ts +1 -1
  64. package/dist/types/Items/Frame/Basic/16-9/index.d.ts +1 -1
  65. package/dist/types/Items/Frame/Basic/3-2/index.d.ts +1 -1
  66. package/dist/types/Items/Frame/Basic/4-3/index.d.ts +1 -1
  67. package/dist/types/Items/Frame/Basic/9-18/index.d.ts +1 -1
  68. package/dist/types/Items/Frame/Basic/A4/index.d.ts +1 -1
  69. package/dist/types/Items/Frame/Basic/Custom/index.d.ts +1 -1
  70. package/dist/types/Items/Frame/Basic/Letter/index.d.ts +1 -1
  71. package/dist/types/Items/Frame/Frame.d.ts +6 -6
  72. package/dist/types/Items/Group/Group.d.ts +5 -5
  73. package/dist/types/Items/Image/Image.d.ts +5 -5
  74. package/dist/types/Items/Image/ImageCommand.d.ts +1 -1
  75. package/dist/types/Items/Image/calculatePosition.d.ts +2 -2
  76. package/dist/types/Items/Item.d.ts +1 -1
  77. package/dist/types/Items/LinkTo/LinkTo.d.ts +23 -0
  78. package/dist/types/Items/Mbr/Mbr.d.ts +2 -2
  79. package/dist/types/Items/Mbr/updateRects.d.ts +3 -3
  80. package/dist/types/Items/Path/Path.d.ts +2 -2
  81. package/dist/types/Items/Path/Paths.d.ts +1 -1
  82. package/dist/types/Items/Placeholder/Placeholder.d.ts +3 -3
  83. package/dist/types/Items/RegisterItem.d.ts +2 -2
  84. package/dist/types/Items/RichText/EditorContainer.d.ts +3 -3
  85. package/dist/types/Items/RichText/RichText.d.ts +7 -7
  86. package/dist/types/Items/RichText/RichTextCommand.d.ts +2 -2
  87. package/dist/types/Items/RichText/RichTextOperations.d.ts +1 -1
  88. package/dist/types/Items/RichText/editorHelpers/common/createParagraphNode.d.ts +2 -2
  89. package/dist/types/Items/RichText/editorHelpers/common/getAllTextNodesInSelection.d.ts +1 -1
  90. package/dist/types/Items/RichText/editorHelpers/common/getSelectedBlockNode.d.ts +1 -1
  91. package/dist/types/Items/RichText/editorHelpers/common/getSelectionMarks.d.ts +1 -1
  92. package/dist/types/Items/RichText/editorHelpers/common/isBlockActive.d.ts +1 -1
  93. package/dist/types/Items/RichText/editorHelpers/lists/getBlockParentList.d.ts +1 -1
  94. package/dist/types/Items/RichText/editorHelpers/lists/getListTypeAtSelectionStart.d.ts +1 -1
  95. package/dist/types/Items/RichText/editorHelpers/lists/toggleListType.d.ts +1 -1
  96. package/dist/types/Items/RichText/editorHelpers/lists/toggleListTypeForSelection.d.ts +1 -1
  97. package/dist/types/Items/RichText/editorHelpers/lists/wrapIntoList.d.ts +1 -1
  98. package/dist/types/Items/RichText/editorHelpers/markdown/markdownProcessor.d.ts +2 -2
  99. package/dist/types/Items/RichText/editorHelpers/selectionOps/insertCopiedNodes.d.ts +1 -1
  100. package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionFontStyle.d.ts +1 -1
  101. package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionHorisontalAlignment.d.ts +1 -1
  102. package/dist/types/Items/RichText/setNodeStyles.d.ts +2 -2
  103. package/dist/types/Items/Shape/BPMN/BPMN_Annotation/index.d.ts +1 -1
  104. package/dist/types/Items/Shape/BPMN/BPMN_DataObject/index.d.ts +1 -1
  105. package/dist/types/Items/Shape/BPMN/BPMN_DataStore/index.d.ts +1 -1
  106. package/dist/types/Items/Shape/BPMN/BPMN_EndEvent/index.d.ts +1 -1
  107. package/dist/types/Items/Shape/BPMN/BPMN_EventSubprocess/index.d.ts +1 -1
  108. package/dist/types/Items/Shape/BPMN/BPMN_Gateway/index.d.ts +1 -1
  109. package/dist/types/Items/Shape/BPMN/BPMN_GatewayParallel/index.d.ts +1 -1
  110. package/dist/types/Items/Shape/BPMN/BPMN_GatewayXOR/index.d.ts +1 -1
  111. package/dist/types/Items/Shape/BPMN/BPMN_Group/index.d.ts +1 -1
  112. package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEvent/index.d.ts +1 -1
  113. package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEventNoneInterrupting/index.d.ts +1 -1
  114. package/dist/types/Items/Shape/BPMN/BPMN_Participant/index.d.ts +1 -1
  115. package/dist/types/Items/Shape/BPMN/BPMN_StartEvent/index.d.ts +1 -1
  116. package/dist/types/Items/Shape/BPMN/BPMN_StartEventNoneInterrupting/index.d.ts +1 -1
  117. package/dist/types/Items/Shape/BPMN/BPMN_Task/index.d.ts +1 -1
  118. package/dist/types/Items/Shape/BPMN/BPMN_Transaction/index.d.ts +1 -1
  119. package/dist/types/Items/Shape/Basic/ArrowBlockLeft/index.d.ts +1 -1
  120. package/dist/types/Items/Shape/Basic/ArrowBlockRigth/index.d.ts +1 -1
  121. package/dist/types/Items/Shape/Basic/ArrowLeft/index.d.ts +1 -1
  122. package/dist/types/Items/Shape/Basic/ArrowLeftRight/index.d.ts +1 -1
  123. package/dist/types/Items/Shape/Basic/ArrowRight/index.d.ts +1 -1
  124. package/dist/types/Items/Shape/Basic/BracesLeft/index.d.ts +1 -1
  125. package/dist/types/Items/Shape/Basic/BracesRight/index.d.ts +1 -1
  126. package/dist/types/Items/Shape/Basic/Circle/index.d.ts +1 -1
  127. package/dist/types/Items/Shape/Basic/Cloud/index.d.ts +1 -1
  128. package/dist/types/Items/Shape/Basic/Cross/index.d.ts +1 -1
  129. package/dist/types/Items/Shape/Basic/Cylinder/index.d.ts +1 -1
  130. package/dist/types/Items/Shape/Basic/Hexagon/index.d.ts +1 -1
  131. package/dist/types/Items/Shape/Basic/Octagon/index.d.ts +1 -1
  132. package/dist/types/Items/Shape/Basic/Parallelogram/index.d.ts +1 -1
  133. package/dist/types/Items/Shape/Basic/Pentagon/index.d.ts +1 -1
  134. package/dist/types/Items/Shape/Basic/PredefinedProcess/index.d.ts +1 -1
  135. package/dist/types/Items/Shape/Basic/Rectangle/index.d.ts +1 -1
  136. package/dist/types/Items/Shape/Basic/ReversedParallelogram/index.d.ts +1 -1
  137. package/dist/types/Items/Shape/Basic/ReversedTriangle/index.d.ts +1 -1
  138. package/dist/types/Items/Shape/Basic/Rhombus/index.d.ts +1 -1
  139. package/dist/types/Items/Shape/Basic/RoundedRectangle/index.d.ts +1 -1
  140. package/dist/types/Items/Shape/Basic/SpeachBubble/index.d.ts +1 -1
  141. package/dist/types/Items/Shape/Basic/Star/index.d.ts +1 -1
  142. package/dist/types/Items/Shape/Basic/Trapezoid/index.d.ts +1 -1
  143. package/dist/types/Items/Shape/Basic/Triangle/index.d.ts +1 -1
  144. package/dist/types/Items/Shape/Shape.d.ts +6 -6
  145. package/dist/types/Items/Sticker/Sticker.d.ts +4 -4
  146. package/dist/types/Items/Sticker/StickerOperation.d.ts +1 -1
  147. package/dist/types/Items/Transformation/Transformation.d.ts +1 -1
  148. package/dist/types/Items/Video/Video.d.ts +11 -11
  149. package/dist/types/Items/Video/VideoCommand.d.ts +1 -1
  150. package/dist/types/Items/Video/VideoHelpers.d.ts +1 -1
  151. package/dist/types/Keyboard/checkHotkeys.d.ts +1 -1
  152. package/dist/types/Keyboard/logHotkey.d.ts +1 -1
  153. package/dist/types/Keyboard/types.d.ts +1 -1
  154. package/dist/types/Pointer/Pointer.d.ts +2 -2
  155. package/dist/types/Presence/Presence.d.ts +5 -5
  156. package/dist/types/Selection/ConnectorTransformer/ConnectorTransformer.d.ts +5 -5
  157. package/dist/types/Selection/QuickAddButtons/QuickAddButtons.d.ts +4 -4
  158. package/dist/types/Selection/QuickAddButtons/quickAddHelpers.d.ts +5 -5
  159. package/dist/types/Selection/Selection.d.ts +14 -14
  160. package/dist/types/Selection/SelectionItems.d.ts +1 -1
  161. package/dist/types/Selection/SelectionTransformer.d.ts +4 -4
  162. package/dist/types/Selection/Transformer/TextTransformer/getTextResizeType.d.ts +1 -1
  163. package/dist/types/Selection/Transformer/Transformer.d.ts +8 -8
  164. package/dist/types/Selection/Transformer/TransformerHelpers/getFollowingComments.d.ts +3 -3
  165. package/dist/types/Selection/Transformer/TransformerHelpers/getOppositePoint.d.ts +1 -1
  166. package/dist/types/Selection/Transformer/TransformerHelpers/getResizeMatrix.d.ts +1 -1
  167. package/dist/types/Selection/Transformer/TransformerHelpers/getResizeType.d.ts +1 -1
  168. package/dist/types/Selection/Transformer/TransformerHelpers/getResizedMbr.d.ts +1 -1
  169. package/dist/types/Selection/Transformer/TransformerHelpers/handleMultipleItemsResize.d.ts +5 -5
  170. package/dist/types/Selection/Transformer/TransformerHelpers/switchResizeType.d.ts +1 -1
  171. package/dist/types/Selection/Transformer/TransformerHelpers/transformAINode.d.ts +6 -6
  172. package/dist/types/Selection/Transformer/TransformerHelpers/transformItems.d.ts +9 -9
  173. package/dist/types/Selection/Transformer/TransformerHelpers/transformRichText.d.ts +8 -8
  174. package/dist/types/Selection/Transformer/TransformerHelpers/transformShape.d.ts +9 -9
  175. package/dist/types/Selection/Transformer/TransformerHelpers/updateFrameChildren.d.ts +3 -3
  176. package/dist/types/SessionStorage.d.ts +8 -8
  177. package/dist/types/Settings.d.ts +2 -2
  178. package/dist/types/SpatialIndex/LayeredIndex/index.d.ts +2 -2
  179. package/dist/types/SpatialIndex/RTreeIndex/index.d.ts +2 -2
  180. package/dist/types/SpatialIndex/SpacialIndex.d.ts +7 -7
  181. package/dist/types/Tools/AddComment/AddComment.d.ts +2 -2
  182. package/dist/types/Tools/AddConnector/AddConnector.d.ts +9 -9
  183. package/dist/types/Tools/AddDrawing/AddDrawing.d.ts +6 -6
  184. package/dist/types/Tools/AddDrawing/AddHighlighter.d.ts +2 -2
  185. package/dist/types/Tools/AddFrame/AddFrame.d.ts +6 -6
  186. package/dist/types/Tools/AddShape/AddShape.d.ts +6 -6
  187. package/dist/types/Tools/AddSticker/AddSticker.d.ts +5 -5
  188. package/dist/types/Tools/AddText/AddText.d.ts +4 -4
  189. package/dist/types/Tools/BoardTool.d.ts +1 -1
  190. package/dist/types/Tools/BoardToolContext.d.ts +1 -1
  191. package/dist/types/Tools/CustomTool.d.ts +8 -8
  192. package/dist/types/Tools/Eraser/Eraser.d.ts +5 -5
  193. package/dist/types/Tools/ExportSnapshot/ExportSnapshot.d.ts +6 -6
  194. package/dist/types/Tools/ExportSnapshot/exportBoardSnapshot.d.ts +2 -2
  195. package/dist/types/Tools/ExportSnapshot/getDecorationResizeType.d.ts +2 -2
  196. package/dist/types/Tools/Navigate/Navigate.d.ts +2 -2
  197. package/dist/types/Tools/NestingHighlighter/NestingHighlighter.d.ts +3 -3
  198. package/dist/types/Tools/RelativeAlignment/RelativeAlignment.d.ts +7 -7
  199. package/dist/types/Tools/Select/Select.d.ts +6 -6
  200. package/dist/types/Tools/Tool.d.ts +1 -1
  201. package/dist/types/Tools/ToolContext.d.ts +1 -1
  202. package/dist/types/Tools/Tools.d.ts +5 -5
  203. package/dist/types/Validators/Validators.d.ts +1 -1
  204. package/dist/types/api/initBrowserSettings.d.ts +1 -1
  205. package/dist/types/api/initNodeSettings.d.ts +1 -1
  206. package/dist/types/index.d.ts +1 -1
  207. package/dist/types/itemFactories.d.ts +2 -2
  208. package/dist/types/parserHTML.d.ts +1 -1
  209. package/package.json +2 -1
@@ -1,4 +1,4 @@
1
- import { BaseOperation } from "Events/EventsOperations";
1
+ import { BaseOperation } from "../../../Events/EventsOperations";
2
2
  export type StarOperation = ToggleShine;
3
3
  interface ToggleShine extends BaseOperation<{
4
4
  isShining: boolean;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const Frame1x1: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const Frame16x9: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const Frame3x2: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const Frame4x3: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const Frame9x18: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const A4: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const Custom: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const Letter: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,16 +1,16 @@
1
1
  import { Mbr, Line, Point, Transformation, Path, Paths, Item, RichText, Matrix } from "..";
2
- import { Subject } from "Subject";
2
+ import { Subject } from "../../Subject";
3
3
  import { DrawingContext } from "../DrawingContext";
4
- import { Operation } from "Events";
4
+ import { Operation } from "../../Events";
5
5
  import { FrameOperation } from "./FrameOperation";
6
6
  import { FrameType } from "./Basic";
7
7
  import { GeometricNormal } from "../GeometricNormal";
8
- import { Board } from "Board";
9
- import { SnapshotInfo } from "Tools/ExportSnapshot/exportBoardSnapshot";
8
+ import { Board } from "../../Board";
9
+ import { SnapshotInfo } from "../../Tools/ExportSnapshot/exportBoardSnapshot";
10
10
  import { LinkTo } from "../LinkTo/LinkTo";
11
11
  import { FrameData } from "./FrameData";
12
- import { DocumentFactory } from "api/DocumentFactory";
13
- import { ResizeType } from "Selection/Transformer/TransformerHelpers/getResizeType";
12
+ import { DocumentFactory } from "../../api/DocumentFactory";
13
+ import { ResizeType } from "../../Selection/Transformer/TransformerHelpers/getResizeType";
14
14
  import { BaseItem } from "../BaseItem";
15
15
  export declare class Frame extends BaseItem {
16
16
  private getItemById;
@@ -1,13 +1,13 @@
1
- import { Subject } from "Subject";
1
+ import { Subject } from "../../Subject";
2
2
  import { DrawingContext } from "../DrawingContext";
3
3
  import { TransformationData } from "../Transformation/TransformationData";
4
4
  import { GroupOperation } from "./GroupOperation";
5
- import { Events, Operation } from "Events";
5
+ import { Events, Operation } from "../../Events";
6
6
  import { Mbr, Line, Point, Transformation, Item } from "..";
7
- import { Board } from "Board";
7
+ import { Board } from "../../Board";
8
8
  import { LinkTo } from "../LinkTo/LinkTo";
9
- import { BaseItem } from "Items/BaseItem/BaseItem";
10
- import { DocumentFactory } from "api/DocumentFactory";
9
+ import { BaseItem } from "../BaseItem/BaseItem";
10
+ import { DocumentFactory } from "../../api/DocumentFactory";
11
11
  export interface GroupData {
12
12
  readonly itemType: "Group";
13
13
  children: string[];
@@ -1,15 +1,15 @@
1
- import { Events, Operation } from "Events";
2
- import { Subject } from "Subject";
1
+ import { Events, Operation } from "../../Events";
2
+ import { Subject } from "../../Subject";
3
3
  import { DrawingContext } from "../DrawingContext";
4
4
  import { Path, Paths } from "../Path";
5
5
  import { Point } from "../Point";
6
6
  import { Transformation } from "../Transformation";
7
7
  import { TransformationData } from "../Transformation/TransformationData";
8
- import { Board } from "Board";
8
+ import { Board } from "../../Board";
9
9
  import { LinkTo } from "../LinkTo/LinkTo";
10
10
  import { ImageOperation } from "./ImageOperation";
11
- import { DocumentFactory } from "api/DocumentFactory";
12
- import { BaseItem } from "Items/BaseItem/BaseItem";
11
+ import { DocumentFactory } from "../../api/DocumentFactory";
12
+ import { BaseItem } from "../BaseItem/BaseItem";
13
13
  export interface ImageItemData {
14
14
  itemType: "Image";
15
15
  storageLink: string;
@@ -1,4 +1,4 @@
1
- import { Command, Operation } from 'Events';
1
+ import { Command, Operation } from '../../Events';
2
2
  import { ImageItem } from './Image';
3
3
  export declare class ImageCommand implements Command {
4
4
  private images;
@@ -1,6 +1,6 @@
1
- import type { Board } from 'Board';
1
+ import type { Board } from '../../Board';
2
2
  import type { ImageItem } from './Image';
3
- import { VideoItem } from 'Items/Video/Video';
3
+ import { VideoItem } from '../Video/Video';
4
4
  export declare function calculatePosition(boardImage: ImageItem | VideoItem, board: Board): {
5
5
  scaleX: number;
6
6
  scaleY: number;
@@ -12,7 +12,7 @@ import { Shape, ShapeData } from "./Shape";
12
12
  import { Sticker } from "./Sticker";
13
13
  import { StickerData } from "./Sticker/StickerOperation";
14
14
  import { VideoItem, VideoItemData } from "./Video";
15
- import { BaseItem, SerializedItemData } from "Items/BaseItem/BaseItem";
15
+ import { BaseItem, SerializedItemData } from "./BaseItem/BaseItem";
16
16
  export type Item = RichText | Shape | Connector | ImageItem | Drawing | Sticker | Frame | Placeholder | Comment | Group | AINode | VideoItem | AudioItem | BaseItem;
17
17
  export type ItemType = Item["itemType"];
18
18
  export type ItemData = ShapeData | RichTextData | ConnectorData | ImageItemData | DrawingData | StickerData | FrameData | PlaceholderData | CommentData | GroupData | AINodeData | VideoItemData | AudioItemData | SerializedItemData;
@@ -0,0 +1,23 @@
1
+ import { SubjectOperation } from "../../SubjectOperation";
2
+ import { LinkToOperation } from "./LinkToOperation";
3
+ import { Events } from "../../Events";
4
+ import { DocumentFactory } from "../../api/DocumentFactory";
5
+ import { DrawingContext } from "../DrawingContext";
6
+ export declare class LinkTo {
7
+ private id;
8
+ private events?;
9
+ readonly subject: SubjectOperation<LinkTo, LinkToOperation>;
10
+ link?: string;
11
+ transformationRenderBlock?: boolean;
12
+ constructor(id?: string, events?: Events | undefined);
13
+ serialize(): string | undefined;
14
+ deserialize(link?: string): this;
15
+ private emit;
16
+ setId(id: string): void;
17
+ apply(op: LinkToOperation): void;
18
+ private applySetLink;
19
+ setLinkTo(link: string): void;
20
+ removeLinkTo(): void;
21
+ render(context: DrawingContext, top: number, right: number, scale: number): void;
22
+ renderHTML(documentFactory: DocumentFactory): HTMLElement;
23
+ }
@@ -1,8 +1,8 @@
1
1
  import { Point } from "../Point";
2
2
  import { Line } from "../Line";
3
3
  import { Matrix } from "../Transformation";
4
- import { VerticalAlignment } from "Items/Alignment";
5
- import { DrawingContext } from "Items/DrawingContext";
4
+ import { VerticalAlignment } from "../Alignment";
5
+ import { DrawingContext } from "../DrawingContext";
6
6
  import { Geometry } from "../Geometry";
7
7
  import { GeometricNormal } from "../GeometricNormal";
8
8
  import { BorderStyle } from "../Path";
@@ -1,6 +1,6 @@
1
- import { Board } from 'Board';
2
- import { Camera } from 'Camera';
3
- import { Mbr } from 'Items';
1
+ import { Board } from '../../Board';
2
+ import { Camera } from '../../Camera';
3
+ import { Mbr } from '../../Items';
4
4
  import { RefObject } from 'react';
5
5
  export declare function updateRects(board: Board, ref: RefObject<HTMLElement>, mbr?: Mbr, verticalOffset?: number, horizontalOffset?: number, fit?: 'hyperLink' | 'boardMenu' | 'contextPanel' | 'linkToBtn' | 'comment' | 'threadPanel'): Mbr | null;
6
6
  export declare function getContextPanelRect(selectionMbr: Mbr, camera: Camera, panel: HTMLElement, toLeft: boolean, horizontalOffset?: number, verticalOffset?: number): Mbr;
@@ -1,4 +1,4 @@
1
- import { DrawingContext } from 'Items/DrawingContext';
1
+ import { DrawingContext } from '../DrawingContext';
2
2
  import { Geometry } from '../Geometry';
3
3
  import { Line } from '../Line';
4
4
  import { CubicBezier, QuadraticBezier } from '../Curve';
@@ -6,7 +6,7 @@ import { Point } from '../Point';
6
6
  import { Mbr } from '../Mbr';
7
7
  import { Arc, Matrix } from '..';
8
8
  import { GeometricNormal } from '../GeometricNormal';
9
- import { DocumentFactory } from 'api/DocumentFactory';
9
+ import { DocumentFactory } from '../../api/DocumentFactory';
10
10
  export type Segment = Line | QuadraticBezier | CubicBezier | Arc;
11
11
  export declare const LinePatterns: {
12
12
  solid: number[];
@@ -6,7 +6,7 @@ import { Point } from '../Point';
6
6
  import { BorderStyle, BorderWidth, Path, PathStylize } from './Path';
7
7
  import { Matrix } from '../Transformation';
8
8
  import { GeometricNormal } from '../GeometricNormal';
9
- import { DocumentFactory } from 'api/DocumentFactory';
9
+ import { DocumentFactory } from '../../api/DocumentFactory';
10
10
  export declare class Paths implements Geometry {
11
11
  private paths;
12
12
  private backgroundColor;
@@ -1,7 +1,7 @@
1
- import { Events, Operation } from "Events";
1
+ import { Events, Operation } from "../../Events";
2
2
  import { DrawingContext } from "../DrawingContext";
3
- import { ResizeType } from "Selection/Transformer/TransformerHelpers/getResizeType";
4
- import { Subject } from "Subject";
3
+ import { ResizeType } from "../../Selection/Transformer/TransformerHelpers/getResizeType";
4
+ import { Subject } from "../../Subject";
5
5
  import { GeometricNormal } from "../GeometricNormal";
6
6
  import { Line } from "../Line";
7
7
  import { Mbr } from "../Mbr";
@@ -1,5 +1,5 @@
1
- import { CustomTool } from "Tools/CustomTool";
2
- import { BaseItemData } from "Items/BaseItem/BaseItem";
1
+ import { CustomTool } from "../Tools/CustomTool";
2
+ import { BaseItemData } from "./BaseItem/BaseItem";
3
3
  type RegisterItemArgs = {
4
4
  item: any;
5
5
  defaultData: BaseItemData;
@@ -1,5 +1,5 @@
1
- import { DefaultTextStyles } from "Settings";
2
- import { Subject } from "Subject";
1
+ import { DefaultTextStyles } from "../../Settings";
2
+ import { Subject } from "../../Subject";
3
3
  import { BaseEditor, BaseSelection, Descendant, Operation as SlateOp, Operation } from "slate";
4
4
  import { HistoryEditor } from "slate-history";
5
5
  import { ReactEditor } from "slate-react";
@@ -7,7 +7,7 @@ import { HorisontalAlignment, VerticalAlignment } from "../Alignment";
7
7
  import { BlockNode, ListType, ParagraphNode } from "./Editor/BlockNode";
8
8
  import { TextNode, TextStyle } from "./Editor/TextNode";
9
9
  import { RichTextOperation } from "./RichTextOperations";
10
- import { MarkdownProcessor } from "Items/RichText/editorHelpers/markdown/markdownProcessor";
10
+ import { MarkdownProcessor } from "../RichText/editorHelpers/markdown/markdownProcessor";
11
11
  export declare class EditorContainer {
12
12
  private id;
13
13
  private emit;
@@ -1,10 +1,10 @@
1
- import { Board } from "Board";
2
- import { DocumentFactory } from "api/DocumentFactory";
3
- import { Camera } from "Camera";
4
- import { Operation } from "Events";
5
- import { SelectionContext } from "Selection";
6
- import { DefaultTextStyles } from "Settings";
7
- import { Subject } from "Subject";
1
+ import { Board } from "../../Board";
2
+ import { DocumentFactory } from "../../api/DocumentFactory";
3
+ import { Camera } from "../../Camera";
4
+ import { Operation } from "../../Events";
5
+ import { SelectionContext } from "../../Selection";
6
+ import { DefaultTextStyles } from "../../Settings";
7
+ import { Subject } from "../../Subject";
8
8
  import { BaseRange, BaseSelection, Descendant, Operation as SlateOp } from "slate";
9
9
  import { ItemType, Mbr, Point, RichTextData, Transformation } from "..";
10
10
  import { HorisontalAlignment, VerticalAlignment } from "../Alignment";
@@ -1,7 +1,7 @@
1
- import { Board } from 'Board';
1
+ import { Board } from '../../Board';
2
2
  import { RichText } from './RichText';
3
3
  import { GroupEdit, RichTextOperation } from './RichTextOperations';
4
- import { Command } from 'Events';
4
+ import { Command } from '../../Events';
5
5
  export declare class RichTextCommand implements Command {
6
6
  private board;
7
7
  private richText;
@@ -1,7 +1,7 @@
1
1
  import { BaseSelection, Operation } from 'slate';
2
2
  import { HorisontalAlignment, VerticalAlignment } from '../Alignment';
3
3
  import { TextStyle } from './Editor/TextNode';
4
- import { SelectionContext } from 'Selection/Selection';
4
+ import { SelectionContext } from '../../Selection/Selection';
5
5
  interface RichTextBaseOp {
6
6
  class: 'RichText';
7
7
  item: string[];
@@ -1,4 +1,4 @@
1
- import { ParagraphNode } from 'Items/RichText/Editor/BlockNode';
1
+ import { ParagraphNode } from '../../../RichText/Editor/BlockNode';
2
2
  import { CustomEditor } from 'Items/RichText/Editor/Editor.d';
3
- import { HorisontalAlignment } from 'Items/Alignment';
3
+ import { HorisontalAlignment } from '../../../Alignment';
4
4
  export declare function createParagraphNode(text: string, editor: CustomEditor, horisontalAlignment?: HorisontalAlignment): ParagraphNode;
@@ -1,3 +1,3 @@
1
- import { TextNode } from 'Items/RichText/Editor/TextNode';
1
+ import { TextNode } from '../../../RichText/Editor/TextNode';
2
2
  import { Editor } from 'slate';
3
3
  export declare function getAllTextNodesInSelection(editor: Editor): TextNode[];
@@ -1,3 +1,3 @@
1
- import { BlockNode } from 'Items/RichText/Editor/BlockNode';
1
+ import { BlockNode } from '../../../RichText/Editor/BlockNode';
2
2
  import { Editor } from 'slate';
3
3
  export declare function getSelectedBlockNode(editor: Editor): BlockNode | null;
@@ -1,3 +1,3 @@
1
- import { TextNode } from 'Items/RichText/Editor/TextNode';
1
+ import { TextNode } from '../../../RichText/Editor/TextNode';
2
2
  import { Editor } from 'slate';
3
3
  export declare function getSelectionMarks(editor: Editor): Omit<TextNode, 'text'> | null;
@@ -1,3 +1,3 @@
1
- import { BlockType } from 'Items/RichText/Editor/BlockNode';
1
+ import { BlockType } from '../../../RichText/Editor/BlockNode';
2
2
  import { Editor } from 'slate';
3
3
  export declare function isBlockActive(editor: Editor, format: BlockType): boolean;
@@ -1,3 +1,3 @@
1
- import { BlockNode } from 'Items/RichText/Editor/BlockNode';
1
+ import { BlockNode } from '../../../RichText/Editor/BlockNode';
2
2
  import { CustomEditor } from 'Items/RichText/Editor/Editor.d';
3
3
  export declare function getBlockParentList(editor: CustomEditor, blockPath: number[]): [node: BlockNode, path: number[]] | null;
@@ -1,3 +1,3 @@
1
- import { ListType } from 'Items/RichText/Editor/BlockNode';
1
+ import { ListType } from '../../../RichText/Editor/BlockNode';
2
2
  import { CustomEditor } from 'Items/RichText/Editor/Editor.d';
3
3
  export declare function getListTypeAtSelectionStart(editor: CustomEditor): ListType | null;
@@ -1,3 +1,3 @@
1
- import { ListType } from 'Items/RichText/Editor/BlockNode';
1
+ import { ListType } from '../../../RichText/Editor/BlockNode';
2
2
  import { CustomEditor } from 'Items/RichText/Editor/Editor.d';
3
3
  export declare function toggleListType(editor: CustomEditor, targetListType: ListType, shouldWrap?: boolean): boolean;
@@ -1,3 +1,3 @@
1
- import { ListType } from 'Items/RichText/Editor/BlockNode';
1
+ import { ListType } from '../../../RichText/Editor/BlockNode';
2
2
  import { CustomEditor } from 'Items/RichText/Editor/Editor.d';
3
3
  export declare function toggleListTypeForSelection(editor: CustomEditor, targetListType: ListType): boolean;
@@ -1,4 +1,4 @@
1
- import { ListType } from 'Items/RichText/Editor/BlockNode';
1
+ import { ListType } from '../../../RichText/Editor/BlockNode';
2
2
  import { Location } from 'slate';
3
3
  import { CustomEditor } from 'Items/RichText/Editor/Editor.d';
4
4
  export declare function wrapIntoList(editor: CustomEditor, targetListType: ListType, location: Location): void;
@@ -1,6 +1,6 @@
1
1
  import { Editor } from 'slate';
2
- import { BlockNode } from 'Items/RichText/Editor/BlockNode';
3
- import { Subject } from 'Subject';
2
+ import { BlockNode } from '../../../RichText/Editor/BlockNode';
3
+ import { Subject } from '../../../../Subject';
4
4
  export declare class MarkdownProcessor {
5
5
  private chunksQueue;
6
6
  private isProcessingChunk;
@@ -1,3 +1,3 @@
1
- import { BlockNode } from 'Items/RichText/Editor/BlockNode';
1
+ import { BlockNode } from '../../../RichText/Editor/BlockNode';
2
2
  import { Editor } from 'slate';
3
3
  export declare function insertCopiedNodes(editor: Editor, nodes: BlockNode[]): boolean;
@@ -1,3 +1,3 @@
1
- import { TextStyle } from 'Items/RichText/Editor/TextNode';
1
+ import { TextStyle } from '../../../RichText/Editor/TextNode';
2
2
  import { Editor } from 'slate';
3
3
  export declare function setSelectionFontStyle(editor: Editor, style: TextStyle | TextStyle[]): void;
@@ -1,3 +1,3 @@
1
- import { HorisontalAlignment } from 'Items/Alignment';
1
+ import { HorisontalAlignment } from '../../../Alignment';
2
2
  import { Editor } from 'slate';
3
3
  export declare function setSelectionHorisontalAlignment(editor: Editor, horisontalAlignment: HorisontalAlignment, selectionContext?: string): void;
@@ -1,8 +1,8 @@
1
1
  import { BaseEditor } from 'slate';
2
- import { BlockNode, NoneListBlockNode } from 'Items/RichText/Editor/BlockNode';
2
+ import { BlockNode, NoneListBlockNode } from '../RichText/Editor/BlockNode';
3
3
  import { ReactEditor } from 'slate-react';
4
4
  import { HistoryEditor } from 'slate-history';
5
- import { HorisontalAlignment } from 'Items/Alignment';
5
+ import { HorisontalAlignment } from '../Alignment';
6
6
  export declare function setNodeChildrenStyles({ editor, horisontalAlignment, node, }: {
7
7
  editor?: BaseEditor & ReactEditor & HistoryEditor;
8
8
  horisontalAlignment?: HorisontalAlignment;
@@ -1,4 +1,4 @@
1
- import { Mbr, Paths } from 'Items';
1
+ import { Mbr, Paths } from '../../../../Items';
2
2
  export declare const BPMN_Annotation: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Point, Paths } from 'Items';
1
+ import { Mbr, Point, Paths } from '../../../../Items';
2
2
  export declare const BPMN_DataObject: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Point, Paths } from 'Items';
1
+ import { Mbr, Point, Paths } from '../../../../Items';
2
2
  export declare const BPMN_DataStore: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const BPMN_EndEvent: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Point, Paths } from 'Items';
1
+ import { Mbr, Point, Paths } from '../../../../Items';
2
2
  export declare const BPMN_EventSubprocess: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const BPMN_Gateway: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Point, Paths } from 'Items';
1
+ import { Mbr, Point, Paths } from '../../../../Items';
2
2
  export declare const BPMN_GatewayParallel: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Point, Paths } from 'Items';
1
+ import { Mbr, Point, Paths } from '../../../../Items';
2
2
  export declare const BPMN_GatewayXOR: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const BPMN_Group: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Point, Paths } from 'Items';
1
+ import { Mbr, Point, Paths } from '../../../../Items';
2
2
  export declare const BPMN_IntermediateEvent: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Point, Paths } from 'Items';
1
+ import { Mbr, Point, Paths } from '../../../../Items';
2
2
  export declare const BPMN_IntermediateEventNoneInterrupting: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Point, Paths } from 'Items';
1
+ import { Mbr, Point, Paths } from '../../../../Items';
2
2
  export declare const BPMN_Participant: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const BPMN_StartEvent: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const BPMN_StartEventNoneInterrupting: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const BPMN_Task: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Point, Paths } from 'Items';
1
+ import { Mbr, Point, Paths } from '../../../../Items';
2
2
  export declare const BPMN_Transaction: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const ArrowBlockLeft: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const ArrowBlockRight: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const ArrowLeft: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const ArrowLeftRight: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const ArrowRight: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path } from 'Items';
1
+ import { Mbr, Path } from '../../../../Items';
2
2
  export declare const BracesLeft: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path } from 'Items';
1
+ import { Mbr, Path } from '../../../../Items';
2
2
  export declare const BracesRight: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const Circle: {
3
3
  name: string;
4
4
  textBounds: Mbr;
@@ -1,4 +1,4 @@
1
- import { Mbr, Path, Point } from 'Items';
1
+ import { Mbr, Path, Point } from '../../../../Items';
2
2
  export declare const Cloud: {
3
3
  name: string;
4
4
  textBounds: Mbr;