@plait/core 0.85.0 → 0.86.1

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/context.d.ts CHANGED
@@ -1,10 +1,7 @@
1
1
  import { ImageEntry } from './interfaces/element';
2
2
  export declare class PlaitBoardContext {
3
- private _stable;
4
3
  private uploadingFiles;
5
4
  getUploadingFile(url: string): ImageEntry | undefined;
6
5
  setUploadingFile(file: ImageEntry): number;
7
6
  removeUploadingFile(fileEntry: ImageEntry): void;
8
- onStable(): import("rxjs").Observable<unknown>;
9
- nextStable(): void;
10
7
  }
@@ -1,6 +1,5 @@
1
1
  import { createDraft, finishDraft, isDraft } from 'immer';
2
2
  import { isKeyHotkey, isHotkey } from 'is-hotkey';
3
- import { Subject } from 'rxjs';
4
3
 
5
4
  /**
6
5
  * @license
@@ -3234,9 +3233,9 @@ const setSelectionOptions = (board, options) => {
3234
3233
 
3235
3234
  const getElementsInGroup = (board, group, recursion, includeGroup) => {
3236
3235
  let result = [];
3237
- const elements = board.children.filter(value => value.groupId === group.id);
3236
+ const elements = board.children.filter((value) => value.groupId === group.id);
3238
3237
  if (recursion) {
3239
- elements.forEach(item => {
3238
+ elements.forEach((item) => {
3240
3239
  if (PlaitGroupElement.isGroup(item)) {
3241
3240
  if (includeGroup) {
3242
3241
  result.push(item);
@@ -3249,15 +3248,15 @@ const getElementsInGroup = (board, group, recursion, includeGroup) => {
3249
3248
  });
3250
3249
  }
3251
3250
  else {
3252
- result = includeGroup ? elements : elements.filter(item => !PlaitGroupElement.isGroup(item));
3251
+ result = includeGroup ? elements : elements.filter((item) => !PlaitGroupElement.isGroup(item));
3253
3252
  }
3254
3253
  return result;
3255
3254
  };
3256
3255
  const getAllElementsInGroup = (board, group, recursion, includeGroup) => {
3257
3256
  const elementsInGroup = getElementsInGroup(board, group, recursion, includeGroup);
3258
3257
  const result = [];
3259
- elementsInGroup.forEach(element => {
3260
- depthFirstRecursion(element, node => {
3258
+ elementsInGroup.forEach((element) => {
3259
+ depthFirstRecursion(element, (node) => {
3261
3260
  result.push(node);
3262
3261
  }, () => true);
3263
3262
  });
@@ -3268,7 +3267,7 @@ const getRectangleByGroup = (board, group, recursion) => {
3268
3267
  return getRectangleByElements(board, elementsInGroup, false);
3269
3268
  };
3270
3269
  const getGroupByElement = (board, element, recursion, originElements) => {
3271
- const group = (originElements || board.children).find(item => item.id === element?.groupId);
3270
+ const group = (originElements || board.children).find((item) => item.id === element?.groupId);
3272
3271
  if (!group) {
3273
3272
  return recursion ? [] : null;
3274
3273
  }
@@ -3300,21 +3299,25 @@ const getElementsInGroupByElement = (board, element) => {
3300
3299
  return [element];
3301
3300
  }
3302
3301
  };
3302
+ const getAllGroups = (board) => {
3303
+ const elements = board.children;
3304
+ return elements.filter((item) => PlaitGroupElement.isGroup(item));
3305
+ };
3303
3306
  const isSelectedElementOrGroup = (board, element, elements) => {
3304
3307
  const selectedElements = elements?.length ? elements : getSelectedElements(board);
3305
3308
  if (PlaitGroupElement.isGroup(element)) {
3306
3309
  return isSelectedAllElementsInGroup(board, element, elements);
3307
3310
  }
3308
- return selectedElements.map(item => item.id).includes(element.id);
3311
+ return selectedElements.map((item) => item.id).includes(element.id);
3309
3312
  };
3310
3313
  const isSelectedAllElementsInGroup = (board, group, elements) => {
3311
3314
  const selectedElements = elements?.length ? elements : getSelectedElements(board);
3312
3315
  const elementsInGroup = getElementsInGroup(board, group, true);
3313
- return elementsInGroup.every(item => selectedElements.map(element => element.id).includes(item.id));
3316
+ return elementsInGroup.every((item) => selectedElements.map((element) => element.id).includes(item.id));
3314
3317
  };
3315
3318
  const filterSelectedGroups = (board, groups, elements) => {
3316
3319
  const selectedGroups = [];
3317
- groups.forEach(item => {
3320
+ groups.forEach((item) => {
3318
3321
  if (isSelectedElementOrGroup(board, item, elements)) {
3319
3322
  selectedGroups.push(item);
3320
3323
  }
@@ -3324,10 +3327,10 @@ const filterSelectedGroups = (board, groups, elements) => {
3324
3327
  const getSelectedGroups = (board, elements, originElements) => {
3325
3328
  const highestSelectedGroups = getHighestSelectedGroups(board, elements, originElements);
3326
3329
  const groups = [];
3327
- highestSelectedGroups.forEach(item => {
3330
+ highestSelectedGroups.forEach((item) => {
3328
3331
  groups.push(item);
3329
3332
  const elementsInGroup = getElementsInGroup(board, item, true, true);
3330
- groups.push(...elementsInGroup.filter(item => PlaitGroupElement.isGroup(item)));
3333
+ groups.push(...elementsInGroup.filter((item) => PlaitGroupElement.isGroup(item)));
3331
3334
  });
3332
3335
  return groups;
3333
3336
  };
@@ -3342,7 +3345,7 @@ const getHighestSelectedGroup = (board, element, elements, originElements) => {
3342
3345
  const getHighestSelectedGroups = (board, elements, originElements) => {
3343
3346
  let result = [];
3344
3347
  const selectedElements = elements?.length ? elements : getSelectedElements(board);
3345
- selectedElements.forEach(item => {
3348
+ selectedElements.forEach((item) => {
3346
3349
  if (item.groupId) {
3347
3350
  const group = getHighestSelectedGroup(board, item, elements, originElements);
3348
3351
  if (group && !result.includes(group)) {
@@ -3356,8 +3359,8 @@ const getSelectedIsolatedElements = (board, elements) => {
3356
3359
  let result = [];
3357
3360
  const selectedElements = elements?.length ? elements : getSelectedElements(board);
3358
3361
  selectedElements
3359
- .filter(item => !PlaitGroupElement.isGroup(item))
3360
- .forEach(item => {
3362
+ .filter((item) => !PlaitGroupElement.isGroup(item))
3363
+ .forEach((item) => {
3361
3364
  if (!item.groupId) {
3362
3365
  result.push(item);
3363
3366
  }
@@ -3372,16 +3375,16 @@ const getSelectedIsolatedElements = (board, elements) => {
3372
3375
  };
3373
3376
  const getSelectedIsolatedElementsCanAddToGroup = (board, elements) => {
3374
3377
  const selectedIsolatedElements = getSelectedIsolatedElements(board, elements);
3375
- return selectedIsolatedElements.filter(item => board.canAddToGroup(item));
3378
+ return selectedIsolatedElements.filter((item) => board.canAddToGroup(item));
3376
3379
  };
3377
3380
  const getHighestSelectedElements = (board, elements) => {
3378
3381
  return [...getHighestSelectedGroups(board, elements), ...getSelectedIsolatedElements(board, elements)];
3379
3382
  };
3380
3383
  const createGroupRectangleG = (board, elements) => {
3381
- const selectedElementIds = getSelectedElements(board).map(item => item.id);
3384
+ const selectedElementIds = getSelectedElements(board).map((item) => item.id);
3382
3385
  let groupRectangleG = null;
3383
3386
  const isMoving = isSelectionMoving(board);
3384
- elements.forEach(item => {
3387
+ elements.forEach((item) => {
3385
3388
  const isRender = (!selectedElementIds.includes(item.id) && !isMoving) || isMoving;
3386
3389
  if (item.groupId && isRender) {
3387
3390
  if (!groupRectangleG) {
@@ -3416,14 +3419,14 @@ const createGroup = (groupId) => {
3416
3419
  };
3417
3420
  };
3418
3421
  const nonGroupInHighestSelectedElements = (elements) => {
3419
- return elements.every(item => !item.groupId);
3422
+ return elements.every((item) => !item.groupId);
3420
3423
  };
3421
3424
  const hasSelectedElementsInSameGroup = (elements) => {
3422
- return elements.every(item => item.groupId && item.groupId === elements[0].groupId);
3425
+ return elements.every((item) => item.groupId && item.groupId === elements[0].groupId);
3423
3426
  };
3424
3427
  const canAddGroup = (board, elements) => {
3425
3428
  const highestSelectedElements = getHighestSelectedElements(board, elements);
3426
- const rootElements = highestSelectedElements.filter(item => board.canAddToGroup(item));
3429
+ const rootElements = highestSelectedElements.filter((item) => board.canAddToGroup(item));
3427
3430
  if (rootElements.length > 1) {
3428
3431
  return nonGroupInHighestSelectedElements(rootElements) || hasSelectedElementsInSameGroup(rootElements);
3429
3432
  }
@@ -3451,7 +3454,7 @@ const moveElementsToNewPathAfterAddGroup = (board, selectedElements, newPath) =>
3451
3454
  const moveElements = [...selectedElements];
3452
3455
  sortElements(board, moveElements);
3453
3456
  moveElements.pop();
3454
- moveElementsToNewPath(board, moveElements.map(element => {
3457
+ moveElementsToNewPath(board, moveElements.map((element) => {
3455
3458
  return {
3456
3459
  element,
3457
3460
  newPath
@@ -5540,7 +5543,6 @@ class ElementFlavour {
5540
5543
 
5541
5544
  class PlaitBoardContext {
5542
5545
  constructor() {
5543
- this._stable = new Subject();
5544
5546
  this.uploadingFiles = [];
5545
5547
  }
5546
5548
  getUploadingFile(url) {
@@ -5552,12 +5554,6 @@ class PlaitBoardContext {
5552
5554
  removeUploadingFile(fileEntry) {
5553
5555
  this.uploadingFiles = this.uploadingFiles.filter(file => file.url !== fileEntry.url);
5554
5556
  }
5555
- onStable() {
5556
- return this._stable.asObservable();
5557
- }
5558
- nextStable() {
5559
- this._stable.next('');
5560
- }
5561
5557
  }
5562
5558
 
5563
5559
  const PathRef = {
@@ -6901,5 +6897,5 @@ function createModModifierKeys() {
6901
6897
  * Generated bundle index. Do not edit.
6902
6898
  */
6903
6899
 
6904
- export { A, ACTIVE_MOVING_CLASS_NAME, ACTIVE_STROKE_WIDTH, ALT, APOSTROPHE, ATTACHED_ELEMENT_CLASS_NAME, AT_SIGN, B, BACKSLASH, BACKSPACE, BOARD_TO_AFTER_CHANGE, BOARD_TO_CONTEXT, BOARD_TO_ELEMENT_HOST, BOARD_TO_HOST, BOARD_TO_IS_SELECTION_MOVING, BOARD_TO_MOVING_ELEMENT, BOARD_TO_MOVING_POINT, BOARD_TO_MOVING_POINT_IN_BOARD, BOARD_TO_ON_CHANGE, BOARD_TO_ROUGH_SVG, BOARD_TO_SELECTED_ELEMENT, BOARD_TO_TEMPORARY_ELEMENTS, BOARD_TO_VIEWPORT_ORIGINATION, BoardTransforms, C, CAPS_LOCK, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, ColorfulThemeColor, CoreTransforms, CursorClass, D, DASH, DEFAULT_COLOR, DELETE, DOWN_ARROW, DRAG_SELECTION_PRESS_AND_MOVE_BUFFER, DarkThemeColor, DebugGenerator, DefaultThemeColor, Direction, E, EIGHT, ELEMENT_TO_REF, END, ENTER, EQUALS, ESCAPE, ElementFlavour, F, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, FF_EQUALS, FF_MINUS, FF_MUTE, FF_SEMICOLON, FF_VOLUME_DOWN, FF_VOLUME_UP, FIRST_MEDIA, FIVE, FLUSHING, FOUR, G, H, HISTORY, HIT_DISTANCE_BUFFER, HOME, HOST_CLASS_NAME, I, INSERT, IS_APPLE, IS_BOARD_ALIVE, IS_BOARD_CACHE, IS_CHROME, IS_CHROME_LEGACY, IS_DRAGGING, IS_EDGE_LEGACY, IS_FIREFOX, IS_IOS, IS_MAC, IS_SAFARI, IS_TEXT_EDITABLE, IS_WINDOWS, J, K, KEY_TO_ELEMENT_MAP, L, LAST_MEDIA, LEFT_ARROW, ListRender, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, MAX_RADIUS, MAX_ZOOM, MERGING, META, MIN_ZOOM, MUTE, N, NINE, NODE_TO_CONTAINER_G, NODE_TO_G, NODE_TO_INDEX, NODE_TO_PARENT, NS, NUMPAD_DIVIDE, NUMPAD_EIGHT, NUMPAD_FIVE, NUMPAD_FOUR, NUMPAD_MINUS, NUMPAD_MULTIPLY, NUMPAD_NINE, NUMPAD_ONE, NUMPAD_PERIOD, NUMPAD_PLUS, NUMPAD_SEVEN, NUMPAD_SIX, NUMPAD_THREE, NUMPAD_TWO, NUMPAD_ZERO, NUM_CENTER, NUM_LOCK, O, ONE, OPEN_SQUARE_BRACKET, P, PAGE_DOWN, PAGE_UP, PATH_REFS, PAUSE, PERIOD, PLUS_SIGN, POINTER_BUTTON, PRESS_AND_MOVE_BUFFER, PRINT_SCREEN, Path, PlaitBoard, PlaitBoardContext, PlaitElement, PlaitGroupElement, PlaitHistoryBoard, PlaitNode, PlaitOperation, PlaitPluginKey, PlaitPointerType, Point, Q, QUESTION_MARK, R, RESIZE_CURSORS, RESIZE_HANDLE_CLASS_NAME, RIGHT_ARROW, ROTATE_HANDLE_CLASS_NAME, RectangleClient, ResizeCursorClass, RetroThemeColor, S, SAVING, SCROLL_BAR_WIDTH, SCROLL_LOCK, SELECTION_BORDER_COLOR, SELECTION_FILL_COLOR, SELECTION_RECTANGLE_BOUNDING_CLASS_NAME, SELECTION_RECTANGLE_CLASS_NAME, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SNAPPING_STROKE_WIDTH, SNAP_TOLERANCE, SPACE, SPLITTING_ONCE, Selection, SoftThemeColor, StarryThemeColor, T, TAB, THREE, TILDE, TWO, ThemeColorMode, ThemeColors, Transforms, U, UP_ARROW, V, VIEWPORT_PADDING_RATIO, VOLUME_DOWN, VOLUME_UP, Viewport, W, WritableClipboardOperationType, WritableClipboardType, X, Y, Z, ZERO, ZOOM_STEP, addClipboardContext, addOrCreateClipboardContext, addSelectedElement, approximately, arrowPoints, buildPlaitHtml, cacheMovingElements, cacheSelectedElements, cacheSelectedElementsWithGroup, cacheSelectedElementsWithGroupOnShift, calcNewViewBox, calculateViewBox, canAddGroup, canRemoveGroup, canSetZIndex, catmullRomFitting, ceilToDecimal, clampZoomLevel, clearNodeWeakMap, clearSelectedElement, clearSelectionMoving, clearViewportOrigination, createBoard, createClipboardContext, createDebugGenerator, createFakeEvent, createForeignObject, createG, createGroup, createGroupRectangleG, createKeyboardEvent, createMask, createModModifierKeys, createMouseEvent, createPath, createPointerEvent, createRect, createSVG, createTestingBoard, createText, createTouchEvent, debounce, degreesToRadians, deleteFragment, deleteTemporaryElements, depthFirstRecursion, distanceBetweenPointAndPoint, distanceBetweenPointAndRectangle, distanceBetweenPointAndSegment, distanceBetweenPointAndSegments, downloadImage, drawArrow, drawBezierPath, drawCircle, drawDashedLines, drawLine, drawLinearPath, drawPendingNodesG, drawPointSnapLines, drawRectangle, drawRoundRectangle, drawSelectionRectangleG, drawSolidLines, duplicateElements, fakeNodeWeakMap, filterSelectedGroups, findElements, findIndex, findLastIndex, getAllElementsInGroup, getAllMoveOptions, getAngleBetweenPoints, getAngleByElement, getBarPoint, getBoardRectangle, getBoundingRectangleByElements, getClipboardData, getClipboardFromHtml, getCrossingPointsBetweenEllipseAndSegment, getDataTransferClipboard, getDataTransferClipboardText, getEditingGroup, getElementById, getElementHostBBox, getElementMap, getElementsInGroup, getElementsInGroupByElement, getElementsIndices, getEllipseArcCenter, getEllipseTangentSlope, getGroupByElement, getHighestGroup, getHighestIndexOfElement, getHighestSelectedElements, getHighestSelectedGroup, getHighestSelectedGroups, getHitElementByPoint, getHitElementsByPoint, getHitElementsBySelection, getHitSelectedElements, getI18nValue, getIsRecursionFunc, getMinPointDelta, getMovingElements, getNearestDelta, getNearestPointBetweenPointAndArc, getNearestPointBetweenPointAndDiscreteSegments, getNearestPointBetweenPointAndEllipse, getNearestPointBetweenPointAndSegment, getNearestPointBetweenPointAndSegments, getNearestPointRectangle, getOffsetAfterRotate, getOneMoveOptions, getPointBetween, getProbablySupportsClipboardRead, getProbablySupportsClipboardWrite, getProbablySupportsClipboardWriteText, getRealScrollBarWidth, getRectangleByAngle, getRectangleByElements, getRectangleByGroup, getRotatedBoundingRectangle, getSelectedElements, getSelectedGroups, getSelectedIsolatedElements, getSelectedIsolatedElementsCanAddToGroup, getSelectedTargetElements, getSelectionAngle, getSelectionOptions, getSnapRectangles, getTemporaryElements, getTemporaryRef, getTripleAxis, getValidElements, getVectorFromPointAndSlope, getViewBox, getViewBoxCenterPoint, getViewportContainerRect, getViewportOrigination, hasBeforeContextChange, hasInputOrTextareaTarget, hasOnContextChanged, hasSameAngle, hasSelectedElementsInSameGroup, hasSetSelectionOperation, hasValidAngle, hotkeys, idCreator, initializeViewBox, initializeViewportContainer, initializeViewportOffset, inverse, isAxisChangedByAngle, isContextmenu, isDOMElement, isDOMNode, isDebug, isDragging, isFromScrolling, isFromViewportChange, isHandleSelection, isHitElement, isHitSelectedRectangle, isHorizontalDirection, isInPlaitBoard, isIndicesContinuous, isLineHitLine, isLineHitRectangle, isLineHitRectangleEdge, isMainPointer, isMobileDeviceEvent, isMouseEvent, isMovingElements, isNullOrUndefined, isPencilEvent, isPointInEllipse, isPointInPolygon, isPointInRoundRectangle, isSecondaryPointer, isSelectedAllElementsInGroup, isSelectedElement, isSelectedElementOrGroup, isSelectionMoving, isSetSelectionOperation, isSetThemeOperation, isSetViewportOperation, isSingleLineHitRectangleEdge, isSnapPoint, isTouchEvent, isValidAngle, isVerticalDirection, isWheelPointer, mountElementG, moveElementsToNewPath, moveElementsToNewPathAfterAddGroup, nonGroupInHighestSelectedElements, normalizeAngle, normalizePoint, prepareElementBBox, radiansToDegrees, removeMovingElements, removeSelectedElement, replaceAngleBrackets, replaceSelectedElement, reverseReplaceAngleBrackets, rgbaToHEX, rotate, rotateAntiPointsByElement, rotateElements, rotatePoints, rotatePointsByAngle, rotatePointsByElement, rotatedDataPoints, scrollToRectangle, setAngleForG, setClipboardData, setDataTransferClipboard, setDataTransferClipboardText, setDragging, setFragment, setIsFromScrolling, setIsFromViewportChange, setPathStrokeLinecap, setSVGViewBox, setSelectedElementsWithGroup, setSelectionMoving, setSelectionOptions, setStrokeLinecap, shouldClear, shouldMerge, shouldSave, sortElements, stripHtml, temporaryDisableSelection, throttleRAF, toActivePoint, toActivePointFromViewBoxPoint, toActiveRectangleFromViewBoxRectangle, toDomPrecision, toFixed, toHostPoint, toHostPointFromViewBoxPoint, toImage, toScreenPointFromActivePoint, toScreenPointFromHostPoint, toViewBoxPoint, toViewBoxPoints, uniqueById, updateForeignObject, updateForeignObjectWidth, updatePoints, updateViewBox, updateViewportByScrolling, updateViewportContainerScroll, updateViewportOffset, updateViewportOrigination, withArrowMoving, withBoard, withHandPointer, withHistory, withHotkey, withI18n, withMoving, withOptions, withRelatedFragment, withSelection };
6900
+ export { A, ACTIVE_MOVING_CLASS_NAME, ACTIVE_STROKE_WIDTH, ALT, APOSTROPHE, ATTACHED_ELEMENT_CLASS_NAME, AT_SIGN, B, BACKSLASH, BACKSPACE, BOARD_TO_AFTER_CHANGE, BOARD_TO_CONTEXT, BOARD_TO_ELEMENT_HOST, BOARD_TO_HOST, BOARD_TO_IS_SELECTION_MOVING, BOARD_TO_MOVING_ELEMENT, BOARD_TO_MOVING_POINT, BOARD_TO_MOVING_POINT_IN_BOARD, BOARD_TO_ON_CHANGE, BOARD_TO_ROUGH_SVG, BOARD_TO_SELECTED_ELEMENT, BOARD_TO_TEMPORARY_ELEMENTS, BOARD_TO_VIEWPORT_ORIGINATION, BoardTransforms, C, CAPS_LOCK, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, ColorfulThemeColor, CoreTransforms, CursorClass, D, DASH, DEFAULT_COLOR, DELETE, DOWN_ARROW, DRAG_SELECTION_PRESS_AND_MOVE_BUFFER, DarkThemeColor, DebugGenerator, DefaultThemeColor, Direction, E, EIGHT, ELEMENT_TO_REF, END, ENTER, EQUALS, ESCAPE, ElementFlavour, F, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, FF_EQUALS, FF_MINUS, FF_MUTE, FF_SEMICOLON, FF_VOLUME_DOWN, FF_VOLUME_UP, FIRST_MEDIA, FIVE, FLUSHING, FOUR, G, H, HISTORY, HIT_DISTANCE_BUFFER, HOME, HOST_CLASS_NAME, I, INSERT, IS_APPLE, IS_BOARD_ALIVE, IS_BOARD_CACHE, IS_CHROME, IS_CHROME_LEGACY, IS_DRAGGING, IS_EDGE_LEGACY, IS_FIREFOX, IS_IOS, IS_MAC, IS_SAFARI, IS_TEXT_EDITABLE, IS_WINDOWS, J, K, KEY_TO_ELEMENT_MAP, L, LAST_MEDIA, LEFT_ARROW, ListRender, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, MAX_RADIUS, MAX_ZOOM, MERGING, META, MIN_ZOOM, MUTE, N, NINE, NODE_TO_CONTAINER_G, NODE_TO_G, NODE_TO_INDEX, NODE_TO_PARENT, NS, NUMPAD_DIVIDE, NUMPAD_EIGHT, NUMPAD_FIVE, NUMPAD_FOUR, NUMPAD_MINUS, NUMPAD_MULTIPLY, NUMPAD_NINE, NUMPAD_ONE, NUMPAD_PERIOD, NUMPAD_PLUS, NUMPAD_SEVEN, NUMPAD_SIX, NUMPAD_THREE, NUMPAD_TWO, NUMPAD_ZERO, NUM_CENTER, NUM_LOCK, O, ONE, OPEN_SQUARE_BRACKET, P, PAGE_DOWN, PAGE_UP, PATH_REFS, PAUSE, PERIOD, PLUS_SIGN, POINTER_BUTTON, PRESS_AND_MOVE_BUFFER, PRINT_SCREEN, Path, PlaitBoard, PlaitBoardContext, PlaitElement, PlaitGroupElement, PlaitHistoryBoard, PlaitNode, PlaitOperation, PlaitPluginKey, PlaitPointerType, Point, Q, QUESTION_MARK, R, RESIZE_CURSORS, RESIZE_HANDLE_CLASS_NAME, RIGHT_ARROW, ROTATE_HANDLE_CLASS_NAME, RectangleClient, ResizeCursorClass, RetroThemeColor, S, SAVING, SCROLL_BAR_WIDTH, SCROLL_LOCK, SELECTION_BORDER_COLOR, SELECTION_FILL_COLOR, SELECTION_RECTANGLE_BOUNDING_CLASS_NAME, SELECTION_RECTANGLE_CLASS_NAME, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SNAPPING_STROKE_WIDTH, SNAP_TOLERANCE, SPACE, SPLITTING_ONCE, Selection, SoftThemeColor, StarryThemeColor, T, TAB, THREE, TILDE, TWO, ThemeColorMode, ThemeColors, Transforms, U, UP_ARROW, V, VIEWPORT_PADDING_RATIO, VOLUME_DOWN, VOLUME_UP, Viewport, W, WritableClipboardOperationType, WritableClipboardType, X, Y, Z, ZERO, ZOOM_STEP, addClipboardContext, addOrCreateClipboardContext, addSelectedElement, approximately, arrowPoints, buildPlaitHtml, cacheMovingElements, cacheSelectedElements, cacheSelectedElementsWithGroup, cacheSelectedElementsWithGroupOnShift, calcNewViewBox, calculateViewBox, canAddGroup, canRemoveGroup, canSetZIndex, catmullRomFitting, ceilToDecimal, clampZoomLevel, clearNodeWeakMap, clearSelectedElement, clearSelectionMoving, clearViewportOrigination, createBoard, createClipboardContext, createDebugGenerator, createFakeEvent, createForeignObject, createG, createGroup, createGroupRectangleG, createKeyboardEvent, createMask, createModModifierKeys, createMouseEvent, createPath, createPointerEvent, createRect, createSVG, createTestingBoard, createText, createTouchEvent, debounce, degreesToRadians, deleteFragment, deleteTemporaryElements, depthFirstRecursion, distanceBetweenPointAndPoint, distanceBetweenPointAndRectangle, distanceBetweenPointAndSegment, distanceBetweenPointAndSegments, downloadImage, drawArrow, drawBezierPath, drawCircle, drawDashedLines, drawLine, drawLinearPath, drawPendingNodesG, drawPointSnapLines, drawRectangle, drawRoundRectangle, drawSelectionRectangleG, drawSolidLines, duplicateElements, fakeNodeWeakMap, filterSelectedGroups, findElements, findIndex, findLastIndex, getAllElementsInGroup, getAllGroups, getAllMoveOptions, getAngleBetweenPoints, getAngleByElement, getBarPoint, getBoardRectangle, getBoundingRectangleByElements, getClipboardData, getClipboardFromHtml, getCrossingPointsBetweenEllipseAndSegment, getDataTransferClipboard, getDataTransferClipboardText, getEditingGroup, getElementById, getElementHostBBox, getElementMap, getElementsInGroup, getElementsInGroupByElement, getElementsIndices, getEllipseArcCenter, getEllipseTangentSlope, getGroupByElement, getHighestGroup, getHighestIndexOfElement, getHighestSelectedElements, getHighestSelectedGroup, getHighestSelectedGroups, getHitElementByPoint, getHitElementsByPoint, getHitElementsBySelection, getHitSelectedElements, getI18nValue, getIsRecursionFunc, getMinPointDelta, getMovingElements, getNearestDelta, getNearestPointBetweenPointAndArc, getNearestPointBetweenPointAndDiscreteSegments, getNearestPointBetweenPointAndEllipse, getNearestPointBetweenPointAndSegment, getNearestPointBetweenPointAndSegments, getNearestPointRectangle, getOffsetAfterRotate, getOneMoveOptions, getPointBetween, getProbablySupportsClipboardRead, getProbablySupportsClipboardWrite, getProbablySupportsClipboardWriteText, getRealScrollBarWidth, getRectangleByAngle, getRectangleByElements, getRectangleByGroup, getRotatedBoundingRectangle, getSelectedElements, getSelectedGroups, getSelectedIsolatedElements, getSelectedIsolatedElementsCanAddToGroup, getSelectedTargetElements, getSelectionAngle, getSelectionOptions, getSnapRectangles, getTemporaryElements, getTemporaryRef, getTripleAxis, getValidElements, getVectorFromPointAndSlope, getViewBox, getViewBoxCenterPoint, getViewportContainerRect, getViewportOrigination, hasBeforeContextChange, hasInputOrTextareaTarget, hasOnContextChanged, hasSameAngle, hasSelectedElementsInSameGroup, hasSetSelectionOperation, hasValidAngle, hotkeys, idCreator, initializeViewBox, initializeViewportContainer, initializeViewportOffset, inverse, isAxisChangedByAngle, isContextmenu, isDOMElement, isDOMNode, isDebug, isDragging, isFromScrolling, isFromViewportChange, isHandleSelection, isHitElement, isHitSelectedRectangle, isHorizontalDirection, isInPlaitBoard, isIndicesContinuous, isLineHitLine, isLineHitRectangle, isLineHitRectangleEdge, isMainPointer, isMobileDeviceEvent, isMouseEvent, isMovingElements, isNullOrUndefined, isPencilEvent, isPointInEllipse, isPointInPolygon, isPointInRoundRectangle, isSecondaryPointer, isSelectedAllElementsInGroup, isSelectedElement, isSelectedElementOrGroup, isSelectionMoving, isSetSelectionOperation, isSetThemeOperation, isSetViewportOperation, isSingleLineHitRectangleEdge, isSnapPoint, isTouchEvent, isValidAngle, isVerticalDirection, isWheelPointer, mountElementG, moveElementsToNewPath, moveElementsToNewPathAfterAddGroup, nonGroupInHighestSelectedElements, normalizeAngle, normalizePoint, prepareElementBBox, radiansToDegrees, removeMovingElements, removeSelectedElement, replaceAngleBrackets, replaceSelectedElement, reverseReplaceAngleBrackets, rgbaToHEX, rotate, rotateAntiPointsByElement, rotateElements, rotatePoints, rotatePointsByAngle, rotatePointsByElement, rotatedDataPoints, scrollToRectangle, setAngleForG, setClipboardData, setDataTransferClipboard, setDataTransferClipboardText, setDragging, setFragment, setIsFromScrolling, setIsFromViewportChange, setPathStrokeLinecap, setSVGViewBox, setSelectedElementsWithGroup, setSelectionMoving, setSelectionOptions, setStrokeLinecap, shouldClear, shouldMerge, shouldSave, sortElements, stripHtml, temporaryDisableSelection, throttleRAF, toActivePoint, toActivePointFromViewBoxPoint, toActiveRectangleFromViewBoxRectangle, toDomPrecision, toFixed, toHostPoint, toHostPointFromViewBoxPoint, toImage, toScreenPointFromActivePoint, toScreenPointFromHostPoint, toViewBoxPoint, toViewBoxPoints, uniqueById, updateForeignObject, updateForeignObjectWidth, updatePoints, updateViewBox, updateViewportByScrolling, updateViewportContainerScroll, updateViewportOffset, updateViewportOrigination, withArrowMoving, withBoard, withHandPointer, withHistory, withHotkey, withI18n, withMoving, withOptions, withRelatedFragment, withSelection };
6905
6901
  //# sourceMappingURL=plait-core.mjs.map