@haoxin-web/excalidraw 1.0.22 → 1.0.24
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/dev/{chunk-6O5AECJT.js → chunk-LXPD2I2F.js} +3 -3
- package/dist/dev/{chunk-3WZZNNEO.js → chunk-QJETCZL3.js} +2 -2
- package/dist/dev/data/{image-WA2QOHGD.js → image-UN6QNPQO.js} +3 -3
- package/dist/dev/index.js +80 -58
- 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-K5OGYQ6P.js → chunk-JEWZWCYT.js} +2 -2
- package/dist/prod/{chunk-H7BFYYZW.js → chunk-WBFOTHBE.js} +1 -1
- package/dist/prod/data/image-TM3Q4VTO.js +1 -0
- package/dist/prod/index.js +16 -16
- package/dist/prod/subset-shared.chunk.js +1 -1
- package/dist/prod/subset-worker.chunk.js +1 -1
- package/dist/types/excalidraw/components/HandButton.d.ts +1 -0
- package/dist/types/excalidraw/components/LayerUI.d.ts +2 -1
- package/dist/types/excalidraw/components/LeftMainToolbar.d.ts +2 -0
- package/dist/types/excalidraw/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/prod/data/image-LPY5KMHE.js +0 -1
- /package/dist/dev/{chunk-6O5AECJT.js.map → chunk-LXPD2I2F.js.map} +0 -0
- /package/dist/dev/{chunk-3WZZNNEO.js.map → chunk-QJETCZL3.js.map} +0 -0
- /package/dist/dev/data/{image-WA2QOHGD.js.map → image-UN6QNPQO.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
define_import_meta_env_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QJETCZL3.js";
|
|
4
4
|
import {
|
|
5
5
|
__publicField
|
|
6
6
|
} from "./chunk-XDFCUUT6.js";
|
|
@@ -5296,7 +5296,7 @@ var parseFileContents = async (blob) => {
|
|
|
5296
5296
|
let contents;
|
|
5297
5297
|
if (blob.type === MIME_TYPES6.png) {
|
|
5298
5298
|
try {
|
|
5299
|
-
return await (await import("./data/image-
|
|
5299
|
+
return await (await import("./data/image-UN6QNPQO.js")).decodePngMetadata(blob);
|
|
5300
5300
|
} catch (error) {
|
|
5301
5301
|
if (error.message === "INVALID") {
|
|
5302
5302
|
throw new ImageSceneDataError(
|
|
@@ -5746,4 +5746,4 @@ export {
|
|
|
5746
5746
|
createFile,
|
|
5747
5747
|
normalizeFile
|
|
5748
5748
|
};
|
|
5749
|
-
//# sourceMappingURL=chunk-
|
|
5749
|
+
//# sourceMappingURL=chunk-LXPD2I2F.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// <define:import.meta.env>
|
|
2
|
-
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3015", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3000", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@haoxin-web/excalidraw", PKG_VERSION: "1.0.
|
|
2
|
+
var define_import_meta_env_default = { MODE: "development", VITE_APP_BACKEND_V2_GET_URL: "https://json-dev.excalidraw.com/api/v2/", VITE_APP_BACKEND_V2_POST_URL: "https://json-dev.excalidraw.com/api/v2/post/", VITE_APP_LIBRARY_URL: "https://libraries.excalidraw.com", VITE_APP_LIBRARY_BACKEND: "https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries", VITE_APP_WS_SERVER_URL: "http://localhost:3002", VITE_APP_PLUS_LP: "https://plus.excalidraw.com", VITE_APP_PLUS_APP: "http://localhost:3000", VITE_APP_AI_BACKEND: "http://localhost:3015", VITE_APP_FIREBASE_CONFIG: '{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}', VITE_APP_DEV_DISABLE_LIVE_RELOAD: "", VITE_APP_ENABLE_TRACKING: "true", FAST_REFRESH: "false", VITE_APP_PORT: "3000", VITE_APP_DEBUG_ENABLE_TEXT_CONTAINER_BOUNDING_BOX: "", VITE_APP_COLLAPSE_OVERLAY: "true", VITE_APP_ENABLE_ESLINT: "true", VITE_APP_ENABLE_PWA: "false", VITE_APP_PLUS_EXPORT_PUBLIC_KEY: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAm2g5T+Rub6Kbf1Mf57t0\n7r2zeHuVg4dla3r5ryXMswtzz6x767octl6oLThn33mQsPSy3GKglFZoCTXJR4ij\nba8SxB04sL/N8eRrKja7TFWjCVtRwTTfyy771NYYNFVJclkxHyE5qw4m27crHF1y\nUNWEjuqNMi/lwAErS9fFa2oJlWyT8U7zzv/5kQREkxZI6y9v0AF3qcbsy2731FnD\ns9ChJvOUW9toIab2gsIdrKW8ZNpu084ZFVKb6LNjvIXI1Se4oMTHeszXzNptzlot\nkdxxjOoaQMAyfljFSot1F1FlU6MQlag7UnFGvFjRHN1JI5q4K+n3a67DX+TMyRqS\nHQIDAQAB", VITE_APP_DISABLE_PREVENT_UNLOAD: "", PKG_NAME: "@haoxin-web/excalidraw", PKG_VERSION: "1.0.24", DEV: true };
|
|
3
3
|
|
|
4
4
|
export {
|
|
5
5
|
define_import_meta_env_default
|
|
6
6
|
};
|
|
7
|
-
//# sourceMappingURL=chunk-
|
|
7
|
+
//# sourceMappingURL=chunk-QJETCZL3.js.map
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
decodePngMetadata,
|
|
3
3
|
encodePngMetadata,
|
|
4
4
|
getTEXtChunk
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-LXPD2I2F.js";
|
|
6
|
+
import "../chunk-QJETCZL3.js";
|
|
7
7
|
import "../chunk-XDFCUUT6.js";
|
|
8
8
|
export {
|
|
9
9
|
decodePngMetadata,
|
|
10
10
|
encodePngMetadata,
|
|
11
11
|
getTEXtChunk
|
|
12
12
|
};
|
|
13
|
-
//# sourceMappingURL=image-
|
|
13
|
+
//# sourceMappingURL=image-UN6QNPQO.js.map
|
package/dist/dev/index.js
CHANGED
|
@@ -69,10 +69,10 @@ import {
|
|
|
69
69
|
serializeLibraryAsJSON,
|
|
70
70
|
strokeEllipseWithRotation,
|
|
71
71
|
strokeRectWithRotation
|
|
72
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-LXPD2I2F.js";
|
|
73
73
|
import {
|
|
74
74
|
define_import_meta_env_default
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-QJETCZL3.js";
|
|
76
76
|
import {
|
|
77
77
|
en_default
|
|
78
78
|
} from "./chunk-ZSSURRA2.js";
|
|
@@ -9223,7 +9223,7 @@ var exportCanvas = async (type, elements, appState, files, {
|
|
|
9223
9223
|
let blob = canvasToBlob(tempCanvas);
|
|
9224
9224
|
if (appState.exportEmbedScene) {
|
|
9225
9225
|
blob = blob.then(
|
|
9226
|
-
(blob2) => import("./data/image-
|
|
9226
|
+
(blob2) => import("./data/image-UN6QNPQO.js").then(
|
|
9227
9227
|
({ encodePngMetadata: encodePngMetadata2 }) => encodePngMetadata2({
|
|
9228
9228
|
blob: blob2,
|
|
9229
9229
|
metadata: serializeAsJSON(elements, appState, files, "local")
|
|
@@ -23959,13 +23959,44 @@ import {
|
|
|
23959
23959
|
import { mutateElement as mutateElement5 } from "@haoxin-web/excalidraw-element";
|
|
23960
23960
|
import { ShapeCache as ShapeCache3 } from "@haoxin-web/excalidraw-element";
|
|
23961
23961
|
|
|
23962
|
+
// components/HandButton.tsx
|
|
23963
|
+
import clsx34 from "clsx";
|
|
23964
|
+
import { KEYS as KEYS45 } from "@haoxin-web/excalidraw-common";
|
|
23965
|
+
import { jsx as jsx83 } from "react/jsx-runtime";
|
|
23966
|
+
var HandButton = (props) => {
|
|
23967
|
+
if (props.visible === false) {
|
|
23968
|
+
return null;
|
|
23969
|
+
}
|
|
23970
|
+
const showKeyShortcut = props.showKeyShortcut !== false;
|
|
23971
|
+
const handTitle = props.title ?? t("toolBar.hand");
|
|
23972
|
+
const title = showKeyShortcut ? `${handTitle} \u2014 H` : handTitle;
|
|
23973
|
+
return /* @__PURE__ */ jsx83(
|
|
23974
|
+
ToolButton,
|
|
23975
|
+
{
|
|
23976
|
+
className: clsx34("Shape", { fillable: false }),
|
|
23977
|
+
type: "radio",
|
|
23978
|
+
icon: handIcon,
|
|
23979
|
+
name: "editor-current-shape",
|
|
23980
|
+
checked: props.checked,
|
|
23981
|
+
title,
|
|
23982
|
+
keyBindingLabel: showKeyShortcut && !props.isMobile ? KEYS45.H.toLocaleUpperCase() : void 0,
|
|
23983
|
+
"aria-label": title,
|
|
23984
|
+
"aria-keyshortcuts": showKeyShortcut ? KEYS45.H : void 0,
|
|
23985
|
+
"data-testid": `toolbar-hand`,
|
|
23986
|
+
onChange: () => props.onChange?.()
|
|
23987
|
+
}
|
|
23988
|
+
);
|
|
23989
|
+
};
|
|
23990
|
+
|
|
23962
23991
|
// components/LeftMainToolbar.tsx
|
|
23963
23992
|
import { TOOL_TYPE as TOOL_TYPE2 } from "@haoxin-web/excalidraw-common";
|
|
23964
|
-
import { jsx as
|
|
23993
|
+
import { jsx as jsx84, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
23965
23994
|
var LeftMainToolbar = ({
|
|
23966
23995
|
appState,
|
|
23967
23996
|
app,
|
|
23968
|
-
visible = true
|
|
23997
|
+
visible = true,
|
|
23998
|
+
onHandToolToggle,
|
|
23999
|
+
showPanActions
|
|
23969
24000
|
}) => {
|
|
23970
24001
|
if (!visible) {
|
|
23971
24002
|
return null;
|
|
@@ -24033,8 +24064,8 @@ var LeftMainToolbar = ({
|
|
|
24033
24064
|
} catch {
|
|
24034
24065
|
}
|
|
24035
24066
|
};
|
|
24036
|
-
return /* @__PURE__ */
|
|
24037
|
-
/* @__PURE__ */
|
|
24067
|
+
return /* @__PURE__ */ jsx84(Island, { className: "App-toolbar App-toolbar--vertical", children: /* @__PURE__ */ jsxs45(Stack_default.Col, { align: "center", gap: 1, style: { padding: "4px 0" }, children: [
|
|
24068
|
+
/* @__PURE__ */ jsx84(
|
|
24038
24069
|
ToolButton,
|
|
24039
24070
|
{
|
|
24040
24071
|
"aria-label": "selection",
|
|
@@ -24046,7 +24077,18 @@ var LeftMainToolbar = ({
|
|
|
24046
24077
|
onChange: () => app.setActiveTool({ type: TOOL_TYPE2.selection })
|
|
24047
24078
|
}
|
|
24048
24079
|
),
|
|
24049
|
-
/* @__PURE__ */
|
|
24080
|
+
/* @__PURE__ */ jsx84(
|
|
24081
|
+
HandButton,
|
|
24082
|
+
{
|
|
24083
|
+
checked: isHandToolActive(appState),
|
|
24084
|
+
onChange: () => onHandToolToggle?.(),
|
|
24085
|
+
title: t("toolBar.hand"),
|
|
24086
|
+
isMobile: true,
|
|
24087
|
+
showKeyShortcut: false,
|
|
24088
|
+
visible: showPanActions !== false
|
|
24089
|
+
}
|
|
24090
|
+
),
|
|
24091
|
+
/* @__PURE__ */ jsx84(
|
|
24050
24092
|
ToolButton,
|
|
24051
24093
|
{
|
|
24052
24094
|
"aria-label": "freedraw",
|
|
@@ -24059,7 +24101,7 @@ var LeftMainToolbar = ({
|
|
|
24059
24101
|
onChange: () => app.setActiveTool({ type: TOOL_TYPE2.freedraw })
|
|
24060
24102
|
}
|
|
24061
24103
|
),
|
|
24062
|
-
/* @__PURE__ */
|
|
24104
|
+
/* @__PURE__ */ jsx84(
|
|
24063
24105
|
ToolButton,
|
|
24064
24106
|
{
|
|
24065
24107
|
"aria-label": "line",
|
|
@@ -24072,7 +24114,7 @@ var LeftMainToolbar = ({
|
|
|
24072
24114
|
onChange: () => app.setActiveTool({ type: TOOL_TYPE2.line })
|
|
24073
24115
|
}
|
|
24074
24116
|
),
|
|
24075
|
-
/* @__PURE__ */
|
|
24117
|
+
/* @__PURE__ */ jsx84(
|
|
24076
24118
|
ToolButton,
|
|
24077
24119
|
{
|
|
24078
24120
|
"aria-label": "shapes",
|
|
@@ -24085,7 +24127,7 @@ var LeftMainToolbar = ({
|
|
|
24085
24127
|
onChange: () => app.setActiveTool({ type: TOOL_TYPE2.rectangle })
|
|
24086
24128
|
}
|
|
24087
24129
|
),
|
|
24088
|
-
/* @__PURE__ */
|
|
24130
|
+
/* @__PURE__ */ jsx84(
|
|
24089
24131
|
ToolButton,
|
|
24090
24132
|
{
|
|
24091
24133
|
"aria-label": "text",
|
|
@@ -24098,7 +24140,7 @@ var LeftMainToolbar = ({
|
|
|
24098
24140
|
onChange: () => app.setActiveTool({ type: TOOL_TYPE2.text })
|
|
24099
24141
|
}
|
|
24100
24142
|
),
|
|
24101
|
-
/* @__PURE__ */
|
|
24143
|
+
/* @__PURE__ */ jsx84(
|
|
24102
24144
|
ToolButton,
|
|
24103
24145
|
{
|
|
24104
24146
|
"aria-label": "eraser",
|
|
@@ -24115,10 +24157,10 @@ var LeftMainToolbar = ({
|
|
|
24115
24157
|
var LeftMainToolbar_default = LeftMainToolbar;
|
|
24116
24158
|
|
|
24117
24159
|
// components/LoadingMessage.tsx
|
|
24118
|
-
import
|
|
24160
|
+
import clsx35 from "clsx";
|
|
24119
24161
|
import { useState as useState24, useEffect as useEffect30 } from "react";
|
|
24120
24162
|
import { THEME as THEME13 } from "@haoxin-web/excalidraw-common";
|
|
24121
|
-
import { jsx as
|
|
24163
|
+
import { jsx as jsx85, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
24122
24164
|
var LoadingMessage = ({
|
|
24123
24165
|
delay,
|
|
24124
24166
|
theme
|
|
@@ -24139,12 +24181,12 @@ var LoadingMessage = ({
|
|
|
24139
24181
|
return /* @__PURE__ */ jsxs46(
|
|
24140
24182
|
"div",
|
|
24141
24183
|
{
|
|
24142
|
-
className:
|
|
24184
|
+
className: clsx35("LoadingMessage", {
|
|
24143
24185
|
"LoadingMessage--dark": theme === THEME13.DARK
|
|
24144
24186
|
}),
|
|
24145
24187
|
children: [
|
|
24146
|
-
/* @__PURE__ */
|
|
24147
|
-
/* @__PURE__ */
|
|
24188
|
+
/* @__PURE__ */ jsx85("div", { children: /* @__PURE__ */ jsx85(Spinner_default, {}) }),
|
|
24189
|
+
/* @__PURE__ */ jsx85("div", { className: "LoadingMessage-text", children: t("labels.loadingScene") })
|
|
24148
24190
|
]
|
|
24149
24191
|
}
|
|
24150
24192
|
);
|
|
@@ -24155,16 +24197,16 @@ import { useEffect as useEffect31 } from "react";
|
|
|
24155
24197
|
import { showSelectedShapeActions as showSelectedShapeActions2 } from "@haoxin-web/excalidraw-element";
|
|
24156
24198
|
|
|
24157
24199
|
// components/FixedSideContainer.tsx
|
|
24158
|
-
import
|
|
24159
|
-
import { jsx as
|
|
24200
|
+
import clsx36 from "clsx";
|
|
24201
|
+
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
24160
24202
|
var FixedSideContainer = ({
|
|
24161
24203
|
children,
|
|
24162
24204
|
side,
|
|
24163
24205
|
className
|
|
24164
|
-
}) => /* @__PURE__ */
|
|
24206
|
+
}) => /* @__PURE__ */ jsx86(
|
|
24165
24207
|
"div",
|
|
24166
24208
|
{
|
|
24167
|
-
className:
|
|
24209
|
+
className: clsx36(
|
|
24168
24210
|
"FixedSideContainer",
|
|
24169
24211
|
`FixedSideContainer_side_${side}`,
|
|
24170
24212
|
className
|
|
@@ -24173,32 +24215,6 @@ var FixedSideContainer = ({
|
|
|
24173
24215
|
}
|
|
24174
24216
|
);
|
|
24175
24217
|
|
|
24176
|
-
// components/HandButton.tsx
|
|
24177
|
-
import clsx36 from "clsx";
|
|
24178
|
-
import { KEYS as KEYS45 } from "@haoxin-web/excalidraw-common";
|
|
24179
|
-
import { jsx as jsx86 } from "react/jsx-runtime";
|
|
24180
|
-
var HandButton = (props) => {
|
|
24181
|
-
if (props.visible === false) {
|
|
24182
|
-
return null;
|
|
24183
|
-
}
|
|
24184
|
-
return /* @__PURE__ */ jsx86(
|
|
24185
|
-
ToolButton,
|
|
24186
|
-
{
|
|
24187
|
-
className: clsx36("Shape", { fillable: false }),
|
|
24188
|
-
type: "radio",
|
|
24189
|
-
icon: handIcon,
|
|
24190
|
-
name: "editor-current-shape",
|
|
24191
|
-
checked: props.checked,
|
|
24192
|
-
title: `${props.title} \u2014 H`,
|
|
24193
|
-
keyBindingLabel: !props.isMobile ? KEYS45.H.toLocaleUpperCase() : void 0,
|
|
24194
|
-
"aria-label": `${props.title} \u2014 H`,
|
|
24195
|
-
"aria-keyshortcuts": KEYS45.H,
|
|
24196
|
-
"data-testid": `toolbar-hand`,
|
|
24197
|
-
onChange: () => props.onChange?.()
|
|
24198
|
-
}
|
|
24199
|
-
);
|
|
24200
|
-
};
|
|
24201
|
-
|
|
24202
24218
|
// components/HintViewer.tsx
|
|
24203
24219
|
import { CANVAS_SEARCH_TAB as CANVAS_SEARCH_TAB2, DEFAULT_SIDEBAR as DEFAULT_SIDEBAR4 } from "@haoxin-web/excalidraw-common";
|
|
24204
24220
|
import {
|
|
@@ -26110,7 +26126,7 @@ var LeftToolFlyouts = ({
|
|
|
26110
26126
|
app.setState({ currentItemOpacity: enable ? 50 : 100 });
|
|
26111
26127
|
};
|
|
26112
26128
|
return /* @__PURE__ */ jsxs60("div", { className: "LeftToolFlyouts", children: [
|
|
26113
|
-
openForLineGroup && /* @__PURE__ */ jsx108(Island, { className: "left-flyout left-flyout--line", children: /* @__PURE__ */ jsxs60(Stack_default.Col, { gap: 2, align: "
|
|
26129
|
+
openForLineGroup && /* @__PURE__ */ jsx108(Island, { className: "left-flyout left-flyout--line", children: /* @__PURE__ */ jsxs60(Stack_default.Col, { gap: 2, align: "start", children: [
|
|
26114
26130
|
/* @__PURE__ */ jsxs60("div", { className: "arrow-row", children: [
|
|
26115
26131
|
/* @__PURE__ */ jsx108(
|
|
26116
26132
|
ToolButton,
|
|
@@ -26155,7 +26171,7 @@ var LeftToolFlyouts = ({
|
|
|
26155
26171
|
"div",
|
|
26156
26172
|
{
|
|
26157
26173
|
className: "buttonList",
|
|
26158
|
-
style: { display: "flex", gap: 6, justifyContent: "
|
|
26174
|
+
style: { display: "flex", gap: 6, justifyContent: "flex-start" },
|
|
26159
26175
|
children: [
|
|
26160
26176
|
/* @__PURE__ */ jsx108(
|
|
26161
26177
|
ToolButton,
|
|
@@ -26397,7 +26413,7 @@ var LeftToolFlyouts = ({
|
|
|
26397
26413
|
"div",
|
|
26398
26414
|
{
|
|
26399
26415
|
className: "buttonList",
|
|
26400
|
-
style: { display: "flex", gap: 6, justifyContent: "
|
|
26416
|
+
style: { display: "flex", gap: 6, justifyContent: "flex-start" },
|
|
26401
26417
|
children: [
|
|
26402
26418
|
/* @__PURE__ */ jsx108(
|
|
26403
26419
|
ToolButton,
|
|
@@ -26455,7 +26471,7 @@ var LeftToolFlyouts = ({
|
|
|
26455
26471
|
"div",
|
|
26456
26472
|
{
|
|
26457
26473
|
className: "buttonList",
|
|
26458
|
-
style: { display: "flex", gap: 6, justifyContent: "
|
|
26474
|
+
style: { display: "flex", gap: 6, justifyContent: "flex-start" },
|
|
26459
26475
|
children: [
|
|
26460
26476
|
/* @__PURE__ */ jsx108(
|
|
26461
26477
|
ToolButton,
|
|
@@ -26509,7 +26525,7 @@ var LeftToolFlyouts = ({
|
|
|
26509
26525
|
}
|
|
26510
26526
|
)
|
|
26511
26527
|
] }),
|
|
26512
|
-
openForText && /* @__PURE__ */ jsx108(Island, { className: "left-flyout left-flyout--text", children: /* @__PURE__ */ jsxs60(Stack_default.Col, { gap: 2, align: "
|
|
26528
|
+
openForText && /* @__PURE__ */ jsx108(Island, { className: "left-flyout left-flyout--text", children: /* @__PURE__ */ jsxs60(Stack_default.Col, { gap: 2, align: "start", children: [
|
|
26513
26529
|
/* @__PURE__ */ jsx108("div", { className: "left-flyout__title", children: "\u6837\u5F0F" }),
|
|
26514
26530
|
/* @__PURE__ */ jsxs60("div", { className: "text-style-row", style: { display: "flex", gap: 8 }, children: [
|
|
26515
26531
|
/* @__PURE__ */ jsx108(
|
|
@@ -26598,7 +26614,7 @@ var LeftToolFlyouts = ({
|
|
|
26598
26614
|
display: "flex",
|
|
26599
26615
|
gap: 6,
|
|
26600
26616
|
alignItems: "center",
|
|
26601
|
-
justifyContent: "
|
|
26617
|
+
justifyContent: "flex-start"
|
|
26602
26618
|
},
|
|
26603
26619
|
children: [10, 12, 16, 24, 36].map((size) => {
|
|
26604
26620
|
const selected2 = appState.currentItemFontSize === size;
|
|
@@ -26643,7 +26659,7 @@ var LeftToolFlyouts = ({
|
|
|
26643
26659
|
"div",
|
|
26644
26660
|
{
|
|
26645
26661
|
className: "text-align-row",
|
|
26646
|
-
style: { display: "flex", gap: 6, justifyContent: "
|
|
26662
|
+
style: { display: "flex", gap: 6, justifyContent: "flex-start" },
|
|
26647
26663
|
children: [
|
|
26648
26664
|
/* @__PURE__ */ jsx108(
|
|
26649
26665
|
ToolButton,
|
|
@@ -32187,7 +32203,8 @@ var LayerUI = ({
|
|
|
32187
32203
|
generateLinkForSelection,
|
|
32188
32204
|
showZoomActions,
|
|
32189
32205
|
showPanActions,
|
|
32190
|
-
showToolBar = true
|
|
32206
|
+
showToolBar = true,
|
|
32207
|
+
showTopLeftToolbar = true
|
|
32191
32208
|
}) => {
|
|
32192
32209
|
const device = useDevice();
|
|
32193
32210
|
const tunnels = useInitializeTunnels();
|
|
@@ -32243,7 +32260,9 @@ var LayerUI = ({
|
|
|
32243
32260
|
{
|
|
32244
32261
|
appState,
|
|
32245
32262
|
app,
|
|
32246
|
-
visible: showToolBar
|
|
32263
|
+
visible: showToolBar,
|
|
32264
|
+
onHandToolToggle,
|
|
32265
|
+
showPanActions
|
|
32247
32266
|
}
|
|
32248
32267
|
),
|
|
32249
32268
|
isCollaborating && /* @__PURE__ */ jsx145(
|
|
@@ -32502,7 +32521,7 @@ var LayerUI = ({
|
|
|
32502
32521
|
showToolBar
|
|
32503
32522
|
}
|
|
32504
32523
|
),
|
|
32505
|
-
!device.editor.isMobile && !appState.viewModeEnabled &&
|
|
32524
|
+
!device.editor.isMobile && !appState.viewModeEnabled && showTopLeftToolbar && /* @__PURE__ */ jsx145(
|
|
32506
32525
|
TopLeftToolbar,
|
|
32507
32526
|
{
|
|
32508
32527
|
appState,
|
|
@@ -38491,6 +38510,7 @@ var App = class _App extends React46.Component {
|
|
|
38491
38510
|
showZoomActions: this.props.showZoomActions,
|
|
38492
38511
|
showPanActions: this.props.showPanActions,
|
|
38493
38512
|
showToolBar: this.props.showToolBar,
|
|
38513
|
+
showTopLeftToolbar: this.props.showTopLeftToolbar,
|
|
38494
38514
|
children: this.props.children
|
|
38495
38515
|
}
|
|
38496
38516
|
),
|
|
@@ -41992,7 +42012,8 @@ var ExcalidrawBase = (props) => {
|
|
|
41992
42012
|
renderScrollbars,
|
|
41993
42013
|
showZoomActions,
|
|
41994
42014
|
showPanActions,
|
|
41995
|
-
showToolBar
|
|
42015
|
+
showToolBar,
|
|
42016
|
+
showTopLeftToolbar
|
|
41996
42017
|
} = props;
|
|
41997
42018
|
const canvasActions = props.UIOptions?.canvasActions;
|
|
41998
42019
|
const UIOptions = {
|
|
@@ -42067,6 +42088,7 @@ var ExcalidrawBase = (props) => {
|
|
|
42067
42088
|
showZoomActions,
|
|
42068
42089
|
showPanActions,
|
|
42069
42090
|
showToolBar,
|
|
42091
|
+
showTopLeftToolbar,
|
|
42070
42092
|
children
|
|
42071
42093
|
}
|
|
42072
42094
|
) }) });
|