microboard-temp 0.5.13 → 0.5.14

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 (203) hide show
  1. package/dist/types/Board.d.ts +18 -18
  2. package/dist/types/BoardCommand.d.ts +1 -1
  3. package/dist/types/Camera/Camera.d.ts +4 -4
  4. package/dist/types/Events/Command.d.ts +2 -2
  5. package/dist/types/Events/Events.d.ts +4 -4
  6. package/dist/types/Events/EventsCommand.d.ts +1 -1
  7. package/dist/types/Events/EventsOperations.d.ts +6 -6
  8. package/dist/types/Events/Log/EventsLog.d.ts +1 -1
  9. package/dist/types/Events/Log/deserializeAndApplyToList.d.ts +1 -1
  10. package/dist/types/Events/Log/deserializeIntoList.d.ts +1 -1
  11. package/dist/types/Events/Log/getSnapshotFromList.d.ts +1 -1
  12. package/dist/types/Events/Log/insertEventsFromOtherConnectionsIntoList.d.ts +1 -1
  13. package/dist/types/Events/MessageRouter/boardMessageInterface.d.ts +2 -2
  14. package/dist/types/Events/MessageRouter/createMessageRouter.d.ts +1 -1
  15. package/dist/types/Events/MessageRouter/handleAiChatMassage.d.ts +1 -1
  16. package/dist/types/Events/MessageRouter/handleBoardEventMessage.d.ts +1 -1
  17. package/dist/types/Events/MessageRouter/handleBoardSubscriptionCompletedMsg.d.ts +1 -1
  18. package/dist/types/Events/MessageRouter/handleConfirmation.d.ts +1 -1
  19. package/dist/types/Events/MessageRouter/handleCreateSnapshotRequestMessage.d.ts +1 -1
  20. package/dist/types/Events/MessageRouter/handleModeMessage.d.ts +1 -1
  21. package/dist/types/Events/MessageRouter/handlePresenceEventMessage.d.ts +2 -2
  22. package/dist/types/Events/SyncLog.d.ts +1 -1
  23. package/dist/types/Events/Transform/Transform.d.ts +1 -1
  24. package/dist/types/Events/handleRemoveSnappedObject.d.ts +1 -1
  25. package/dist/types/Items/AINode/AINode.d.ts +16 -16
  26. package/dist/types/Items/AINode/AINodeData.d.ts +6 -6
  27. package/dist/types/Items/Anchor/Anchor.d.ts +1 -1
  28. package/dist/types/Items/Audio/Audio.d.ts +6 -6
  29. package/dist/types/Items/Audio/AudioCommand.d.ts +1 -1
  30. package/dist/types/Items/Audio/AudioHelpers.d.ts +3 -3
  31. package/dist/types/Items/BaseItem/BaseItem.d.ts +11 -11
  32. package/dist/types/Items/Comment/Comment.d.ts +3 -3
  33. package/dist/types/Items/Connector/Connector.d.ts +5 -5
  34. package/dist/types/Items/Connector/Pointers/Pointers.d.ts +2 -2
  35. package/dist/types/Items/Connector/Pointers/index.d.ts +1 -1
  36. package/dist/types/Items/Connector/getLine/findOrthogonalPath.d.ts +1 -1
  37. package/dist/types/Items/Connector/getLine/getOrthogonalLine.d.ts +1 -1
  38. package/dist/types/Items/Connector/getLine/getStraightLine.d.ts +1 -1
  39. package/dist/types/Items/Drawing/Drawing.d.ts +5 -5
  40. package/dist/types/Items/Drawing/DrawingCommand.d.ts +1 -1
  41. package/dist/types/Items/DrawingContext.d.ts +1 -1
  42. package/dist/types/Items/Examples/CardGame/Card/Card.d.ts +7 -7
  43. package/dist/types/Items/Examples/CardGame/Card/CardOperation.d.ts +1 -1
  44. package/dist/types/Items/Examples/CardGame/Deck/Deck.d.ts +6 -6
  45. package/dist/types/Items/Examples/CardGame/Deck/DeckOperation.d.ts +1 -1
  46. package/dist/types/Items/Examples/CardGame/Dice/AddDice.d.ts +2 -2
  47. package/dist/types/Items/Examples/CardGame/Dice/DiceOperation.d.ts +1 -1
  48. package/dist/types/Items/Examples/CardGame/Screen/AddScreen.d.ts +2 -2
  49. package/dist/types/Items/Examples/CardGame/Screen/Screen.d.ts +4 -4
  50. package/dist/types/Items/Examples/CardGame/Screen/ScreenOperation.d.ts +1 -1
  51. package/dist/types/Items/Examples/Counter/AddCounter.d.ts +2 -2
  52. package/dist/types/Items/Examples/Counter/Counter.d.ts +8 -8
  53. package/dist/types/Items/Examples/Counter/CounterOperation.d.ts +1 -1
  54. package/dist/types/Items/Examples/Star/AddStar.d.ts +2 -2
  55. package/dist/types/Items/Examples/Star/Star.d.ts +9 -9
  56. package/dist/types/Items/Examples/Star/StarOperation.d.ts +1 -1
  57. package/dist/types/Items/Frame/Basic/1-1/index.d.ts +1 -1
  58. package/dist/types/Items/Frame/Basic/16-9/index.d.ts +1 -1
  59. package/dist/types/Items/Frame/Basic/3-2/index.d.ts +1 -1
  60. package/dist/types/Items/Frame/Basic/4-3/index.d.ts +1 -1
  61. package/dist/types/Items/Frame/Basic/9-18/index.d.ts +1 -1
  62. package/dist/types/Items/Frame/Basic/A4/index.d.ts +1 -1
  63. package/dist/types/Items/Frame/Basic/Custom/index.d.ts +1 -1
  64. package/dist/types/Items/Frame/Basic/Letter/index.d.ts +1 -1
  65. package/dist/types/Items/Frame/Frame.d.ts +6 -6
  66. package/dist/types/Items/Group/Group.d.ts +5 -5
  67. package/dist/types/Items/Image/Image.d.ts +5 -5
  68. package/dist/types/Items/Image/ImageCommand.d.ts +1 -1
  69. package/dist/types/Items/Image/calculatePosition.d.ts +2 -2
  70. package/dist/types/Items/Item.d.ts +1 -1
  71. package/dist/types/Items/LinkTo/LinkTo.d.ts +23 -0
  72. package/dist/types/Items/Mbr/Mbr.d.ts +2 -2
  73. package/dist/types/Items/Mbr/updateRects.d.ts +3 -3
  74. package/dist/types/Items/Path/Path.d.ts +2 -2
  75. package/dist/types/Items/Path/Paths.d.ts +1 -1
  76. package/dist/types/Items/Placeholder/Placeholder.d.ts +3 -3
  77. package/dist/types/Items/RegisterItem.d.ts +2 -2
  78. package/dist/types/Items/RichText/EditorContainer.d.ts +3 -3
  79. package/dist/types/Items/RichText/RichText.d.ts +7 -7
  80. package/dist/types/Items/RichText/RichTextCommand.d.ts +2 -2
  81. package/dist/types/Items/RichText/RichTextOperations.d.ts +1 -1
  82. package/dist/types/Items/RichText/editorHelpers/common/createParagraphNode.d.ts +2 -2
  83. package/dist/types/Items/RichText/editorHelpers/common/getAllTextNodesInSelection.d.ts +1 -1
  84. package/dist/types/Items/RichText/editorHelpers/common/getSelectedBlockNode.d.ts +1 -1
  85. package/dist/types/Items/RichText/editorHelpers/common/getSelectionMarks.d.ts +1 -1
  86. package/dist/types/Items/RichText/editorHelpers/common/isBlockActive.d.ts +1 -1
  87. package/dist/types/Items/RichText/editorHelpers/lists/getBlockParentList.d.ts +1 -1
  88. package/dist/types/Items/RichText/editorHelpers/lists/getListTypeAtSelectionStart.d.ts +1 -1
  89. package/dist/types/Items/RichText/editorHelpers/lists/toggleListType.d.ts +1 -1
  90. package/dist/types/Items/RichText/editorHelpers/lists/toggleListTypeForSelection.d.ts +1 -1
  91. package/dist/types/Items/RichText/editorHelpers/lists/wrapIntoList.d.ts +1 -1
  92. package/dist/types/Items/RichText/editorHelpers/markdown/markdownProcessor.d.ts +2 -2
  93. package/dist/types/Items/RichText/editorHelpers/selectionOps/insertCopiedNodes.d.ts +1 -1
  94. package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionFontStyle.d.ts +1 -1
  95. package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionHorisontalAlignment.d.ts +1 -1
  96. package/dist/types/Items/RichText/setNodeStyles.d.ts +2 -2
  97. package/dist/types/Items/Shape/BPMN/BPMN_Annotation/index.d.ts +1 -1
  98. package/dist/types/Items/Shape/BPMN/BPMN_DataObject/index.d.ts +1 -1
  99. package/dist/types/Items/Shape/BPMN/BPMN_DataStore/index.d.ts +1 -1
  100. package/dist/types/Items/Shape/BPMN/BPMN_EndEvent/index.d.ts +1 -1
  101. package/dist/types/Items/Shape/BPMN/BPMN_EventSubprocess/index.d.ts +1 -1
  102. package/dist/types/Items/Shape/BPMN/BPMN_Gateway/index.d.ts +1 -1
  103. package/dist/types/Items/Shape/BPMN/BPMN_GatewayParallel/index.d.ts +1 -1
  104. package/dist/types/Items/Shape/BPMN/BPMN_GatewayXOR/index.d.ts +1 -1
  105. package/dist/types/Items/Shape/BPMN/BPMN_Group/index.d.ts +1 -1
  106. package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEvent/index.d.ts +1 -1
  107. package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEventNoneInterrupting/index.d.ts +1 -1
  108. package/dist/types/Items/Shape/BPMN/BPMN_Participant/index.d.ts +1 -1
  109. package/dist/types/Items/Shape/BPMN/BPMN_StartEvent/index.d.ts +1 -1
  110. package/dist/types/Items/Shape/BPMN/BPMN_StartEventNoneInterrupting/index.d.ts +1 -1
  111. package/dist/types/Items/Shape/BPMN/BPMN_Task/index.d.ts +1 -1
  112. package/dist/types/Items/Shape/BPMN/BPMN_Transaction/index.d.ts +1 -1
  113. package/dist/types/Items/Shape/Basic/ArrowBlockLeft/index.d.ts +1 -1
  114. package/dist/types/Items/Shape/Basic/ArrowBlockRigth/index.d.ts +1 -1
  115. package/dist/types/Items/Shape/Basic/ArrowLeft/index.d.ts +1 -1
  116. package/dist/types/Items/Shape/Basic/ArrowLeftRight/index.d.ts +1 -1
  117. package/dist/types/Items/Shape/Basic/ArrowRight/index.d.ts +1 -1
  118. package/dist/types/Items/Shape/Basic/BracesLeft/index.d.ts +1 -1
  119. package/dist/types/Items/Shape/Basic/BracesRight/index.d.ts +1 -1
  120. package/dist/types/Items/Shape/Basic/Circle/index.d.ts +1 -1
  121. package/dist/types/Items/Shape/Basic/Cloud/index.d.ts +1 -1
  122. package/dist/types/Items/Shape/Basic/Cross/index.d.ts +1 -1
  123. package/dist/types/Items/Shape/Basic/Cylinder/index.d.ts +1 -1
  124. package/dist/types/Items/Shape/Basic/Hexagon/index.d.ts +1 -1
  125. package/dist/types/Items/Shape/Basic/Octagon/index.d.ts +1 -1
  126. package/dist/types/Items/Shape/Basic/Parallelogram/index.d.ts +1 -1
  127. package/dist/types/Items/Shape/Basic/Pentagon/index.d.ts +1 -1
  128. package/dist/types/Items/Shape/Basic/PredefinedProcess/index.d.ts +1 -1
  129. package/dist/types/Items/Shape/Basic/Rectangle/index.d.ts +1 -1
  130. package/dist/types/Items/Shape/Basic/ReversedParallelogram/index.d.ts +1 -1
  131. package/dist/types/Items/Shape/Basic/ReversedTriangle/index.d.ts +1 -1
  132. package/dist/types/Items/Shape/Basic/Rhombus/index.d.ts +1 -1
  133. package/dist/types/Items/Shape/Basic/RoundedRectangle/index.d.ts +1 -1
  134. package/dist/types/Items/Shape/Basic/SpeachBubble/index.d.ts +1 -1
  135. package/dist/types/Items/Shape/Basic/Star/index.d.ts +1 -1
  136. package/dist/types/Items/Shape/Basic/Trapezoid/index.d.ts +1 -1
  137. package/dist/types/Items/Shape/Basic/Triangle/index.d.ts +1 -1
  138. package/dist/types/Items/Shape/Shape.d.ts +6 -6
  139. package/dist/types/Items/Sticker/Sticker.d.ts +4 -4
  140. package/dist/types/Items/Sticker/StickerOperation.d.ts +1 -1
  141. package/dist/types/Items/Transformation/Transformation.d.ts +1 -1
  142. package/dist/types/Items/Video/Video.d.ts +11 -11
  143. package/dist/types/Items/Video/VideoCommand.d.ts +1 -1
  144. package/dist/types/Items/Video/VideoHelpers.d.ts +1 -1
  145. package/dist/types/Keyboard/checkHotkeys.d.ts +1 -1
  146. package/dist/types/Keyboard/logHotkey.d.ts +1 -1
  147. package/dist/types/Keyboard/types.d.ts +1 -1
  148. package/dist/types/Pointer/Pointer.d.ts +2 -2
  149. package/dist/types/Presence/Presence.d.ts +5 -5
  150. package/dist/types/Selection/ConnectorTransformer/ConnectorTransformer.d.ts +5 -5
  151. package/dist/types/Selection/QuickAddButtons/QuickAddButtons.d.ts +4 -4
  152. package/dist/types/Selection/QuickAddButtons/quickAddHelpers.d.ts +5 -5
  153. package/dist/types/Selection/Selection.d.ts +14 -14
  154. package/dist/types/Selection/SelectionItems.d.ts +1 -1
  155. package/dist/types/Selection/SelectionTransformer.d.ts +4 -4
  156. package/dist/types/Selection/Transformer/TextTransformer/getTextResizeType.d.ts +1 -1
  157. package/dist/types/Selection/Transformer/Transformer.d.ts +8 -8
  158. package/dist/types/Selection/Transformer/TransformerHelpers/getFollowingComments.d.ts +3 -3
  159. package/dist/types/Selection/Transformer/TransformerHelpers/getOppositePoint.d.ts +1 -1
  160. package/dist/types/Selection/Transformer/TransformerHelpers/getResizeMatrix.d.ts +1 -1
  161. package/dist/types/Selection/Transformer/TransformerHelpers/getResizeType.d.ts +1 -1
  162. package/dist/types/Selection/Transformer/TransformerHelpers/getResizedMbr.d.ts +1 -1
  163. package/dist/types/Selection/Transformer/TransformerHelpers/handleMultipleItemsResize.d.ts +5 -5
  164. package/dist/types/Selection/Transformer/TransformerHelpers/switchResizeType.d.ts +1 -1
  165. package/dist/types/Selection/Transformer/TransformerHelpers/transformAINode.d.ts +6 -6
  166. package/dist/types/Selection/Transformer/TransformerHelpers/transformItems.d.ts +9 -9
  167. package/dist/types/Selection/Transformer/TransformerHelpers/transformRichText.d.ts +8 -8
  168. package/dist/types/Selection/Transformer/TransformerHelpers/transformShape.d.ts +9 -9
  169. package/dist/types/Selection/Transformer/TransformerHelpers/updateFrameChildren.d.ts +3 -3
  170. package/dist/types/SessionStorage.d.ts +8 -8
  171. package/dist/types/Settings.d.ts +2 -2
  172. package/dist/types/SpatialIndex/LayeredIndex/index.d.ts +2 -2
  173. package/dist/types/SpatialIndex/RTreeIndex/index.d.ts +2 -2
  174. package/dist/types/SpatialIndex/SpacialIndex.d.ts +7 -7
  175. package/dist/types/Tools/AddComment/AddComment.d.ts +2 -2
  176. package/dist/types/Tools/AddConnector/AddConnector.d.ts +9 -9
  177. package/dist/types/Tools/AddDrawing/AddDrawing.d.ts +6 -6
  178. package/dist/types/Tools/AddDrawing/AddHighlighter.d.ts +2 -2
  179. package/dist/types/Tools/AddFrame/AddFrame.d.ts +6 -6
  180. package/dist/types/Tools/AddShape/AddShape.d.ts +6 -6
  181. package/dist/types/Tools/AddSticker/AddSticker.d.ts +5 -5
  182. package/dist/types/Tools/AddText/AddText.d.ts +4 -4
  183. package/dist/types/Tools/BoardTool.d.ts +1 -1
  184. package/dist/types/Tools/BoardToolContext.d.ts +1 -1
  185. package/dist/types/Tools/CustomTool.d.ts +8 -8
  186. package/dist/types/Tools/Eraser/Eraser.d.ts +5 -5
  187. package/dist/types/Tools/ExportSnapshot/ExportSnapshot.d.ts +6 -6
  188. package/dist/types/Tools/ExportSnapshot/exportBoardSnapshot.d.ts +2 -2
  189. package/dist/types/Tools/ExportSnapshot/getDecorationResizeType.d.ts +2 -2
  190. package/dist/types/Tools/Navigate/Navigate.d.ts +2 -2
  191. package/dist/types/Tools/NestingHighlighter/NestingHighlighter.d.ts +3 -3
  192. package/dist/types/Tools/RelativeAlignment/RelativeAlignment.d.ts +7 -7
  193. package/dist/types/Tools/Select/Select.d.ts +6 -6
  194. package/dist/types/Tools/Tool.d.ts +1 -1
  195. package/dist/types/Tools/ToolContext.d.ts +1 -1
  196. package/dist/types/Tools/Tools.d.ts +5 -5
  197. package/dist/types/Validators/Validators.d.ts +1 -1
  198. package/dist/types/api/initBrowserSettings.d.ts +1 -1
  199. package/dist/types/api/initNodeSettings.d.ts +1 -1
  200. package/dist/types/index.d.ts +1 -1
  201. package/dist/types/itemFactories.d.ts +2 -2
  202. package/dist/types/parserHTML.d.ts +1 -1
  203. package/package.json +2 -1
@@ -1,20 +1,20 @@
1
- import { BoardOps, ItemsIndexRecord } from "BoardOperations";
2
- import { Camera } from "Camera";
3
- import { Events, Operation } from "Events";
4
- import { SyncBoardEvent } from "Events/Events";
5
- import { FrameData, Item, ItemData, Matrix, Mbr } from "Items";
6
- import { AINode } from "Items/AINode";
7
- import { DrawingContext } from "Items/DrawingContext";
8
- import { Group } from "Items/Group";
9
- import { ImageItem } from "Items/Image";
10
- import { Keyboard } from "Keyboard";
11
- import { Pointer } from "Pointer";
12
- import { Presence } from "Presence/Presence";
13
- import { BoardSelection } from "Selection";
14
- import { SpatialIndex } from "SpatialIndex";
15
- import { Subject } from "Subject";
16
- import { Tools } from "Tools";
17
- import { ItemsMap } from "Validators";
1
+ import { BoardOps, ItemsIndexRecord } from "./BoardOperations";
2
+ import { Camera } from "./Camera";
3
+ import { Events, Operation } from "./Events";
4
+ import { SyncBoardEvent } from "./Events/Events";
5
+ import { FrameData, Item, ItemData, Matrix, Mbr } from "./Items";
6
+ import { AINode } from "./Items/AINode";
7
+ import { DrawingContext } from "./Items/DrawingContext";
8
+ import { Group } from "./Items/Group";
9
+ import { ImageItem } from "./Items/Image";
10
+ import { Keyboard } from "./Keyboard";
11
+ import { Pointer } from "./Pointer";
12
+ import { Presence } from "./Presence/Presence";
13
+ import { BoardSelection } from "./Selection";
14
+ import { SpatialIndex } from "./SpatialIndex";
15
+ import { Subject } from "./Subject";
16
+ import { Tools } from "./Tools";
17
+ import { ItemsMap } from "./Validators";
18
18
  import { ItemDataWithId } from "./Items/Item";
19
19
  export type InterfaceType = "edit" | "view" | "loading";
20
20
  export declare class Board {
@@ -32,7 +32,7 @@ export declare class Board {
32
32
  readonly camera: Camera;
33
33
  readonly presence: Presence;
34
34
  index: SpatialIndex;
35
- items: import("SpatialIndex").Items;
35
+ items: import("./SpatialIndex").Items;
36
36
  readonly keyboard: Keyboard;
37
37
  private drawingContext;
38
38
  private interfaceType;
@@ -1,6 +1,6 @@
1
1
  import { Command } from './Events';
2
2
  import { BoardOps } from './BoardOperations';
3
- import { Board } from 'Board';
3
+ import { Board } from './Board';
4
4
  export declare class BoardCommand implements Command {
5
5
  private board;
6
6
  private operation;
@@ -1,7 +1,7 @@
1
- import { Matrix, Point, Mbr, Item } from 'Items';
2
- import { Keyboard } from 'Keyboard';
3
- import { Pointer } from 'Pointer';
4
- import { Subject } from 'Subject';
1
+ import { Matrix, Point, Mbr, Item } from '../Items';
2
+ import { Keyboard } from '../Keyboard';
3
+ import { Pointer } from '../Pointer';
4
+ import { Subject } from '../Subject';
5
5
  export declare class Camera {
6
6
  private boardPointer;
7
7
  subject: Subject<Camera>;
@@ -1,6 +1,6 @@
1
- import { Board } from 'Board';
1
+ import { Board } from '../Board';
2
2
  import { BaseOperation, ItemOperation, Operation } from './EventsOperations';
3
- import { Item, TransformationOperation } from 'Items';
3
+ import { Item, TransformationOperation } from '../Items';
4
4
  export interface Command {
5
5
  apply(): void;
6
6
  revert(): void;
@@ -1,10 +1,10 @@
1
- import { Connection } from 'Settings';
2
- import { Board } from 'Board';
3
- import { Subject } from 'Subject';
1
+ import { Connection } from '../Settings';
2
+ import { Board } from '../Board';
3
+ import { Subject } from '../Subject';
4
4
  import { Command } from './Command';
5
5
  import { EventsLog } from './Log';
6
6
  import { Operation } from './EventsOperations';
7
- import { PresenceEventType } from 'Presence/Events';
7
+ import { PresenceEventType } from '../Presence/Events';
8
8
  export interface BoardEvent {
9
9
  order: number;
10
10
  body: BoardEventBody;
@@ -1,6 +1,6 @@
1
1
  import { EventsOperation } from "./EventsOperations";
2
2
  import { Command } from "./Command";
3
- import { Board } from "Board";
3
+ import { Board } from "../Board";
4
4
  export declare class EventsCommand implements Command {
5
5
  private board;
6
6
  private operation;
@@ -3,16 +3,16 @@ import { ShapeOperation } from "../Items/Shape";
3
3
  import { RichTextOperation } from "../Items";
4
4
  import { BoardOps } from "../BoardOperations";
5
5
  import { ConnectorOperation } from "../Items/Connector";
6
- import { DrawingOperation } from "Items/Drawing/DrawingOperation";
6
+ import { DrawingOperation } from "../Items/Drawing/DrawingOperation";
7
7
  import { StickerOperation } from "../Items/Sticker/StickerOperation";
8
8
  import { FrameOperation } from "../Items/Frame";
9
9
  import { LinkToOperation } from "../Items/LinkTo/LinkToOperation";
10
- import { PlaceholderOperation } from "Items/Placeholder/PlaceholderOperation";
11
- import { GroupOperation } from "Items/Group/GroupOperation";
10
+ import { PlaceholderOperation } from "../Items/Placeholder/PlaceholderOperation";
11
+ import { GroupOperation } from "../Items/Group/GroupOperation";
12
12
  import { CommentOperation } from "../Items/Comment";
13
- import { ImageOperation } from "Items/Image";
14
- import { VideoOperation } from "Items/Video/VideoOperation";
15
- import { AudioOperation } from "Items/Audio/AudioOperation";
13
+ import { ImageOperation } from "../Items/Image";
14
+ import { VideoOperation } from "../Items/Video/VideoOperation";
15
+ import { AudioOperation } from "../Items/Audio/AudioOperation";
16
16
  interface Undo {
17
17
  class: "Events";
18
18
  method: "undo";
@@ -1,4 +1,4 @@
1
- import { Board, BoardSnapshot } from 'Board';
1
+ import { Board, BoardSnapshot } from '../../Board';
2
2
  import { BoardEvent, BoardEventPack, SyncBoardEvent, SyncEvent } from '../Events';
3
3
  import { EventsList } from './createEventsList';
4
4
  import { Command } from '../Command';
@@ -1,4 +1,4 @@
1
- import { Board } from "Board";
1
+ import { Board } from "../../Board";
2
2
  import { SyncBoardEvent } from "../Events";
3
3
  import { EventsList } from "./createEventsList";
4
4
  export declare function deserializeAndApplyToList(events: SyncBoardEvent[], list: EventsList, board: Board): void;
@@ -1,4 +1,4 @@
1
- import { Board } from "Board";
1
+ import { Board } from "../../Board";
2
2
  import { SyncBoardEvent } from "../Events";
3
3
  import { EventsList } from "./createEventsList";
4
4
  export declare function deserializeIntoList(events: SyncBoardEvent[], list: EventsList, board: Board): void;
@@ -1,2 +1,2 @@
1
- import { BoardSnapshot } from 'Board';
1
+ import { BoardSnapshot } from '../../Board';
2
2
  export declare function getSnapshotFromList(list: any, board: any): BoardSnapshot;
@@ -1,4 +1,4 @@
1
- import { Board } from "Board";
1
+ import { Board } from "../../Board";
2
2
  import { SyncEvent } from "../Events";
3
3
  import { EventsList } from "./createEventsList";
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { AiChatMsg, BoardEventMsg, ConfirmationMsg, ModeMsg, PresenceEventMsg, SnapshotRequestMsg, UserJoinMsg } from "index";
2
- import { SyncBoardEventPack } from "Events/Events";
1
+ import { AiChatMsg, BoardEventMsg, ConfirmationMsg, ModeMsg, PresenceEventMsg, SnapshotRequestMsg, UserJoinMsg } from "../../index";
2
+ import { SyncBoardEventPack } from "../Events";
3
3
  export interface AuthMsg {
4
4
  type: "Auth";
5
5
  jwt: string;
@@ -1,4 +1,4 @@
1
- import { Board } from "Board";
1
+ import { Board } from "../../Board";
2
2
  import { EventsMsg } from "./boardMessageInterface";
3
3
  type MessageHandler<T extends EventsMsg = EventsMsg> = (message: T, board: Board) => void;
4
4
  export interface MessageRouter {
@@ -1,4 +1,4 @@
1
- import { Board } from 'Board';
1
+ import { Board } from '../../Board';
2
2
  export interface AiChatMsg<T = AiChatEventType> {
3
3
  type: 'AiChat';
4
4
  boardId: string;
@@ -1,4 +1,4 @@
1
- import { Board } from "Board";
1
+ import { Board } from "../../Board";
2
2
  import { SyncEvent } from "../Events";
3
3
  export interface BoardEventMsg {
4
4
  type: "BoardEvent";
@@ -1,4 +1,4 @@
1
- import { Board } from 'Board';
1
+ import { Board } from '../../Board';
2
2
  import { BoardSubscriptionCompletedMsg } from './boardMessageInterface';
3
3
  export declare function handleBoardSubscriptionCompletedMsg(msg: BoardSubscriptionCompletedMsg, board: Board): void;
4
4
  export declare function handleSeqNumApplication(initialSequenceNumber: number, board: Board): void;
@@ -1,4 +1,4 @@
1
- import { Board } from 'Board';
1
+ import { Board } from '../../Board';
2
2
  export interface ConfirmationMsg {
3
3
  type: 'Confirmation';
4
4
  boardId: string;
@@ -1,4 +1,4 @@
1
- import { Board } from 'Board';
1
+ import { Board } from '../../Board';
2
2
  export interface SnapshotRequestMsg {
3
3
  type: 'CreateSnapshotRequest';
4
4
  boardId: string;
@@ -1,4 +1,4 @@
1
- import { Board } from "Board";
1
+ import { Board } from "../../Board";
2
2
  export type ViewMode = "view" | "edit" | "loading";
3
3
  export interface ModeMsg {
4
4
  type: "Mode";
@@ -1,4 +1,4 @@
1
- import { Board } from 'Board';
2
- import { PresenceEventMsg, UserJoinMsg } from 'Presence/Events';
1
+ import { Board } from '../../Board';
2
+ import { PresenceEventMsg, UserJoinMsg } from '../../Presence/Events';
3
3
  export declare function handlePresenceEventMessage(message: PresenceEventMsg, board: Board): void;
4
4
  export declare function handleUserJoinMessage(message: UserJoinMsg, board: Board): void;
@@ -1,4 +1,4 @@
1
- import { Subject } from "Subject";
1
+ import { Subject } from "../Subject";
2
2
  import type { HistoryRecord } from "./Log";
3
3
  export interface SyncLogMsg {
4
4
  msg: "addedNew" | "confirmed" | "toSend" | "revertUnconfirmed" | "applyUnconfirmed";
@@ -1,4 +1,4 @@
1
- import { RichTextOperation } from 'Items';
1
+ import { RichTextOperation } from '../../Items';
2
2
  import { Operation } from '../EventsOperations';
3
3
  import { NodeOperation, TextOperation } from 'slate';
4
4
  export type SlateOpsToTransform = TextOperation | NodeOperation;
@@ -1,5 +1,5 @@
1
1
  import { SyncBoardEvent } from './Events';
2
- import { Board } from 'Board';
2
+ import { Board } from '../Board';
3
3
  import { EventsList } from './Log/createEventsList';
4
4
  /**
5
5
  * Handles the removal of snapped objects from the board by replacing any connected
@@ -1,19 +1,19 @@
1
- import { Board } from "Board";
2
- import { DocumentFactory } from "api/DocumentFactory";
3
- import { Operation } from "Events/EventsOperations";
4
- import { AINodeData } from "Items/AINode/AINodeData";
5
- import { DrawingContext } from "Items/DrawingContext";
6
- import { GeometricNormal } from "Items/GeometricNormal";
7
- import { Line } from "Items/Line/Line";
8
- import { LinkTo } from "Items/LinkTo/LinkTo";
9
- import { Mbr } from "Items/Mbr/Mbr";
10
- import { Path } from "Items/Path/Path";
11
- import { Paths } from "Items/Path/Paths";
12
- import { Point } from "Items/Point/Point";
13
- import { RichText } from "Items/RichText/RichText";
14
- import { Transformation } from "Items/Transformation/Transformation";
15
- import { Subject } from "Subject";
16
- import { BaseItem } from "Items/BaseItem/BaseItem";
1
+ import { Board } from "../../Board";
2
+ import { DocumentFactory } from "../../api/DocumentFactory";
3
+ import { Operation } from "../../Events/EventsOperations";
4
+ import { AINodeData } from "../AINode/AINodeData";
5
+ import { DrawingContext } from "../DrawingContext";
6
+ import { GeometricNormal } from "../GeometricNormal";
7
+ import { Line } from "../Line/Line";
8
+ import { LinkTo } from "../LinkTo/LinkTo";
9
+ import { Mbr } from "../Mbr/Mbr";
10
+ import { Path } from "../Path/Path";
11
+ import { Paths } from "../Path/Paths";
12
+ import { Point } from "../Point/Point";
13
+ import { RichText } from "../RichText/RichText";
14
+ import { Transformation } from "../Transformation/Transformation";
15
+ import { Subject } from "../../Subject";
16
+ import { BaseItem } from "../BaseItem/BaseItem";
17
17
  export declare const CONTEXT_NODE_HIGHLIGHT_COLOR = "rgba(183, 138, 240, 1)";
18
18
  export declare const threadDirections: readonly [0, 1, 2, 3];
19
19
  export type ThreadDirection = typeof threadDirections[number];
@@ -1,9 +1,9 @@
1
- import { TransformationData } from 'Items/Transformation/TransformationData';
2
- import { RichTextData } from 'Items/RichText/RichTextData';
3
- import { ThreadDirection } from 'Items/AINode/AINode';
4
- import { Mbr } from 'Items/Mbr/Mbr';
5
- import { Path } from 'Items/Path/Path';
6
- import { Matrix } from 'Items/Transformation/Matrix';
1
+ import { TransformationData } from '../Transformation/TransformationData';
2
+ import { RichTextData } from '../RichText/RichTextData';
3
+ import { ThreadDirection } from '../AINode/AINode';
4
+ import { Mbr } from '../Mbr/Mbr';
5
+ import { Path } from '../Path/Path';
6
+ import { Matrix } from '../Transformation/Matrix';
7
7
  export interface AINodeData {
8
8
  readonly itemType: 'AINode';
9
9
  transformation: TransformationData;
@@ -1,4 +1,4 @@
1
- import { DrawingContext } from 'Items/DrawingContext';
1
+ import { DrawingContext } from '../DrawingContext';
2
2
  import { Mbr, Point } from '..';
3
3
  export declare const ANCHOR_BORDER_COLOR = "rgb(147, 175, 246)";
4
4
  export declare const ANCHOR_BACKGROUND_COLOR = "rgb(255, 255, 255)";
@@ -1,14 +1,14 @@
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 { Transformation } from "../Transformation";
5
5
  import { TransformationData } from "../Transformation/TransformationData";
6
- import { Board } from "Board";
6
+ import { Board } from "../../Board";
7
7
  import { LinkTo } from "../LinkTo/LinkTo";
8
- import { DocumentFactory } from "api/DocumentFactory";
8
+ import { DocumentFactory } from "../../api/DocumentFactory";
9
9
  import { Path } from "../Path";
10
- import { Point } from "Items/Point/Point";
11
- import { BaseItem } from "Items/BaseItem/BaseItem";
10
+ import { Point } from "../Point/Point";
11
+ import { BaseItem } from "../BaseItem/BaseItem";
12
12
  export interface AudioItemData {
13
13
  itemType: "Audio";
14
14
  url: string;
@@ -1,4 +1,4 @@
1
- import { Command, Operation } from 'Events';
1
+ import { Command, Operation } from '../../Events';
2
2
  import { AudioItem } from './Audio';
3
3
  export declare class AudioCommand implements Command {
4
4
  private audios;
@@ -1,6 +1,6 @@
1
- import { Board } from 'Board';
2
- import { AudioItem } from 'Items/Audio/Audio';
3
- import { Matrix } from 'Items/Transformation/Matrix';
1
+ import { Board } from '../../Board';
2
+ import { AudioItem } from '../Audio/Audio';
3
+ import { Matrix } from '../Transformation/Matrix';
4
4
  export declare const uploadAudioToStorage: (hash: string, audioBlob: Blob, accessToken: string | null, boardId: string) => Promise<string>;
5
5
  export declare const prepareAudio: (file: File, accessToken: string | null, boardId: string) => Promise<string>;
6
6
  export declare const calculateAudioPosition: (board: Board, audioItem: AudioItem) => Matrix;
@@ -1,14 +1,14 @@
1
- import { Mbr } from "Items/Mbr/Mbr";
2
- import { Geometry } from "Items/Geometry";
3
- import { RichText } from "Items/RichText/RichText";
4
- import { LinkTo } from "Items/LinkTo/LinkTo";
5
- import { Transformation } from "Items/Transformation/Transformation";
6
- import { Board } from "Board";
7
- import { DrawingContext } from "Items/DrawingContext";
8
- import { DocumentFactory } from "api/DocumentFactory";
9
- import { Operation } from "Events";
10
- import { TransformationData } from "Items/Transformation/TransformationData";
11
- import { BaseOperation } from "Events/EventsOperations";
1
+ import { Mbr } from "../Mbr/Mbr";
2
+ import { Geometry } from "../Geometry";
3
+ import { RichText } from "../RichText/RichText";
4
+ import { LinkTo } from "../LinkTo/LinkTo";
5
+ import { Transformation } from "../Transformation/Transformation";
6
+ import { Board } from "../../Board";
7
+ import { DrawingContext } from "../DrawingContext";
8
+ import { DocumentFactory } from "../../api/DocumentFactory";
9
+ import { Operation } from "../../Events";
10
+ import { TransformationData } from "../Transformation/TransformationData";
11
+ import { BaseOperation } from "../../Events/EventsOperations";
12
12
  import { Subject } from "../../Subject";
13
13
  import { Path, Paths } from "../Path";
14
14
  import { BaseItemOperation } from "./BaseItemOperation";
@@ -1,5 +1,5 @@
1
- import { Subject } from "Subject";
2
- import { Events, Operation } from "Events";
1
+ import { Subject } from "../../Subject";
2
+ import { Events, Operation } from "../../Events";
3
3
  import { Point } from "../Point";
4
4
  import { Transformation, TransformationData } from "../Transformation";
5
5
  import { Mbr } from "../Mbr";
@@ -9,7 +9,7 @@ import { RichText } from "../RichText";
9
9
  import { DrawingContext } from "../DrawingContext";
10
10
  import { Line } from "../Line";
11
11
  import { LinkTo } from "../LinkTo/LinkTo";
12
- import { DocumentFactory } from "api/DocumentFactory";
12
+ import { DocumentFactory } from "../../api/DocumentFactory";
13
13
  export interface Commentator {
14
14
  username: string;
15
15
  id: number;
@@ -1,7 +1,7 @@
1
- import { RichText } from 'Items';
2
- import { Subject } from 'Subject';
3
- import { Board } from 'Board';
4
- import { Operation } from 'Events';
1
+ import { RichText } from '../../Items';
2
+ import { Subject } from '../../Subject';
3
+ import { Board } from '../../Board';
4
+ import { Operation } from '../../Events';
5
5
  import { DrawingContext } from '../DrawingContext';
6
6
  import { GeometricNormal } from '../GeometricNormal';
7
7
  import { Item } from '../Item';
@@ -14,7 +14,7 @@ import { ConnectorData, ConnectorOperation } from './ConnectorOperations';
14
14
  import { BoardPoint, ControlPoint, ControlPointData, FindItemFn } from './ControlPoint';
15
15
  import { ConnectorPointerStyle, Pointer } from './Pointers/Pointers';
16
16
  import { LinkTo } from '../LinkTo/LinkTo';
17
- import { DocumentFactory } from 'api/DocumentFactory';
17
+ import { DocumentFactory } from '../../api/DocumentFactory';
18
18
  import { ConnectorAnchorColors } from './types';
19
19
  import { BaseItem } from "../BaseItem";
20
20
  export declare const ConnectorLineStyles: readonly ["straight", "curved", "orthogonal"];
@@ -1,5 +1,5 @@
1
- import { Path, Paths } from 'Items/Path';
2
- import { Point } from 'Items/Point';
1
+ import { Path, Paths } from '../../Path';
2
+ import { Point } from '../../Point';
3
3
  export interface Pointer {
4
4
  name: ConnectorPointerStyle;
5
5
  path: Path | Paths;
@@ -1,4 +1,4 @@
1
- import { Path } from 'Items';
1
+ import { Path } from '../../../Items';
2
2
  import { ConnectorLineStyle } from '../Connector';
3
3
  import { ControlPoint } from '../ControlPoint';
4
4
  import { Pointer } from './Pointers';
@@ -1,4 +1,4 @@
1
- import { Line, Mbr } from 'Items';
1
+ import { Line, Mbr } from '../../../Items';
2
2
  import { Point } from '../../Point';
3
3
  import { ControlPoint } from '../ControlPoint';
4
4
  type Direction = 'vertical' | 'horizontal';
@@ -1,3 +1,3 @@
1
- import { Path } from 'Items';
1
+ import { Path } from '../../../Items';
2
2
  import { ControlPoint } from '../ControlPoint';
3
3
  export declare function getOrthogonalLine(start: ControlPoint, end: ControlPoint, middle: ControlPoint | null, skipObstacles?: boolean): Path;
@@ -1,3 +1,3 @@
1
- import { Path } from 'Items';
1
+ import { Path } from '../../../Items';
2
2
  import { ControlPoint } from '../ControlPoint';
3
3
  export declare function getStraightLine(start: ControlPoint, end: ControlPoint, middle: ControlPoint | null): Path;
@@ -1,5 +1,5 @@
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 { Line } from "../Line";
5
5
  import { Mbr } from "../Mbr";
@@ -9,9 +9,9 @@ import { Transformation } from "../Transformation";
9
9
  import { DrawingOperation } from "./DrawingOperation";
10
10
  import { TransformationData } from "../Transformation/TransformationData";
11
11
  import { LinkTo } from "../LinkTo/LinkTo";
12
- import { DocumentFactory } from "api/DocumentFactory";
13
- import { Board } from "Board";
14
- import { BaseItem } from "Items/BaseItem/BaseItem";
12
+ import { DocumentFactory } from "../../api/DocumentFactory";
13
+ import { Board } from "../../Board";
14
+ import { BaseItem } from "../BaseItem/BaseItem";
15
15
  export interface DrawingData {
16
16
  itemType: "Drawing";
17
17
  points: {
@@ -1,4 +1,4 @@
1
- import { Command } from 'Events';
1
+ import { Command } from '../../Events';
2
2
  import { Drawing } from './Drawing';
3
3
  import { DrawingOperation } from './DrawingOperation';
4
4
  export declare class DrawingCommand implements Command {
@@ -1,4 +1,4 @@
1
- import { Camera } from 'Camera';
1
+ import { Camera } from '../Camera';
2
2
  import { Matrix } from './Transformation';
3
3
  /** A container for a CanvasRenderingContext2D, to extend it with more data. */
4
4
  export declare class DrawingContext {
@@ -1,10 +1,10 @@
1
- import { BaseItem, BaseItemData, SerializedItemData } from "Items/BaseItem/BaseItem";
2
- import { Board } from "Board";
3
- import { DrawingContext } from "Items/DrawingContext";
4
- import { Path } from "Items/Path/Path";
5
- import { Subject } from "Subject";
6
- import { Paths } from "Items/Path/Paths";
7
- import { CardOperation } from "Items/Examples/CardGame/Card/CardOperation";
1
+ import { BaseItem, BaseItemData, SerializedItemData } from "../../../BaseItem/BaseItem";
2
+ import { Board } from "../../../../Board";
3
+ import { DrawingContext } from "../../../DrawingContext";
4
+ import { Path } from "../../../Path/Path";
5
+ import { Subject } from "../../../../Subject";
6
+ import { Paths } from "../../../Path/Paths";
7
+ import { CardOperation } from "../../../Examples/CardGame/Card/CardOperation";
8
8
  export declare const defaultCardData: BaseItemData;
9
9
  export declare class Card extends BaseItem {
10
10
  readonly subject: Subject<Card>;
@@ -1,4 +1,4 @@
1
- import { BaseOperation } from "Events/EventsOperations";
1
+ import { BaseOperation } from "../../../../Events/EventsOperations";
2
2
  export type CardOperation = SetIsOpen | SetIsInDeck;
3
3
  export interface SetIsOpen extends BaseOperation<{
4
4
  isOpen: boolean;
@@ -1,9 +1,9 @@
1
- import { BaseItem, BaseItemData, SerializedItemData } from "Items/BaseItem/BaseItem";
2
- import { Board } from "Board";
3
- import { Subject } from "Subject";
4
- import { Card } from "Items/Examples/CardGame/Card/Card";
5
- import { DrawingContext } from "Items/DrawingContext";
6
- import { DeckOperation } from "Items/Examples/CardGame/Deck/DeckOperation";
1
+ import { BaseItem, BaseItemData, SerializedItemData } from "../../../BaseItem/BaseItem";
2
+ import { Board } from "../../../../Board";
3
+ import { Subject } from "../../../../Subject";
4
+ import { Card } from "../../../Examples/CardGame/Card/Card";
5
+ import { DrawingContext } from "../../../DrawingContext";
6
+ import { DeckOperation } from "../../../Examples/CardGame/Deck/DeckOperation";
7
7
  import { Path } from "../../../Path";
8
8
  export declare const defaultDeckData: BaseItemData;
9
9
  export declare class Deck extends BaseItem {
@@ -1,4 +1,4 @@
1
- import { BaseOperation } from "Events/EventsOperations";
1
+ import { BaseOperation } from "../../../../Events/EventsOperations";
2
2
  export type DeckOperation = AddCards | RemoveCards;
3
3
  export interface AddCards extends BaseOperation<{
4
4
  cardIds: string[];
@@ -1,5 +1,5 @@
1
- import { Board } from "Board";
2
- import { ShapeTool } from "Tools/CustomTool";
1
+ import { Board } from "../../../../Board";
2
+ import { ShapeTool } from "../../../../Tools/CustomTool";
3
3
  export declare class AddDice extends ShapeTool {
4
4
  constructor(board: Board, name: string);
5
5
  }
@@ -1,4 +1,4 @@
1
- import { BaseOperation } from "Events/EventsOperations";
1
+ import { BaseOperation } from "../../../../Events/EventsOperations";
2
2
  export type DiceOperation = ChangeValueIndex | ChangeValues | SetBackgroundColor | SetBorderColor | SetBorderWidth;
3
3
  interface ChangeValueIndex extends BaseOperation<{
4
4
  valueIndex: number;
@@ -1,5 +1,5 @@
1
- import { Board } from "Board";
2
- import { ShapeTool } from "Tools/CustomTool";
1
+ import { Board } from "../../../../Board";
2
+ import { ShapeTool } from "../../../../Tools/CustomTool";
3
3
  export declare class AddScreen extends ShapeTool {
4
4
  constructor(board: Board, name: string);
5
5
  pointerUp(): boolean;
@@ -1,7 +1,7 @@
1
- import { BaseItem, BaseItemData, SerializedItemData } from "Items/BaseItem/BaseItem";
2
- import { Board } from "Board";
3
- import { Subject } from "Subject";
4
- import { DrawingContext } from "Items/DrawingContext";
1
+ import { BaseItem, BaseItemData, SerializedItemData } from "../../../BaseItem/BaseItem";
2
+ import { Board } from "../../../../Board";
3
+ import { Subject } from "../../../../Subject";
4
+ import { DrawingContext } from "../../../DrawingContext";
5
5
  import { BorderWidth } from "../../../Path";
6
6
  import { ScreenOperation } from "./ScreenOperation";
7
7
  export declare const defaultScreenData: BaseItemData;
@@ -1,4 +1,4 @@
1
- import { BaseOperation } from "Events/EventsOperations";
1
+ import { BaseOperation } from "../../../../Events/EventsOperations";
2
2
  export type ScreenOperation = SetBackgroundColor | SetBorderColor | SetBorderWidth;
3
3
  interface SetBackgroundColor extends BaseOperation<{
4
4
  backgroundColor: string;
@@ -1,5 +1,5 @@
1
- import { Board } from "Board";
2
- import { StickerTool } from "Tools/CustomTool";
1
+ import { Board } from "../../../Board";
2
+ import { StickerTool } from "../../../Tools/CustomTool";
3
3
  export declare class AddCounter extends StickerTool {
4
4
  constructor(board: Board, name: string);
5
5
  keyDown(key: string): boolean;