@floegence/floe-webapp-core 0.36.61 → 0.36.63
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/components/layout/BottomBar.d.ts +2 -0
- package/dist/components/layout/BottomBar.js +1 -1
- package/dist/components/layout/Shell.d.ts +2 -0
- package/dist/components/layout/Shell.js +16 -13
- package/dist/components/workbench/WorkbenchCanvas.d.ts +3 -3
- package/dist/components/workbench/WorkbenchCanvas.js +80 -80
- package/dist/components/workbench/WorkbenchCanvasField.d.ts +3 -3
- package/dist/components/workbench/WorkbenchCanvasField.js +77 -77
- package/dist/components/workbench/WorkbenchLayerObjects.d.ts +2 -2
- package/dist/components/workbench/WorkbenchLayerObjects.js +76 -76
- package/dist/components/workbench/WorkbenchSurface.js +19 -19
- package/dist/components/workbench/WorkbenchWidget.d.ts +2 -2
- package/dist/components/workbench/WorkbenchWidget.js +97 -93
- package/dist/components/workbench/useWorkbenchModel.d.ts +2 -2
- package/dist/components/workbench/useWorkbenchModel.js +373 -360
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { insert as R, createComponent as k, memo as
|
|
1
|
+
import { insert as R, createComponent as k, memo as ve, effect as U, template as O, classList as Ie, setAttribute as _, style as ge, addEventListener as V, use as fe, setStyleProperty as me, delegateEvents as Qe } from "solid-js/web";
|
|
2
2
|
import { createMemo as S, For as se, Show as te, createEffect as Re, onCleanup as ke, createSignal as re, untrack as ze, batch as Me } from "solid-js";
|
|
3
3
|
import { GripVertical as Ye, Check as Ze, Copy as et, Trash as Te, ChevronDown as tt, Minus as nt, Plus as it } from "../icons/index.js";
|
|
4
4
|
import { startHotInteraction as Ue } from "../../utils/hotInteraction.js";
|
|
@@ -6,7 +6,7 @@ import { startPointerSession as Ke } from "../ui/pointerSession.js";
|
|
|
6
6
|
import { WORKBENCH_STICKY_NOTE_COLORS as ot, WORKBENCH_REGION_FILL_OPTIONS as rt, WORKBENCH_BACKGROUND_MATERIALS as at, WORKBENCH_TEXT_FONT_OPTIONS as Pe, WORKBENCH_TEXT_COLOR_OPTIONS as ct, WORKBENCH_TEXT_EMOJI_OPTIONS as lt } from "./workbenchOptions.js";
|
|
7
7
|
import { compareWorkbenchLayerRenderOrder as st, createWorkbenchWidgetSurfaceMetrics as dt } from "./workbenchHelpers.js";
|
|
8
8
|
import { createOwnerSafePropAccessor as n } from "./workbenchOwnerSafeAccessors.js";
|
|
9
|
-
var ut = /* @__PURE__ */ O('<div class=workbench-sticky__actions data-floe-workbench-sticky-local=true><button type=button class=workbench-sticky__tool aria-label="Copy sticky note content"></button><button type=button class=workbench-sticky__tool aria-label="Change sticky note color"title="Change sticky note color"><span class=workbench-sticky__color-dot aria-hidden=true></span></button><button type=button class="workbench-sticky__tool is-danger"aria-label="Delete sticky note"title="Delete sticky note">'), ht = /* @__PURE__ */ O('<button type=button class="workbench-layer-resize workbench-sticky__resize"aria-label="Resize sticky note">'), wt = /* @__PURE__ */ O('<article class=workbench-sticky data-floe-canvas-interactive=true data-floe-workbench-widget-root=true data-wb-plane=work data-wb-object-kind=sticky tabindex=0><div class=workbench-sticky__surface><header class=workbench-sticky__header><button type=button class=workbench-sticky__grip aria-label="Drag sticky note"data-floe-workbench-sticky-local=true data-wb-part=move></button></header><div class=workbench-sticky__body role=textbox aria-multiline=true aria-label="Sticky note body"data-floe-workbench-text-selection-surface=true data-wb-text-editor=plain data-floe-workbench-sticky-local=true data-wb-part=content>'), mt = /* @__PURE__ */ O("<article class=workbench-text-annotation data-wb-plane=annotation data-wb-object-kind=text data-wb-part=body><div class=workbench-text-annotation__content data-floe-workbench-text-selection-surface=true data-wb-text-editor=plain data-wb-part=content>"),
|
|
9
|
+
var ut = /* @__PURE__ */ O('<div class=workbench-sticky__actions data-floe-workbench-sticky-local=true><button type=button class=workbench-sticky__tool aria-label="Copy sticky note content"></button><button type=button class=workbench-sticky__tool aria-label="Change sticky note color"title="Change sticky note color"><span class=workbench-sticky__color-dot aria-hidden=true></span></button><button type=button class="workbench-sticky__tool is-danger"aria-label="Delete sticky note"title="Delete sticky note">'), ht = /* @__PURE__ */ O('<button type=button class="workbench-layer-resize workbench-sticky__resize"aria-label="Resize sticky note">'), wt = /* @__PURE__ */ O('<article class=workbench-sticky data-floe-canvas-interactive=true data-floe-workbench-widget-root=true data-wb-plane=work data-wb-object-kind=sticky tabindex=0><div class=workbench-sticky__surface><header class=workbench-sticky__header><button type=button class=workbench-sticky__grip aria-label="Drag sticky note"data-floe-workbench-sticky-local=true data-wb-part=move></button></header><div class=workbench-sticky__body role=textbox aria-multiline=true aria-label="Sticky note body"data-floe-workbench-text-selection-surface=true data-wb-text-editor=plain data-floe-workbench-sticky-local=true data-wb-part=content>'), mt = /* @__PURE__ */ O("<article class=workbench-text-annotation data-wb-plane=annotation data-wb-object-kind=text data-wb-part=body><div class=workbench-text-annotation__content data-floe-workbench-text-selection-surface=true data-wb-text-editor=plain data-wb-part=content>"), vt = /* @__PURE__ */ O("<article class=workbench-background-region data-wb-plane=background data-wb-object-kind=region data-wb-part=body>"), gt = /* @__PURE__ */ O('<div class=workbench-text-font-popover role=menu aria-label="Bold font">'), bt = /* @__PURE__ */ O("<div class=workbench-text-emoji-popover role=menu aria-label=Emoji>"), yt = /* @__PURE__ */ O('<div class="workbench-layer-control workbench-layer-control--text"data-floe-canvas-interactive=true data-wb-plane=overlay data-wb-object-kind=text data-wb-part=toolbar><div class="workbench-layer-control__selection is-text"aria-hidden=true></div><div class=workbench-text-annotation__toolbar data-floe-canvas-interactive=true><button type=button aria-label="Move text"title="Move text"class="workbench-layer-mini-button workbench-layer-move-handle"data-wb-part=move></button><div class=workbench-text-font-picker data-floe-canvas-interactive=true><button type=button aria-label="Choose bold font"aria-haspopup=menu title="Choose bold font"class=workbench-text-font-trigger><span class=workbench-text-font-trigger__sample>Aa</span><span class=workbench-text-font-trigger__label></span></button></div><div class=workbench-text-size-stepper role=group aria-label="Text size"><button type=button aria-label="Decrease text size"title="Decrease text size"class=workbench-text-size-stepper__button></button><input class=workbench-text-annotation__size-input type=text inputmode=numeric pattern=[0-9]* aria-label="Text size value"><button type=button aria-label="Increase text size"title="Increase text size"class=workbench-text-size-stepper__button></button></div><div class=workbench-text-emoji-picker data-floe-canvas-interactive=true><button type=button aria-label="Insert emoji"aria-haspopup=menu title="Insert emoji"class=workbench-text-emoji-trigger>✨</button></div><button type=button class=workbench-layer-mini-button></button><button type=button class="workbench-layer-mini-button is-danger"aria-label="Delete text"></button></div><button type=button class=workbench-layer-resize aria-label="Resize text"data-wb-part=resize>'), ft = /* @__PURE__ */ O("<button type=button role=menuitemradio class=workbench-text-font-option><span class=workbench-text-font-option__sample>Aa</span><span class=workbench-text-font-option__label>"), kt = /* @__PURE__ */ O("<button type=button class=workbench-layer-swatch>"), xt = /* @__PURE__ */ O("<button type=button role=menuitem class=workbench-text-emoji-option>"), $t = /* @__PURE__ */ O('<div class="workbench-layer-control workbench-layer-control--region"data-floe-canvas-interactive=true data-wb-plane=overlay data-wb-object-kind=region data-wb-part=toolbar><div class="workbench-layer-control__selection is-region"aria-hidden=true></div><div class=workbench-background-region__toolbar data-floe-canvas-interactive=true><div class=workbench-region-material-group role=group aria-label="Region material"></div><button type=button class=workbench-layer-mini-button>%</button><button type=button class="workbench-layer-mini-button is-danger"aria-label="Delete background region"></button></div><button type=button class=workbench-layer-resize aria-label="Resize background region"data-wb-part=resize>'), _t = /* @__PURE__ */ O('<button type=button class="workbench-layer-swatch workbench-layer-swatch--region">'), Ct = /* @__PURE__ */ O("<button type=button class=workbench-region-material><span class=workbench-region-material__sample aria-hidden=true>"), St = /* @__PURE__ */ O("<div class=workbench-region-visibility-outline aria-hidden=true data-wb-plane=overlay data-wb-object-kind=region-outline>"), pt = /* @__PURE__ */ O("<div class=workbench-region-visibility-outline-layer aria-hidden=true>"), zt = /* @__PURE__ */ O("<div class=workbench-background-layer>"), Mt = /* @__PURE__ */ O("<div class=workbench-annotation-layer>"), Rt = /* @__PURE__ */ O("<div class=workbench-control-overlay-layer data-wb-plane=overlay>");
|
|
10
10
|
const Et = 190, Pt = 132, It = 180, Tt = 120, jt = 96, Lt = 42, Fe = {
|
|
11
11
|
solid: "Solid",
|
|
12
12
|
dotted: "Dotted",
|
|
@@ -47,11 +47,11 @@ function Ve(e, t) {
|
|
|
47
47
|
function Be(e, t, u) {
|
|
48
48
|
Re(() => {
|
|
49
49
|
if (!e() || typeof document > "u") return;
|
|
50
|
-
const i = (
|
|
50
|
+
const i = (g) => {
|
|
51
51
|
const y = t();
|
|
52
|
-
y &&
|
|
53
|
-
}, c = (
|
|
54
|
-
|
|
52
|
+
y && g.target instanceof Node && y.contains(g.target) || u();
|
|
53
|
+
}, c = (g) => {
|
|
54
|
+
g.key === "Escape" && u();
|
|
55
55
|
};
|
|
56
56
|
document.addEventListener("pointerdown", i, !0), document.addEventListener("keydown", c), ke(() => {
|
|
57
57
|
document.removeEventListener("pointerdown", i, !0), document.removeEventListener("keydown", c);
|
|
@@ -64,13 +64,13 @@ function Ot(e, t) {
|
|
|
64
64
|
return u === t || t.contains(u);
|
|
65
65
|
}
|
|
66
66
|
function Je(e) {
|
|
67
|
-
const [t, u] = re(), [i, c] = re(!1), [
|
|
67
|
+
const [t, u] = re(), [i, c] = re(!1), [g, y] = re(!1), p = () => t()?.textContent ?? "", b = (h) => u(h), E = (h) => {
|
|
68
68
|
const f = h.innerHTML ?? "";
|
|
69
69
|
f !== e.value() && e.onCommit(f);
|
|
70
70
|
};
|
|
71
71
|
return Re(() => {
|
|
72
72
|
const h = t();
|
|
73
|
-
if (!h || i() ||
|
|
73
|
+
if (!h || i() || g()) return;
|
|
74
74
|
const f = e.value();
|
|
75
75
|
(h.innerHTML ?? "") !== f && (h.innerHTML = f);
|
|
76
76
|
}), {
|
|
@@ -177,7 +177,7 @@ function Ee(e) {
|
|
|
177
177
|
const t = n(() => e.readPosition()), u = n(() => e.readGeometry?.() ?? {
|
|
178
178
|
width: 0,
|
|
179
179
|
height: 0
|
|
180
|
-
}), i = n(() => e.viewportScale()), c = n(() => e.onCommitMove),
|
|
180
|
+
}), i = n(() => e.viewportScale()), c = n(() => e.onCommitMove), g = n(() => e.onPreviewMove), y = n(() => e.onPreviewEnd), p = n(() => e.onInteractionStart), b = n(() => e.onInteractionEnd), E = n(() => e.onCommitStart), [$, j] = re(null);
|
|
181
181
|
let L;
|
|
182
182
|
return ke(() => {
|
|
183
183
|
L?.stop({
|
|
@@ -207,7 +207,7 @@ function Ee(e) {
|
|
|
207
207
|
p()?.();
|
|
208
208
|
const a = () => {
|
|
209
209
|
f || (f = !0, h(), b()?.());
|
|
210
|
-
}, r = u(), l =
|
|
210
|
+
}, r = u(), l = g(), o = y(), T = E(), q = c();
|
|
211
211
|
j({
|
|
212
212
|
pointerId: C.pointerId,
|
|
213
213
|
startClientX: C.clientX,
|
|
@@ -227,7 +227,7 @@ function Ee(e) {
|
|
|
227
227
|
Me(() => {
|
|
228
228
|
j((M) => {
|
|
229
229
|
if (!M || M.pointerId !== F.pointerId) return M;
|
|
230
|
-
const
|
|
230
|
+
const v = {
|
|
231
231
|
x: M.startWorldX + (F.clientX - M.startClientX) / M.scale,
|
|
232
232
|
y: M.startWorldY + (F.clientY - M.startClientY) / M.scale
|
|
233
233
|
};
|
|
@@ -238,9 +238,9 @@ function Ee(e) {
|
|
|
238
238
|
height: r.height
|
|
239
239
|
}, {
|
|
240
240
|
...M,
|
|
241
|
-
worldX:
|
|
242
|
-
worldY:
|
|
243
|
-
moved: M.moved || Math.abs(
|
|
241
|
+
worldX: v.x,
|
|
242
|
+
worldY: v.y,
|
|
243
|
+
moved: M.moved || Math.abs(v.x - M.startWorldX) > 2 || Math.abs(v.y - M.startWorldY) > 2
|
|
244
244
|
};
|
|
245
245
|
}), W && l?.(W);
|
|
246
246
|
});
|
|
@@ -265,7 +265,7 @@ function Ee(e) {
|
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
function Oe(e) {
|
|
268
|
-
const t = n(() => e.readSize()), u = n(() => e.viewportScale()), i = n(() => e.onCommitResize), c = n(() => e.onPreviewResize),
|
|
268
|
+
const t = n(() => e.readSize()), u = n(() => e.viewportScale()), i = n(() => e.onCommitResize), c = n(() => e.onPreviewResize), g = n(() => e.onPreviewEnd), y = n(() => e.onInteractionStart), p = n(() => e.onInteractionEnd), [b, E] = re(null);
|
|
269
269
|
let $;
|
|
270
270
|
return ke(() => {
|
|
271
271
|
$?.stop({
|
|
@@ -295,7 +295,7 @@ function Oe(e) {
|
|
|
295
295
|
y()?.();
|
|
296
296
|
const h = () => {
|
|
297
297
|
m || (m = !0, s(), p()?.());
|
|
298
|
-
}, f = c(), a =
|
|
298
|
+
}, f = c(), a = g(), r = i();
|
|
299
299
|
E({
|
|
300
300
|
pointerId: w.pointerId,
|
|
301
301
|
startClientX: w.clientX,
|
|
@@ -338,7 +338,7 @@ function Oe(e) {
|
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
340
|
function en(e) {
|
|
341
|
-
const t = n(() => e.item), u = n(() => e.selected), i = n(() => e.viewportScale), c = n(() => e.projectedViewport),
|
|
341
|
+
const t = n(() => e.item), u = n(() => e.selected), i = n(() => e.viewportScale), c = n(() => e.projectedViewport), g = n(() => e.surfaceReady ?? !0), y = n(() => e.renderLayer), p = n(() => e.topRenderLayer), b = n(() => e.locked), E = n(() => e.filtered), $ = n(() => e.visualFront ?? !1), j = n(() => e.onSelect), L = n(() => e.onContextMenu), w = n(() => e.onClaimVisualFrontOwner), z = n(() => e.onCommitFront), C = n(() => e.onCommitMove), s = n(() => e.onCommitResize), m = n(() => e.onUpdate), h = n(() => e.onDelete), f = n(() => e.onLayoutInteractionStart), a = n(() => e.onLayoutInteractionEnd), r = Je({
|
|
342
342
|
value: () => t().body,
|
|
343
343
|
onCommit: (P) => m()(t().id, {
|
|
344
344
|
body: P
|
|
@@ -358,8 +358,8 @@ function en(e) {
|
|
|
358
358
|
}, M = (P) => {
|
|
359
359
|
if (P.button !== 0) return;
|
|
360
360
|
const oe = t();
|
|
361
|
-
j()(oe.id), !b() && (P.target instanceof Element && P.target.closest('[data-floe-workbench-sticky-local="true"]') || (w()?.(oe.id),
|
|
362
|
-
},
|
|
361
|
+
j()(oe.id), !b() && (P.target instanceof Element && P.target.closest('[data-floe-workbench-sticky-local="true"]') || (w()?.(oe.id), v.beginDrag(P)));
|
|
362
|
+
}, v = Ee({
|
|
363
363
|
viewportScale: i,
|
|
364
364
|
readPosition: () => ({
|
|
365
365
|
x: t().x,
|
|
@@ -380,7 +380,7 @@ function en(e) {
|
|
|
380
380
|
onCommitResize: (P) => s()(t().id, P),
|
|
381
381
|
onInteractionStart: () => f()?.(),
|
|
382
382
|
onInteractionEnd: () => a()?.()
|
|
383
|
-
}), J = S(() =>
|
|
383
|
+
}), J = S(() => v.position()), Q = S(() => H.size()), K = S(() => {
|
|
384
384
|
const P = c();
|
|
385
385
|
if (P)
|
|
386
386
|
return dt({
|
|
@@ -390,14 +390,14 @@ function en(e) {
|
|
|
390
390
|
worldWidth: Q().width,
|
|
391
391
|
worldHeight: Q().height,
|
|
392
392
|
viewport: P(),
|
|
393
|
-
ready:
|
|
393
|
+
ready: g()
|
|
394
394
|
});
|
|
395
395
|
}), de = S(() => K()?.rect.viewportScale ?? Math.max(i(), 1e-3)), be = S(() => ({
|
|
396
396
|
width: `${Q().width}px`,
|
|
397
397
|
height: `${Q().height}px`,
|
|
398
398
|
transform: c() ? `translate(${K()?.rect.screenX ?? 0}px, ${K()?.rect.screenY ?? 0}px) scale(${de()})` : `translate(${J().x}px, ${J().y}px)`,
|
|
399
399
|
"transform-origin": "0 0",
|
|
400
|
-
"z-index": `${u() || $() ||
|
|
400
|
+
"z-index": `${u() || $() || v.isDragging() || H.isResizing() ? p() + 1 : y()}`
|
|
401
401
|
}));
|
|
402
402
|
return (() => {
|
|
403
403
|
var P = wt(), oe = P.firstChild, ue = oe.firstChild, Z = ue.firstChild, B = ue.nextSibling;
|
|
@@ -405,7 +405,7 @@ function en(e) {
|
|
|
405
405
|
x.preventDefault(), x.stopPropagation(), L()?.(x, t());
|
|
406
406
|
}, P.addEventListener("focus", () => j()(t().id)), P.$$pointerdown = M, Z.$$pointerdown = (x) => {
|
|
407
407
|
const X = t();
|
|
408
|
-
j()(X.id), w()?.(X.id),
|
|
408
|
+
j()(X.id), w()?.(X.id), v.beginDrag(x);
|
|
409
409
|
}, R(Z, k(Ye, {
|
|
410
410
|
class: "w-3.5 h-3.5"
|
|
411
411
|
})), V(B, "compositionend", r.handleCompositionEnd), V(B, "compositionstart", r.handleCompositionStart), V(B, "keydown", r.handleKeyDown, !0), V(B, "input", r.handleInput, !0), V(B, "blur", r.handleBlur), V(B, "focus", r.handleFocus), B.$$pointerdown = (x) => {
|
|
@@ -414,7 +414,7 @@ function en(e) {
|
|
|
414
414
|
var ee = r.bind;
|
|
415
415
|
return typeof ee == "function" ? fe(ee, B) : r.bind = B, _(B, "spellcheck", !1), R(P, k(te, {
|
|
416
416
|
get when() {
|
|
417
|
-
return
|
|
417
|
+
return ve(() => !!u())() && !b();
|
|
418
418
|
},
|
|
419
419
|
get children() {
|
|
420
420
|
var x = ut(), X = x.firstChild, ne = X.nextSibling, ae = ne.nextSibling;
|
|
@@ -465,12 +465,12 @@ function en(e) {
|
|
|
465
465
|
"is-selected": u(),
|
|
466
466
|
"is-locked": b(),
|
|
467
467
|
"is-filtered-out": E(),
|
|
468
|
-
"is-dragging":
|
|
468
|
+
"is-dragging": v.isDragging(),
|
|
469
469
|
"is-resizing": H.isResizing(),
|
|
470
470
|
"is-copied": l(),
|
|
471
471
|
[Dt[t().color]]: !0
|
|
472
472
|
}, ne = t().id, ae = t().id, N = t().id, ie = be(), ce = !b(), d = b() ? "true" : void 0;
|
|
473
|
-
return x.e = Ie(P, X, x.e), ne !== x.t && _(P, "data-floe-workbench-widget-id", x.t = ne), ae !== x.a && _(P, "data-wb-object-id", x.a = ae), N !== x.o && _(P, "data-floe-workbench-sticky-id", x.o = N), x.i =
|
|
473
|
+
return x.e = Ie(P, X, x.e), ne !== x.t && _(P, "data-floe-workbench-widget-id", x.t = ne), ae !== x.a && _(P, "data-wb-object-id", x.a = ae), N !== x.o && _(P, "data-floe-workbench-sticky-id", x.o = N), x.i = ge(P, ie, x.i), ce !== x.n && _(B, "contenteditable", x.n = ce), d !== x.s && _(B, "aria-disabled", x.s = d), x;
|
|
474
474
|
}, {
|
|
475
475
|
e: void 0,
|
|
476
476
|
t: void 0,
|
|
@@ -483,7 +483,7 @@ function en(e) {
|
|
|
483
483
|
})();
|
|
484
484
|
}
|
|
485
485
|
function Gt(e) {
|
|
486
|
-
const t = n(() => e.item), u = n(() => e.selected), i = n(() => e.editable), c = n(() => e.viewportScale),
|
|
486
|
+
const t = n(() => e.item), u = n(() => e.selected), i = n(() => e.editable), c = n(() => e.viewportScale), g = n(() => e.viewport ?? {
|
|
487
487
|
x: 0,
|
|
488
488
|
y: 0,
|
|
489
489
|
scale: 1
|
|
@@ -529,10 +529,10 @@ function Gt(e) {
|
|
|
529
529
|
width: a.width,
|
|
530
530
|
height: a.height
|
|
531
531
|
}),
|
|
532
|
-
viewport:
|
|
532
|
+
viewport: g(),
|
|
533
533
|
projection: y()
|
|
534
534
|
});
|
|
535
|
-
}), m = S(() => y() === "screen" ? Math.max(
|
|
535
|
+
}), m = S(() => y() === "screen" ? Math.max(g().scale, 1e-3) : 1), h = S(() => ({
|
|
536
536
|
..._e(s()),
|
|
537
537
|
"z-index": `${t().z_index}`,
|
|
538
538
|
"--workbench-text-color": t().color,
|
|
@@ -556,8 +556,8 @@ function Gt(e) {
|
|
|
556
556
|
};
|
|
557
557
|
var l = z.bind;
|
|
558
558
|
return typeof l == "function" ? fe(l, r) : z.bind = r, _(r, "spellcheck", !1), U((o) => {
|
|
559
|
-
var T = !!u(), q = !!i(), F = i() ? "true" : void 0, W = t().id, M = h(),
|
|
560
|
-
return T !== o.e && a.classList.toggle("is-selected", o.e = T), q !== o.t && a.classList.toggle("is-editable", o.t = q), F !== o.a && _(a, "data-floe-canvas-interactive", o.a = F), W !== o.o && _(a, "data-wb-object-id", o.o = W), o.i =
|
|
559
|
+
var T = !!u(), q = !!i(), F = i() ? "true" : void 0, W = t().id, M = h(), v = i() ? "plaintext-only" : !1, H = i() ? 0 : void 0, J = i() ? "textbox" : void 0, Q = i() ? "true" : void 0, K = i() ? void 0 : "true";
|
|
560
|
+
return T !== o.e && a.classList.toggle("is-selected", o.e = T), q !== o.t && a.classList.toggle("is-editable", o.t = q), F !== o.a && _(a, "data-floe-canvas-interactive", o.a = F), W !== o.o && _(a, "data-wb-object-id", o.o = W), o.i = ge(a, M, o.i), v !== o.n && _(r, "contenteditable", o.n = v), H !== o.s && _(r, "tabindex", o.s = H), J !== o.h && _(r, "role", o.h = J), Q !== o.r && _(r, "aria-multiline", o.r = Q), K !== o.d && _(r, "aria-disabled", o.d = K), o;
|
|
561
561
|
}, {
|
|
562
562
|
e: void 0,
|
|
563
563
|
t: void 0,
|
|
@@ -573,7 +573,7 @@ function Gt(e) {
|
|
|
573
573
|
})();
|
|
574
574
|
}
|
|
575
575
|
function Ht(e) {
|
|
576
|
-
const t = n(() => e.item), u = n(() => e.selected), i = n(() => e.editable), c = n(() => e.viewportScale),
|
|
576
|
+
const t = n(() => e.item), u = n(() => e.selected), i = n(() => e.editable), c = n(() => e.viewportScale), g = n(() => e.viewport ?? {
|
|
577
577
|
x: 0,
|
|
578
578
|
y: 0,
|
|
579
579
|
scale: 1
|
|
@@ -603,7 +603,7 @@ function Ht(e) {
|
|
|
603
603
|
width: s.width,
|
|
604
604
|
height: s.height
|
|
605
605
|
}),
|
|
606
|
-
viewport:
|
|
606
|
+
viewport: g(),
|
|
607
607
|
projection: y()
|
|
608
608
|
});
|
|
609
609
|
}), z = S(() => ({
|
|
@@ -614,7 +614,7 @@ function Ht(e) {
|
|
|
614
614
|
!i() || s.button !== 0 || s.target instanceof Element && s.target.closest(".workbench-background-region__toolbar, .workbench-layer-resize") || (E()(t().id), L.beginDrag(s));
|
|
615
615
|
};
|
|
616
616
|
return (() => {
|
|
617
|
-
var s =
|
|
617
|
+
var s = vt();
|
|
618
618
|
return s.$$contextmenu = (m) => {
|
|
619
619
|
i() && (m.preventDefault(), m.stopPropagation(), E()(t().id), $()?.(m, t()));
|
|
620
620
|
}, s.addEventListener("focus", () => i() && E()(t().id)), s.$$pointerdown = C, U((m) => {
|
|
@@ -624,7 +624,7 @@ function Ht(e) {
|
|
|
624
624
|
"is-transforming": L.isDragging(),
|
|
625
625
|
[`is-material-${t().material}`]: !0
|
|
626
626
|
}, f = i() ? "true" : void 0, a = t().id, r = z(), l = i() ? 0 : void 0;
|
|
627
|
-
return m.e = Ie(s, h, m.e), f !== m.t && _(s, "data-floe-canvas-interactive", m.t = f), a !== m.a && _(s, "data-wb-object-id", m.a = a), m.o =
|
|
627
|
+
return m.e = Ie(s, h, m.e), f !== m.t && _(s, "data-floe-canvas-interactive", m.t = f), a !== m.a && _(s, "data-wb-object-id", m.a = a), m.o = ge(s, r, m.o), l !== m.i && _(s, "tabindex", m.i = l), m;
|
|
628
628
|
}, {
|
|
629
629
|
e: void 0,
|
|
630
630
|
t: void 0,
|
|
@@ -639,9 +639,9 @@ function Nt(e) {
|
|
|
639
639
|
x: 0,
|
|
640
640
|
y: 0,
|
|
641
641
|
scale: 1
|
|
642
|
-
}), c = n(() => e.projection),
|
|
642
|
+
}), c = n(() => e.projection), g = n(() => e.preview), y = n(() => e.textEditorRegistry), p = n(() => e.onPreviewGeometry), b = n(() => e.onCommitMove), E = n(() => e.onCommitResize), $ = n(() => e.onUpdate), j = n(() => e.onDelete);
|
|
643
643
|
let L, w, z;
|
|
644
|
-
const [C, s] = re(""), [m, h] = re(!1), [f, a] = re(!1), r = S(() => Pe.find((
|
|
644
|
+
const [C, s] = re(""), [m, h] = re(!1), [f, a] = re(!1), r = S(() => Pe.find((v) => v.fontFamily === t().font_family) ?? Pe[0]), l = Ee({
|
|
645
645
|
viewportScale: u,
|
|
646
646
|
readPosition: () => ({
|
|
647
647
|
x: t().x,
|
|
@@ -651,11 +651,11 @@ function Nt(e) {
|
|
|
651
651
|
width: t().width,
|
|
652
652
|
height: t().height
|
|
653
653
|
}),
|
|
654
|
-
onCommitMove: (
|
|
655
|
-
onPreviewMove: (
|
|
654
|
+
onCommitMove: (v) => b()(t().id, v),
|
|
655
|
+
onPreviewMove: (v) => p()?.({
|
|
656
656
|
kind: "annotation",
|
|
657
657
|
id: t().id,
|
|
658
|
-
...
|
|
658
|
+
...v
|
|
659
659
|
}),
|
|
660
660
|
onPreviewEnd: () => p()?.(null)
|
|
661
661
|
}), o = Oe({
|
|
@@ -666,18 +666,18 @@ function Nt(e) {
|
|
|
666
666
|
}),
|
|
667
667
|
minWidth: jt,
|
|
668
668
|
minHeight: Lt,
|
|
669
|
-
onCommitResize: (
|
|
670
|
-
onPreviewResize: (
|
|
669
|
+
onCommitResize: (v) => E()(t().id, v),
|
|
670
|
+
onPreviewResize: (v) => p()?.({
|
|
671
671
|
kind: "annotation",
|
|
672
672
|
id: t().id,
|
|
673
673
|
x: t().x,
|
|
674
674
|
y: t().y,
|
|
675
|
-
width:
|
|
676
|
-
height:
|
|
675
|
+
width: v.width,
|
|
676
|
+
height: v.height
|
|
677
677
|
}),
|
|
678
678
|
onPreviewEnd: () => p()?.(null)
|
|
679
679
|
}), T = S(() => {
|
|
680
|
-
const
|
|
680
|
+
const v = t(), H = xe(g(), "annotation", v.id);
|
|
681
681
|
return $e({
|
|
682
682
|
geometry: Ce({
|
|
683
683
|
preview: H,
|
|
@@ -692,15 +692,15 @@ function Nt(e) {
|
|
|
692
692
|
..._e(T()),
|
|
693
693
|
"z-index": `${t().z_index}`,
|
|
694
694
|
"--workbench-layer-control-inverse-scale": `${1 / Math.max(T().scale, 1e-3)}`
|
|
695
|
-
})), F = () => Ve(["left", "center", "right"], t().align), W = (
|
|
696
|
-
if (!Number.isFinite(
|
|
697
|
-
const H = Wt(
|
|
695
|
+
})), F = () => Ve(["left", "center", "right"], t().align), W = (v) => {
|
|
696
|
+
if (!Number.isFinite(v)) return;
|
|
697
|
+
const H = Wt(v);
|
|
698
698
|
s(String(H)), $()(t().id, {
|
|
699
699
|
font_size: H
|
|
700
700
|
});
|
|
701
701
|
}, M = () => {
|
|
702
|
-
const
|
|
703
|
-
if (
|
|
702
|
+
const v = C().trim(), H = Number(v);
|
|
703
|
+
if (v.length > 0 && Number.isFinite(H)) {
|
|
704
704
|
W(H);
|
|
705
705
|
return;
|
|
706
706
|
}
|
|
@@ -709,7 +709,7 @@ function Nt(e) {
|
|
|
709
709
|
return Re(() => {
|
|
710
710
|
typeof document < "u" && document.activeElement === L || s(String(t().font_size));
|
|
711
711
|
}), Be(m, () => w, () => h(!1)), Be(f, () => z, () => a(!1)), (() => {
|
|
712
|
-
var
|
|
712
|
+
var v = yt(), H = v.firstChild, J = H.nextSibling, Q = J.firstChild, K = Q.nextSibling, de = K.firstChild, be = de.firstChild, P = be.nextSibling, oe = K.nextSibling, ue = oe.firstChild, Z = ue.nextSibling, B = Z.nextSibling, ee = oe.nextSibling, x = ee.firstChild, X = ee.nextSibling, ne = X.nextSibling, ae = J.nextSibling;
|
|
713
713
|
J.$$click = we, J.$$pointerdown = he, Q.$$click = A, V(Q, "pointerdown", l.beginDrag, !0), R(Q, k(Ye, {
|
|
714
714
|
class: "w-3.5 h-3.5"
|
|
715
715
|
})), K.$$click = we, K.$$pointerdown = he;
|
|
@@ -723,7 +723,7 @@ function Nt(e) {
|
|
|
723
723
|
return m();
|
|
724
724
|
},
|
|
725
725
|
get children() {
|
|
726
|
-
var d =
|
|
726
|
+
var d = gt();
|
|
727
727
|
return R(d, k(se, {
|
|
728
728
|
each: Pe,
|
|
729
729
|
children: (I) => (() => {
|
|
@@ -799,7 +799,7 @@ function Nt(e) {
|
|
|
799
799
|
class: "w-3.5 h-3.5"
|
|
800
800
|
})), V(ae, "pointerdown", o.beginResize, !0), U((d) => {
|
|
801
801
|
var I = t().id, D = q(), le = m(), Se = r().fontFamily, G = `${r().fontWeight}`, ye = f();
|
|
802
|
-
return I !== d.e && _(
|
|
802
|
+
return I !== d.e && _(v, "data-wb-object-id", d.e = I), d.t = ge(v, D, d.t), le !== d.a && _(de, "aria-expanded", d.a = le), Se !== d.o && me(be, "font-family", d.o = Se), G !== d.i && me(be, "font-weight", d.i = G), ye !== d.n && _(x, "aria-expanded", d.n = ye), d;
|
|
803
803
|
}, {
|
|
804
804
|
e: void 0,
|
|
805
805
|
t: void 0,
|
|
@@ -807,7 +807,7 @@ function Nt(e) {
|
|
|
807
807
|
o: void 0,
|
|
808
808
|
i: void 0,
|
|
809
809
|
n: void 0
|
|
810
|
-
}), U(() => Z.value = C()),
|
|
810
|
+
}), U(() => Z.value = C()), v;
|
|
811
811
|
})();
|
|
812
812
|
}
|
|
813
813
|
function At(e) {
|
|
@@ -815,7 +815,7 @@ function At(e) {
|
|
|
815
815
|
x: 0,
|
|
816
816
|
y: 0,
|
|
817
817
|
scale: 1
|
|
818
|
-
}), c = n(() => e.projection),
|
|
818
|
+
}), c = n(() => e.projection), g = n(() => e.preview), y = n(() => e.onPreviewGeometry), p = n(() => e.onCommitResize), b = n(() => e.onUpdate), E = n(() => e.onDelete), $ = Oe({
|
|
819
819
|
viewportScale: u,
|
|
820
820
|
readSize: () => ({
|
|
821
821
|
width: t().width,
|
|
@@ -834,7 +834,7 @@ function At(e) {
|
|
|
834
834
|
}),
|
|
835
835
|
onPreviewEnd: () => y()?.(null)
|
|
836
836
|
}), j = S(() => {
|
|
837
|
-
const w = t(), z = xe(
|
|
837
|
+
const w = t(), z = xe(g(), "background_layer", w.id);
|
|
838
838
|
return $e({
|
|
839
839
|
geometry: Ce({
|
|
840
840
|
preview: z,
|
|
@@ -896,7 +896,7 @@ function At(e) {
|
|
|
896
896
|
class: "w-3.5 h-3.5"
|
|
897
897
|
})), V(a, "pointerdown", $.beginResize, !0), U((r) => {
|
|
898
898
|
var l = t().id, o = L();
|
|
899
|
-
return l !== r.e && _(w, "data-wb-object-id", r.e = l), r.t =
|
|
899
|
+
return l !== r.e && _(w, "data-wb-object-id", r.e = l), r.t = ge(w, o, r.t), r;
|
|
900
900
|
}, {
|
|
901
901
|
e: void 0,
|
|
902
902
|
t: void 0
|
|
@@ -904,7 +904,7 @@ function At(e) {
|
|
|
904
904
|
})();
|
|
905
905
|
}
|
|
906
906
|
function Ft(e) {
|
|
907
|
-
const t = n(() => e.item), u = n(() => e.viewport), i = n(() => e.projection), c = n(() => e.preview),
|
|
907
|
+
const t = n(() => e.item), u = n(() => e.viewport), i = n(() => e.projection), c = n(() => e.preview), g = S(() => {
|
|
908
908
|
const p = t(), b = xe(c(), "background_layer", p.id);
|
|
909
909
|
return $e({
|
|
910
910
|
geometry: Ce({
|
|
@@ -920,15 +920,15 @@ function Ft(e) {
|
|
|
920
920
|
projection: i()
|
|
921
921
|
});
|
|
922
922
|
}), y = S(() => ({
|
|
923
|
-
..._e(
|
|
924
|
-
"--workbench-region-outline-scale": `${1 / Math.max(
|
|
923
|
+
..._e(g()),
|
|
924
|
+
"--workbench-region-outline-scale": `${1 / Math.max(g().scale, 1e-3)}`,
|
|
925
925
|
...De(t())
|
|
926
926
|
}));
|
|
927
927
|
return (() => {
|
|
928
928
|
var p = St();
|
|
929
929
|
return U((b) => {
|
|
930
930
|
var E = !!e.selected, $ = t().id, j = y();
|
|
931
|
-
return E !== b.e && p.classList.toggle("is-selected-region", b.e = E), $ !== b.t && _(p, "data-wb-object-id", b.t = $), b.a =
|
|
931
|
+
return E !== b.e && p.classList.toggle("is-selected-region", b.e = E), $ !== b.t && _(p, "data-wb-object-id", b.t = $), b.a = ge(p, j, b.a), b;
|
|
932
932
|
}, {
|
|
933
933
|
e: void 0,
|
|
934
934
|
t: void 0,
|
|
@@ -945,17 +945,17 @@ function Bt(e) {
|
|
|
945
945
|
return u();
|
|
946
946
|
},
|
|
947
947
|
children: (c) => {
|
|
948
|
-
const
|
|
948
|
+
const g = S(() => t().get(c) ?? null);
|
|
949
949
|
return k(te, {
|
|
950
950
|
get when() {
|
|
951
|
-
return
|
|
951
|
+
return g();
|
|
952
952
|
},
|
|
953
953
|
children: (y) => k(Ft, {
|
|
954
954
|
get item() {
|
|
955
955
|
return y();
|
|
956
956
|
},
|
|
957
957
|
get selected() {
|
|
958
|
-
return
|
|
958
|
+
return ve(() => e.selectedObject?.kind === "background_layer")() && e.selectedObject.id === c;
|
|
959
959
|
},
|
|
960
960
|
get viewport() {
|
|
961
961
|
return e.viewport;
|
|
@@ -981,17 +981,17 @@ function tn(e) {
|
|
|
981
981
|
return u();
|
|
982
982
|
},
|
|
983
983
|
children: (c) => {
|
|
984
|
-
const
|
|
984
|
+
const g = S(() => t().get(c) ?? null);
|
|
985
985
|
return k(te, {
|
|
986
986
|
get when() {
|
|
987
|
-
return
|
|
987
|
+
return g();
|
|
988
988
|
},
|
|
989
989
|
children: (y) => k(Ht, {
|
|
990
990
|
get item() {
|
|
991
991
|
return y();
|
|
992
992
|
},
|
|
993
993
|
get selected() {
|
|
994
|
-
return
|
|
994
|
+
return ve(() => e.selectedObject?.kind === "background_layer")() && e.selectedObject.id === c;
|
|
995
995
|
},
|
|
996
996
|
get editable() {
|
|
997
997
|
return e.editable;
|
|
@@ -1024,8 +1024,8 @@ function tn(e) {
|
|
|
1024
1024
|
});
|
|
1025
1025
|
}
|
|
1026
1026
|
})), U((c) => {
|
|
1027
|
-
var
|
|
1028
|
-
return
|
|
1027
|
+
var g = !!e.editable, y = !!e.filtered;
|
|
1028
|
+
return g !== c.e && i.classList.toggle("is-editable", c.e = g), y !== c.t && i.classList.toggle("is-filtered-out", c.t = y), c;
|
|
1029
1029
|
}, {
|
|
1030
1030
|
e: void 0,
|
|
1031
1031
|
t: void 0
|
|
@@ -1041,17 +1041,17 @@ function nn(e) {
|
|
|
1041
1041
|
return u();
|
|
1042
1042
|
},
|
|
1043
1043
|
children: (c) => {
|
|
1044
|
-
const
|
|
1044
|
+
const g = S(() => t().get(c) ?? null);
|
|
1045
1045
|
return k(te, {
|
|
1046
1046
|
get when() {
|
|
1047
|
-
return
|
|
1047
|
+
return g();
|
|
1048
1048
|
},
|
|
1049
1049
|
children: (y) => k(Gt, {
|
|
1050
1050
|
get item() {
|
|
1051
1051
|
return y();
|
|
1052
1052
|
},
|
|
1053
1053
|
get selected() {
|
|
1054
|
-
return
|
|
1054
|
+
return ve(() => e.selectedObject?.kind === "annotation")() && e.selectedObject.id === c;
|
|
1055
1055
|
},
|
|
1056
1056
|
get editable() {
|
|
1057
1057
|
return e.editable;
|
|
@@ -1090,8 +1090,8 @@ function nn(e) {
|
|
|
1090
1090
|
});
|
|
1091
1091
|
}
|
|
1092
1092
|
})), U((c) => {
|
|
1093
|
-
var
|
|
1094
|
-
return
|
|
1093
|
+
var g = !!e.editable, y = !!e.filtered;
|
|
1094
|
+
return g !== c.e && i.classList.toggle("is-editable", c.e = g), y !== c.t && i.classList.toggle("is-filtered-out", c.t = y), c;
|
|
1095
1095
|
}, {
|
|
1096
1096
|
e: void 0,
|
|
1097
1097
|
t: void 0
|
|
@@ -1127,7 +1127,7 @@ function on(e) {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
}), null), R(i, k(te, {
|
|
1129
1129
|
get when() {
|
|
1130
|
-
return
|
|
1130
|
+
return ve(() => !!e.editable)() && u();
|
|
1131
1131
|
},
|
|
1132
1132
|
children: (c) => k(At, {
|
|
1133
1133
|
get item() {
|
|
@@ -1160,7 +1160,7 @@ function on(e) {
|
|
|
1160
1160
|
})
|
|
1161
1161
|
}), null), R(i, k(te, {
|
|
1162
1162
|
get when() {
|
|
1163
|
-
return
|
|
1163
|
+
return ve(() => !!e.editable)() && t();
|
|
1164
1164
|
},
|
|
1165
1165
|
children: (c) => k(Nt, {
|
|
1166
1166
|
get item() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { use as
|
|
2
|
-
import { createSignal as
|
|
1
|
+
import { use as V, spread as z, mergeProps as H, insert as f, createComponent as s, Portal as $, addEventListener as U, template as T, delegateEvents as K } from "solid-js/web";
|
|
2
|
+
import { createSignal as p, createMemo as g, untrack as C, createEffect as v, onCleanup as y, Show as j } from "solid-js";
|
|
3
3
|
import { clientToCanvasWorld as L } from "../ui/canvasGeometry.js";
|
|
4
4
|
import { WorkbenchCanvas as Z } from "./WorkbenchCanvas.js";
|
|
5
5
|
import { WorkbenchContextMenu as G } from "./WorkbenchContextMenu.js";
|
|
@@ -32,7 +32,7 @@ function Ie(a) {
|
|
|
32
32
|
backgroundLayerDefaults: () => a.backgroundLayerDefaults,
|
|
33
33
|
onClose: () => {
|
|
34
34
|
}
|
|
35
|
-
}), [u, N] =
|
|
35
|
+
}), [u, N] = p(null), [O, R] = p(null), d = g(() => de(a.interactionAdapter)), [h, l] = p(C(() => d().createInitialInputOwner())), W = g(() => {
|
|
36
36
|
const e = a.launcherWidgetTypes;
|
|
37
37
|
return !e || e.length <= 0 ? null : new Set(e);
|
|
38
38
|
}), E = g(() => {
|
|
@@ -96,7 +96,7 @@ function Ie(a) {
|
|
|
96
96
|
worldY: i > 0 ? (i / 2 - n.y) / n.scale : 180
|
|
97
97
|
};
|
|
98
98
|
}, w = (e) => {
|
|
99
|
-
const n =
|
|
99
|
+
const n = C(d), o = C(u);
|
|
100
100
|
queueMicrotask(() => {
|
|
101
101
|
n.focusWidgetElement(o, e), l(n.createWidgetInputOwner(e, "activation"));
|
|
102
102
|
});
|
|
@@ -173,7 +173,7 @@ function Ie(a) {
|
|
|
173
173
|
});
|
|
174
174
|
y(() => e());
|
|
175
175
|
}), v(() => {
|
|
176
|
-
const e =
|
|
176
|
+
const e = h();
|
|
177
177
|
if (e.kind !== "widget") return;
|
|
178
178
|
t.widgets().some((o) => o.id === e.widgetId) || l(d().createCanvasInputOwner("widget_removed"));
|
|
179
179
|
}), v(() => {
|
|
@@ -198,7 +198,7 @@ function Ie(a) {
|
|
|
198
198
|
if (!d().shouldBypassGlobalHotkeys({
|
|
199
199
|
root: u(),
|
|
200
200
|
target: o.target,
|
|
201
|
-
owner:
|
|
201
|
+
owner: h(),
|
|
202
202
|
interactiveSelector: d().interactiveSelector
|
|
203
203
|
}))
|
|
204
204
|
switch (o.key) {
|
|
@@ -223,7 +223,7 @@ function Ie(a) {
|
|
|
223
223
|
};
|
|
224
224
|
document.addEventListener("keydown", n, !0), y(() => document.removeEventListener("keydown", n, !0));
|
|
225
225
|
});
|
|
226
|
-
const
|
|
226
|
+
const A = (e, n, o) => {
|
|
227
227
|
if (o?.canvasFrame)
|
|
228
228
|
return L(o.canvasFrame, t.viewport(), {
|
|
229
229
|
clientX: e,
|
|
@@ -237,10 +237,10 @@ function Ie(a) {
|
|
|
237
237
|
clientY: n
|
|
238
238
|
});
|
|
239
239
|
}, _ = (e, n, o, r) => {
|
|
240
|
-
const i =
|
|
240
|
+
const i = A(n, o, r);
|
|
241
241
|
i && t.widgetActions.addWidgetAtWorldCenter(e, i.worldX, i.worldY);
|
|
242
242
|
}, Y = (e, n, o, r) => {
|
|
243
|
-
const i =
|
|
243
|
+
const i = A(n, o, r);
|
|
244
244
|
if (i) {
|
|
245
245
|
if (e === "sticky-note") {
|
|
246
246
|
t.widgetActions.addStickyNoteAtCursor(i.worldX, i.worldY);
|
|
@@ -255,9 +255,9 @@ function Ie(a) {
|
|
|
255
255
|
}, P = (e) => {
|
|
256
256
|
e.button === 0 && x("background_pointer");
|
|
257
257
|
}, q = g(() => {
|
|
258
|
-
const e =
|
|
258
|
+
const e = O();
|
|
259
259
|
if (!e) return null;
|
|
260
|
-
const n =
|
|
260
|
+
const n = A(e.clientX, e.clientY, e);
|
|
261
261
|
return n ? e.kind === "widget" ? ie({
|
|
262
262
|
type: e.id,
|
|
263
263
|
widgetDefinitions: t.widgetDefinitions(),
|
|
@@ -276,7 +276,7 @@ function Ie(a) {
|
|
|
276
276
|
});
|
|
277
277
|
return (() => {
|
|
278
278
|
var e = se(), n = e.firstChild;
|
|
279
|
-
return
|
|
279
|
+
return V(N, e), z(e, H({
|
|
280
280
|
get class() {
|
|
281
281
|
return `workbench-surface${a.class ? ` ${a.class}` : ""}`;
|
|
282
282
|
}
|
|
@@ -324,8 +324,8 @@ function Ie(a) {
|
|
|
324
324
|
get mode() {
|
|
325
325
|
return t.mode();
|
|
326
326
|
},
|
|
327
|
-
get
|
|
328
|
-
return t.
|
|
327
|
+
get visualFrontOwnerId() {
|
|
328
|
+
return t.visualFrontOwnerId();
|
|
329
329
|
},
|
|
330
330
|
get locked() {
|
|
331
331
|
return t.locked();
|
|
@@ -355,8 +355,8 @@ function Ie(a) {
|
|
|
355
355
|
get onWidgetContextMenu() {
|
|
356
356
|
return t.canvas.openWidgetContextMenu;
|
|
357
357
|
},
|
|
358
|
-
get
|
|
359
|
-
return t.canvas.
|
|
358
|
+
get onClaimVisualFrontOwner() {
|
|
359
|
+
return t.canvas.claimVisualFrontOwner;
|
|
360
360
|
},
|
|
361
361
|
get onCommitFront() {
|
|
362
362
|
return t.canvas.commitFront;
|
|
@@ -373,8 +373,8 @@ function Ie(a) {
|
|
|
373
373
|
get onStickyNoteContextMenu() {
|
|
374
374
|
return t.canvas.openStickyNoteContextMenu;
|
|
375
375
|
},
|
|
376
|
-
get
|
|
377
|
-
return t.canvas.
|
|
376
|
+
get onClaimStickyVisualFrontOwner() {
|
|
377
|
+
return t.canvas.claimVisualFrontOwner;
|
|
378
378
|
},
|
|
379
379
|
get onCommitStickyFront() {
|
|
380
380
|
return t.canvas.commitStickyFront;
|
|
@@ -476,7 +476,7 @@ function Ie(a) {
|
|
|
476
476
|
onViewportInteractionStart: () => t.canvas.cancelViewportNavigation(),
|
|
477
477
|
onCreateAt: _,
|
|
478
478
|
onCreateToolAt: Y,
|
|
479
|
-
onDragPreviewChange:
|
|
479
|
+
onDragPreviewChange: R
|
|
480
480
|
}), null), f(e, s(Q, {
|
|
481
481
|
get scaleLabel() {
|
|
482
482
|
return t.scaleLabel();
|