@zsviczian/excalidraw 0.17.1-obsidian-52 → 0.17.1-obsidian-54
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/excalidraw.development.js +20 -20
- package/dist/excalidraw.production.min.js +1 -1
- package/dist/styles.development.css +2 -2
- package/dist/styles.production.css +1 -1
- package/package.json +1 -1
- package/types/excalidraw/actions/actionClipboard.d.ts +1 -0
- package/types/excalidraw/actions/actionDeleteSelected.d.ts +1 -0
- package/types/excalidraw/data/encode.d.ts +1 -0
- package/types/excalidraw/element/linearElementEditor.d.ts +1 -0
- package/types/excalidraw/element/routing.d.ts +8 -6
- package/types/excalidraw/element/typeChecks.d.ts +1 -1
- package/types/excalidraw/element/types.d.ts +1 -2
- package/types/excalidraw/obsidianUtils.d.ts +0 -1
- package/types/excalidraw/scene/Scene.d.ts +1 -1
- package/types/excalidraw/scene/ShapeCache.d.ts +1 -1
- package/types/excalidraw/scene/comparisons.d.ts +477 -1
- package/types/excalidraw/visualdebug.d.ts +2 -2
|
@@ -4844,12 +4844,12 @@
|
|
|
4844
4844
|
flex: 1 0 auto;
|
|
4845
4845
|
}
|
|
4846
4846
|
.excalidraw .layer-ui__search-header .ExcTextField__input {
|
|
4847
|
-
background-color: var(--color-gray-
|
|
4847
|
+
background-color: var(--color-gray-50);
|
|
4848
4848
|
border-radius: var(--border-radius-md);
|
|
4849
4849
|
border: 0;
|
|
4850
4850
|
}
|
|
4851
4851
|
.excalidraw.theme--dark.excalidraw .layer-ui__search-header .ExcTextField__input {
|
|
4852
|
-
background-color: var(--color-gray-
|
|
4852
|
+
background-color: var(--color-gray-50);
|
|
4853
4853
|
}
|
|
4854
4854
|
|
|
4855
4855
|
.excalidraw .layer-ui__search-header .ExcTextField__input input::placeholder {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
:export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .sidebar{display:flex;flex-direction:column;position:absolute;top:0;bottom:0;right:0;z-index:5;margin:0;padding:0;box-sizing:border-box;background-color:var(--sidebar-bg-color);box-shadow:var(--sidebar-shadow);pointer-events:var(--ui-pointerEvents);overflow:hidden;border-radius:0;width:calc(302px - var(--space-factor) * 2);border-left:1px solid var(--sidebar-border-color)}:root[dir=rtl] .excalidraw .sidebar{left:0;right:auto}.excalidraw .sidebar--docked{box-shadow:none}:root[dir=rtl] .excalidraw .sidebar{border-right:1px solid var(--sidebar-border-color);border-left:0}.excalidraw .sidebar__header{box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;width:100%;padding:1rem .75rem;position:relative}.excalidraw .sidebar__header::after{content:"";width:calc(100% - 1.5rem);height:1px;background:var(--sidebar-border-color);position:absolute;bottom:-1px}.excalidraw .sidebar__header__buttons{gap:0;display:flex;align-items:center;margin-left:auto}.excalidraw .sidebar__header__buttons button{display:flex;justify-content:center;align-items:center;padding:.625rem;width:var(--button-width, var(--default-button-size));height:var(--button-height, var(--default-button-size));box-sizing:border-box;border-width:1px;border-style:solid;border-color:var(--button-border, var(--default-border-color));border-radius:var(--border-radius-lg);cursor:pointer;background-color:var(--button-bg, var(--island-bg-color));color:var(--button-color, var(--color-on-surface));font-family:var(--ui-font);--button-bg: transparent;border:0 !important;width:var(--lg-button-size);height:var(--lg-button-size);padding:0}.excalidraw .sidebar__header__buttons button svg{width:var(--button-width, var(--lg-icon-size));height:var(--button-height, var(--lg-icon-size))}.excalidraw .sidebar__header__buttons button:hover{background-color:var(--button-hover-bg, var(--island-bg-color));border-color:var(--button-hover-border, var(--button-border, var(--default-border-color)));color:var(--button-hover-color, var(--button-color, var(--text-primary-color, inherit)))}.excalidraw .sidebar__header__buttons button:active{background-color:var(--button-active-bg, var(--island-bg-color));border-color:var(--button-active-border, var(--color-primary-darkest))}.excalidraw .sidebar__header__buttons button.active{background-color:var(--button-selected-bg, var(--color-surface-primary-container));border-color:var(--button-selected-border, var(--color-surface-primary-container))}.excalidraw .sidebar__header__buttons button.active:hover{background-color:var(--button-selected-hover-bg, var(--color-surface-primary-container))}.excalidraw .sidebar__header__buttons button.active svg{color:var(--button-color, var(--color-on-primary-container))}.excalidraw .sidebar__header__buttons button svg{width:var(--lg-icon-size);height:var(--lg-icon-size)}.excalidraw .sidebar__header__buttons button:hover{background:var(--button-hover-bg, var(--island-bg-color))}.excalidraw .sidebar__header__buttons .sidebar__dock.selected svg{stroke:var(--color-primary);fill:var(--color-primary)}.excalidraw .sidebar-tabs-root{display:flex;flex-direction:column;flex:1 1 auto;padding:1rem 0}.excalidraw .sidebar-tabs-root [role=tabpanel]{flex:1;outline:none;flex:1 1 auto;display:flex;flex-direction:column;outline:none}.excalidraw .sidebar-tabs-root [role=tabpanel][data-state=inactive]{display:none !important}.excalidraw .sidebar-tabs-root [role=tablist]{display:grid;gap:1rem;grid-template-columns:repeat(auto-fit, minmax(0, 1fr))}.excalidraw .sidebar-tabs-root>.sidebar__header{padding-top:0;padding-bottom:1rem}.excalidraw .sidebar-tab-trigger{--button-width: auto;--button-bg: transparent;--button-hover-bg: transparent;--button-active-bg: var(--color-primary);--button-hover-color: var(--color-primary);--button-hover-border: var(--color-primary)}.excalidraw .sidebar-tab-trigger[data-state=active]{--button-bg: var(--color-primary);--button-hover-bg: var(--color-primary-darker);--button-hover-color: var(--color-icon-white);--button-border: var(--color-primary);color:var(--color-icon-white)}.excalidraw .default-sidebar{display:flex;flex-direction:column}.excalidraw .default-sidebar .sidebar-triggers{display:flex;gap:0;padding:2px;margin-top:-3px;margin-bottom:-3px;border:1px solid var(--sidebar-border-color);background:var(--default-bg-color);border-radius:.625rem}.excalidraw .default-sidebar .sidebar-triggers .sidebar-tab-trigger{height:var(--lg-button-size);width:var(--lg-button-size);border:none}
|
|
51
51
|
.excalidraw .ActiveFile .ActiveFile__fileName{display:flex;align-items:center}.excalidraw .ActiveFile .ActiveFile__fileName span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:9.3em}.excalidraw .ActiveFile .ActiveFile__fileName svg{width:1.15em;margin-inline-end:.3em;transform:scaleY(0.9)}
|
|
52
52
|
:export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .OverwriteConfirm{display:flex;flex-direction:column;align-items:center;gap:.75rem;isolation:isolate}.excalidraw .OverwriteConfirm h3{margin:0;font-weight:700;font-size:1.3125rem;line-height:130%;align-self:flex-start;color:var(--text-primary-color)}.excalidraw .OverwriteConfirm__Description{box-sizing:border-box;display:flex;flex-direction:row;align-items:center;width:100%;gap:1rem;padding:2.5rem;background:var(--color-danger-background);border-radius:.5rem;font-family:"Assistant";font-style:normal;font-weight:400;font-size:1rem;line-height:150%;color:var(--color-danger-color)}.excalidraw--mobile.excalidraw .OverwriteConfirm__Description{flex-direction:column;text-align:center}.excalidraw .OverwriteConfirm__Description__spacer{flex-grow:1}.excalidraw .OverwriteConfirm__Description__icon{box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:2.5rem;background:var(--color-danger-icon-background);width:3.5rem;height:3.5rem;padding:.75rem}.excalidraw .OverwriteConfirm__Description__icon svg{color:var(--color-danger-icon-color);width:1.5rem;height:1.5rem}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning{background:var(--color-warning-background);color:var(--color-warning-color)}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning .OverwriteConfirm__Description__icon{background:var(--color-warning-icon-background);flex:0 0 auto}.excalidraw .OverwriteConfirm__Description.OverwriteConfirm__Description--color-warning .OverwriteConfirm__Description__icon svg{color:var(--color-warning-icon-color)}.excalidraw .OverwriteConfirm__Actions{display:flex;flex-direction:row;align-items:stretch;justify-items:stretch;justify-content:center;gap:1.5rem}.excalidraw--mobile.excalidraw .OverwriteConfirm__Actions{flex-direction:column}.excalidraw .OverwriteConfirm__Actions__Action{display:flex;flex-direction:column;align-items:center;padding:1.5rem;gap:.75rem;flex-basis:50%;flex-grow:0}.excalidraw .OverwriteConfirm__Actions__Action__content{height:100%;font-size:.875rem;text-align:center}.excalidraw .OverwriteConfirm__Actions__Action h4{font-weight:700;font-size:1.125rem;line-height:130%;margin:0;color:var(--text-primary-color)}
|
|
53
|
-
.excalidraw .layer-ui__search{flex:1 0 auto;display:flex;flex-direction:column;padding:8px 0 0 0}.excalidraw .layer-ui__search-header{display:flex;justify-content:space-between;align-items:center;padding:0 .75rem}.excalidraw .layer-ui__search-header .ExcTextField{flex:1 0 auto}.excalidraw .layer-ui__search-header .ExcTextField__input{background-color:var(--color-gray-
|
|
53
|
+
.excalidraw .layer-ui__search{flex:1 0 auto;display:flex;flex-direction:column;padding:8px 0 0 0}.excalidraw .layer-ui__search-header{display:flex;justify-content:space-between;align-items:center;padding:0 .75rem}.excalidraw .layer-ui__search-header .ExcTextField{flex:1 0 auto}.excalidraw .layer-ui__search-header .ExcTextField__input{background-color:var(--color-gray-50);border-radius:var(--border-radius-md);border:0}.excalidraw.theme--dark.excalidraw .layer-ui__search-header .ExcTextField__input{background-color:var(--color-gray-50)}.excalidraw .layer-ui__search-header .ExcTextField__input input::placeholder{font-size:.9rem}.excalidraw .layer-ui__search-count{display:flex;justify-content:space-between;align-items:center;padding:8px 8px 0 8px;margin:0 .75rem .25rem .75rem;font-size:.8em}.excalidraw .layer-ui__search-count .result-nav{display:flex}.excalidraw .layer-ui__search-count .result-nav .result-nav-btn{width:36px;height:36px;--button-border: transparent}.excalidraw .layer-ui__search-count .result-nav .result-nav-btn:active{background-color:var(--color-surface-high)}.excalidraw .layer-ui__search-count .result-nav .result-nav-btn:first{margin-right:4px}.excalidraw .layer-ui__search-result-container{overflow-y:auto;flex:1 1 0;display:flex;flex-direction:column;gap:.125rem}.excalidraw .layer-ui__result-item{display:flex;align-items:center;min-height:2rem;flex:0 0 auto;padding:.25rem .75rem;cursor:pointer;border:1px solid rgba(0,0,0,0);outline:none;margin:0 .75rem;border-radius:var(--border-radius-md)}.excalidraw .layer-ui__result-item .text-icon{width:1rem;height:1rem;margin-right:.75rem}.excalidraw .layer-ui__result-item .preview-text{flex:1;max-height:48px;line-height:24px;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.excalidraw .layer-ui__result-item:hover{background-color:var(--color-surface-high)}.excalidraw .layer-ui__result-item:active{border-color:var(--color-primary)}.excalidraw .layer-ui__result-item.active{background-color:var(--color-surface-high)}
|
|
54
54
|
:export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .Modal.Dialog.ttd-dialog{padding:1.25rem}.excalidraw .Modal.Dialog.ttd-dialog.Dialog--fullscreen{margin-top:0}.excalidraw .Modal.Dialog.ttd-dialog .Island{padding-inline:0 !important;height:100%;display:flex;flex-direction:column;flex:1 1 auto;box-shadow:none}.excalidraw .Modal.Dialog.ttd-dialog .Modal__content{height:auto;max-height:100%}@media screen and (min-width: 861px){.excalidraw .Modal.Dialog.ttd-dialog .Modal__content{max-height:750px;height:100%}}.excalidraw .Modal.Dialog.ttd-dialog .Dialog__content{flex:1 1 auto}.excalidraw .ttd-dialog-desc{font-size:15px;font-style:italic;font-weight:500;margin-bottom:1.5rem}.excalidraw .ttd-dialog-tabs-root{width:100%;height:100%;display:flex;flex-direction:column}.excalidraw .ttd-dialog-tab-trigger{color:var(--color-on-surface);font-size:.875rem;margin:0;padding:0 1rem;background-color:rgba(0,0,0,0);border:0;height:2.875rem;font-weight:600;font-family:inherit;letter-spacing:.4px}.excalidraw .ttd-dialog-tab-trigger[data-state=active]{border-bottom:2px solid var(--color-primary)}.excalidraw .ttd-dialog-triggers{border-bottom:1px solid var(--color-surface-high);margin-bottom:1.5rem;padding-inline:2.5rem}.excalidraw .ttd-dialog-content{padding-inline:2.5rem;height:100%;display:flex;flex-direction:column}.excalidraw .ttd-dialog-content[hidden]{display:none}.excalidraw .ttd-dialog-input{width:auto;height:10rem;resize:none;border-radius:var(--border-radius-lg);border:1px solid var(--dialog-border-color);white-space:pre-wrap;padding:.85rem;box-sizing:border-box;font-family:monospace;text-wrap:wrap !important}@media screen and (min-width: 861px){.excalidraw .ttd-dialog-input{width:100%;height:100%}}.excalidraw .ttd-dialog-output-wrapper{display:flex;align-items:center;justify-content:center;padding:.85rem;box-sizing:border-box;flex-grow:1;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==) left center;border-radius:var(--border-radius-lg);border:1px solid var(--dialog-border-color);height:400px;width:auto}@media screen and (min-width: 861px){.excalidraw .ttd-dialog-output-wrapper{width:100%;height:200px}}.excalidraw .ttd-dialog-output-wrapper canvas{max-width:100%;max-height:100%}.excalidraw .ttd-dialog-output-canvas-container{display:flex;width:100%;height:100%;align-items:center;justify-content:center;flex-grow:1}.excalidraw .ttd-dialog-output-error{color:red;font-weight:700;font-size:30px;word-break:break-word;overflow:auto;max-height:100%;height:100%;width:100%;text-align:center;position:absolute;z-index:10}.excalidraw .ttd-dialog-output-error p{font-weight:500;font-family:Cascadia;text-align:left;white-space:pre-wrap;font-size:.875rem;padding:0 10px}.excalidraw .ttd-dialog-panels{height:100%}@media screen and (min-width: 861px){.excalidraw .ttd-dialog-panels{display:grid;grid-template-columns:1fr 1fr;gap:4rem}}.excalidraw .ttd-dialog-panel{display:flex;flex-direction:column;width:100%}.excalidraw .ttd-dialog-panel__header{display:flex;margin:0px 4px 4px 4px;align-items:center;gap:1rem}.excalidraw .ttd-dialog-panel__header label{font-size:14px;font-style:normal;font-weight:600}.excalidraw .ttd-dialog-panel:first-child .ttd-dialog-panel-button-container:not(.invisible){margin-bottom:4rem}@media screen and (min-width: 861px){.excalidraw .ttd-dialog-panel .ttd-dialog-panel-button-container:not(.invisible){margin-bottom:.5rem !important}}.excalidraw .ttd-dialog-panel textarea{height:100%;resize:none;border-radius:var(--border-radius-lg);border:1px solid var(--dialog-border-color);white-space:pre-wrap;padding:.85rem;box-sizing:border-box;width:100%;font-family:monospace}@media screen and (max-width: 861px){.excalidraw .ttd-dialog-panel textarea{width:auto;height:10rem}}.excalidraw .ttd-dialog-panel-button-container{margin-top:1rem;margin-bottom:.5rem}.excalidraw .ttd-dialog-panel-button-container.invisible .ttd-dialog-panel-button{display:none}@media screen and (min-width: 861px){.excalidraw .ttd-dialog-panel-button-container.invisible .ttd-dialog-panel-button{display:block;visibility:hidden}}.excalidraw .ttd-dialog-panel-button{position:relative}.excalidraw .ttd-dialog-panel-button.excalidraw-button{font-family:inherit;font-weight:600;height:2.5rem;font-size:12px;color:#fff;background-color:var(--color-primary);width:100%}.excalidraw .ttd-dialog-panel-button.excalidraw-button:hover{background-color:var(--color-primary-darker)}.excalidraw .ttd-dialog-panel-button.excalidraw-button:active{background-color:var(--color-primary-darkest)}.excalidraw .ttd-dialog-panel-button.excalidraw-button:disabled{opacity:.5;cursor:not-allowed}.excalidraw .ttd-dialog-panel-button.excalidraw-button:disabled:hover{background-color:var(--color-primary)}@media screen and (min-width: 861px){.excalidraw .ttd-dialog-panel-button.excalidraw-button{width:auto;min-width:7.5rem}}.excalidraw.theme--dark.excalidraw .ttd-dialog-panel-button.excalidraw-button{color:var(--color-gray-100)}.excalidraw .ttd-dialog-panel-button div{display:contents}.excalidraw .ttd-dialog-panel-button div.invisible{visibility:hidden}.excalidraw .ttd-dialog-panel-button div.Spinner{display:flex !important;position:absolute;inset:0;--spinner-color: white}.excalidraw.theme--dark.excalidraw .ttd-dialog-panel-button div.Spinner{--spinner-color: var(--color-gray-100)}.excalidraw .ttd-dialog-panel-button div span{padding-left:.5rem;display:flex}.excalidraw .ttd-dialog-submit-shortcut{margin-inline-start:.5rem;font-size:.625rem;opacity:.6;display:flex;gap:.125rem}.excalidraw .ttd-dialog-submit-shortcut__key{border:1px solid gray;padding:2px 3px;border-radius:4px}
|
|
55
55
|
:export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .layer-ui__wrapper.animate{transition:width .1s ease-in-out}.excalidraw .layer-ui__wrapper{position:absolute;width:100%;height:100%;pointer-events:none;z-index:var(--zIndex-layerUI)}.excalidraw .layer-ui__wrapper__top-right{display:flex;width:100%;justify-content:flex-end;pointer-events:none !important}.excalidraw .layer-ui__wrapper__top-right>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .layer-ui__wrapper__footer{width:100%}.excalidraw .layer-ui__wrapper__footer-right{z-index:100;display:flex}.excalidraw .layer-ui__wrapper .zen-mode-transition{transition:transform .5s ease-in-out}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{transform:translate(-999px, 0)}:root[dir=ltr] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-left{transform:translate(999px, 0)}:root[dir=rtl] .excalidraw .layer-ui__wrapper .zen-mode-transition.transition-right{transform:translate(-999px, 0)}.excalidraw .layer-ui__wrapper .zen-mode-transition.layer-ui__wrapper__footer-left--transition-bottom{transform:translate(0, 92px)}.excalidraw .layer-ui__wrapper .disable-zen-mode{padding:10px;position:absolute;bottom:0;opacity:0;visibility:hidden;transition:visibility 0s linear 0s,opacity .5s;font-family:var(--ui-font);font-size:.75rem;font-weight:500;line-height:1;border-radius:var(--border-radius-lg);border:1px solid var(--default-border-color);background-color:var(--island-bg-color);color:var(--text-primary-color)}[dir=ltr] .excalidraw .layer-ui__wrapper .disable-zen-mode{right:1rem}[dir=rtl] .excalidraw .layer-ui__wrapper .disable-zen-mode{left:1rem}.excalidraw .layer-ui__wrapper .disable-zen-mode:hover{background-color:var(--button-hover-bg)}.excalidraw .layer-ui__wrapper .disable-zen-mode:active{border-color:var(--color-primary)}.excalidraw .layer-ui__wrapper .disable-zen-mode--visible{opacity:1;visibility:visible;transition:visibility 0s linear 300ms,opacity .5s;transition-delay:.8s;pointer-events:var(--ui-pointerEvents)}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-left>*,.excalidraw .layer-ui__wrapper .footer-center>*,.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right>*{pointer-events:var(--ui-pointerEvents)}.excalidraw .layer-ui__wrapper .layer-ui__wrapper__footer-right{margin-top:auto;margin-bottom:auto}
|
|
56
56
|
:export{themeFilter:invert(93%) hue-rotate(180deg);rightSidebarWidth:302px}.excalidraw .App-toolbar.zen-mode .ToolIcon__keybinding,.excalidraw .App-toolbar.zen-mode .HintViewer{display:none}.excalidraw .App-toolbar__divider{width:1px;height:1.5rem;align-self:center;background-color:var(--default-border-color);margin:0 .25rem}.excalidraw--mobile.excalidraw .App-toolbar__divider{margin:0}.excalidraw .App-toolbar__extra-tools-trigger{box-shadow:none;border:0;background-color:rgba(0,0,0,0)}.excalidraw .App-toolbar__extra-tools-trigger:active{background-color:var(--button-hover-bg);box-shadow:0 0 0 1px var(--button-active-border, var(--color-primary-darkest)) inset}.excalidraw .App-toolbar__extra-tools-trigger--selected,.excalidraw .App-toolbar__extra-tools-trigger--selected:hover{background:var(--color-primary-light);color:var(--color-primary)}.excalidraw .App-toolbar__extra-tools-dropdown{margin-top:.375rem;right:0;min-width:11.875rem;z-index:1}
|
package/package.json
CHANGED
|
@@ -664,6 +664,7 @@ export declare const actionCut: {
|
|
|
664
664
|
}>;
|
|
665
665
|
hoverPointIndex: number;
|
|
666
666
|
segmentMidPointHoveredCoords: import("../../math").GlobalPoint | null;
|
|
667
|
+
elbowed: boolean;
|
|
667
668
|
};
|
|
668
669
|
contextMenu: {
|
|
669
670
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -241,6 +241,7 @@ export declare const actionDeleteSelected: {
|
|
|
241
241
|
}>;
|
|
242
242
|
hoverPointIndex: number;
|
|
243
243
|
segmentMidPointHoveredCoords: import("../../math").GlobalPoint | null;
|
|
244
|
+
elbowed: boolean;
|
|
244
245
|
};
|
|
245
246
|
contextMenu: {
|
|
246
247
|
items: import("../components/ContextMenu").ContextMenuItems;
|
|
@@ -5,6 +5,7 @@ export declare const toByteString: (data: string | Uint8Array | ArrayBuffer) =>
|
|
|
5
5
|
*/
|
|
6
6
|
export declare const stringToBase64: (str: string, isByteString?: boolean) => Promise<string>;
|
|
7
7
|
export declare const base64ToString: (base64: string, isByteString?: boolean) => Promise<string>;
|
|
8
|
+
export declare const base64ToArrayBuffer: (base64: string) => ArrayBuffer;
|
|
8
9
|
type EncodedData = {
|
|
9
10
|
encoded: string;
|
|
10
11
|
encoding: "bstring";
|
|
@@ -41,6 +41,7 @@ export declare class LinearElementEditor {
|
|
|
41
41
|
readonly endBindingElement: ExcalidrawBindableElement | null | "keep";
|
|
42
42
|
readonly hoverPointIndex: number;
|
|
43
43
|
readonly segmentMidPointHoveredCoords: GlobalPoint | null;
|
|
44
|
+
readonly elbowed: boolean;
|
|
44
45
|
constructor(element: NonDeleted<ExcalidrawLinearElement>);
|
|
45
46
|
static POINT_HANDLE_SIZE: number;
|
|
46
47
|
/**
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { type LocalPoint, type Vector } from "../../math";
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
endBinding?: FixedPointBinding | null;
|
|
6
|
-
}, options?: {
|
|
2
|
+
import type { ElementUpdate } from "./mutateElement";
|
|
3
|
+
import type { ExcalidrawElbowArrowElement, NonDeletedSceneElementsMap, SceneElementsMap } from "./types";
|
|
4
|
+
export declare const mutateElbowArrow: (arrow: ExcalidrawElbowArrowElement, elementsMap: NonDeletedSceneElementsMap | SceneElementsMap, nextPoints: readonly LocalPoint[], offset?: Vector, otherUpdates?: Omit<ElementUpdate<ExcalidrawElbowArrowElement>, "angle" | "x" | "y" | "width" | "height" | "elbowed" | "points">, options?: {
|
|
7
5
|
isDragging?: boolean;
|
|
8
|
-
disableBinding?: boolean;
|
|
9
6
|
informMutation?: boolean;
|
|
10
7
|
}) => void;
|
|
8
|
+
export declare const updateElbowArrow: (arrow: ExcalidrawElbowArrowElement, elementsMap: NonDeletedSceneElementsMap | SceneElementsMap, nextPoints: readonly LocalPoint[], offset?: Vector, options?: {
|
|
9
|
+
isDragging?: boolean;
|
|
10
|
+
disableBinding?: boolean;
|
|
11
|
+
informMutation?: boolean;
|
|
12
|
+
}) => ElementUpdate<ExcalidrawElbowArrowElement> | null;
|
|
@@ -35,5 +35,5 @@ export declare const getDefaultRoundnessTypeForElement: (element: ExcalidrawElem
|
|
|
35
35
|
} | {
|
|
36
36
|
type: 3;
|
|
37
37
|
} | null;
|
|
38
|
-
export declare const isFixedPointBinding: (binding: PointBinding) => binding is FixedPointBinding;
|
|
38
|
+
export declare const isFixedPointBinding: (binding: PointBinding | FixedPointBinding) => binding is FixedPointBinding;
|
|
39
39
|
export declare const isBounds: (box: unknown) => box is Bounds;
|
|
@@ -149,7 +149,7 @@ export type ExcalidrawRectanguloidElement = ExcalidrawRectangleElement | Excalid
|
|
|
149
149
|
* no computed data. The list of all ExcalidrawElements should be shareable
|
|
150
150
|
* between peers and contain no state local to the peer.
|
|
151
151
|
*/
|
|
152
|
-
export type ExcalidrawElement = ExcalidrawGenericElement | ExcalidrawTextElement | ExcalidrawLinearElement | ExcalidrawFreeDrawElement | ExcalidrawImageElement | ExcalidrawFrameElement | ExcalidrawMagicFrameElement | ExcalidrawIframeElement | ExcalidrawEmbeddableElement;
|
|
152
|
+
export type ExcalidrawElement = ExcalidrawGenericElement | ExcalidrawTextElement | ExcalidrawLinearElement | ExcalidrawArrowElement | ExcalidrawFreeDrawElement | ExcalidrawImageElement | ExcalidrawFrameElement | ExcalidrawMagicFrameElement | ExcalidrawIframeElement | ExcalidrawEmbeddableElement;
|
|
153
153
|
export type ExcalidrawNonSelectionElement = Exclude<ExcalidrawElement, ExcalidrawSelectionElement>;
|
|
154
154
|
export type Ordered<TElement extends ExcalidrawElement> = TElement & {
|
|
155
155
|
index: FractionalIndex;
|
|
@@ -194,7 +194,6 @@ export type PointBinding = {
|
|
|
194
194
|
elementId: ExcalidrawBindableElement["id"];
|
|
195
195
|
focus: number;
|
|
196
196
|
gap: number;
|
|
197
|
-
fixedPoint: FixedPoint | null;
|
|
198
197
|
};
|
|
199
198
|
export type FixedPointBinding = Merge<PointBinding, {
|
|
200
199
|
fixedPoint: FixedPoint;
|
|
@@ -15,4 +15,3 @@ export declare function registerLocalFont(fontMetrics: FontMetadata & {
|
|
|
15
15
|
export declare function getFontFamilies(): string[];
|
|
16
16
|
export declare function registerFontsInCSS(): Promise<void>;
|
|
17
17
|
export declare function getCSSFontDefinition(fontFamily: number): Promise<string>;
|
|
18
|
-
export declare function getArrayBufferFromBase64(url: string): ArrayBuffer;
|
|
@@ -73,6 +73,6 @@ declare class Scene {
|
|
|
73
73
|
getElementIndex(elementId: string): number;
|
|
74
74
|
getContainerElement: (element: (ExcalidrawElement & {
|
|
75
75
|
containerId: ExcalidrawElement["id"] | null;
|
|
76
|
-
}) | null) =>
|
|
76
|
+
}) | null) => import("../element/types").ExcalidrawSelectionElement | import("../element/types").ExcalidrawRectangleElement | import("../element/types").ExcalidrawDiamondElement | import("../element/types").ExcalidrawEllipseElement | import("../element/types").ExcalidrawTextElement | import("../element/types").ExcalidrawLinearElement | import("../element/types").ExcalidrawFreeDrawElement | import("../element/types").ExcalidrawImageElement | import("../element/types").ExcalidrawFrameElement | import("../element/types").ExcalidrawMagicFrameElement | import("../element/types").ExcalidrawIframeElement | import("../element/types").ExcalidrawEmbeddableElement | null;
|
|
77
77
|
}
|
|
78
78
|
export default Scene;
|
|
@@ -17,7 +17,7 @@ export declare class ShapeCache {
|
|
|
17
17
|
* Generates & caches shape for element if not already cached, otherwise
|
|
18
18
|
* returns cached shape.
|
|
19
19
|
*/
|
|
20
|
-
static generateElementShape: <T extends import("../element/types").ExcalidrawRectangleElement | import("../element/types").ExcalidrawDiamondElement | import("../element/types").ExcalidrawEllipseElement | import("../element/types").ExcalidrawTextElement | import("../element/types").ExcalidrawLinearElement | import("../element/types").ExcalidrawFreeDrawElement | import("../element/types").ExcalidrawImageElement | import("../element/types").ExcalidrawFrameElement | import("../element/types").ExcalidrawMagicFrameElement | import("../element/types").ExcalidrawIframeElement | import("../element/types").ExcalidrawEmbeddableElement>(element: T, renderConfig: {
|
|
20
|
+
static generateElementShape: <T extends import("../element/types").ExcalidrawRectangleElement | import("../element/types").ExcalidrawDiamondElement | import("../element/types").ExcalidrawEllipseElement | import("../element/types").ExcalidrawTextElement | import("../element/types").ExcalidrawLinearElement | import("../element/types").ExcalidrawArrowElement | import("../element/types").ExcalidrawFreeDrawElement | import("../element/types").ExcalidrawImageElement | import("../element/types").ExcalidrawFrameElement | import("../element/types").ExcalidrawMagicFrameElement | import("../element/types").ExcalidrawIframeElement | import("../element/types").ExcalidrawEmbeddableElement>(element: T, renderConfig: {
|
|
21
21
|
isExporting: boolean;
|
|
22
22
|
canvasBackgroundColor: AppState["viewBackgroundColor"];
|
|
23
23
|
embedsValidationStatus: EmbedsValidationStatus;
|
|
@@ -7,5 +7,481 @@ export declare const hasStrokeStyle: (type: ElementOrToolType) => boolean;
|
|
|
7
7
|
export declare const canChangeRoundness: (type: ElementOrToolType) => boolean;
|
|
8
8
|
export declare const toolIsArrow: (type: ElementOrToolType) => boolean;
|
|
9
9
|
export declare const canHaveArrowheads: (type: ElementOrToolType) => boolean;
|
|
10
|
-
export declare const getElementAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) =>
|
|
10
|
+
export declare const getElementAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => (Readonly<{
|
|
11
|
+
id: string;
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
strokeColor: string;
|
|
15
|
+
backgroundColor: string;
|
|
16
|
+
fillStyle: import("../element/types").FillStyle;
|
|
17
|
+
strokeWidth: number;
|
|
18
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
19
|
+
roundness: {
|
|
20
|
+
type: import("../element/types").RoundnessType;
|
|
21
|
+
value?: number | undefined;
|
|
22
|
+
} | null;
|
|
23
|
+
roughness: number;
|
|
24
|
+
opacity: number;
|
|
25
|
+
width: number;
|
|
26
|
+
height: number;
|
|
27
|
+
angle: import("../../math").Radians;
|
|
28
|
+
seed: number;
|
|
29
|
+
version: number;
|
|
30
|
+
versionNonce: number;
|
|
31
|
+
index: import("../element/types").FractionalIndex | null;
|
|
32
|
+
isDeleted: boolean;
|
|
33
|
+
groupIds: readonly string[];
|
|
34
|
+
frameId: string | null;
|
|
35
|
+
boundElements: readonly Readonly<{
|
|
36
|
+
id: string;
|
|
37
|
+
type: "text" | "arrow";
|
|
38
|
+
}>[] | null;
|
|
39
|
+
updated: number;
|
|
40
|
+
link: string | null;
|
|
41
|
+
locked: boolean;
|
|
42
|
+
customData?: Record<string, any> | undefined;
|
|
43
|
+
}> & {
|
|
44
|
+
type: "rectangle";
|
|
45
|
+
} & {
|
|
46
|
+
isDeleted: boolean;
|
|
47
|
+
}) | (Readonly<{
|
|
48
|
+
id: string;
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
strokeColor: string;
|
|
52
|
+
backgroundColor: string;
|
|
53
|
+
fillStyle: import("../element/types").FillStyle;
|
|
54
|
+
strokeWidth: number;
|
|
55
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
56
|
+
roundness: {
|
|
57
|
+
type: import("../element/types").RoundnessType;
|
|
58
|
+
value?: number | undefined;
|
|
59
|
+
} | null;
|
|
60
|
+
roughness: number;
|
|
61
|
+
opacity: number;
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
angle: import("../../math").Radians;
|
|
65
|
+
seed: number;
|
|
66
|
+
version: number;
|
|
67
|
+
versionNonce: number;
|
|
68
|
+
index: import("../element/types").FractionalIndex | null;
|
|
69
|
+
isDeleted: boolean;
|
|
70
|
+
groupIds: readonly string[];
|
|
71
|
+
frameId: string | null;
|
|
72
|
+
boundElements: readonly Readonly<{
|
|
73
|
+
id: string;
|
|
74
|
+
type: "text" | "arrow";
|
|
75
|
+
}>[] | null;
|
|
76
|
+
updated: number;
|
|
77
|
+
link: string | null;
|
|
78
|
+
locked: boolean;
|
|
79
|
+
customData?: Record<string, any> | undefined;
|
|
80
|
+
}> & {
|
|
81
|
+
type: "diamond";
|
|
82
|
+
} & {
|
|
83
|
+
isDeleted: boolean;
|
|
84
|
+
}) | (Readonly<{
|
|
85
|
+
id: string;
|
|
86
|
+
x: number;
|
|
87
|
+
y: number;
|
|
88
|
+
strokeColor: string;
|
|
89
|
+
backgroundColor: string;
|
|
90
|
+
fillStyle: import("../element/types").FillStyle;
|
|
91
|
+
strokeWidth: number;
|
|
92
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
93
|
+
roundness: {
|
|
94
|
+
type: import("../element/types").RoundnessType;
|
|
95
|
+
value?: number | undefined;
|
|
96
|
+
} | null;
|
|
97
|
+
roughness: number;
|
|
98
|
+
opacity: number;
|
|
99
|
+
width: number;
|
|
100
|
+
height: number;
|
|
101
|
+
angle: import("../../math").Radians;
|
|
102
|
+
seed: number;
|
|
103
|
+
version: number;
|
|
104
|
+
versionNonce: number;
|
|
105
|
+
index: import("../element/types").FractionalIndex | null;
|
|
106
|
+
isDeleted: boolean;
|
|
107
|
+
groupIds: readonly string[];
|
|
108
|
+
frameId: string | null;
|
|
109
|
+
boundElements: readonly Readonly<{
|
|
110
|
+
id: string;
|
|
111
|
+
type: "text" | "arrow";
|
|
112
|
+
}>[] | null;
|
|
113
|
+
updated: number;
|
|
114
|
+
link: string | null;
|
|
115
|
+
locked: boolean;
|
|
116
|
+
customData?: Record<string, any> | undefined;
|
|
117
|
+
}> & {
|
|
118
|
+
type: "ellipse";
|
|
119
|
+
} & {
|
|
120
|
+
isDeleted: boolean;
|
|
121
|
+
}) | (Readonly<{
|
|
122
|
+
id: string;
|
|
123
|
+
x: number;
|
|
124
|
+
y: number;
|
|
125
|
+
strokeColor: string;
|
|
126
|
+
backgroundColor: string;
|
|
127
|
+
fillStyle: import("../element/types").FillStyle;
|
|
128
|
+
strokeWidth: number;
|
|
129
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
130
|
+
roundness: {
|
|
131
|
+
type: import("../element/types").RoundnessType;
|
|
132
|
+
value?: number | undefined;
|
|
133
|
+
} | null;
|
|
134
|
+
roughness: number;
|
|
135
|
+
opacity: number;
|
|
136
|
+
width: number;
|
|
137
|
+
height: number;
|
|
138
|
+
angle: import("../../math").Radians;
|
|
139
|
+
seed: number;
|
|
140
|
+
version: number;
|
|
141
|
+
versionNonce: number;
|
|
142
|
+
index: import("../element/types").FractionalIndex | null;
|
|
143
|
+
isDeleted: boolean;
|
|
144
|
+
groupIds: readonly string[];
|
|
145
|
+
frameId: string | null;
|
|
146
|
+
boundElements: readonly Readonly<{
|
|
147
|
+
id: string;
|
|
148
|
+
type: "text" | "arrow";
|
|
149
|
+
}>[] | null;
|
|
150
|
+
updated: number;
|
|
151
|
+
link: string | null;
|
|
152
|
+
locked: boolean;
|
|
153
|
+
customData?: Record<string, any> | undefined;
|
|
154
|
+
}> & Readonly<{
|
|
155
|
+
type: "text";
|
|
156
|
+
fontSize: number;
|
|
157
|
+
fontFamily: number;
|
|
158
|
+
text: string;
|
|
159
|
+
rawText: string;
|
|
160
|
+
textAlign: string;
|
|
161
|
+
verticalAlign: string;
|
|
162
|
+
containerId: string | null;
|
|
163
|
+
originalText: string;
|
|
164
|
+
autoResize: boolean;
|
|
165
|
+
lineHeight: number & {
|
|
166
|
+
_brand: "unitlessLineHeight";
|
|
167
|
+
};
|
|
168
|
+
}> & {
|
|
169
|
+
isDeleted: boolean;
|
|
170
|
+
}) | (Readonly<{
|
|
171
|
+
id: string;
|
|
172
|
+
x: number;
|
|
173
|
+
y: number;
|
|
174
|
+
strokeColor: string;
|
|
175
|
+
backgroundColor: string;
|
|
176
|
+
fillStyle: import("../element/types").FillStyle;
|
|
177
|
+
strokeWidth: number;
|
|
178
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
179
|
+
roundness: {
|
|
180
|
+
type: import("../element/types").RoundnessType;
|
|
181
|
+
value?: number | undefined;
|
|
182
|
+
} | null;
|
|
183
|
+
roughness: number;
|
|
184
|
+
opacity: number;
|
|
185
|
+
width: number;
|
|
186
|
+
height: number;
|
|
187
|
+
angle: import("../../math").Radians;
|
|
188
|
+
seed: number;
|
|
189
|
+
version: number;
|
|
190
|
+
versionNonce: number;
|
|
191
|
+
index: import("../element/types").FractionalIndex | null;
|
|
192
|
+
isDeleted: boolean;
|
|
193
|
+
groupIds: readonly string[];
|
|
194
|
+
frameId: string | null;
|
|
195
|
+
boundElements: readonly Readonly<{
|
|
196
|
+
id: string;
|
|
197
|
+
type: "text" | "arrow";
|
|
198
|
+
}>[] | null;
|
|
199
|
+
updated: number;
|
|
200
|
+
link: string | null;
|
|
201
|
+
locked: boolean;
|
|
202
|
+
customData?: Record<string, any> | undefined;
|
|
203
|
+
}> & Readonly<{
|
|
204
|
+
type: "line" | "arrow";
|
|
205
|
+
points: readonly import("../../math").LocalPoint[];
|
|
206
|
+
lastCommittedPoint: import("../../math").LocalPoint | null;
|
|
207
|
+
startBinding: import("../element/types").PointBinding | null;
|
|
208
|
+
endBinding: import("../element/types").PointBinding | null;
|
|
209
|
+
startArrowhead: import("../element/types").Arrowhead | null;
|
|
210
|
+
endArrowhead: import("../element/types").Arrowhead | null;
|
|
211
|
+
}> & {
|
|
212
|
+
isDeleted: boolean;
|
|
213
|
+
}) | (Readonly<{
|
|
214
|
+
id: string;
|
|
215
|
+
x: number;
|
|
216
|
+
y: number;
|
|
217
|
+
strokeColor: string;
|
|
218
|
+
backgroundColor: string;
|
|
219
|
+
fillStyle: import("../element/types").FillStyle;
|
|
220
|
+
strokeWidth: number;
|
|
221
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
222
|
+
roundness: {
|
|
223
|
+
type: import("../element/types").RoundnessType;
|
|
224
|
+
value?: number | undefined;
|
|
225
|
+
} | null;
|
|
226
|
+
roughness: number;
|
|
227
|
+
opacity: number;
|
|
228
|
+
width: number;
|
|
229
|
+
height: number;
|
|
230
|
+
angle: import("../../math").Radians;
|
|
231
|
+
seed: number;
|
|
232
|
+
version: number;
|
|
233
|
+
versionNonce: number;
|
|
234
|
+
index: import("../element/types").FractionalIndex | null;
|
|
235
|
+
isDeleted: boolean;
|
|
236
|
+
groupIds: readonly string[];
|
|
237
|
+
frameId: string | null;
|
|
238
|
+
boundElements: readonly Readonly<{
|
|
239
|
+
id: string;
|
|
240
|
+
type: "text" | "arrow";
|
|
241
|
+
}>[] | null;
|
|
242
|
+
updated: number;
|
|
243
|
+
link: string | null;
|
|
244
|
+
locked: boolean;
|
|
245
|
+
customData?: Record<string, any> | undefined;
|
|
246
|
+
}> & Readonly<{
|
|
247
|
+
type: "freedraw";
|
|
248
|
+
points: readonly import("../../math").LocalPoint[];
|
|
249
|
+
pressures: readonly number[];
|
|
250
|
+
simulatePressure: boolean;
|
|
251
|
+
lastCommittedPoint: import("../../math").LocalPoint | null;
|
|
252
|
+
}> & {
|
|
253
|
+
isDeleted: boolean;
|
|
254
|
+
}) | (Readonly<{
|
|
255
|
+
id: string;
|
|
256
|
+
x: number;
|
|
257
|
+
y: number;
|
|
258
|
+
strokeColor: string;
|
|
259
|
+
backgroundColor: string;
|
|
260
|
+
fillStyle: import("../element/types").FillStyle;
|
|
261
|
+
strokeWidth: number;
|
|
262
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
263
|
+
roundness: {
|
|
264
|
+
type: import("../element/types").RoundnessType;
|
|
265
|
+
value?: number | undefined;
|
|
266
|
+
} | null;
|
|
267
|
+
roughness: number;
|
|
268
|
+
opacity: number;
|
|
269
|
+
width: number;
|
|
270
|
+
height: number;
|
|
271
|
+
angle: import("../../math").Radians;
|
|
272
|
+
seed: number;
|
|
273
|
+
version: number;
|
|
274
|
+
versionNonce: number;
|
|
275
|
+
index: import("../element/types").FractionalIndex | null;
|
|
276
|
+
isDeleted: boolean;
|
|
277
|
+
groupIds: readonly string[];
|
|
278
|
+
frameId: string | null;
|
|
279
|
+
boundElements: readonly Readonly<{
|
|
280
|
+
id: string;
|
|
281
|
+
type: "text" | "arrow";
|
|
282
|
+
}>[] | null;
|
|
283
|
+
updated: number;
|
|
284
|
+
link: string | null;
|
|
285
|
+
locked: boolean;
|
|
286
|
+
customData?: Record<string, any> | undefined;
|
|
287
|
+
}> & Readonly<{
|
|
288
|
+
type: "image";
|
|
289
|
+
fileId: import("../element/types").FileId | null;
|
|
290
|
+
status: "pending" | "saved" | "error";
|
|
291
|
+
scale: [number, number];
|
|
292
|
+
}> & {
|
|
293
|
+
isDeleted: boolean;
|
|
294
|
+
}) | (Readonly<{
|
|
295
|
+
id: string;
|
|
296
|
+
x: number;
|
|
297
|
+
y: number;
|
|
298
|
+
strokeColor: string;
|
|
299
|
+
backgroundColor: string;
|
|
300
|
+
fillStyle: import("../element/types").FillStyle;
|
|
301
|
+
strokeWidth: number;
|
|
302
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
303
|
+
roundness: {
|
|
304
|
+
type: import("../element/types").RoundnessType;
|
|
305
|
+
value?: number | undefined;
|
|
306
|
+
} | null;
|
|
307
|
+
roughness: number;
|
|
308
|
+
opacity: number;
|
|
309
|
+
width: number;
|
|
310
|
+
height: number;
|
|
311
|
+
angle: import("../../math").Radians;
|
|
312
|
+
seed: number;
|
|
313
|
+
version: number;
|
|
314
|
+
versionNonce: number;
|
|
315
|
+
index: import("../element/types").FractionalIndex | null;
|
|
316
|
+
isDeleted: boolean;
|
|
317
|
+
groupIds: readonly string[];
|
|
318
|
+
frameId: string | null;
|
|
319
|
+
boundElements: readonly Readonly<{
|
|
320
|
+
id: string;
|
|
321
|
+
type: "text" | "arrow";
|
|
322
|
+
}>[] | null;
|
|
323
|
+
updated: number;
|
|
324
|
+
link: string | null;
|
|
325
|
+
locked: boolean;
|
|
326
|
+
customData?: Record<string, any> | undefined;
|
|
327
|
+
}> & {
|
|
328
|
+
type: "frame";
|
|
329
|
+
name: string | null;
|
|
330
|
+
} & {
|
|
331
|
+
isDeleted: boolean;
|
|
332
|
+
}) | (Readonly<{
|
|
333
|
+
id: string;
|
|
334
|
+
x: number;
|
|
335
|
+
y: number;
|
|
336
|
+
strokeColor: string;
|
|
337
|
+
backgroundColor: string;
|
|
338
|
+
fillStyle: import("../element/types").FillStyle;
|
|
339
|
+
strokeWidth: number;
|
|
340
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
341
|
+
roundness: {
|
|
342
|
+
type: import("../element/types").RoundnessType;
|
|
343
|
+
value?: number | undefined;
|
|
344
|
+
} | null;
|
|
345
|
+
roughness: number;
|
|
346
|
+
opacity: number;
|
|
347
|
+
width: number;
|
|
348
|
+
height: number;
|
|
349
|
+
angle: import("../../math").Radians;
|
|
350
|
+
seed: number;
|
|
351
|
+
version: number;
|
|
352
|
+
versionNonce: number;
|
|
353
|
+
index: import("../element/types").FractionalIndex | null;
|
|
354
|
+
isDeleted: boolean;
|
|
355
|
+
groupIds: readonly string[];
|
|
356
|
+
frameId: string | null;
|
|
357
|
+
boundElements: readonly Readonly<{
|
|
358
|
+
id: string;
|
|
359
|
+
type: "text" | "arrow";
|
|
360
|
+
}>[] | null;
|
|
361
|
+
updated: number;
|
|
362
|
+
link: string | null;
|
|
363
|
+
locked: boolean;
|
|
364
|
+
customData?: Record<string, any> | undefined;
|
|
365
|
+
}> & {
|
|
366
|
+
type: "magicframe";
|
|
367
|
+
name: string | null;
|
|
368
|
+
} & {
|
|
369
|
+
isDeleted: boolean;
|
|
370
|
+
}) | (Readonly<{
|
|
371
|
+
id: string;
|
|
372
|
+
x: number;
|
|
373
|
+
y: number;
|
|
374
|
+
strokeColor: string;
|
|
375
|
+
backgroundColor: string;
|
|
376
|
+
fillStyle: import("../element/types").FillStyle;
|
|
377
|
+
strokeWidth: number;
|
|
378
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
379
|
+
roundness: {
|
|
380
|
+
type: import("../element/types").RoundnessType;
|
|
381
|
+
value?: number | undefined;
|
|
382
|
+
} | null;
|
|
383
|
+
roughness: number;
|
|
384
|
+
opacity: number;
|
|
385
|
+
width: number;
|
|
386
|
+
height: number;
|
|
387
|
+
angle: import("../../math").Radians;
|
|
388
|
+
seed: number;
|
|
389
|
+
version: number;
|
|
390
|
+
versionNonce: number;
|
|
391
|
+
index: import("../element/types").FractionalIndex | null;
|
|
392
|
+
isDeleted: boolean;
|
|
393
|
+
groupIds: readonly string[];
|
|
394
|
+
frameId: string | null;
|
|
395
|
+
boundElements: readonly Readonly<{
|
|
396
|
+
id: string;
|
|
397
|
+
type: "text" | "arrow";
|
|
398
|
+
}>[] | null;
|
|
399
|
+
updated: number;
|
|
400
|
+
link: string | null;
|
|
401
|
+
locked: boolean;
|
|
402
|
+
customData?: Record<string, any> | undefined;
|
|
403
|
+
}> & Readonly<{
|
|
404
|
+
type: "iframe";
|
|
405
|
+
customData?: {
|
|
406
|
+
generationData?: import("../element/types").MagicGenerationData | undefined;
|
|
407
|
+
} | undefined;
|
|
408
|
+
scale: [number, number];
|
|
409
|
+
}> & {
|
|
410
|
+
isDeleted: boolean;
|
|
411
|
+
}) | (Readonly<{
|
|
412
|
+
id: string;
|
|
413
|
+
x: number;
|
|
414
|
+
y: number;
|
|
415
|
+
strokeColor: string;
|
|
416
|
+
backgroundColor: string;
|
|
417
|
+
fillStyle: import("../element/types").FillStyle;
|
|
418
|
+
strokeWidth: number;
|
|
419
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
420
|
+
roundness: {
|
|
421
|
+
type: import("../element/types").RoundnessType;
|
|
422
|
+
value?: number | undefined;
|
|
423
|
+
} | null;
|
|
424
|
+
roughness: number;
|
|
425
|
+
opacity: number;
|
|
426
|
+
width: number;
|
|
427
|
+
height: number;
|
|
428
|
+
angle: import("../../math").Radians;
|
|
429
|
+
seed: number;
|
|
430
|
+
version: number;
|
|
431
|
+
versionNonce: number;
|
|
432
|
+
index: import("../element/types").FractionalIndex | null;
|
|
433
|
+
isDeleted: boolean;
|
|
434
|
+
groupIds: readonly string[];
|
|
435
|
+
frameId: string | null;
|
|
436
|
+
boundElements: readonly Readonly<{
|
|
437
|
+
id: string;
|
|
438
|
+
type: "text" | "arrow";
|
|
439
|
+
}>[] | null;
|
|
440
|
+
updated: number;
|
|
441
|
+
link: string | null;
|
|
442
|
+
locked: boolean;
|
|
443
|
+
customData?: Record<string, any> | undefined;
|
|
444
|
+
}> & Readonly<{
|
|
445
|
+
type: "embeddable";
|
|
446
|
+
scale: [number, number];
|
|
447
|
+
}> & {
|
|
448
|
+
isDeleted: boolean;
|
|
449
|
+
}) | (Readonly<{
|
|
450
|
+
id: string;
|
|
451
|
+
x: number;
|
|
452
|
+
y: number;
|
|
453
|
+
strokeColor: string;
|
|
454
|
+
backgroundColor: string;
|
|
455
|
+
fillStyle: import("../element/types").FillStyle;
|
|
456
|
+
strokeWidth: number;
|
|
457
|
+
strokeStyle: import("../element/types").StrokeStyle;
|
|
458
|
+
roundness: {
|
|
459
|
+
type: import("../element/types").RoundnessType;
|
|
460
|
+
value?: number | undefined;
|
|
461
|
+
} | null;
|
|
462
|
+
roughness: number;
|
|
463
|
+
opacity: number;
|
|
464
|
+
width: number;
|
|
465
|
+
height: number;
|
|
466
|
+
angle: import("../../math").Radians;
|
|
467
|
+
seed: number;
|
|
468
|
+
version: number;
|
|
469
|
+
versionNonce: number;
|
|
470
|
+
index: import("../element/types").FractionalIndex | null;
|
|
471
|
+
isDeleted: boolean;
|
|
472
|
+
groupIds: readonly string[];
|
|
473
|
+
frameId: string | null;
|
|
474
|
+
boundElements: readonly Readonly<{
|
|
475
|
+
id: string;
|
|
476
|
+
type: "text" | "arrow";
|
|
477
|
+
}>[] | null;
|
|
478
|
+
updated: number;
|
|
479
|
+
link: string | null;
|
|
480
|
+
locked: boolean;
|
|
481
|
+
customData?: Record<string, any> | undefined;
|
|
482
|
+
}> & {
|
|
483
|
+
type: "selection";
|
|
484
|
+
} & {
|
|
485
|
+
isDeleted: boolean;
|
|
486
|
+
}) | null;
|
|
11
487
|
export declare const getElementsAtPosition: (elements: readonly NonDeletedExcalidrawElement[], isAtPositionFn: (element: NonDeletedExcalidrawElement) => boolean) => NonDeletedExcalidrawElement[];
|