@myoc/excalidraw 0.19.526 → 0.19.528
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/CHANGELOG.md +106 -0
- package/dist/dev/{chunk-WQAS3ONQ.js → chunk-6FFT5HLH.js} +2 -2
- package/dist/dev/{chunk-UKYYHFTM.js → chunk-NY5S5VQK.js} +4 -3
- package/dist/dev/data/{image-ILRWTLER.js → image-V7WKCORB.js} +3 -3
- package/dist/dev/index.js +137 -164
- package/dist/dev/index.js.map +4 -4
- package/dist/dev/subset-shared.chunk.js +1 -1
- package/dist/dev/subset-worker.chunk.js +1 -1
- package/dist/prod/{chunk-Q5HWUYDM.js → chunk-ELA2R5XK.js} +1 -1
- package/dist/prod/{chunk-HNA67ODG.js → chunk-JCJ2YNSV.js} +2 -2
- package/dist/prod/data/image-OSFJHW22.js +1 -0
- package/dist/prod/index.js +13 -13
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/actions/actionElementLink.d.ts +0 -27
- package/dist/types/excalidraw/actions/types.d.ts +1 -1
- package/dist/types/excalidraw/components/App.d.ts +3 -0
- package/package.json +4 -4
- package/dist/prod/data/image-WGUGXKQD.js +0 -1
- /package/dist/dev/{chunk-WQAS3ONQ.js.map → chunk-6FFT5HLH.js.map} +0 -0
- /package/dist/dev/{chunk-UKYYHFTM.js.map → chunk-NY5S5VQK.js.map} +0 -0
- /package/dist/dev/data/{image-ILRWTLER.js.map → image-V7WKCORB.js.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a,b,c,d}from"./chunk-Z5NKEFVG.js";import"./chunk-ELA2R5XK.js";import"./chunk-SRAX5OIU.js";export{a as Commands,b as subsetToBase64,c as subsetToBinary,d as toBase64};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-
|
|
1
|
+
import{a as r,c as t}from"./chunk-Z5NKEFVG.js";import"./chunk-ELA2R5XK.js";import"./chunk-SRAX5OIU.js";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};
|
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
export declare const actionCopyElementLink: {
|
|
2
|
-
name: "copyElementLink";
|
|
3
|
-
label: string;
|
|
4
|
-
icon: import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
trackEvent: {
|
|
6
|
-
category: "element";
|
|
7
|
-
};
|
|
8
|
-
perform: (elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[], appState: Readonly<import("../types").AppState>, _: unknown, app: import("../types").AppClassProperties) => Promise<{
|
|
9
|
-
appState: {
|
|
10
|
-
toast: {
|
|
11
|
-
message: string;
|
|
12
|
-
closable: true;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
captureUpdate: "EVENTUALLY";
|
|
16
|
-
elements?: undefined;
|
|
17
|
-
app?: undefined;
|
|
18
|
-
} | {
|
|
19
|
-
appState: Readonly<import("../types").AppState>;
|
|
20
|
-
elements: readonly import("@excalidraw/element/types").OrderedExcalidrawElement[];
|
|
21
|
-
app: import("../types").AppClassProperties;
|
|
22
|
-
captureUpdate: "EVENTUALLY";
|
|
23
|
-
}>;
|
|
24
|
-
predicate: (elements: readonly import("@excalidraw/element/types").ExcalidrawElement[], appState: import("../types").AppState) => boolean;
|
|
25
|
-
} & {
|
|
26
|
-
keyTest?: undefined;
|
|
27
|
-
};
|
|
28
1
|
export declare const actionLinkToElement: {
|
|
29
2
|
name: "linkToElement";
|
|
30
3
|
label: string;
|
|
@@ -14,7 +14,7 @@ export type ActionResult = {
|
|
|
14
14
|
type ActionFn<TData = any> = (elements: readonly OrderedExcalidrawElement[], appState: Readonly<AppState>, formData: TData | undefined, app: AppClassProperties) => ActionResult | Promise<ActionResult>;
|
|
15
15
|
export type UpdaterFn = (res: ActionResult) => void;
|
|
16
16
|
export type ActionFilterFn = (action: Action) => void;
|
|
17
|
-
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "objectsSnapMode" | "arrowBinding" | "midpointSnapping" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeBucketFillBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeSloppiness" | "changeFreedrawMode" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeArrowProperties" | "changeOpacity" | "changeFontSize" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "arrangeElements" | "normaliseElements" | "flipHorizontal" | "flipVertical" | "deselect" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "createContainerFromText" | "wrapTextInContainer" | "autoResize" | "elementStats" | "searchMenu" | "
|
|
17
|
+
export type ActionName = "copy" | "cut" | "paste" | "copyAsPng" | "copyAsSvg" | "copyText" | "sendBackward" | "bringForward" | "sendToBack" | "bringToFront" | "copyStyles" | "selectAll" | "pasteStyles" | "gridMode" | "objectsSnapMode" | "arrowBinding" | "midpointSnapping" | "stats" | "changeStrokeColor" | "changeBackgroundColor" | "changeBucketFillBackgroundColor" | "changeFillStyle" | "changeStrokeWidth" | "changeSloppiness" | "changeFreedrawMode" | "changeStrokeStyle" | "changeArrowhead" | "changeArrowType" | "changeArrowProperties" | "changeOpacity" | "changeFontSize" | "undo" | "redo" | "finalize" | "changeProjectName" | "changeExportBackground" | "changeExportEmbedScene" | "changeExportScale" | "saveToActiveFile" | "saveFileToDisk" | "loadScene" | "duplicateSelection" | "deleteSelectedElements" | "changeViewBackgroundColor" | "zoomIn" | "zoomOut" | "resetZoom" | "zoomToFit" | "zoomToFitSelection" | "zoomToFitSelectionInViewport" | "changeFontFamily" | "changeTextAlign" | "changeVerticalAlign" | "toggleFullScreen" | "toggleShortcuts" | "group" | "ungroup" | "goToCollaborator" | "changeRoundness" | "alignTop" | "alignBottom" | "alignLeft" | "alignRight" | "alignVerticallyCentered" | "alignHorizontallyCentered" | "distributeHorizontally" | "distributeVertically" | "arrangeElements" | "normaliseElements" | "flipHorizontal" | "flipVertical" | "deselect" | "viewMode" | "exportWithDarkMode" | "toggleTheme" | "increaseFontSize" | "decreaseFontSize" | "unbindText" | "hyperlink" | "bindText" | "unlockAllElements" | "toggleElementLock" | "toggleLinearEditor" | "selectAllElementsInFrame" | "removeAllElementsFromFrame" | "updateFrameRendering" | "createContainerFromText" | "wrapTextInContainer" | "autoResize" | "elementStats" | "searchMenu" | "linkToElement" | "cropEditor" | "wrapSelectionInFrame" | "smartZoom" | "toggleLassoTool" | "toggleShapeSwitch" | "togglePolygon";
|
|
18
18
|
export type PanelComponentProps = {
|
|
19
19
|
elements: readonly ExcalidrawElement[];
|
|
20
20
|
appState: UIAppState;
|
|
@@ -773,7 +773,9 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
773
773
|
private getImageStatusActionAtPosition;
|
|
774
774
|
private isPointInsideImageStatusOverlay;
|
|
775
775
|
private getElementLinkAtPosition;
|
|
776
|
+
private getElementLinkAtPositionForContextMenu;
|
|
776
777
|
private handleElementLinkClick;
|
|
778
|
+
private openElementLink;
|
|
777
779
|
/**
|
|
778
780
|
* Applies (or clears) the element-link hover affordances — pointer cursor
|
|
779
781
|
* and tooltip — based on the current `hitLinkElement`. Returns whether a
|
|
@@ -902,6 +904,7 @@ declare class App extends React.Component<AppProps, AppState> {
|
|
|
902
904
|
private maybeHandleCrop;
|
|
903
905
|
private maybeHandleResize;
|
|
904
906
|
private getImageContextMenuItems;
|
|
907
|
+
private getElementLinkContextMenuItems;
|
|
905
908
|
private getContextMenuItems;
|
|
906
909
|
private handleWheel;
|
|
907
910
|
getTextWysiwygSnappedToCenterPosition(x: number, y: number, appState: AppState, container?: ExcalidrawTextContainer | null): {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myoc/excalidraw",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.528",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/types/excalidraw/index.d.ts",
|
|
6
6
|
"main": "./dist/prod/index.js",
|
|
@@ -108,9 +108,9 @@
|
|
|
108
108
|
"roughjs": "4.6.4",
|
|
109
109
|
"sass": "1.51.0",
|
|
110
110
|
"tunnel-rat": "0.1.2",
|
|
111
|
-
"@excalidraw/common": "npm:@myoc/common@0.19.
|
|
112
|
-
"@excalidraw/math": "npm:@myoc/math@0.19.
|
|
113
|
-
"@excalidraw/element": "npm:@myoc/element@0.19.
|
|
111
|
+
"@excalidraw/common": "npm:@myoc/common@0.19.528",
|
|
112
|
+
"@excalidraw/math": "npm:@myoc/math@0.19.528",
|
|
113
|
+
"@excalidraw/element": "npm:@myoc/element@0.19.528"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
116
|
"@size-limit/preset-big-lib": "9.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as a,T as b,U as c}from"../chunk-HNA67ODG.js";import"../chunk-Q5HWUYDM.js";import"../chunk-SRAX5OIU.js";export{c as decodePngMetadata,b as encodePngMetadata,a as getTEXtChunk};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|