microboard-temp 0.5.12 → 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.
- package/dist/cjs/browser.js +54 -1
- package/dist/cjs/index.js +54 -1
- package/dist/cjs/node.js +54 -1
- package/dist/esm/browser.js +54 -1
- package/dist/esm/index.js +54 -1
- package/dist/esm/node.js +54 -1
- package/dist/types/Board.d.ts +18 -18
- package/dist/types/BoardCommand.d.ts +1 -1
- package/dist/types/Camera/Camera.d.ts +4 -4
- package/dist/types/Events/Command.d.ts +2 -2
- package/dist/types/Events/Events.d.ts +4 -4
- package/dist/types/Events/EventsCommand.d.ts +1 -1
- package/dist/types/Events/EventsOperations.d.ts +6 -6
- package/dist/types/Events/Log/EventsLog.d.ts +1 -1
- package/dist/types/Events/Log/deserializeAndApplyToList.d.ts +1 -1
- package/dist/types/Events/Log/deserializeIntoList.d.ts +1 -1
- package/dist/types/Events/Log/getSnapshotFromList.d.ts +1 -1
- package/dist/types/Events/Log/insertEventsFromOtherConnectionsIntoList.d.ts +1 -1
- package/dist/types/Events/MessageRouter/boardMessageInterface.d.ts +2 -2
- package/dist/types/Events/MessageRouter/createMessageRouter.d.ts +1 -1
- package/dist/types/Events/MessageRouter/handleAiChatMassage.d.ts +1 -1
- package/dist/types/Events/MessageRouter/handleBoardEventMessage.d.ts +1 -1
- package/dist/types/Events/MessageRouter/handleBoardSubscriptionCompletedMsg.d.ts +1 -1
- package/dist/types/Events/MessageRouter/handleConfirmation.d.ts +1 -1
- package/dist/types/Events/MessageRouter/handleCreateSnapshotRequestMessage.d.ts +1 -1
- package/dist/types/Events/MessageRouter/handleModeMessage.d.ts +1 -1
- package/dist/types/Events/MessageRouter/handlePresenceEventMessage.d.ts +2 -2
- package/dist/types/Events/SyncLog.d.ts +1 -1
- package/dist/types/Events/Transform/Transform.d.ts +1 -1
- package/dist/types/Events/handleRemoveSnappedObject.d.ts +1 -1
- package/dist/types/Items/AINode/AINode.d.ts +16 -16
- package/dist/types/Items/AINode/AINodeData.d.ts +6 -6
- package/dist/types/Items/Anchor/Anchor.d.ts +1 -1
- package/dist/types/Items/Audio/Audio.d.ts +6 -6
- package/dist/types/Items/Audio/AudioCommand.d.ts +1 -1
- package/dist/types/Items/Audio/AudioHelpers.d.ts +3 -3
- package/dist/types/Items/BaseItem/BaseItem.d.ts +11 -11
- package/dist/types/Items/Comment/Comment.d.ts +3 -3
- package/dist/types/Items/Connector/Connector.d.ts +5 -5
- package/dist/types/Items/Connector/Pointers/Pointers.d.ts +2 -2
- package/dist/types/Items/Connector/Pointers/index.d.ts +1 -1
- package/dist/types/Items/Connector/getLine/findOrthogonalPath.d.ts +1 -1
- package/dist/types/Items/Connector/getLine/getOrthogonalLine.d.ts +1 -1
- package/dist/types/Items/Connector/getLine/getStraightLine.d.ts +1 -1
- package/dist/types/Items/Drawing/Drawing.d.ts +5 -5
- package/dist/types/Items/Drawing/DrawingCommand.d.ts +1 -1
- package/dist/types/Items/DrawingContext.d.ts +1 -1
- package/dist/types/Items/Examples/CardGame/Card/Card.d.ts +7 -7
- package/dist/types/Items/Examples/CardGame/Card/CardOperation.d.ts +1 -1
- package/dist/types/Items/Examples/CardGame/Deck/Deck.d.ts +7 -6
- package/dist/types/Items/Examples/CardGame/Deck/DeckOperation.d.ts +1 -1
- package/dist/types/Items/Examples/CardGame/Deck/index.d.ts +1 -1
- package/dist/types/Items/Examples/CardGame/Dice/AddDice.d.ts +2 -2
- package/dist/types/Items/Examples/CardGame/Dice/DiceOperation.d.ts +1 -1
- package/dist/types/Items/Examples/CardGame/Screen/AddScreen.d.ts +2 -2
- package/dist/types/Items/Examples/CardGame/Screen/Screen.d.ts +4 -4
- package/dist/types/Items/Examples/CardGame/Screen/ScreenOperation.d.ts +1 -1
- package/dist/types/Items/Examples/Counter/AddCounter.d.ts +2 -2
- package/dist/types/Items/Examples/Counter/Counter.d.ts +8 -8
- package/dist/types/Items/Examples/Counter/CounterOperation.d.ts +1 -1
- package/dist/types/Items/Examples/Star/AddStar.d.ts +2 -2
- package/dist/types/Items/Examples/Star/Star.d.ts +9 -9
- package/dist/types/Items/Examples/Star/StarOperation.d.ts +1 -1
- package/dist/types/Items/Frame/Basic/1-1/index.d.ts +1 -1
- package/dist/types/Items/Frame/Basic/16-9/index.d.ts +1 -1
- package/dist/types/Items/Frame/Basic/3-2/index.d.ts +1 -1
- package/dist/types/Items/Frame/Basic/4-3/index.d.ts +1 -1
- package/dist/types/Items/Frame/Basic/9-18/index.d.ts +1 -1
- package/dist/types/Items/Frame/Basic/A4/index.d.ts +1 -1
- package/dist/types/Items/Frame/Basic/Custom/index.d.ts +1 -1
- package/dist/types/Items/Frame/Basic/Letter/index.d.ts +1 -1
- package/dist/types/Items/Frame/Frame.d.ts +6 -6
- package/dist/types/Items/Group/Group.d.ts +5 -5
- package/dist/types/Items/Image/Image.d.ts +5 -5
- package/dist/types/Items/Image/ImageCommand.d.ts +1 -1
- package/dist/types/Items/Image/calculatePosition.d.ts +2 -2
- package/dist/types/Items/Item.d.ts +1 -1
- package/dist/types/Items/LinkTo/LinkTo.d.ts +23 -0
- package/dist/types/Items/Mbr/Mbr.d.ts +2 -2
- package/dist/types/Items/Mbr/updateRects.d.ts +3 -3
- package/dist/types/Items/Path/Path.d.ts +2 -2
- package/dist/types/Items/Path/Paths.d.ts +1 -1
- package/dist/types/Items/Placeholder/Placeholder.d.ts +3 -3
- package/dist/types/Items/RegisterItem.d.ts +2 -2
- package/dist/types/Items/RichText/EditorContainer.d.ts +3 -3
- package/dist/types/Items/RichText/RichText.d.ts +7 -7
- package/dist/types/Items/RichText/RichTextCommand.d.ts +2 -2
- package/dist/types/Items/RichText/RichTextOperations.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/common/createParagraphNode.d.ts +2 -2
- package/dist/types/Items/RichText/editorHelpers/common/getAllTextNodesInSelection.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/common/getSelectedBlockNode.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/common/getSelectionMarks.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/common/isBlockActive.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/lists/getBlockParentList.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/lists/getListTypeAtSelectionStart.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/lists/toggleListType.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/lists/toggleListTypeForSelection.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/lists/wrapIntoList.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/markdown/markdownProcessor.d.ts +2 -2
- package/dist/types/Items/RichText/editorHelpers/selectionOps/insertCopiedNodes.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionFontStyle.d.ts +1 -1
- package/dist/types/Items/RichText/editorHelpers/selectionOps/setSelectionHorisontalAlignment.d.ts +1 -1
- package/dist/types/Items/RichText/setNodeStyles.d.ts +2 -2
- package/dist/types/Items/Shape/BPMN/BPMN_Annotation/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_DataObject/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_DataStore/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_EndEvent/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_EventSubprocess/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_Gateway/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_GatewayParallel/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_GatewayXOR/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_Group/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEvent/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_IntermediateEventNoneInterrupting/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_Participant/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_StartEvent/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_StartEventNoneInterrupting/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_Task/index.d.ts +1 -1
- package/dist/types/Items/Shape/BPMN/BPMN_Transaction/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/ArrowBlockLeft/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/ArrowBlockRigth/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/ArrowLeft/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/ArrowLeftRight/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/ArrowRight/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/BracesLeft/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/BracesRight/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Circle/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Cloud/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Cross/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Cylinder/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Hexagon/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Octagon/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Parallelogram/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Pentagon/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/PredefinedProcess/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Rectangle/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/ReversedParallelogram/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/ReversedTriangle/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Rhombus/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/RoundedRectangle/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/SpeachBubble/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Star/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Trapezoid/index.d.ts +1 -1
- package/dist/types/Items/Shape/Basic/Triangle/index.d.ts +1 -1
- package/dist/types/Items/Shape/Shape.d.ts +6 -6
- package/dist/types/Items/Sticker/Sticker.d.ts +4 -4
- package/dist/types/Items/Sticker/StickerOperation.d.ts +1 -1
- package/dist/types/Items/Transformation/Transformation.d.ts +1 -1
- package/dist/types/Items/Video/Video.d.ts +11 -11
- package/dist/types/Items/Video/VideoCommand.d.ts +1 -1
- package/dist/types/Items/Video/VideoHelpers.d.ts +1 -1
- package/dist/types/Keyboard/checkHotkeys.d.ts +1 -1
- package/dist/types/Keyboard/logHotkey.d.ts +1 -1
- package/dist/types/Keyboard/types.d.ts +1 -1
- package/dist/types/Pointer/Pointer.d.ts +2 -2
- package/dist/types/Presence/Presence.d.ts +5 -5
- package/dist/types/Selection/ConnectorTransformer/ConnectorTransformer.d.ts +5 -5
- package/dist/types/Selection/QuickAddButtons/QuickAddButtons.d.ts +4 -4
- package/dist/types/Selection/QuickAddButtons/quickAddHelpers.d.ts +5 -5
- package/dist/types/Selection/Selection.d.ts +14 -14
- package/dist/types/Selection/SelectionItems.d.ts +1 -1
- package/dist/types/Selection/SelectionTransformer.d.ts +4 -4
- package/dist/types/Selection/Transformer/TextTransformer/getTextResizeType.d.ts +1 -1
- package/dist/types/Selection/Transformer/Transformer.d.ts +8 -8
- package/dist/types/Selection/Transformer/TransformerHelpers/getFollowingComments.d.ts +3 -3
- package/dist/types/Selection/Transformer/TransformerHelpers/getOppositePoint.d.ts +1 -1
- package/dist/types/Selection/Transformer/TransformerHelpers/getResizeMatrix.d.ts +1 -1
- package/dist/types/Selection/Transformer/TransformerHelpers/getResizeType.d.ts +1 -1
- package/dist/types/Selection/Transformer/TransformerHelpers/getResizedMbr.d.ts +1 -1
- package/dist/types/Selection/Transformer/TransformerHelpers/handleMultipleItemsResize.d.ts +5 -5
- package/dist/types/Selection/Transformer/TransformerHelpers/switchResizeType.d.ts +1 -1
- package/dist/types/Selection/Transformer/TransformerHelpers/transformAINode.d.ts +6 -6
- package/dist/types/Selection/Transformer/TransformerHelpers/transformItems.d.ts +9 -9
- package/dist/types/Selection/Transformer/TransformerHelpers/transformRichText.d.ts +8 -8
- package/dist/types/Selection/Transformer/TransformerHelpers/transformShape.d.ts +9 -9
- package/dist/types/Selection/Transformer/TransformerHelpers/updateFrameChildren.d.ts +3 -3
- package/dist/types/SessionStorage.d.ts +8 -8
- package/dist/types/Settings.d.ts +2 -2
- package/dist/types/SpatialIndex/LayeredIndex/index.d.ts +2 -2
- package/dist/types/SpatialIndex/RTreeIndex/index.d.ts +2 -2
- package/dist/types/SpatialIndex/SpacialIndex.d.ts +7 -7
- package/dist/types/Tools/AddComment/AddComment.d.ts +2 -2
- package/dist/types/Tools/AddConnector/AddConnector.d.ts +9 -9
- package/dist/types/Tools/AddDrawing/AddDrawing.d.ts +6 -6
- package/dist/types/Tools/AddDrawing/AddHighlighter.d.ts +2 -2
- package/dist/types/Tools/AddFrame/AddFrame.d.ts +6 -6
- package/dist/types/Tools/AddShape/AddShape.d.ts +6 -6
- package/dist/types/Tools/AddSticker/AddSticker.d.ts +5 -5
- package/dist/types/Tools/AddText/AddText.d.ts +4 -4
- package/dist/types/Tools/BoardTool.d.ts +1 -1
- package/dist/types/Tools/BoardToolContext.d.ts +1 -1
- package/dist/types/Tools/CustomTool.d.ts +8 -8
- package/dist/types/Tools/Eraser/Eraser.d.ts +5 -5
- package/dist/types/Tools/ExportSnapshot/ExportSnapshot.d.ts +6 -6
- package/dist/types/Tools/ExportSnapshot/exportBoardSnapshot.d.ts +2 -2
- package/dist/types/Tools/ExportSnapshot/getDecorationResizeType.d.ts +2 -2
- package/dist/types/Tools/Navigate/Navigate.d.ts +2 -2
- package/dist/types/Tools/NestingHighlighter/NestingHighlighter.d.ts +3 -3
- package/dist/types/Tools/RelativeAlignment/RelativeAlignment.d.ts +7 -7
- package/dist/types/Tools/Select/Select.d.ts +6 -6
- package/dist/types/Tools/Tool.d.ts +1 -1
- package/dist/types/Tools/ToolContext.d.ts +1 -1
- package/dist/types/Tools/Tools.d.ts +5 -5
- package/dist/types/Validators/Validators.d.ts +1 -1
- package/dist/types/api/initBrowserSettings.d.ts +1 -1
- package/dist/types/api/initNodeSettings.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/itemFactories.d.ts +2 -2
- package/dist/types/parserHTML.d.ts +1 -1
- package/package.json +2 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -48169,7 +48169,7 @@ registerItem({
|
|
|
48169
48169
|
});
|
|
48170
48170
|
registerHotkey({
|
|
48171
48171
|
name: "getCard-top",
|
|
48172
|
-
hotkey: { key: { button: "
|
|
48172
|
+
hotkey: { key: { button: "KeyT", shift: true }, label: { windows: "Shift+T", mac: "⇧T" } },
|
|
48173
48173
|
boardMode: "edit",
|
|
48174
48174
|
hotkeyConfig: {
|
|
48175
48175
|
allItemsType: ["Deck"],
|
|
@@ -48263,6 +48263,59 @@ registerHotkey({
|
|
|
48263
48263
|
}
|
|
48264
48264
|
}
|
|
48265
48265
|
});
|
|
48266
|
+
function createDeck(event, board) {
|
|
48267
|
+
if (!board) {
|
|
48268
|
+
return;
|
|
48269
|
+
}
|
|
48270
|
+
const single = board.selection.items.getSingle();
|
|
48271
|
+
if (single && single.itemType === "Deck") {
|
|
48272
|
+
return;
|
|
48273
|
+
}
|
|
48274
|
+
const cardsOrDecks = board.selection.items.list();
|
|
48275
|
+
const onlyCards = board.selection.items.isAllItemsType("Card");
|
|
48276
|
+
if (onlyCards) {
|
|
48277
|
+
const deck = new Deck(board, "");
|
|
48278
|
+
deck.transformation.apply({
|
|
48279
|
+
class: "Transformation",
|
|
48280
|
+
method: "translateTo",
|
|
48281
|
+
item: [deck.getId()],
|
|
48282
|
+
x: cardsOrDecks[cardsOrDecks.length - 1].left,
|
|
48283
|
+
y: cardsOrDecks[cardsOrDecks.length - 1].top
|
|
48284
|
+
});
|
|
48285
|
+
const addedDeck = board.add(deck);
|
|
48286
|
+
board.selection.items.removeAll();
|
|
48287
|
+
addedDeck.addChildItems(cardsOrDecks);
|
|
48288
|
+
board.selection.items.add(addedDeck);
|
|
48289
|
+
} else {
|
|
48290
|
+
let mainDeck = null;
|
|
48291
|
+
const cards = [];
|
|
48292
|
+
cardsOrDecks.forEach((item) => {
|
|
48293
|
+
if (item.itemType === "Card") {
|
|
48294
|
+
cards.push(item);
|
|
48295
|
+
} else if (item.itemType === "Deck") {
|
|
48296
|
+
if (mainDeck) {
|
|
48297
|
+
cards.push(...mainDeck.getDeck());
|
|
48298
|
+
board.remove(mainDeck);
|
|
48299
|
+
mainDeck = item;
|
|
48300
|
+
} else {
|
|
48301
|
+
mainDeck = item;
|
|
48302
|
+
}
|
|
48303
|
+
}
|
|
48304
|
+
});
|
|
48305
|
+
board.selection.items.removeAll();
|
|
48306
|
+
mainDeck.addChildItems(cards);
|
|
48307
|
+
board.selection.items.add(mainDeck);
|
|
48308
|
+
}
|
|
48309
|
+
}
|
|
48310
|
+
registerHotkey({
|
|
48311
|
+
name: "createDeck",
|
|
48312
|
+
hotkey: { key: { button: "KeyD", shift: true }, label: { windows: "Shift+D", mac: "⇧D" } },
|
|
48313
|
+
boardMode: "edit",
|
|
48314
|
+
hotkeyConfig: {
|
|
48315
|
+
allItemsType: ["Deck", "Card"],
|
|
48316
|
+
cb: createDeck
|
|
48317
|
+
}
|
|
48318
|
+
});
|
|
48266
48319
|
// src/Items/Examples/CardGame/Dice/AddDice.ts
|
|
48267
48320
|
class AddDice extends ShapeTool {
|
|
48268
48321
|
constructor(board, name) {
|
package/dist/cjs/index.js
CHANGED
|
@@ -48169,7 +48169,7 @@ registerItem({
|
|
|
48169
48169
|
});
|
|
48170
48170
|
registerHotkey({
|
|
48171
48171
|
name: "getCard-top",
|
|
48172
|
-
hotkey: { key: { button: "
|
|
48172
|
+
hotkey: { key: { button: "KeyT", shift: true }, label: { windows: "Shift+T", mac: "⇧T" } },
|
|
48173
48173
|
boardMode: "edit",
|
|
48174
48174
|
hotkeyConfig: {
|
|
48175
48175
|
allItemsType: ["Deck"],
|
|
@@ -48263,6 +48263,59 @@ registerHotkey({
|
|
|
48263
48263
|
}
|
|
48264
48264
|
}
|
|
48265
48265
|
});
|
|
48266
|
+
function createDeck(event, board) {
|
|
48267
|
+
if (!board) {
|
|
48268
|
+
return;
|
|
48269
|
+
}
|
|
48270
|
+
const single = board.selection.items.getSingle();
|
|
48271
|
+
if (single && single.itemType === "Deck") {
|
|
48272
|
+
return;
|
|
48273
|
+
}
|
|
48274
|
+
const cardsOrDecks = board.selection.items.list();
|
|
48275
|
+
const onlyCards = board.selection.items.isAllItemsType("Card");
|
|
48276
|
+
if (onlyCards) {
|
|
48277
|
+
const deck = new Deck(board, "");
|
|
48278
|
+
deck.transformation.apply({
|
|
48279
|
+
class: "Transformation",
|
|
48280
|
+
method: "translateTo",
|
|
48281
|
+
item: [deck.getId()],
|
|
48282
|
+
x: cardsOrDecks[cardsOrDecks.length - 1].left,
|
|
48283
|
+
y: cardsOrDecks[cardsOrDecks.length - 1].top
|
|
48284
|
+
});
|
|
48285
|
+
const addedDeck = board.add(deck);
|
|
48286
|
+
board.selection.items.removeAll();
|
|
48287
|
+
addedDeck.addChildItems(cardsOrDecks);
|
|
48288
|
+
board.selection.items.add(addedDeck);
|
|
48289
|
+
} else {
|
|
48290
|
+
let mainDeck = null;
|
|
48291
|
+
const cards = [];
|
|
48292
|
+
cardsOrDecks.forEach((item) => {
|
|
48293
|
+
if (item.itemType === "Card") {
|
|
48294
|
+
cards.push(item);
|
|
48295
|
+
} else if (item.itemType === "Deck") {
|
|
48296
|
+
if (mainDeck) {
|
|
48297
|
+
cards.push(...mainDeck.getDeck());
|
|
48298
|
+
board.remove(mainDeck);
|
|
48299
|
+
mainDeck = item;
|
|
48300
|
+
} else {
|
|
48301
|
+
mainDeck = item;
|
|
48302
|
+
}
|
|
48303
|
+
}
|
|
48304
|
+
});
|
|
48305
|
+
board.selection.items.removeAll();
|
|
48306
|
+
mainDeck.addChildItems(cards);
|
|
48307
|
+
board.selection.items.add(mainDeck);
|
|
48308
|
+
}
|
|
48309
|
+
}
|
|
48310
|
+
registerHotkey({
|
|
48311
|
+
name: "createDeck",
|
|
48312
|
+
hotkey: { key: { button: "KeyD", shift: true }, label: { windows: "Shift+D", mac: "⇧D" } },
|
|
48313
|
+
boardMode: "edit",
|
|
48314
|
+
hotkeyConfig: {
|
|
48315
|
+
allItemsType: ["Deck", "Card"],
|
|
48316
|
+
cb: createDeck
|
|
48317
|
+
}
|
|
48318
|
+
});
|
|
48266
48319
|
// src/Items/Examples/CardGame/Dice/AddDice.ts
|
|
48267
48320
|
class AddDice extends ShapeTool {
|
|
48268
48321
|
constructor(board, name) {
|
package/dist/cjs/node.js
CHANGED
|
@@ -50642,7 +50642,7 @@ registerItem({
|
|
|
50642
50642
|
});
|
|
50643
50643
|
registerHotkey({
|
|
50644
50644
|
name: "getCard-top",
|
|
50645
|
-
hotkey: { key: { button: "
|
|
50645
|
+
hotkey: { key: { button: "KeyT", shift: true }, label: { windows: "Shift+T", mac: "⇧T" } },
|
|
50646
50646
|
boardMode: "edit",
|
|
50647
50647
|
hotkeyConfig: {
|
|
50648
50648
|
allItemsType: ["Deck"],
|
|
@@ -50736,6 +50736,59 @@ registerHotkey({
|
|
|
50736
50736
|
}
|
|
50737
50737
|
}
|
|
50738
50738
|
});
|
|
50739
|
+
function createDeck(event, board) {
|
|
50740
|
+
if (!board) {
|
|
50741
|
+
return;
|
|
50742
|
+
}
|
|
50743
|
+
const single = board.selection.items.getSingle();
|
|
50744
|
+
if (single && single.itemType === "Deck") {
|
|
50745
|
+
return;
|
|
50746
|
+
}
|
|
50747
|
+
const cardsOrDecks = board.selection.items.list();
|
|
50748
|
+
const onlyCards = board.selection.items.isAllItemsType("Card");
|
|
50749
|
+
if (onlyCards) {
|
|
50750
|
+
const deck = new Deck(board, "");
|
|
50751
|
+
deck.transformation.apply({
|
|
50752
|
+
class: "Transformation",
|
|
50753
|
+
method: "translateTo",
|
|
50754
|
+
item: [deck.getId()],
|
|
50755
|
+
x: cardsOrDecks[cardsOrDecks.length - 1].left,
|
|
50756
|
+
y: cardsOrDecks[cardsOrDecks.length - 1].top
|
|
50757
|
+
});
|
|
50758
|
+
const addedDeck = board.add(deck);
|
|
50759
|
+
board.selection.items.removeAll();
|
|
50760
|
+
addedDeck.addChildItems(cardsOrDecks);
|
|
50761
|
+
board.selection.items.add(addedDeck);
|
|
50762
|
+
} else {
|
|
50763
|
+
let mainDeck = null;
|
|
50764
|
+
const cards = [];
|
|
50765
|
+
cardsOrDecks.forEach((item) => {
|
|
50766
|
+
if (item.itemType === "Card") {
|
|
50767
|
+
cards.push(item);
|
|
50768
|
+
} else if (item.itemType === "Deck") {
|
|
50769
|
+
if (mainDeck) {
|
|
50770
|
+
cards.push(...mainDeck.getDeck());
|
|
50771
|
+
board.remove(mainDeck);
|
|
50772
|
+
mainDeck = item;
|
|
50773
|
+
} else {
|
|
50774
|
+
mainDeck = item;
|
|
50775
|
+
}
|
|
50776
|
+
}
|
|
50777
|
+
});
|
|
50778
|
+
board.selection.items.removeAll();
|
|
50779
|
+
mainDeck.addChildItems(cards);
|
|
50780
|
+
board.selection.items.add(mainDeck);
|
|
50781
|
+
}
|
|
50782
|
+
}
|
|
50783
|
+
registerHotkey({
|
|
50784
|
+
name: "createDeck",
|
|
50785
|
+
hotkey: { key: { button: "KeyD", shift: true }, label: { windows: "Shift+D", mac: "⇧D" } },
|
|
50786
|
+
boardMode: "edit",
|
|
50787
|
+
hotkeyConfig: {
|
|
50788
|
+
allItemsType: ["Deck", "Card"],
|
|
50789
|
+
cb: createDeck
|
|
50790
|
+
}
|
|
50791
|
+
});
|
|
50739
50792
|
// src/Items/Examples/CardGame/Dice/AddDice.ts
|
|
50740
50793
|
class AddDice extends ShapeTool {
|
|
50741
50794
|
constructor(board, name) {
|
package/dist/esm/browser.js
CHANGED
|
@@ -48015,7 +48015,7 @@ registerItem({
|
|
|
48015
48015
|
});
|
|
48016
48016
|
registerHotkey({
|
|
48017
48017
|
name: "getCard-top",
|
|
48018
|
-
hotkey: { key: { button: "
|
|
48018
|
+
hotkey: { key: { button: "KeyT", shift: true }, label: { windows: "Shift+T", mac: "⇧T" } },
|
|
48019
48019
|
boardMode: "edit",
|
|
48020
48020
|
hotkeyConfig: {
|
|
48021
48021
|
allItemsType: ["Deck"],
|
|
@@ -48109,6 +48109,59 @@ registerHotkey({
|
|
|
48109
48109
|
}
|
|
48110
48110
|
}
|
|
48111
48111
|
});
|
|
48112
|
+
function createDeck(event, board) {
|
|
48113
|
+
if (!board) {
|
|
48114
|
+
return;
|
|
48115
|
+
}
|
|
48116
|
+
const single = board.selection.items.getSingle();
|
|
48117
|
+
if (single && single.itemType === "Deck") {
|
|
48118
|
+
return;
|
|
48119
|
+
}
|
|
48120
|
+
const cardsOrDecks = board.selection.items.list();
|
|
48121
|
+
const onlyCards = board.selection.items.isAllItemsType("Card");
|
|
48122
|
+
if (onlyCards) {
|
|
48123
|
+
const deck = new Deck(board, "");
|
|
48124
|
+
deck.transformation.apply({
|
|
48125
|
+
class: "Transformation",
|
|
48126
|
+
method: "translateTo",
|
|
48127
|
+
item: [deck.getId()],
|
|
48128
|
+
x: cardsOrDecks[cardsOrDecks.length - 1].left,
|
|
48129
|
+
y: cardsOrDecks[cardsOrDecks.length - 1].top
|
|
48130
|
+
});
|
|
48131
|
+
const addedDeck = board.add(deck);
|
|
48132
|
+
board.selection.items.removeAll();
|
|
48133
|
+
addedDeck.addChildItems(cardsOrDecks);
|
|
48134
|
+
board.selection.items.add(addedDeck);
|
|
48135
|
+
} else {
|
|
48136
|
+
let mainDeck = null;
|
|
48137
|
+
const cards = [];
|
|
48138
|
+
cardsOrDecks.forEach((item) => {
|
|
48139
|
+
if (item.itemType === "Card") {
|
|
48140
|
+
cards.push(item);
|
|
48141
|
+
} else if (item.itemType === "Deck") {
|
|
48142
|
+
if (mainDeck) {
|
|
48143
|
+
cards.push(...mainDeck.getDeck());
|
|
48144
|
+
board.remove(mainDeck);
|
|
48145
|
+
mainDeck = item;
|
|
48146
|
+
} else {
|
|
48147
|
+
mainDeck = item;
|
|
48148
|
+
}
|
|
48149
|
+
}
|
|
48150
|
+
});
|
|
48151
|
+
board.selection.items.removeAll();
|
|
48152
|
+
mainDeck.addChildItems(cards);
|
|
48153
|
+
board.selection.items.add(mainDeck);
|
|
48154
|
+
}
|
|
48155
|
+
}
|
|
48156
|
+
registerHotkey({
|
|
48157
|
+
name: "createDeck",
|
|
48158
|
+
hotkey: { key: { button: "KeyD", shift: true }, label: { windows: "Shift+D", mac: "⇧D" } },
|
|
48159
|
+
boardMode: "edit",
|
|
48160
|
+
hotkeyConfig: {
|
|
48161
|
+
allItemsType: ["Deck", "Card"],
|
|
48162
|
+
cb: createDeck
|
|
48163
|
+
}
|
|
48164
|
+
});
|
|
48112
48165
|
// src/Items/Examples/CardGame/Dice/AddDice.ts
|
|
48113
48166
|
class AddDice extends ShapeTool {
|
|
48114
48167
|
constructor(board, name) {
|
package/dist/esm/index.js
CHANGED
|
@@ -48008,7 +48008,7 @@ registerItem({
|
|
|
48008
48008
|
});
|
|
48009
48009
|
registerHotkey({
|
|
48010
48010
|
name: "getCard-top",
|
|
48011
|
-
hotkey: { key: { button: "
|
|
48011
|
+
hotkey: { key: { button: "KeyT", shift: true }, label: { windows: "Shift+T", mac: "⇧T" } },
|
|
48012
48012
|
boardMode: "edit",
|
|
48013
48013
|
hotkeyConfig: {
|
|
48014
48014
|
allItemsType: ["Deck"],
|
|
@@ -48102,6 +48102,59 @@ registerHotkey({
|
|
|
48102
48102
|
}
|
|
48103
48103
|
}
|
|
48104
48104
|
});
|
|
48105
|
+
function createDeck(event, board) {
|
|
48106
|
+
if (!board) {
|
|
48107
|
+
return;
|
|
48108
|
+
}
|
|
48109
|
+
const single = board.selection.items.getSingle();
|
|
48110
|
+
if (single && single.itemType === "Deck") {
|
|
48111
|
+
return;
|
|
48112
|
+
}
|
|
48113
|
+
const cardsOrDecks = board.selection.items.list();
|
|
48114
|
+
const onlyCards = board.selection.items.isAllItemsType("Card");
|
|
48115
|
+
if (onlyCards) {
|
|
48116
|
+
const deck = new Deck(board, "");
|
|
48117
|
+
deck.transformation.apply({
|
|
48118
|
+
class: "Transformation",
|
|
48119
|
+
method: "translateTo",
|
|
48120
|
+
item: [deck.getId()],
|
|
48121
|
+
x: cardsOrDecks[cardsOrDecks.length - 1].left,
|
|
48122
|
+
y: cardsOrDecks[cardsOrDecks.length - 1].top
|
|
48123
|
+
});
|
|
48124
|
+
const addedDeck = board.add(deck);
|
|
48125
|
+
board.selection.items.removeAll();
|
|
48126
|
+
addedDeck.addChildItems(cardsOrDecks);
|
|
48127
|
+
board.selection.items.add(addedDeck);
|
|
48128
|
+
} else {
|
|
48129
|
+
let mainDeck = null;
|
|
48130
|
+
const cards = [];
|
|
48131
|
+
cardsOrDecks.forEach((item) => {
|
|
48132
|
+
if (item.itemType === "Card") {
|
|
48133
|
+
cards.push(item);
|
|
48134
|
+
} else if (item.itemType === "Deck") {
|
|
48135
|
+
if (mainDeck) {
|
|
48136
|
+
cards.push(...mainDeck.getDeck());
|
|
48137
|
+
board.remove(mainDeck);
|
|
48138
|
+
mainDeck = item;
|
|
48139
|
+
} else {
|
|
48140
|
+
mainDeck = item;
|
|
48141
|
+
}
|
|
48142
|
+
}
|
|
48143
|
+
});
|
|
48144
|
+
board.selection.items.removeAll();
|
|
48145
|
+
mainDeck.addChildItems(cards);
|
|
48146
|
+
board.selection.items.add(mainDeck);
|
|
48147
|
+
}
|
|
48148
|
+
}
|
|
48149
|
+
registerHotkey({
|
|
48150
|
+
name: "createDeck",
|
|
48151
|
+
hotkey: { key: { button: "KeyD", shift: true }, label: { windows: "Shift+D", mac: "⇧D" } },
|
|
48152
|
+
boardMode: "edit",
|
|
48153
|
+
hotkeyConfig: {
|
|
48154
|
+
allItemsType: ["Deck", "Card"],
|
|
48155
|
+
cb: createDeck
|
|
48156
|
+
}
|
|
48157
|
+
});
|
|
48105
48158
|
// src/Items/Examples/CardGame/Dice/AddDice.ts
|
|
48106
48159
|
class AddDice extends ShapeTool {
|
|
48107
48160
|
constructor(board, name) {
|
package/dist/esm/node.js
CHANGED
|
@@ -50476,7 +50476,7 @@ registerItem({
|
|
|
50476
50476
|
});
|
|
50477
50477
|
registerHotkey({
|
|
50478
50478
|
name: "getCard-top",
|
|
50479
|
-
hotkey: { key: { button: "
|
|
50479
|
+
hotkey: { key: { button: "KeyT", shift: true }, label: { windows: "Shift+T", mac: "⇧T" } },
|
|
50480
50480
|
boardMode: "edit",
|
|
50481
50481
|
hotkeyConfig: {
|
|
50482
50482
|
allItemsType: ["Deck"],
|
|
@@ -50570,6 +50570,59 @@ registerHotkey({
|
|
|
50570
50570
|
}
|
|
50571
50571
|
}
|
|
50572
50572
|
});
|
|
50573
|
+
function createDeck(event, board) {
|
|
50574
|
+
if (!board) {
|
|
50575
|
+
return;
|
|
50576
|
+
}
|
|
50577
|
+
const single = board.selection.items.getSingle();
|
|
50578
|
+
if (single && single.itemType === "Deck") {
|
|
50579
|
+
return;
|
|
50580
|
+
}
|
|
50581
|
+
const cardsOrDecks = board.selection.items.list();
|
|
50582
|
+
const onlyCards = board.selection.items.isAllItemsType("Card");
|
|
50583
|
+
if (onlyCards) {
|
|
50584
|
+
const deck = new Deck(board, "");
|
|
50585
|
+
deck.transformation.apply({
|
|
50586
|
+
class: "Transformation",
|
|
50587
|
+
method: "translateTo",
|
|
50588
|
+
item: [deck.getId()],
|
|
50589
|
+
x: cardsOrDecks[cardsOrDecks.length - 1].left,
|
|
50590
|
+
y: cardsOrDecks[cardsOrDecks.length - 1].top
|
|
50591
|
+
});
|
|
50592
|
+
const addedDeck = board.add(deck);
|
|
50593
|
+
board.selection.items.removeAll();
|
|
50594
|
+
addedDeck.addChildItems(cardsOrDecks);
|
|
50595
|
+
board.selection.items.add(addedDeck);
|
|
50596
|
+
} else {
|
|
50597
|
+
let mainDeck = null;
|
|
50598
|
+
const cards = [];
|
|
50599
|
+
cardsOrDecks.forEach((item) => {
|
|
50600
|
+
if (item.itemType === "Card") {
|
|
50601
|
+
cards.push(item);
|
|
50602
|
+
} else if (item.itemType === "Deck") {
|
|
50603
|
+
if (mainDeck) {
|
|
50604
|
+
cards.push(...mainDeck.getDeck());
|
|
50605
|
+
board.remove(mainDeck);
|
|
50606
|
+
mainDeck = item;
|
|
50607
|
+
} else {
|
|
50608
|
+
mainDeck = item;
|
|
50609
|
+
}
|
|
50610
|
+
}
|
|
50611
|
+
});
|
|
50612
|
+
board.selection.items.removeAll();
|
|
50613
|
+
mainDeck.addChildItems(cards);
|
|
50614
|
+
board.selection.items.add(mainDeck);
|
|
50615
|
+
}
|
|
50616
|
+
}
|
|
50617
|
+
registerHotkey({
|
|
50618
|
+
name: "createDeck",
|
|
50619
|
+
hotkey: { key: { button: "KeyD", shift: true }, label: { windows: "Shift+D", mac: "⇧D" } },
|
|
50620
|
+
boardMode: "edit",
|
|
50621
|
+
hotkeyConfig: {
|
|
50622
|
+
allItemsType: ["Deck", "Card"],
|
|
50623
|
+
cb: createDeck
|
|
50624
|
+
}
|
|
50625
|
+
});
|
|
50573
50626
|
// src/Items/Examples/CardGame/Dice/AddDice.ts
|
|
50574
50627
|
class AddDice extends ShapeTool {
|
|
50575
50628
|
constructor(board, name) {
|
package/dist/types/Board.d.ts
CHANGED
|
@@ -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,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;
|
|
@@ -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,5 +1,5 @@
|
|
|
1
|
-
import { AiChatMsg, BoardEventMsg, ConfirmationMsg, ModeMsg, PresenceEventMsg, SnapshotRequestMsg, UserJoinMsg } from "index";
|
|
2
|
-
import { SyncBoardEventPack } from "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 { 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';
|
|
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;
|