@plait/core 0.12.0 → 0.13.0
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/constants/index.d.ts +1 -0
- package/constants/keycodes.d.ts +126 -0
- package/esm2020/constants/index.mjs +2 -1
- package/esm2020/constants/keycodes.mjs +127 -0
- package/esm2020/testing/fake-events/event-objects.mjs +132 -0
- package/esm2020/testing/fake-events/index.mjs +2 -0
- package/esm2020/testing/index.mjs +2 -1
- package/esm2020/testing/test-element.mjs +9 -0
- package/esm2020/utils/board.mjs +1 -1
- package/esm2020/utils/dom/common.mjs +1 -1
- package/esm2020/utils/dom/environment.mjs +2 -0
- package/esm2020/utils/dom/index.mjs +4 -0
- package/esm2020/utils/index.mjs +2 -3
- package/esm2020/utils/selected-element.mjs +3 -2
- package/fesm2015/plait-core.mjs +256 -2
- package/fesm2015/plait-core.mjs.map +1 -1
- package/fesm2020/plait-core.mjs +263 -2
- package/fesm2020/plait-core.mjs.map +1 -1
- package/package.json +1 -1
- package/testing/fake-events/event-objects.d.ts +46 -0
- package/testing/fake-events/index.d.ts +1 -0
- package/testing/index.d.ts +1 -0
- package/testing/test-element.d.ts +14 -0
- package/utils/dom/environment.d.ts +1 -0
- package/utils/dom/index.d.ts +3 -0
- package/utils/index.d.ts +1 -2
- package/utils/selected-element.d.ts +1 -1
package/fesm2020/plait-core.mjs
CHANGED
|
@@ -658,6 +658,133 @@ const ViewportTransforms$1 = {
|
|
|
658
658
|
setViewport
|
|
659
659
|
};
|
|
660
660
|
|
|
661
|
+
/**
|
|
662
|
+
* @license
|
|
663
|
+
* Copyright Google LLC All Rights Reserved.
|
|
664
|
+
*
|
|
665
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
666
|
+
* found in the LICENSE file at https://angular.io/license
|
|
667
|
+
*/
|
|
668
|
+
const MAC_ENTER = 3;
|
|
669
|
+
const BACKSPACE = 8;
|
|
670
|
+
const TAB = 9;
|
|
671
|
+
const NUM_CENTER = 12;
|
|
672
|
+
const ENTER = 13;
|
|
673
|
+
const SHIFT = 16;
|
|
674
|
+
const CONTROL = 17;
|
|
675
|
+
const ALT = 18;
|
|
676
|
+
const PAUSE = 19;
|
|
677
|
+
const CAPS_LOCK = 20;
|
|
678
|
+
const ESCAPE = 27;
|
|
679
|
+
const SPACE = 32;
|
|
680
|
+
const PAGE_UP = 33;
|
|
681
|
+
const PAGE_DOWN = 34;
|
|
682
|
+
const END = 35;
|
|
683
|
+
const HOME = 36;
|
|
684
|
+
const LEFT_ARROW = 37;
|
|
685
|
+
const UP_ARROW = 38;
|
|
686
|
+
const RIGHT_ARROW = 39;
|
|
687
|
+
const DOWN_ARROW = 40;
|
|
688
|
+
const PLUS_SIGN = 43;
|
|
689
|
+
const PRINT_SCREEN = 44;
|
|
690
|
+
const INSERT = 45;
|
|
691
|
+
const DELETE = 46;
|
|
692
|
+
const ZERO = 48;
|
|
693
|
+
const ONE = 49;
|
|
694
|
+
const TWO = 50;
|
|
695
|
+
const THREE = 51;
|
|
696
|
+
const FOUR = 52;
|
|
697
|
+
const FIVE = 53;
|
|
698
|
+
const SIX = 54;
|
|
699
|
+
const SEVEN = 55;
|
|
700
|
+
const EIGHT = 56;
|
|
701
|
+
const NINE = 57;
|
|
702
|
+
const FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186
|
|
703
|
+
const FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187
|
|
704
|
+
const QUESTION_MARK = 63;
|
|
705
|
+
const AT_SIGN = 64;
|
|
706
|
+
const A = 65;
|
|
707
|
+
const B = 66;
|
|
708
|
+
const C = 67;
|
|
709
|
+
const D = 68;
|
|
710
|
+
const E = 69;
|
|
711
|
+
const F = 70;
|
|
712
|
+
const G = 71;
|
|
713
|
+
const H = 72;
|
|
714
|
+
const I = 73;
|
|
715
|
+
const J = 74;
|
|
716
|
+
const K = 75;
|
|
717
|
+
const L = 76;
|
|
718
|
+
const M = 77;
|
|
719
|
+
const N = 78;
|
|
720
|
+
const O = 79;
|
|
721
|
+
const P = 80;
|
|
722
|
+
const Q = 81;
|
|
723
|
+
const R = 82;
|
|
724
|
+
const S = 83;
|
|
725
|
+
const T = 84;
|
|
726
|
+
const U = 85;
|
|
727
|
+
const V = 86;
|
|
728
|
+
const W = 87;
|
|
729
|
+
const X = 88;
|
|
730
|
+
const Y = 89;
|
|
731
|
+
const Z = 90;
|
|
732
|
+
const META = 91; // WIN_KEY_LEFT
|
|
733
|
+
const MAC_WK_CMD_LEFT = 91;
|
|
734
|
+
const MAC_WK_CMD_RIGHT = 93;
|
|
735
|
+
const CONTEXT_MENU = 93;
|
|
736
|
+
const NUMPAD_ZERO = 96;
|
|
737
|
+
const NUMPAD_ONE = 97;
|
|
738
|
+
const NUMPAD_TWO = 98;
|
|
739
|
+
const NUMPAD_THREE = 99;
|
|
740
|
+
const NUMPAD_FOUR = 100;
|
|
741
|
+
const NUMPAD_FIVE = 101;
|
|
742
|
+
const NUMPAD_SIX = 102;
|
|
743
|
+
const NUMPAD_SEVEN = 103;
|
|
744
|
+
const NUMPAD_EIGHT = 104;
|
|
745
|
+
const NUMPAD_NINE = 105;
|
|
746
|
+
const NUMPAD_MULTIPLY = 106;
|
|
747
|
+
const NUMPAD_PLUS = 107;
|
|
748
|
+
const NUMPAD_MINUS = 109;
|
|
749
|
+
const NUMPAD_PERIOD = 110;
|
|
750
|
+
const NUMPAD_DIVIDE = 111;
|
|
751
|
+
const F1 = 112;
|
|
752
|
+
const F2 = 113;
|
|
753
|
+
const F3 = 114;
|
|
754
|
+
const F4 = 115;
|
|
755
|
+
const F5 = 116;
|
|
756
|
+
const F6 = 117;
|
|
757
|
+
const F7 = 118;
|
|
758
|
+
const F8 = 119;
|
|
759
|
+
const F9 = 120;
|
|
760
|
+
const F10 = 121;
|
|
761
|
+
const F11 = 122;
|
|
762
|
+
const F12 = 123;
|
|
763
|
+
const NUM_LOCK = 144;
|
|
764
|
+
const SCROLL_LOCK = 145;
|
|
765
|
+
const FIRST_MEDIA = 166;
|
|
766
|
+
const FF_MINUS = 173;
|
|
767
|
+
const MUTE = 173; // Firefox (Gecko) fires 181 for MUTE
|
|
768
|
+
const VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN
|
|
769
|
+
const VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP
|
|
770
|
+
const FF_MUTE = 181;
|
|
771
|
+
const FF_VOLUME_DOWN = 182;
|
|
772
|
+
const LAST_MEDIA = 183;
|
|
773
|
+
const FF_VOLUME_UP = 183;
|
|
774
|
+
const SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON
|
|
775
|
+
const EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS
|
|
776
|
+
const COMMA = 188;
|
|
777
|
+
const DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS
|
|
778
|
+
const PERIOD = 190;
|
|
779
|
+
const SLASH = 191;
|
|
780
|
+
const APOSTROPHE = 192;
|
|
781
|
+
const TILDE = 192;
|
|
782
|
+
const OPEN_SQUARE_BRACKET = 219;
|
|
783
|
+
const BACKSLASH = 220;
|
|
784
|
+
const CLOSE_SQUARE_BRACKET = 221;
|
|
785
|
+
const SINGLE_QUOTE = 222;
|
|
786
|
+
const MAC_META = 224;
|
|
787
|
+
|
|
661
788
|
const CLIP_BOARD_FORMAT_KEY = 'x-plait-fragment';
|
|
662
789
|
const SCROLL_BAR_WIDTH = 20;
|
|
663
790
|
const MAX_RADIUS = 16;
|
|
@@ -785,7 +912,7 @@ const Selection = {
|
|
|
785
912
|
}
|
|
786
913
|
};
|
|
787
914
|
|
|
788
|
-
const getHitElements = (board, selection) => {
|
|
915
|
+
const getHitElements = (board, selection, match = () => true) => {
|
|
789
916
|
const realSelection = selection || board.selection;
|
|
790
917
|
const selectedElements = [];
|
|
791
918
|
const isCollapsed = realSelection && realSelection.ranges.length === 1 && Selection.isCollapsed(realSelection.ranges[0]);
|
|
@@ -794,6 +921,7 @@ const getHitElements = (board, selection) => {
|
|
|
794
921
|
return;
|
|
795
922
|
}
|
|
796
923
|
if (!PlaitBoard.isBoard(node) &&
|
|
924
|
+
match(node) &&
|
|
797
925
|
realSelection &&
|
|
798
926
|
realSelection.ranges.some(range => {
|
|
799
927
|
return board.isHitSelection(node, range);
|
|
@@ -982,6 +1110,8 @@ function updateForeignObject(g, width, height, x, y) {
|
|
|
982
1110
|
}
|
|
983
1111
|
}
|
|
984
1112
|
|
|
1113
|
+
const IS_MAC = typeof window != 'undefined' && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform);
|
|
1114
|
+
|
|
985
1115
|
const IS_IOS = typeof navigator !== 'undefined' &&
|
|
986
1116
|
typeof window !== 'undefined' &&
|
|
987
1117
|
/iPad|iPhone|iPod/.test(navigator.userAgent) &&
|
|
@@ -2944,6 +3074,137 @@ const clearNodeWeakMap = (object) => {
|
|
|
2944
3074
|
});
|
|
2945
3075
|
};
|
|
2946
3076
|
|
|
3077
|
+
/**
|
|
3078
|
+
* @license
|
|
3079
|
+
* Copyright Google LLC All Rights Reserved.
|
|
3080
|
+
*
|
|
3081
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
3082
|
+
* found in the LICENSE file at https://angular.io/license
|
|
3083
|
+
*/
|
|
3084
|
+
/** Used to generate unique IDs for events. */
|
|
3085
|
+
let uniqueIds = 0;
|
|
3086
|
+
/**
|
|
3087
|
+
* Creates a browser MouseEvent with the specified options.
|
|
3088
|
+
* @docs-private
|
|
3089
|
+
*/
|
|
3090
|
+
function createMouseEvent(type, clientX = 0, clientY = 0, offsetX = 1, offsetY = 1, button = 0, modifiers = {}) {
|
|
3091
|
+
// Note: We cannot determine the position of the mouse event based on the screen
|
|
3092
|
+
// because the dimensions and position of the browser window are not available
|
|
3093
|
+
// To provide reasonable `screenX` and `screenY` coordinates, we simply use the
|
|
3094
|
+
// client coordinates as if the browser is opened in fullscreen.
|
|
3095
|
+
const screenX = clientX;
|
|
3096
|
+
const screenY = clientY;
|
|
3097
|
+
const event = new MouseEvent(type, {
|
|
3098
|
+
bubbles: true,
|
|
3099
|
+
cancelable: true,
|
|
3100
|
+
composed: true,
|
|
3101
|
+
view: window,
|
|
3102
|
+
detail: 0,
|
|
3103
|
+
relatedTarget: null,
|
|
3104
|
+
screenX,
|
|
3105
|
+
screenY,
|
|
3106
|
+
clientX,
|
|
3107
|
+
clientY,
|
|
3108
|
+
ctrlKey: modifiers.control,
|
|
3109
|
+
altKey: modifiers.alt,
|
|
3110
|
+
shiftKey: modifiers.shift,
|
|
3111
|
+
metaKey: modifiers.meta,
|
|
3112
|
+
button: button,
|
|
3113
|
+
buttons: 1
|
|
3114
|
+
});
|
|
3115
|
+
// The `MouseEvent` constructor doesn't allow us to pass these properties into the constructor.
|
|
3116
|
+
// Override them to `1`, because they're used for fake screen reader event detection.
|
|
3117
|
+
if (offsetX != null) {
|
|
3118
|
+
defineReadonlyEventProperty(event, 'offsetX', offsetX);
|
|
3119
|
+
}
|
|
3120
|
+
if (offsetY != null) {
|
|
3121
|
+
defineReadonlyEventProperty(event, 'offsetY', offsetY);
|
|
3122
|
+
}
|
|
3123
|
+
return event;
|
|
3124
|
+
}
|
|
3125
|
+
/**
|
|
3126
|
+
* Creates a browser `PointerEvent` with the specified options. Pointer events
|
|
3127
|
+
* by default will appear as if they are the primary pointer of their type.
|
|
3128
|
+
* https://www.w3.org/TR/pointerevents2/#dom-pointerevent-isprimary.
|
|
3129
|
+
*
|
|
3130
|
+
* For example, if pointer events for a multi-touch interaction are created, the non-primary
|
|
3131
|
+
* pointer touches would need to be represented by non-primary pointer events.
|
|
3132
|
+
*
|
|
3133
|
+
* @docs-private
|
|
3134
|
+
*/
|
|
3135
|
+
function createPointerEvent(type, clientX = 0, clientY = 0, offsetX, offsetY, options = { isPrimary: true }) {
|
|
3136
|
+
const event = new PointerEvent(type, {
|
|
3137
|
+
bubbles: true,
|
|
3138
|
+
cancelable: true,
|
|
3139
|
+
composed: true,
|
|
3140
|
+
view: window,
|
|
3141
|
+
clientX,
|
|
3142
|
+
clientY,
|
|
3143
|
+
...options
|
|
3144
|
+
});
|
|
3145
|
+
if (offsetX != null) {
|
|
3146
|
+
defineReadonlyEventProperty(event, 'offsetX', offsetX);
|
|
3147
|
+
}
|
|
3148
|
+
if (offsetY != null) {
|
|
3149
|
+
defineReadonlyEventProperty(event, 'offsetY', offsetY);
|
|
3150
|
+
}
|
|
3151
|
+
return event;
|
|
3152
|
+
}
|
|
3153
|
+
/**
|
|
3154
|
+
* Creates a browser TouchEvent with the specified pointer coordinates.
|
|
3155
|
+
* @docs-private
|
|
3156
|
+
*/
|
|
3157
|
+
function createTouchEvent(type, pageX = 0, pageY = 0, clientX = 0, clientY = 0) {
|
|
3158
|
+
// We cannot use the `TouchEvent` or `Touch` because Firefox and Safari lack support.
|
|
3159
|
+
// TODO: Switch to the constructor API when it is available for Firefox and Safari.
|
|
3160
|
+
const event = document.createEvent('UIEvent');
|
|
3161
|
+
const touchDetails = { pageX, pageY, clientX, clientY, identifier: uniqueIds++ };
|
|
3162
|
+
// TS3.6 removes the initUIEvent method and suggests porting to "new UIEvent()".
|
|
3163
|
+
event.initUIEvent(type, true, true, window, 0);
|
|
3164
|
+
// Most of the browsers don't have a "initTouchEvent" method that can be used to define
|
|
3165
|
+
// the touch details.
|
|
3166
|
+
defineReadonlyEventProperty(event, 'touches', [touchDetails]);
|
|
3167
|
+
defineReadonlyEventProperty(event, 'targetTouches', [touchDetails]);
|
|
3168
|
+
defineReadonlyEventProperty(event, 'changedTouches', [touchDetails]);
|
|
3169
|
+
return event;
|
|
3170
|
+
}
|
|
3171
|
+
/**
|
|
3172
|
+
* Creates a keyboard event with the specified key and modifiers.
|
|
3173
|
+
* @docs-private
|
|
3174
|
+
*/
|
|
3175
|
+
function createKeyboardEvent(type, keyCode = 0, key = '', modifiers = {}) {
|
|
3176
|
+
return new KeyboardEvent(type, {
|
|
3177
|
+
bubbles: true,
|
|
3178
|
+
cancelable: true,
|
|
3179
|
+
composed: true,
|
|
3180
|
+
view: window,
|
|
3181
|
+
keyCode: keyCode,
|
|
3182
|
+
key: key,
|
|
3183
|
+
shiftKey: modifiers.shift,
|
|
3184
|
+
metaKey: modifiers.meta,
|
|
3185
|
+
altKey: modifiers.alt,
|
|
3186
|
+
ctrlKey: modifiers.control
|
|
3187
|
+
});
|
|
3188
|
+
}
|
|
3189
|
+
/**
|
|
3190
|
+
* Creates a fake event object with any desired event type.
|
|
3191
|
+
* @docs-private
|
|
3192
|
+
*/
|
|
3193
|
+
function createFakeEvent(type, bubbles = false, cancelable = true, composed = true) {
|
|
3194
|
+
return new Event(type, { bubbles, cancelable, composed });
|
|
3195
|
+
}
|
|
3196
|
+
/**
|
|
3197
|
+
* Defines a readonly property on the given event object. Readonly properties on an event object
|
|
3198
|
+
* are always set as configurable as that matches default readonly properties for DOM event objects.
|
|
3199
|
+
*/
|
|
3200
|
+
function defineReadonlyEventProperty(event, propertyName, value) {
|
|
3201
|
+
Object.defineProperty(event, propertyName, { get: () => value, configurable: true });
|
|
3202
|
+
}
|
|
3203
|
+
function createModModifierKeys() {
|
|
3204
|
+
const modifiers = IS_MAC ? { meta: true } : { control: true };
|
|
3205
|
+
return modifiers;
|
|
3206
|
+
}
|
|
3207
|
+
|
|
2947
3208
|
/*
|
|
2948
3209
|
* Public API Surface of plait
|
|
2949
3210
|
*/
|
|
@@ -2952,5 +3213,5 @@ const clearNodeWeakMap = (object) => {
|
|
|
2952
3213
|
* Generated bundle index. Do not edit.
|
|
2953
3214
|
*/
|
|
2954
3215
|
|
|
2955
|
-
export { BOARD_TO_COMPONENT, BOARD_TO_ELEMENT_HOST, BOARD_TO_HOST, BOARD_TO_IS_SELECTION_MOVING, BOARD_TO_MOVING_ELEMENT, BOARD_TO_MOVING_POINT, BOARD_TO_ON_CHANGE, BOARD_TO_ROUGH_SVG, BOARD_TO_SELECTED_ELEMENT, BOARD_TO_TEMPORARY_ELEMENTS, BOARD_TO_VIEWPORT_ORIGINATION, BoardTransforms, CLIP_BOARD_FORMAT_KEY, ColorfulThemeColor, DarkThemeColor, DefaultThemeColor, ELEMENT_TO_COMPONENT, FLUSHING, IS_APPLE, IS_BOARD_CACHE, IS_CHROME, IS_CHROME_LEGACY, IS_EDGE_LEGACY, IS_FIREFOX, IS_IOS, IS_SAFARI, IS_TEXT_EDITABLE, MAX_RADIUS, MERGING, NODE_TO_INDEX, NODE_TO_PARENT, NS, PATH_REFS, POINTER_BUTTON, Path, PlaitBoard, PlaitBoardComponent, PlaitChildrenElement, PlaitElement, PlaitElementComponent, PlaitHistoryBoard, PlaitIslandBaseComponent, PlaitModule, PlaitNode, PlaitOperation, PlaitPluginElementComponent, PlaitPluginKey, PlaitPointerType, Point, RectangleClient, RetroThemeColor, SAVING, SCROLL_BAR_WIDTH, SELECTION_BORDER_COLOR, SELECTION_FILL_COLOR, Selection, SoftThemeColor, StarryThemeColor, ThemeColorMode, ThemeColors, Transforms, Viewport, addMovingElements, addSelectedElement, arrowPoints, cacheMovingElements, cacheSelectedElements, clampZoomLevel, clearNodeWeakMap, clearSelectedElement, clearSelectionMoving, clearViewportOrigination, createForeignObject, createG, createPath, createSVG, createSelectionOuterG, createTestingBoard, createText, debounce, deleteTemporaryElements, depthFirstRecursion, distanceBetweenPointAndPoint, distanceBetweenPointAndRectangle, distanceBetweenPointAndSegment, downloadImage, drawAbstractRoundRectangle, drawArrow, drawCircle, drawLine, drawLinearPath, drawRoundRectangle, fakeNodeWeakMap, getBoardRectangle, getElementHostBBox, getHitElementOfRoot, getHitElements, getMovingElements, getRealScrollBarWidth, getRectangleByElements, getSelectedElements, getTemporaryElements, getViewBox, getViewBoxCenterPoint, getViewportContainerRect, getViewportOrigination, hasBeforeContextChange, hasInputOrTextareaTarget, hasOnBoardChange, hasOnContextChanged, hotkeys, idCreator, initializeViewBox, initializeViewportContainer, initializeViewportOffset, inverse, isDOMElement, isDOMNode, isFromScrolling, isFromViewportChange, isHitElements, isInPlaitBoard, isMainPointer, isNullOrUndefined, isSecondaryPointer, isSelectedElement, isSelectionMoving, isSetViewportOperation, normalizePoint, removeMovingElements, removeSelectedElement, rotate, scrollToRectangle, setIsFromScrolling, setIsFromViewportChange, setSVGViewBox, setSelectionMoving, shouldClear, shouldMerge, shouldSave, throttleRAF, toImage, toPoint, transformPoint, transformPoints, updateForeignObject, updateViewportContainerScroll, updateViewportOffset, updateViewportOrigination, withMoving, withOptions, withSelection };
|
|
3216
|
+
export { A, ALT, APOSTROPHE, AT_SIGN, B, BACKSLASH, BACKSPACE, BOARD_TO_COMPONENT, BOARD_TO_ELEMENT_HOST, BOARD_TO_HOST, BOARD_TO_IS_SELECTION_MOVING, BOARD_TO_MOVING_ELEMENT, BOARD_TO_MOVING_POINT, BOARD_TO_ON_CHANGE, BOARD_TO_ROUGH_SVG, BOARD_TO_SELECTED_ELEMENT, BOARD_TO_TEMPORARY_ELEMENTS, BOARD_TO_VIEWPORT_ORIGINATION, BoardTransforms, C, CAPS_LOCK, CLIP_BOARD_FORMAT_KEY, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, ColorfulThemeColor, D, DASH, DELETE, DOWN_ARROW, DarkThemeColor, DefaultThemeColor, E, EIGHT, ELEMENT_TO_COMPONENT, END, ENTER, EQUALS, ESCAPE, 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, HOME, I, INSERT, IS_APPLE, IS_BOARD_CACHE, IS_CHROME, IS_CHROME_LEGACY, IS_EDGE_LEGACY, IS_FIREFOX, IS_IOS, IS_MAC, IS_SAFARI, IS_TEXT_EDITABLE, J, K, L, LAST_MEDIA, LEFT_ARROW, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, MAX_RADIUS, MERGING, META, MUTE, N, NINE, 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, PRINT_SCREEN, Path, PlaitBoard, PlaitBoardComponent, PlaitChildrenElement, PlaitElement, PlaitElementComponent, PlaitHistoryBoard, PlaitIslandBaseComponent, PlaitModule, PlaitNode, PlaitOperation, PlaitPluginElementComponent, PlaitPluginKey, PlaitPointerType, Point, Q, QUESTION_MARK, R, RIGHT_ARROW, RectangleClient, RetroThemeColor, S, SAVING, SCROLL_BAR_WIDTH, SCROLL_LOCK, SELECTION_BORDER_COLOR, SELECTION_FILL_COLOR, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SPACE, Selection, SoftThemeColor, StarryThemeColor, T, TAB, THREE, TILDE, TWO, ThemeColorMode, ThemeColors, Transforms, U, UP_ARROW, V, VOLUME_DOWN, VOLUME_UP, Viewport, W, X, Y, Z, ZERO, addMovingElements, addSelectedElement, arrowPoints, cacheMovingElements, cacheSelectedElements, clampZoomLevel, clearNodeWeakMap, clearSelectedElement, clearSelectionMoving, clearViewportOrigination, createFakeEvent, createForeignObject, createG, createKeyboardEvent, createModModifierKeys, createMouseEvent, createPath, createPointerEvent, createSVG, createSelectionOuterG, createTestingBoard, createText, createTouchEvent, debounce, deleteTemporaryElements, depthFirstRecursion, distanceBetweenPointAndPoint, distanceBetweenPointAndRectangle, distanceBetweenPointAndSegment, downloadImage, drawAbstractRoundRectangle, drawArrow, drawCircle, drawLine, drawLinearPath, drawRoundRectangle, fakeNodeWeakMap, getBoardRectangle, getElementHostBBox, getHitElementOfRoot, getHitElements, getMovingElements, getRealScrollBarWidth, getRectangleByElements, getSelectedElements, getTemporaryElements, getViewBox, getViewBoxCenterPoint, getViewportContainerRect, getViewportOrigination, hasBeforeContextChange, hasInputOrTextareaTarget, hasOnBoardChange, hasOnContextChanged, hotkeys, idCreator, initializeViewBox, initializeViewportContainer, initializeViewportOffset, inverse, isDOMElement, isDOMNode, isFromScrolling, isFromViewportChange, isHitElements, isInPlaitBoard, isMainPointer, isNullOrUndefined, isSecondaryPointer, isSelectedElement, isSelectionMoving, isSetViewportOperation, normalizePoint, removeMovingElements, removeSelectedElement, rotate, scrollToRectangle, setIsFromScrolling, setIsFromViewportChange, setSVGViewBox, setSelectionMoving, shouldClear, shouldMerge, shouldSave, throttleRAF, toImage, toPoint, transformPoint, transformPoints, updateForeignObject, updateViewportContainerScroll, updateViewportOffset, updateViewportOrigination, withMoving, withOptions, withSelection };
|
|
2956
3217
|
//# sourceMappingURL=plait-core.mjs.map
|