@tatamicks/core 0.1.3 → 0.1.4
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/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +376 -370
- package/dist/index.mjs.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import './index.css';var On = Object.defineProperty;
|
|
|
2
2
|
var Sn = (t, e, n) => e in t ? On(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
|
3
3
|
var ae = (t, e, n) => Sn(t, typeof e != "symbol" ? e + "" : e, n);
|
|
4
4
|
import kn, { useCallback as I, useRef as ft, useEffect as gt, useState as ot, createContext as Gn, useContext as ye, memo as F, useMemo as A, forwardRef as te, useImperativeHandle as Ee } from "react";
|
|
5
|
-
var qt = { exports: {} },
|
|
5
|
+
var qt = { exports: {} }, Ct = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.js
|
|
@@ -14,7 +14,7 @@ var qt = { exports: {} }, Lt = {};
|
|
|
14
14
|
*/
|
|
15
15
|
var Ae;
|
|
16
16
|
function Bn() {
|
|
17
|
-
if (Ae) return
|
|
17
|
+
if (Ae) return Ct;
|
|
18
18
|
Ae = 1;
|
|
19
19
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
20
20
|
function n(s, o, l) {
|
|
@@ -32,7 +32,7 @@ function Bn() {
|
|
|
32
32
|
props: l
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
return
|
|
35
|
+
return Ct.Fragment = e, Ct.jsx = n, Ct.jsxs = n, Ct;
|
|
36
36
|
}
|
|
37
37
|
var Ot = {};
|
|
38
38
|
/**
|
|
@@ -137,7 +137,7 @@ function Vn() {
|
|
|
137
137
|
}
|
|
138
138
|
function a(b, T) {
|
|
139
139
|
function O() {
|
|
140
|
-
|
|
140
|
+
L || (L = !0, console.error(
|
|
141
141
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
142
142
|
T
|
|
143
143
|
));
|
|
@@ -149,11 +149,11 @@ function Vn() {
|
|
|
149
149
|
}
|
|
150
150
|
function c() {
|
|
151
151
|
var b = t(this.type);
|
|
152
|
-
return
|
|
152
|
+
return C[b] || (C[b] = !0, console.error(
|
|
153
153
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
154
154
|
)), b = this.props.ref, b !== void 0 ? b : null;
|
|
155
155
|
}
|
|
156
|
-
function u(b, T, O, Y, vt,
|
|
156
|
+
function u(b, T, O, Y, vt, Lt) {
|
|
157
157
|
var J = O.ref;
|
|
158
158
|
return b = {
|
|
159
159
|
$$typeof: y,
|
|
@@ -183,10 +183,10 @@ function Vn() {
|
|
|
183
183
|
configurable: !1,
|
|
184
184
|
enumerable: !1,
|
|
185
185
|
writable: !0,
|
|
186
|
-
value:
|
|
186
|
+
value: Lt
|
|
187
187
|
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
188
188
|
}
|
|
189
|
-
function f(b, T, O, Y, vt,
|
|
189
|
+
function f(b, T, O, Y, vt, Lt) {
|
|
190
190
|
var J = T.children;
|
|
191
191
|
if (J !== void 0)
|
|
192
192
|
if (Y)
|
|
@@ -231,7 +231,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
231
231
|
O,
|
|
232
232
|
o(),
|
|
233
233
|
vt,
|
|
234
|
-
|
|
234
|
+
Lt
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function p(b) {
|
|
@@ -248,7 +248,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
248
248
|
return b();
|
|
249
249
|
}
|
|
250
250
|
};
|
|
251
|
-
var
|
|
251
|
+
var L, C = {}, W = v.react_stack_bottom_frame.bind(
|
|
252
252
|
v,
|
|
253
253
|
l
|
|
254
254
|
)(), X = N(s(l)), q = {};
|
|
@@ -404,7 +404,7 @@ const qn = "_container_qbvob_5", Jn = "_colorButton_qbvob_13", Zn = "_textInputW
|
|
|
404
404
|
rgbaInputGroup: lr,
|
|
405
405
|
rgbaLabel: ar
|
|
406
406
|
};
|
|
407
|
-
function
|
|
407
|
+
function Le(t) {
|
|
408
408
|
if (!t)
|
|
409
409
|
return null;
|
|
410
410
|
const e = t.match(/^#([0-9a-f]{6}|[0-9a-f]{8})$/i);
|
|
@@ -432,12 +432,12 @@ function cr(t) {
|
|
|
432
432
|
}
|
|
433
433
|
return `#${l}${i}${a}`;
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function Ti(t) {
|
|
436
436
|
const { r: e, g: n, b: s, a: o } = t;
|
|
437
437
|
if (o !== 0)
|
|
438
438
|
return `rgba(${e}, ${n}, ${s}, ${o})`;
|
|
439
439
|
}
|
|
440
|
-
function
|
|
440
|
+
function Ri(t) {
|
|
441
441
|
return /^#([0-9a-f]{6}|[0-9a-f]{8})$/i.test(t);
|
|
442
442
|
}
|
|
443
443
|
const ur = [
|
|
@@ -729,9 +729,9 @@ const ee = ({
|
|
|
729
729
|
height: a,
|
|
730
730
|
config: c
|
|
731
731
|
}) => {
|
|
732
|
-
const u = o ?? (c == null ? void 0 : c.allowUndefined) ?? !0, f = l ?? (u ? "未設定" : "#000000"), p = i ?? (c == null ? void 0 : c.width), x = a ?? (c == null ? void 0 : c.height), [v, y] = ot(!1), _ = ft(null), [d, m] = ot(() =>
|
|
732
|
+
const u = o ?? (c == null ? void 0 : c.allowUndefined) ?? !0, f = l ?? (u ? "未設定" : "#000000"), p = i ?? (c == null ? void 0 : c.width), x = a ?? (c == null ? void 0 : c.height), [v, y] = ot(!1), _ = ft(null), [d, m] = ot(() => Le(t) ?? { r: 0, g: 0, b: 0, a: 1 });
|
|
733
733
|
gt(() => {
|
|
734
|
-
const j =
|
|
734
|
+
const j = Le(t);
|
|
735
735
|
j && m(j);
|
|
736
736
|
}, [t]);
|
|
737
737
|
const h = I(() => {
|
|
@@ -775,8 +775,8 @@ const ee = ({
|
|
|
775
775
|
), M = I(
|
|
776
776
|
(j, N) => {
|
|
777
777
|
if (N === void 0) return;
|
|
778
|
-
const
|
|
779
|
-
m(
|
|
778
|
+
const L = { ...d, [j]: N };
|
|
779
|
+
m(L), e(cr(L));
|
|
780
780
|
},
|
|
781
781
|
[d, e]
|
|
782
782
|
), G = t ?? "未設定", R = {};
|
|
@@ -1005,7 +1005,7 @@ const fr = "_container_1n9lj_5", mr = "_valueInput_1n9lj_23", pr = "_unitSelect_
|
|
|
1005
1005
|
return v ? /* @__PURE__ */ r.jsx("textarea", { ...m, rows: y }) : /* @__PURE__ */ r.jsx("input", { ...m, type: "text", onBlur: f });
|
|
1006
1006
|
};
|
|
1007
1007
|
zt.displayName = "TextInput";
|
|
1008
|
-
const
|
|
1008
|
+
const Ai = ["mm", "cm", "fr", "inch", "pt", "px", "%"], Mi = ["mm", "cm", "pt", "inch", "px"], Pi = ["mm", "cm", "inch"], Li = ["mm", "cm", "fr", "inch", "pt", "px"], Nr = ["px", "pt", "mm"], Ir = ["px", "pt", "mm"], St = ["mm", "pt", "px", "%"], Ce = ["mm", "cm", "inch", "pt", "px", "%"], $r = {
|
|
1009
1009
|
// 1. 切り替えスイッチ
|
|
1010
1010
|
isIndividual: {
|
|
1011
1011
|
defaultValue: !1,
|
|
@@ -1076,7 +1076,13 @@ const Ri = ["mm", "cm", "fr", "inch", "pt", "px", "%"], Ai = ["mm", "cm", "pt",
|
|
|
1076
1076
|
}, Ci = {
|
|
1077
1077
|
...zn,
|
|
1078
1078
|
...$r
|
|
1079
|
-
},
|
|
1079
|
+
}, Dr = [
|
|
1080
|
+
{ label: "ゴシック体", value: "sans-serif" },
|
|
1081
|
+
{ label: "明朝体", value: "serif" },
|
|
1082
|
+
{ label: "等幅", value: "monospace" },
|
|
1083
|
+
{ label: "Arial", value: "Arial, sans-serif" },
|
|
1084
|
+
{ label: "Times New Roman", value: "'Times New Roman', serif" }
|
|
1085
|
+
], Oi = {
|
|
1080
1086
|
fontSize: {
|
|
1081
1087
|
defaultValue: { value: 14, unit: "pt" },
|
|
1082
1088
|
label: "フォントサイズ",
|
|
@@ -1096,13 +1102,7 @@ const Ri = ["mm", "cm", "fr", "inch", "pt", "px", "%"], Ai = ["mm", "cm", "pt",
|
|
|
1096
1102
|
Component: It,
|
|
1097
1103
|
config: {
|
|
1098
1104
|
placeholder: "フォントを選択",
|
|
1099
|
-
options:
|
|
1100
|
-
{ label: "ゴシック体", value: "sans-serif" },
|
|
1101
|
-
{ label: "明朝体", value: "serif" },
|
|
1102
|
-
{ label: "等幅", value: "monospace" },
|
|
1103
|
-
{ label: "Arial", value: "Arial, sans-serif" },
|
|
1104
|
-
{ label: "Times New Roman", value: "'Times New Roman', serif" }
|
|
1105
|
-
]
|
|
1105
|
+
options: Dr
|
|
1106
1106
|
}
|
|
1107
1107
|
},
|
|
1108
1108
|
color: {
|
|
@@ -1157,14 +1157,14 @@ const Ri = ["mm", "cm", "fr", "inch", "pt", "px", "%"], Ai = ["mm", "cm", "pt",
|
|
|
1157
1157
|
}
|
|
1158
1158
|
}
|
|
1159
1159
|
};
|
|
1160
|
-
function
|
|
1160
|
+
function Si(t) {
|
|
1161
1161
|
return t.reduce(
|
|
1162
1162
|
(e, n) => (e[n.kind] = n, e),
|
|
1163
1163
|
{}
|
|
1164
1164
|
);
|
|
1165
1165
|
}
|
|
1166
1166
|
var Tt = /* @__PURE__ */ ((t) => (t.Contain = "contain", t.Cover = "cover", t.Fill = "fill", t.None = "none", t.ScaleDown = "scale-down", t))(Tt || {});
|
|
1167
|
-
const
|
|
1167
|
+
const ki = {
|
|
1168
1168
|
objectFit: {
|
|
1169
1169
|
defaultValue: Tt.Contain,
|
|
1170
1170
|
label: "表示方法",
|
|
@@ -1208,7 +1208,7 @@ const Si = {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
};
|
|
1210
1210
|
var Ft = /* @__PURE__ */ ((t) => (t.Normal = "normal", t.BreakWord = "break-word", t.BreakAll = "break-all", t))(Ft || {}), Ut = /* @__PURE__ */ ((t) => (t.Normal = "normal", t.NoWrap = "nowrap", t.Pre = "pre", t.PreWrap = "pre-wrap", t.PreLine = "pre-line", t))(Ut || {});
|
|
1211
|
-
const
|
|
1211
|
+
const Gi = {
|
|
1212
1212
|
multiline: {
|
|
1213
1213
|
defaultValue: !1,
|
|
1214
1214
|
label: "複数行モード",
|
|
@@ -1244,7 +1244,7 @@ const ki = {
|
|
|
1244
1244
|
},
|
|
1245
1245
|
condition: (t) => t.multiline === !0
|
|
1246
1246
|
}
|
|
1247
|
-
},
|
|
1247
|
+
}, Bi = {
|
|
1248
1248
|
placeholder: {
|
|
1249
1249
|
defaultValue: void 0,
|
|
1250
1250
|
label: "プレースホルダー",
|
|
@@ -1255,7 +1255,7 @@ const ki = {
|
|
|
1255
1255
|
placeholder: "例: テキストを入力してください"
|
|
1256
1256
|
}
|
|
1257
1257
|
}
|
|
1258
|
-
},
|
|
1258
|
+
}, Vi = {
|
|
1259
1259
|
width: {
|
|
1260
1260
|
defaultValue: void 0,
|
|
1261
1261
|
// undefinedなら auto として扱う想定
|
|
@@ -1265,7 +1265,7 @@ const ki = {
|
|
|
1265
1265
|
Component: it,
|
|
1266
1266
|
config: {
|
|
1267
1267
|
min: 0,
|
|
1268
|
-
allowedUnits:
|
|
1268
|
+
allowedUnits: Ce,
|
|
1269
1269
|
// px, %, mm など
|
|
1270
1270
|
placeholder: "auto"
|
|
1271
1271
|
// 未設定時は "auto" と表示されると親切
|
|
@@ -1279,24 +1279,24 @@ const ki = {
|
|
|
1279
1279
|
Component: it,
|
|
1280
1280
|
config: {
|
|
1281
1281
|
min: 0,
|
|
1282
|
-
allowedUnits:
|
|
1282
|
+
allowedUnits: Ce,
|
|
1283
1283
|
placeholder: "auto"
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
|
-
},
|
|
1286
|
+
}, Tr = (t) => {
|
|
1287
1287
|
const e = {};
|
|
1288
1288
|
return Object.entries(t.properties).forEach(([n, s]) => {
|
|
1289
1289
|
s !== !1 && typeof s == "object" && s !== null && "defaultValue" in s && (e[n] = s.defaultValue);
|
|
1290
1290
|
}), e;
|
|
1291
1291
|
};
|
|
1292
|
-
function
|
|
1292
|
+
function Rr(t) {
|
|
1293
1293
|
const e = Date.now(), n = Math.random().toString(36).slice(2);
|
|
1294
1294
|
return `${t}_${e}_${n}`;
|
|
1295
1295
|
}
|
|
1296
1296
|
function Mt(t, e, n) {
|
|
1297
|
-
const s =
|
|
1297
|
+
const s = Tr(t);
|
|
1298
1298
|
return {
|
|
1299
|
-
id:
|
|
1299
|
+
id: Rr(t.kind),
|
|
1300
1300
|
kind: t.kind,
|
|
1301
1301
|
layout: {
|
|
1302
1302
|
x: e.x,
|
|
@@ -1313,7 +1313,7 @@ function Mt(t, e, n) {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
};
|
|
1315
1315
|
}
|
|
1316
|
-
const
|
|
1316
|
+
const Fi = {
|
|
1317
1317
|
required: {
|
|
1318
1318
|
defaultValue: !1,
|
|
1319
1319
|
label: "必須項目",
|
|
@@ -1364,7 +1364,7 @@ const Vi = {
|
|
|
1364
1364
|
}
|
|
1365
1365
|
};
|
|
1366
1366
|
var ht = /* @__PURE__ */ ((t) => (t.ADD = "add", t.UPDATE = "update", t.DELETE = "delete", t.MOVE = "move", t.RESIZE = "resize", t.DUPLICATE = "duplicate", t.PASTE = "paste", t))(ht || {});
|
|
1367
|
-
const
|
|
1367
|
+
const Ar = {
|
|
1368
1368
|
cols: Array.from({ length: 12 }).map(() => ({ value: 1, unit: "fr" })),
|
|
1369
1369
|
rows: Array.from({ length: 16 }).map(() => ({ value: 1, unit: "fr" }))
|
|
1370
1370
|
};
|
|
@@ -1382,7 +1382,7 @@ function Rt(t, e) {
|
|
|
1382
1382
|
throw new Error(`${n} must be non-negative (>= 0): got ${t}`);
|
|
1383
1383
|
}
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1385
|
+
function Mr(t, e, n, s) {
|
|
1386
1386
|
if (t < e || t > n) {
|
|
1387
1387
|
const o = s ?? "Value";
|
|
1388
1388
|
throw new Error(`${o} must be between ${e} and ${n}: got ${t}`);
|
|
@@ -1394,21 +1394,21 @@ function je(t, e) {
|
|
|
1394
1394
|
throw new Error(`${n} must be an integer: got ${t}`);
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function Ui(t, e) {
|
|
1398
1398
|
if (!Number.isFinite(t)) {
|
|
1399
1399
|
const n = e ?? "Value";
|
|
1400
1400
|
throw new Error(`${n} must be a finite number: got ${t}`);
|
|
1401
1401
|
}
|
|
1402
1402
|
}
|
|
1403
|
-
const
|
|
1403
|
+
const Pr = 25.4, Lr = 2.54, Cr = 72, U = {
|
|
1404
1404
|
_assertDpi(t) {
|
|
1405
1405
|
at(t, "DPI"), je(t, "DPI");
|
|
1406
1406
|
},
|
|
1407
1407
|
fromMm(t, e = H) {
|
|
1408
|
-
return U._assertDpi(e), Rt(t, "Millimeter value"), t * e /
|
|
1408
|
+
return U._assertDpi(e), Rt(t, "Millimeter value"), t * e / Pr;
|
|
1409
1409
|
},
|
|
1410
1410
|
fromCm(t, e = H) {
|
|
1411
|
-
return U._assertDpi(e), Rt(t, "Centimeter value"), t * e /
|
|
1411
|
+
return U._assertDpi(e), Rt(t, "Centimeter value"), t * e / Lr;
|
|
1412
1412
|
},
|
|
1413
1413
|
fromInch(t, e = H) {
|
|
1414
1414
|
return U._assertDpi(e), Rt(t, "Inch value"), t * e;
|
|
@@ -1576,20 +1576,20 @@ const tn = {
|
|
|
1576
1576
|
width: { value: 210, unit: "mm" },
|
|
1577
1577
|
height: { value: 297, unit: "mm" }
|
|
1578
1578
|
}
|
|
1579
|
-
},
|
|
1579
|
+
}, Or = {
|
|
1580
1580
|
top: { value: 10, unit: "mm" },
|
|
1581
1581
|
right: { value: 10, unit: "mm" },
|
|
1582
1582
|
bottom: { value: 10, unit: "mm" },
|
|
1583
1583
|
left: { value: 10, unit: "mm" }
|
|
1584
|
-
},
|
|
1584
|
+
}, Sr = {
|
|
1585
1585
|
size: tn.A4,
|
|
1586
|
-
margin:
|
|
1587
|
-
},
|
|
1588
|
-
paper:
|
|
1589
|
-
grid:
|
|
1586
|
+
margin: Or
|
|
1587
|
+
}, Wi = {
|
|
1588
|
+
paper: Sr,
|
|
1589
|
+
grid: Ar,
|
|
1590
1590
|
blocks: []
|
|
1591
1591
|
};
|
|
1592
|
-
var
|
|
1592
|
+
var kr = /* @__PURE__ */ ((t) => (t.ERROR = "error", t.WARNING = "warning", t.INFO = "info", t))(kr || {});
|
|
1593
1593
|
const Pt = F(
|
|
1594
1594
|
({
|
|
1595
1595
|
width: t,
|
|
@@ -1616,7 +1616,7 @@ const Pt = F(
|
|
|
1616
1616
|
) : null
|
|
1617
1617
|
);
|
|
1618
1618
|
Pt.displayName = "BorderRenderer";
|
|
1619
|
-
function
|
|
1619
|
+
function Gr(t) {
|
|
1620
1620
|
const e = V.BLOCK_LAYER_MIN + t * V.BLOCK_LAYER_STEP;
|
|
1621
1621
|
return e >= V.BLOCK_LAYER_MAX ? V.BLOCK_LAYER_MAX : e;
|
|
1622
1622
|
}
|
|
@@ -1627,12 +1627,12 @@ function oe(t, e) {
|
|
|
1627
1627
|
);
|
|
1628
1628
|
return t + n;
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function Yi() {
|
|
1631
1631
|
return Math.floor(
|
|
1632
1632
|
(V.BLOCK_LAYER_MAX - V.BLOCK_LAYER_MIN) / V.BLOCK_LAYER_STEP
|
|
1633
1633
|
);
|
|
1634
1634
|
}
|
|
1635
|
-
const
|
|
1635
|
+
const Br = F(
|
|
1636
1636
|
({
|
|
1637
1637
|
blockSizePx: t,
|
|
1638
1638
|
borderStyle: e,
|
|
@@ -1675,7 +1675,7 @@ const Gr = F(
|
|
|
1675
1675
|
}
|
|
1676
1676
|
);
|
|
1677
1677
|
}
|
|
1678
|
-
),
|
|
1678
|
+
), Vr = F(
|
|
1679
1679
|
({
|
|
1680
1680
|
blockSizePx: t,
|
|
1681
1681
|
blockZIndex: e,
|
|
@@ -1703,13 +1703,13 @@ const Gr = F(
|
|
|
1703
1703
|
}
|
|
1704
1704
|
);
|
|
1705
1705
|
}
|
|
1706
|
-
),
|
|
1706
|
+
), Fr = {
|
|
1707
1707
|
color: "#cccccc",
|
|
1708
1708
|
width: { value: 1, unit: "pt" },
|
|
1709
1709
|
type: pt.SOLID
|
|
1710
1710
|
}, Ne = {
|
|
1711
|
-
all:
|
|
1712
|
-
},
|
|
1711
|
+
all: Fr
|
|
1712
|
+
}, Ur = F(
|
|
1713
1713
|
({
|
|
1714
1714
|
blockSizePx: t,
|
|
1715
1715
|
blockZIndex: e,
|
|
@@ -1752,7 +1752,7 @@ const Gr = F(
|
|
|
1752
1752
|
}
|
|
1753
1753
|
);
|
|
1754
1754
|
}
|
|
1755
|
-
),
|
|
1755
|
+
), Wr = ({
|
|
1756
1756
|
id: t,
|
|
1757
1757
|
plugin: e,
|
|
1758
1758
|
props: n,
|
|
@@ -1812,8 +1812,8 @@ const Gr = F(
|
|
|
1812
1812
|
children: /* @__PURE__ */ r.jsx(h, { ref: y, ...m })
|
|
1813
1813
|
}
|
|
1814
1814
|
);
|
|
1815
|
-
},
|
|
1816
|
-
|
|
1815
|
+
}, Yr = te(Wr), se = F(
|
|
1816
|
+
Yr
|
|
1817
1817
|
);
|
|
1818
1818
|
function en(t, e) {
|
|
1819
1819
|
return {
|
|
@@ -1866,7 +1866,7 @@ const nn = F(
|
|
|
1866
1866
|
className: v,
|
|
1867
1867
|
children: [
|
|
1868
1868
|
/* @__PURE__ */ r.jsx(
|
|
1869
|
-
|
|
1869
|
+
Vr,
|
|
1870
1870
|
{
|
|
1871
1871
|
blockSizePx: m,
|
|
1872
1872
|
blockZIndex: s,
|
|
@@ -1875,7 +1875,7 @@ const nn = F(
|
|
|
1875
1875
|
}
|
|
1876
1876
|
),
|
|
1877
1877
|
c && !((g = t.style) != null && g.border) && /* @__PURE__ */ r.jsx(
|
|
1878
|
-
|
|
1878
|
+
Ur,
|
|
1879
1879
|
{
|
|
1880
1880
|
blockSizePx: m,
|
|
1881
1881
|
blockZIndex: s,
|
|
@@ -1902,7 +1902,7 @@ const nn = F(
|
|
|
1902
1902
|
}
|
|
1903
1903
|
),
|
|
1904
1904
|
/* @__PURE__ */ r.jsx(
|
|
1905
|
-
|
|
1905
|
+
Br,
|
|
1906
1906
|
{
|
|
1907
1907
|
blockSizePx: m,
|
|
1908
1908
|
blockZIndex: s,
|
|
@@ -1950,7 +1950,7 @@ const ie = F(
|
|
|
1950
1950
|
const h = e[d.kind];
|
|
1951
1951
|
if (!h) return null;
|
|
1952
1952
|
const g = l(d), w = o.includes(d.id);
|
|
1953
|
-
let $ =
|
|
1953
|
+
let $ = Gr(m);
|
|
1954
1954
|
w && ($ = V.SELECT_BLOCK);
|
|
1955
1955
|
const S = s[d.id] ?? d.initValue;
|
|
1956
1956
|
return /* @__PURE__ */ r.jsx(
|
|
@@ -1980,7 +1980,7 @@ const ie = F(
|
|
|
1980
1980
|
}
|
|
1981
1981
|
);
|
|
1982
1982
|
ie.displayName = "BlockLayer";
|
|
1983
|
-
const
|
|
1983
|
+
const zr = F(
|
|
1984
1984
|
({
|
|
1985
1985
|
contentPx: t,
|
|
1986
1986
|
marginLeftPx: e,
|
|
@@ -2024,7 +2024,7 @@ const Yr = F(
|
|
|
2024
2024
|
}
|
|
2025
2025
|
);
|
|
2026
2026
|
}
|
|
2027
|
-
),
|
|
2027
|
+
), Hr = F(
|
|
2028
2028
|
({
|
|
2029
2029
|
canvasPx: t,
|
|
2030
2030
|
backgroundColor: e = "#ffffff",
|
|
@@ -2053,15 +2053,15 @@ const Yr = F(
|
|
|
2053
2053
|
}
|
|
2054
2054
|
);
|
|
2055
2055
|
}
|
|
2056
|
-
),
|
|
2057
|
-
label:
|
|
2058
|
-
},
|
|
2059
|
-
editor:
|
|
2060
|
-
input:
|
|
2061
|
-
select:
|
|
2062
|
-
button:
|
|
2056
|
+
), Kr = "_label_vgaic_1", Xr = {
|
|
2057
|
+
label: Kr
|
|
2058
|
+
}, qr = "_editor_6szgo_5", Jr = "_input_6szgo_18", Zr = "_select_6szgo_38", Qr = "_button_6szgo_54", Jt = {
|
|
2059
|
+
editor: qr,
|
|
2060
|
+
input: Jr,
|
|
2061
|
+
select: Zr,
|
|
2062
|
+
button: Qr
|
|
2063
2063
|
};
|
|
2064
|
-
function
|
|
2064
|
+
function to(t, e) {
|
|
2065
2065
|
const n = t.match(/^(\d+(?:\.\d+)?)([a-zA-Z%]+)$/);
|
|
2066
2066
|
if (!n)
|
|
2067
2067
|
throw new Error(`Invalid dimension string: ${t}`);
|
|
@@ -2070,22 +2070,22 @@ function Qr(t, e) {
|
|
|
2070
2070
|
throw new Error(`Unit not allowed: ${o}`);
|
|
2071
2071
|
return { value: s, unit: o };
|
|
2072
2072
|
}
|
|
2073
|
-
function
|
|
2074
|
-
return t.map((n) =>
|
|
2073
|
+
function zi(t, e) {
|
|
2074
|
+
return t.map((n) => to(n, e));
|
|
2075
2075
|
}
|
|
2076
|
-
const
|
|
2076
|
+
const eo = 10, no = 25.4, ro = 0.352778, oo = 0.264583, K = {
|
|
2077
2077
|
fromCm(t) {
|
|
2078
|
-
return at(t, "Centimeter value"), t *
|
|
2078
|
+
return at(t, "Centimeter value"), t * eo;
|
|
2079
2079
|
},
|
|
2080
2080
|
fromInch(t) {
|
|
2081
|
-
return at(t, "Inch value"), t *
|
|
2081
|
+
return at(t, "Inch value"), t * no;
|
|
2082
2082
|
},
|
|
2083
2083
|
fromPt(t) {
|
|
2084
|
-
return at(t, "Point value"), t *
|
|
2084
|
+
return at(t, "Point value"), t * ro;
|
|
2085
2085
|
},
|
|
2086
2086
|
// データ上のpxはDPI=96として扱う
|
|
2087
2087
|
fromPx(t) {
|
|
2088
|
-
return at(t, "Pixel value"), t *
|
|
2088
|
+
return at(t, "Pixel value"), t * oo;
|
|
2089
2089
|
},
|
|
2090
2090
|
fromDim(t) {
|
|
2091
2091
|
switch (at(t.value, "Dimension value"), t.unit) {
|
|
@@ -2111,14 +2111,14 @@ const to = 10, eo = 25.4, no = 0.352778, ro = 0.264583, K = {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
2113
2113
|
};
|
|
2114
|
-
function
|
|
2114
|
+
function so(t) {
|
|
2115
2115
|
return at(t.value, "Dimension"), `${t.value}${t.unit}`;
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2118
|
-
return t.map(
|
|
2117
|
+
function Hi(t) {
|
|
2118
|
+
return t.map(so);
|
|
2119
2119
|
}
|
|
2120
|
-
const
|
|
2121
|
-
function
|
|
2120
|
+
const io = ["fr", "px", "mm", "cm", "pt", "inch"];
|
|
2121
|
+
function lo(t, e) {
|
|
2122
2122
|
if (e === "fr")
|
|
2123
2123
|
return 1;
|
|
2124
2124
|
switch (e) {
|
|
@@ -2185,7 +2185,7 @@ const rn = F(
|
|
|
2185
2185
|
}, m = (h) => {
|
|
2186
2186
|
const g = h.target.value;
|
|
2187
2187
|
p(g);
|
|
2188
|
-
const w =
|
|
2188
|
+
const w = lo(n, g);
|
|
2189
2189
|
u(w.toString());
|
|
2190
2190
|
};
|
|
2191
2191
|
return /* @__PURE__ */ r.jsxs(
|
|
@@ -2215,7 +2215,7 @@ const rn = F(
|
|
|
2215
2215
|
className: Jt.select,
|
|
2216
2216
|
value: f,
|
|
2217
2217
|
onChange: m,
|
|
2218
|
-
children:
|
|
2218
|
+
children: io.map((h) => /* @__PURE__ */ r.jsx("option", { value: h, children: h }, h))
|
|
2219
2219
|
}
|
|
2220
2220
|
),
|
|
2221
2221
|
/* @__PURE__ */ r.jsx(
|
|
@@ -2234,7 +2234,7 @@ const rn = F(
|
|
|
2234
2234
|
}
|
|
2235
2235
|
);
|
|
2236
2236
|
rn.displayName = "GridUnitEditor";
|
|
2237
|
-
function
|
|
2237
|
+
function ao(t, e, n, s) {
|
|
2238
2238
|
if (e === "fr") {
|
|
2239
2239
|
if (n !== void 0 && s !== void 0 && s > 0) {
|
|
2240
2240
|
const o = t / s;
|
|
@@ -2303,7 +2303,7 @@ const xe = F(
|
|
|
2303
2303
|
}, _ = () => {
|
|
2304
2304
|
p(!1);
|
|
2305
2305
|
}, m = c ? (() => {
|
|
2306
|
-
const h =
|
|
2306
|
+
const h = ao(
|
|
2307
2307
|
c,
|
|
2308
2308
|
n.unit,
|
|
2309
2309
|
n.value,
|
|
@@ -2316,7 +2316,7 @@ const xe = F(
|
|
|
2316
2316
|
"button",
|
|
2317
2317
|
{
|
|
2318
2318
|
type: "button",
|
|
2319
|
-
className:
|
|
2319
|
+
className: Xr.label,
|
|
2320
2320
|
style: x,
|
|
2321
2321
|
onDoubleClick: v,
|
|
2322
2322
|
"data-testid": `grid-dimension-${t}-${e}`,
|
|
@@ -2342,7 +2342,7 @@ const xe = F(
|
|
|
2342
2342
|
}
|
|
2343
2343
|
);
|
|
2344
2344
|
xe.displayName = "GridDimensionLabel";
|
|
2345
|
-
function
|
|
2345
|
+
function co(t, e, n, s) {
|
|
2346
2346
|
let o = "";
|
|
2347
2347
|
for (const l of t)
|
|
2348
2348
|
o += `M ${l} 0 L ${l} ${s} `;
|
|
@@ -2350,7 +2350,7 @@ function ao(t, e, n, s) {
|
|
|
2350
2350
|
o += `M 0 ${l} L ${n} ${l} `;
|
|
2351
2351
|
return o;
|
|
2352
2352
|
}
|
|
2353
|
-
const
|
|
2353
|
+
const uo = F(
|
|
2354
2354
|
({
|
|
2355
2355
|
gridPosPx: t,
|
|
2356
2356
|
contentPx: e,
|
|
@@ -2362,7 +2362,7 @@ const co = F(
|
|
|
2362
2362
|
dpi: a = H,
|
|
2363
2363
|
className: c = ""
|
|
2364
2364
|
}) => {
|
|
2365
|
-
const u = A(() =>
|
|
2365
|
+
const u = A(() => co(
|
|
2366
2366
|
t.cols.slice(1, -1),
|
|
2367
2367
|
t.rows.slice(1, -1),
|
|
2368
2368
|
e.width,
|
|
@@ -2399,9 +2399,9 @@ const co = F(
|
|
|
2399
2399
|
}
|
|
2400
2400
|
);
|
|
2401
2401
|
}
|
|
2402
|
-
),
|
|
2403
|
-
handle:
|
|
2404
|
-
dragging:
|
|
2402
|
+
), ho = "_handle_1mgtx_1", fo = "_dragging_1mgtx_19", fe = {
|
|
2403
|
+
handle: ho,
|
|
2404
|
+
dragging: fo
|
|
2405
2405
|
}, ve = F(
|
|
2406
2406
|
({
|
|
2407
2407
|
direction: t,
|
|
@@ -2457,7 +2457,7 @@ const co = F(
|
|
|
2457
2457
|
}
|
|
2458
2458
|
);
|
|
2459
2459
|
ve.displayName = "GridResizeHandle";
|
|
2460
|
-
const
|
|
2460
|
+
const mo = F(
|
|
2461
2461
|
({
|
|
2462
2462
|
paperPx: t,
|
|
2463
2463
|
visible: e = !0,
|
|
@@ -2567,17 +2567,17 @@ const fo = F(
|
|
|
2567
2567
|
null
|
|
2568
2568
|
), D = ft(null);
|
|
2569
2569
|
gt(() => {
|
|
2570
|
-
const j = (
|
|
2570
|
+
const j = (L) => {
|
|
2571
2571
|
if (!D.current) return;
|
|
2572
|
-
const
|
|
2572
|
+
const C = D.current.getBoundingClientRect();
|
|
2573
2573
|
S({
|
|
2574
|
-
x:
|
|
2575
|
-
y:
|
|
2574
|
+
x: L.clientX - C.left,
|
|
2575
|
+
y: L.clientY - C.top
|
|
2576
2576
|
});
|
|
2577
|
-
}, N = (
|
|
2577
|
+
}, N = (L) => {
|
|
2578
2578
|
if (!D.current) return;
|
|
2579
|
-
const
|
|
2580
|
-
(
|
|
2579
|
+
const C = D.current.getBoundingClientRect();
|
|
2580
|
+
(L.clientX < C.left || L.clientX > C.right || L.clientY < C.top || L.clientY > C.bottom) && S(null);
|
|
2581
2581
|
};
|
|
2582
2582
|
return window.addEventListener("mousemove", j), window.addEventListener("mouseleave", N), () => {
|
|
2583
2583
|
window.removeEventListener("mousemove", j), window.removeEventListener("mouseleave", N);
|
|
@@ -2585,8 +2585,8 @@ const fo = F(
|
|
|
2585
2585
|
}, []);
|
|
2586
2586
|
const E = A(() => {
|
|
2587
2587
|
if (!$) return !1;
|
|
2588
|
-
const j = t.content.width, N = t.content.height,
|
|
2589
|
-
return !($.x >=
|
|
2588
|
+
const j = t.content.width, N = t.content.height, L = t.margin.left, C = t.margin.top;
|
|
2589
|
+
return !($.x >= L && $.x <= L + j && $.y >= C && $.y <= C + N);
|
|
2590
2590
|
}, [$, t]), P = I(
|
|
2591
2591
|
(j, N) => {
|
|
2592
2592
|
w({ direction: j, index: N });
|
|
@@ -2594,7 +2594,7 @@ const fo = F(
|
|
|
2594
2594
|
[]
|
|
2595
2595
|
), M = A(() => {
|
|
2596
2596
|
if (!m || !g) return null;
|
|
2597
|
-
const j = g.direction === "column" ? e.cols : e.rows, N = g.index,
|
|
2597
|
+
const j = g.direction === "column" ? e.cols : e.rows, N = g.index, L = j[N - 1], C = m.position, W = L !== void 0 ? C - L : 0, X = m.position, q = j[N + 1], b = q !== void 0 ? q - X : 0;
|
|
2598
2598
|
return {
|
|
2599
2599
|
direction: g.direction,
|
|
2600
2600
|
prevIndex: N - 1,
|
|
@@ -2603,11 +2603,11 @@ const fo = F(
|
|
|
2603
2603
|
nextSize: b
|
|
2604
2604
|
};
|
|
2605
2605
|
}, [m, g, e]), G = I(
|
|
2606
|
-
(j, N,
|
|
2607
|
-
const
|
|
2606
|
+
(j, N, L) => {
|
|
2607
|
+
const C = j === "column" ? e.cols : e.rows, W = C[N];
|
|
2608
2608
|
if (W === void 0) return;
|
|
2609
|
-
const X =
|
|
2610
|
-
let T =
|
|
2609
|
+
const X = C[N - 1], q = C[N + 1], b = 10;
|
|
2610
|
+
let T = L;
|
|
2611
2611
|
if (X !== void 0) {
|
|
2612
2612
|
const O = X + b - W;
|
|
2613
2613
|
T = Math.max(T, O);
|
|
@@ -2623,14 +2623,14 @@ const fo = F(
|
|
|
2623
2623
|
},
|
|
2624
2624
|
[e]
|
|
2625
2625
|
), R = I(
|
|
2626
|
-
(j, N,
|
|
2627
|
-
const
|
|
2626
|
+
(j, N, L) => {
|
|
2627
|
+
const C = j === "column" ? e.cols : e.rows, W = C[N];
|
|
2628
2628
|
if (W === void 0) {
|
|
2629
2629
|
h(null);
|
|
2630
2630
|
return;
|
|
2631
2631
|
}
|
|
2632
|
-
const X =
|
|
2633
|
-
let T =
|
|
2632
|
+
const X = C[N - 1], q = C[N + 1], b = 10;
|
|
2633
|
+
let T = L;
|
|
2634
2634
|
if (X !== void 0) {
|
|
2635
2635
|
const O = X + b - W;
|
|
2636
2636
|
T = Math.max(T, O);
|
|
@@ -2649,7 +2649,7 @@ const fo = F(
|
|
|
2649
2649
|
};
|
|
2650
2650
|
return /* @__PURE__ */ r.jsxs("div", { ref: D, className: _, style: k, children: [
|
|
2651
2651
|
/* @__PURE__ */ r.jsx(
|
|
2652
|
-
|
|
2652
|
+
Hr,
|
|
2653
2653
|
{
|
|
2654
2654
|
canvasPx: t.canvas,
|
|
2655
2655
|
backgroundColor: l,
|
|
@@ -2659,7 +2659,7 @@ const fo = F(
|
|
|
2659
2659
|
}
|
|
2660
2660
|
),
|
|
2661
2661
|
u && /* @__PURE__ */ r.jsx(
|
|
2662
|
-
|
|
2662
|
+
mo,
|
|
2663
2663
|
{
|
|
2664
2664
|
paperPx: t,
|
|
2665
2665
|
visible: u,
|
|
@@ -2669,7 +2669,7 @@ const fo = F(
|
|
|
2669
2669
|
}
|
|
2670
2670
|
),
|
|
2671
2671
|
c && /* @__PURE__ */ r.jsx(
|
|
2672
|
-
|
|
2672
|
+
uo,
|
|
2673
2673
|
{
|
|
2674
2674
|
gridPosPx: e,
|
|
2675
2675
|
contentPx: t.content,
|
|
@@ -2683,7 +2683,7 @@ const fo = F(
|
|
|
2683
2683
|
}
|
|
2684
2684
|
),
|
|
2685
2685
|
f && /* @__PURE__ */ r.jsx(
|
|
2686
|
-
|
|
2686
|
+
zr,
|
|
2687
2687
|
{
|
|
2688
2688
|
contentPx: t.content,
|
|
2689
2689
|
marginLeftPx: t.margin.left,
|
|
@@ -2699,7 +2699,7 @@ const fo = F(
|
|
|
2699
2699
|
e.cols.map((j, N) => {
|
|
2700
2700
|
if (N === 0 || N === e.cols.length - 1)
|
|
2701
2701
|
return null;
|
|
2702
|
-
const
|
|
2702
|
+
const L = `col-${N}`;
|
|
2703
2703
|
return /* @__PURE__ */ r.jsx(
|
|
2704
2704
|
ve,
|
|
2705
2705
|
{
|
|
@@ -2712,13 +2712,13 @@ const fo = F(
|
|
|
2712
2712
|
onResize: G,
|
|
2713
2713
|
onResizeEnd: R
|
|
2714
2714
|
},
|
|
2715
|
-
|
|
2715
|
+
L
|
|
2716
2716
|
);
|
|
2717
2717
|
}),
|
|
2718
2718
|
e.rows.map((j, N) => {
|
|
2719
2719
|
if (N === 0 || N === e.rows.length - 1)
|
|
2720
2720
|
return null;
|
|
2721
|
-
const
|
|
2721
|
+
const L = `row-${N}`;
|
|
2722
2722
|
return /* @__PURE__ */ r.jsx(
|
|
2723
2723
|
ve,
|
|
2724
2724
|
{
|
|
@@ -2731,18 +2731,18 @@ const fo = F(
|
|
|
2731
2731
|
onResize: G,
|
|
2732
2732
|
onResizeEnd: R
|
|
2733
2733
|
},
|
|
2734
|
-
|
|
2734
|
+
L
|
|
2735
2735
|
);
|
|
2736
2736
|
})
|
|
2737
2737
|
] }),
|
|
2738
2738
|
x && n && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
2739
2739
|
n.cols.map((j, N) => {
|
|
2740
|
-
const
|
|
2741
|
-
if (
|
|
2740
|
+
const L = e.cols[N], C = e.cols[N + 1];
|
|
2741
|
+
if (L === void 0 || C === void 0) return null;
|
|
2742
2742
|
const W = (g == null ? void 0 : g.direction) === "column" && (g.index === N || g.index === N + 1);
|
|
2743
2743
|
let X;
|
|
2744
2744
|
M && M.direction === "column" && (M.prevIndex === N ? X = M.prevSize : M.nextIndex === N && (X = M.nextSize));
|
|
2745
|
-
const q = (
|
|
2745
|
+
const q = (L + C) / 2, b = C - L, T = `col-dim-${N}`;
|
|
2746
2746
|
return /* @__PURE__ */ r.jsx(
|
|
2747
2747
|
xe,
|
|
2748
2748
|
{
|
|
@@ -2762,9 +2762,9 @@ const fo = F(
|
|
|
2762
2762
|
}),
|
|
2763
2763
|
" ",
|
|
2764
2764
|
n.rows.map((j, N) => {
|
|
2765
|
-
const
|
|
2766
|
-
if (
|
|
2767
|
-
const W = (g == null ? void 0 : g.direction) === "row" && (g.index === N || g.index === N + 1), X = (
|
|
2765
|
+
const L = e.rows[N], C = e.rows[N + 1];
|
|
2766
|
+
if (L === void 0 || C === void 0) return null;
|
|
2767
|
+
const W = (g == null ? void 0 : g.direction) === "row" && (g.index === N || g.index === N + 1), X = (L + C) / 2, q = C - L, b = `row-dim-${N}`;
|
|
2768
2768
|
return /* @__PURE__ */ r.jsx(
|
|
2769
2769
|
xe,
|
|
2770
2770
|
{
|
|
@@ -2801,7 +2801,7 @@ const fo = F(
|
|
|
2801
2801
|
] });
|
|
2802
2802
|
}
|
|
2803
2803
|
);
|
|
2804
|
-
class
|
|
2804
|
+
class po {
|
|
2805
2805
|
constructor() {
|
|
2806
2806
|
ae(this, "state", null);
|
|
2807
2807
|
ae(this, "listeners", []);
|
|
@@ -2852,12 +2852,12 @@ class mo {
|
|
|
2852
2852
|
e(this.state);
|
|
2853
2853
|
}
|
|
2854
2854
|
}
|
|
2855
|
-
const be = new
|
|
2855
|
+
const be = new po();
|
|
2856
2856
|
function Oe(t, e, n, s) {
|
|
2857
2857
|
if (e < 0 || e >= t.length)
|
|
2858
2858
|
return t;
|
|
2859
2859
|
const o = [...t], l = o[e], i = o[e + 1];
|
|
2860
|
-
return !l || !i ? t : l.unit === "fr" && i.unit === "fr" ?
|
|
2860
|
+
return !l || !i ? t : l.unit === "fr" && i.unit === "fr" ? xo(o, e, n, s) : l.unit !== "fr" && i.unit !== "fr" ? vo(o, e, n) : l.unit === "fr" && i.unit !== "fr" ? Se(
|
|
2861
2861
|
o,
|
|
2862
2862
|
e,
|
|
2863
2863
|
n,
|
|
@@ -2871,7 +2871,7 @@ function Oe(t, e, n, s) {
|
|
|
2871
2871
|
s
|
|
2872
2872
|
);
|
|
2873
2873
|
}
|
|
2874
|
-
function
|
|
2874
|
+
function xo(t, e, n, s) {
|
|
2875
2875
|
const o = t[e], l = t[e + 1];
|
|
2876
2876
|
if (!o || !l) return t;
|
|
2877
2877
|
const i = t.reduce(
|
|
@@ -2886,7 +2886,7 @@ function po(t, e, n, s) {
|
|
|
2886
2886
|
value: Math.round(v * 100) / 100
|
|
2887
2887
|
}, t;
|
|
2888
2888
|
}
|
|
2889
|
-
function
|
|
2889
|
+
function vo(t, e, n) {
|
|
2890
2890
|
const s = t[e], o = t[e + 1];
|
|
2891
2891
|
if (!s || !o) return t;
|
|
2892
2892
|
const l = U.fromDim(s), i = U.fromDim(o), a = Math.max(10, l + n), c = Math.max(10, i - n);
|
|
@@ -2958,7 +2958,7 @@ function Qt(t, e) {
|
|
|
2958
2958
|
}
|
|
2959
2959
|
}
|
|
2960
2960
|
}
|
|
2961
|
-
function
|
|
2961
|
+
function bo(t) {
|
|
2962
2962
|
if (t.length === 0)
|
|
2963
2963
|
return [];
|
|
2964
2964
|
const e = [];
|
|
@@ -2970,9 +2970,9 @@ function vo(t) {
|
|
|
2970
2970
|
}
|
|
2971
2971
|
return e;
|
|
2972
2972
|
}
|
|
2973
|
-
const
|
|
2973
|
+
const go = 8, wo = 32, _o = 64, yo = 512, ke = (t, e, n) => Math.min(Math.max(t, e), n);
|
|
2974
2974
|
function Ge(t) {
|
|
2975
|
-
const e = t.length - 1, n = e >= 1 ? t[e] ?? 0 : 0, s = t.length >= 1 ? n / e : 0, o = ke(Math.ceil(Math.log2(e + 1)),
|
|
2975
|
+
const e = t.length - 1, n = e >= 1 ? t[e] ?? 0 : 0, s = t.length >= 1 ? n / e : 0, o = ke(Math.ceil(Math.log2(e + 1)), go, wo), l = ke(s * 2, _o, yo);
|
|
2976
2976
|
return { step: o, windowPx: l };
|
|
2977
2977
|
}
|
|
2978
2978
|
function me(t, e) {
|
|
@@ -3035,7 +3035,7 @@ function ge(t, e) {
|
|
|
3035
3035
|
}
|
|
3036
3036
|
});
|
|
3037
3037
|
if (n === 0)
|
|
3038
|
-
return
|
|
3038
|
+
return Mr(s, 0, e, "Total fixed size"), o;
|
|
3039
3039
|
const l = e - s;
|
|
3040
3040
|
at(l, "Content size - fixed sizes");
|
|
3041
3041
|
const i = l / n;
|
|
@@ -3049,9 +3049,9 @@ function ge(t, e) {
|
|
|
3049
3049
|
function we(t, e = 96) {
|
|
3050
3050
|
at(e, "DPI"), je(e, "DPI");
|
|
3051
3051
|
const n = t.map((o) => U.fromMm(o, e));
|
|
3052
|
-
return
|
|
3052
|
+
return bo(n);
|
|
3053
3053
|
}
|
|
3054
|
-
function
|
|
3054
|
+
function Ki(t, e, n) {
|
|
3055
3055
|
if (t.length === 0) return [];
|
|
3056
3056
|
at(n, "DPI"), je(n, "DPI"), at(e, "Content size");
|
|
3057
3057
|
const s = ge(t, e);
|
|
@@ -3068,7 +3068,7 @@ function _e(t) {
|
|
|
3068
3068
|
e[n] = s;
|
|
3069
3069
|
return e;
|
|
3070
3070
|
}
|
|
3071
|
-
function
|
|
3071
|
+
function Xi(t, e) {
|
|
3072
3072
|
const s = {
|
|
3073
3073
|
A4: { width: 210, height: 297 },
|
|
3074
3074
|
A3: { width: 297, height: 420 },
|
|
@@ -3079,46 +3079,46 @@ function Ki(t, e) {
|
|
|
3079
3079
|
}[t];
|
|
3080
3080
|
return e === "landscape" ? { width: s.height, height: s.width } : s;
|
|
3081
3081
|
}
|
|
3082
|
-
function
|
|
3082
|
+
function Eo(t) {
|
|
3083
3083
|
t != null && t.title && (document.title = t.title), t != null && t.removeScrollbars && (document.body.style.overflow = "hidden");
|
|
3084
3084
|
}
|
|
3085
|
-
function
|
|
3085
|
+
function jo(t) {
|
|
3086
3086
|
t != null && t.restoreScrollbars && (document.body.style.overflow = "");
|
|
3087
3087
|
}
|
|
3088
3088
|
function Ve(t) {
|
|
3089
|
-
|
|
3089
|
+
Eo({ title: t == null ? void 0 : t.title, removeScrollbars: !0 });
|
|
3090
3090
|
const e = () => {
|
|
3091
3091
|
var s;
|
|
3092
3092
|
(s = t == null ? void 0 : t.onBeforePrint) == null || s.call(t);
|
|
3093
3093
|
}, n = () => {
|
|
3094
3094
|
var s;
|
|
3095
|
-
(s = t == null ? void 0 : t.onAfterPrint) == null || s.call(t),
|
|
3095
|
+
(s = t == null ? void 0 : t.onAfterPrint) == null || s.call(t), jo({ restoreScrollbars: !0 }), window.removeEventListener("beforeprint", e), window.removeEventListener("afterprint", n);
|
|
3096
3096
|
};
|
|
3097
3097
|
window.addEventListener("beforeprint", e), window.addEventListener("afterprint", n), window.print();
|
|
3098
3098
|
}
|
|
3099
|
-
function
|
|
3099
|
+
function No(t) {
|
|
3100
3100
|
if (typeof t != "object" || t === null) return !1;
|
|
3101
3101
|
const e = t;
|
|
3102
3102
|
if (typeof e.id != "string" || typeof e.kind != "string" || typeof e.layout != "object" || e.layout === null) return !1;
|
|
3103
3103
|
const n = e.layout;
|
|
3104
3104
|
return !(typeof n.x != "number" || typeof n.y != "number" || typeof n.w != "number" || typeof n.h != "number" || e.props !== void 0 && typeof e.props != "object");
|
|
3105
3105
|
}
|
|
3106
|
-
function
|
|
3106
|
+
function Io(t) {
|
|
3107
3107
|
return t === "fr" || t === "px" || t === "%";
|
|
3108
3108
|
}
|
|
3109
3109
|
function Fe(t) {
|
|
3110
3110
|
return Array.isArray(t) ? t.every((e) => {
|
|
3111
3111
|
if (typeof e != "object" || e === null) return !1;
|
|
3112
3112
|
const n = e;
|
|
3113
|
-
return typeof n.value == "number" &&
|
|
3113
|
+
return typeof n.value == "number" && Io(n.unit);
|
|
3114
3114
|
}) : !1;
|
|
3115
3115
|
}
|
|
3116
|
-
function
|
|
3116
|
+
function $o(t) {
|
|
3117
3117
|
if (typeof t != "object" || t === null) return !1;
|
|
3118
3118
|
const e = t;
|
|
3119
3119
|
return Fe(e.cols) && Fe(e.rows);
|
|
3120
3120
|
}
|
|
3121
|
-
function
|
|
3121
|
+
function Do(t) {
|
|
3122
3122
|
if (typeof t != "object" || t === null) return !1;
|
|
3123
3123
|
const e = t;
|
|
3124
3124
|
if (typeof e.size != "object" || e.size === null) return !1;
|
|
@@ -3138,27 +3138,27 @@ function $o(t) {
|
|
|
3138
3138
|
}
|
|
3139
3139
|
return !0;
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function To(t) {
|
|
3142
3142
|
return t == null || typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object" && !Array.isArray(t);
|
|
3143
3143
|
}
|
|
3144
|
-
function
|
|
3144
|
+
function Ro(t) {
|
|
3145
3145
|
if (typeof t != "object" || t === null)
|
|
3146
3146
|
throw new Error("Schema must be an object");
|
|
3147
3147
|
const e = t;
|
|
3148
|
-
if (
|
|
3148
|
+
if (!Do(e.paper))
|
|
3149
3149
|
throw new Error("Invalid paper definition");
|
|
3150
|
-
if (
|
|
3150
|
+
if (!$o(e.grid))
|
|
3151
3151
|
throw new Error("Invalid grid definition");
|
|
3152
3152
|
if (!Array.isArray(e.blocks))
|
|
3153
3153
|
throw new Error("blocks must be an array");
|
|
3154
|
-
if (!e.blocks.every(
|
|
3154
|
+
if (!e.blocks.every(No))
|
|
3155
3155
|
throw new Error("Invalid block definition in blocks array");
|
|
3156
3156
|
if (e.metaData !== void 0) {
|
|
3157
3157
|
if (typeof e.metaData != "object" || e.metaData === null)
|
|
3158
3158
|
throw new Error("metaData must be an object if provided");
|
|
3159
3159
|
const n = e.metaData;
|
|
3160
3160
|
for (const s in n)
|
|
3161
|
-
if (!
|
|
3161
|
+
if (!To(n[s]))
|
|
3162
3162
|
throw new Error(`Invalid value in metaData.${s}`);
|
|
3163
3163
|
}
|
|
3164
3164
|
return e;
|
|
@@ -3166,7 +3166,7 @@ function To(t) {
|
|
|
3166
3166
|
function Ue(t) {
|
|
3167
3167
|
try {
|
|
3168
3168
|
const e = JSON.parse(t);
|
|
3169
|
-
return
|
|
3169
|
+
return Ro(e);
|
|
3170
3170
|
} catch (e) {
|
|
3171
3171
|
throw e instanceof SyntaxError ? new Error(`Invalid JSON format: ${e.message}`) : e;
|
|
3172
3172
|
}
|
|
@@ -3183,7 +3183,7 @@ function We(t, e = !1) {
|
|
|
3183
3183
|
function on(t) {
|
|
3184
3184
|
return t == null || typeof t == "string" || typeof t == "number" || typeof t == "boolean" ? !0 : typeof t == "object" && !Array.isArray(t) ? Object.values(t).every(on) : !1;
|
|
3185
3185
|
}
|
|
3186
|
-
function
|
|
3186
|
+
function Ao(t) {
|
|
3187
3187
|
if (typeof t != "object" || t === null)
|
|
3188
3188
|
throw new Error("Values must be an object");
|
|
3189
3189
|
if (Array.isArray(t))
|
|
@@ -3197,7 +3197,7 @@ function Ro(t) {
|
|
|
3197
3197
|
function Ye(t) {
|
|
3198
3198
|
try {
|
|
3199
3199
|
const e = JSON.parse(t);
|
|
3200
|
-
return
|
|
3200
|
+
return Ao(e);
|
|
3201
3201
|
} catch (e) {
|
|
3202
3202
|
throw e instanceof SyntaxError ? new Error(`Invalid JSON format: ${e.message}`) : e;
|
|
3203
3203
|
}
|
|
@@ -3236,10 +3236,10 @@ const le = {
|
|
|
3236
3236
|
rubber_band: V.RUBBER_BAND
|
|
3237
3237
|
};
|
|
3238
3238
|
var z = /* @__PURE__ */ ((t) => (t.IDLE = "idle", t.PRESSING = "pressing", t.DRAGGING = "dragging", t.EDITING = "editing", t))(z || {}), Z = /* @__PURE__ */ ((t) => (t.N = "n", t.NE = "ne", t.E = "e", t.SE = "se", t.S = "s", t.SW = "sw", t.W = "w", t.NW = "nw", t))(Z || {}), lt = /* @__PURE__ */ ((t) => (t.MOVE = "move", t.RESIZE = "resize", t.INSERT = "insert", t))(lt || {}), B = /* @__PURE__ */ ((t) => (t.SELECT = "select", t.DESELECT = "deselect", t.START_PRESS = "startPress", t.UPDATE_DRAG = "updateDrag", t.END_DRAG = "endDrag", t.CANCEL_DRAG = "cancelDrag", t.EDIT = "edit", t.END_EDIT = "endEdit", t.START_INSERT = "startInsert", t.CANCEL_INSERT = "cancelInsert", t.START_RESIZE = "startResize", t))(B || {});
|
|
3239
|
-
const
|
|
3240
|
-
interactionBlock:
|
|
3241
|
-
resizeHandle:
|
|
3242
|
-
},
|
|
3239
|
+
const Mo = "_interactionBlock_145kg_7", Po = "_resizeHandle_145kg_7", sn = {
|
|
3240
|
+
interactionBlock: Mo,
|
|
3241
|
+
resizeHandle: Po
|
|
3242
|
+
}, Lo = [
|
|
3243
3243
|
{ id: Z.NW, cursor: "nwse-resize", x: 0, y: 0 },
|
|
3244
3244
|
{ id: Z.N, cursor: "ns-resize", x: 50, y: 0 },
|
|
3245
3245
|
{ id: Z.NE, cursor: "nesw-resize", x: 100, y: 0 },
|
|
@@ -3256,7 +3256,7 @@ const Ao = "_interactionBlock_145kg_7", Mo = "_resizeHandle_145kg_7", sn = {
|
|
|
3256
3256
|
zIndex: s = V.BLOCK_HANDLES
|
|
3257
3257
|
}) => {
|
|
3258
3258
|
const o = n.size, l = o / 2;
|
|
3259
|
-
return /* @__PURE__ */ r.jsx(r.Fragment, { children:
|
|
3259
|
+
return /* @__PURE__ */ r.jsx(r.Fragment, { children: Lo.map(({ id: i, cursor: a, x: c, y: u }) => {
|
|
3260
3260
|
const f = c === 50 ? `calc(50% - ${l}px)` : c === 100 ? `calc(100% - ${l}px)` : `-${l}px`, p = u === 50 ? `calc(50% - ${l}px)` : u === 100 ? `calc(100% - ${l}px)` : `-${l}px`, x = e === i;
|
|
3261
3261
|
return /* @__PURE__ */ r.jsx(
|
|
3262
3262
|
"div",
|
|
@@ -3793,7 +3793,7 @@ const fn = F(
|
|
|
3793
3793
|
}
|
|
3794
3794
|
);
|
|
3795
3795
|
fn.displayName = "DragLayer";
|
|
3796
|
-
const
|
|
3796
|
+
const Oo = ({
|
|
3797
3797
|
id: t,
|
|
3798
3798
|
plugin: e,
|
|
3799
3799
|
props: n,
|
|
@@ -3850,10 +3850,10 @@ const Lo = ({
|
|
|
3850
3850
|
children: /* @__PURE__ */ r.jsx(_, { ref: p, ...y })
|
|
3851
3851
|
}
|
|
3852
3852
|
);
|
|
3853
|
-
},
|
|
3854
|
-
|
|
3853
|
+
}, So = te(Oo), ko = F(
|
|
3854
|
+
So
|
|
3855
3855
|
);
|
|
3856
|
-
function
|
|
3856
|
+
function Go(t) {
|
|
3857
3857
|
const [e, n] = ot({
|
|
3858
3858
|
mode: z.IDLE,
|
|
3859
3859
|
selectedBlockIds: [],
|
|
@@ -4036,7 +4036,7 @@ const mn = F(
|
|
|
4036
4036
|
}
|
|
4037
4037
|
);
|
|
4038
4038
|
mn.displayName = "SelectionLayer";
|
|
4039
|
-
function
|
|
4039
|
+
function Bo(t, e, n, s) {
|
|
4040
4040
|
const o = n - e.w, l = s - e.h;
|
|
4041
4041
|
return {
|
|
4042
4042
|
x: Math.max(0, Math.min(t.x, o)),
|
|
@@ -4107,24 +4107,24 @@ const pn = F(
|
|
|
4107
4107
|
const k = o(G.x), j = l(G.y);
|
|
4108
4108
|
if (R) {
|
|
4109
4109
|
E.stopPropagation();
|
|
4110
|
-
const
|
|
4110
|
+
const L = i.selectedBlockIds.includes(R);
|
|
4111
4111
|
if (console.log("[InteractionLayer] PointerDown on block:", {
|
|
4112
4112
|
targetId: R,
|
|
4113
4113
|
shiftKey: E.shiftKey,
|
|
4114
|
-
isAlreadySelected:
|
|
4114
|
+
isAlreadySelected: L,
|
|
4115
4115
|
currentSelection: i.selectedBlockIds
|
|
4116
|
-
}),
|
|
4116
|
+
}), L && E.shiftKey) {
|
|
4117
4117
|
console.log("[InteractionLayer] Shift+Click deselect:", R);
|
|
4118
|
-
const
|
|
4118
|
+
const C = i.selectedBlockIds.filter(
|
|
4119
4119
|
(W) => W !== R
|
|
4120
4120
|
);
|
|
4121
|
-
console.log("[InteractionLayer] New selection:",
|
|
4121
|
+
console.log("[InteractionLayer] New selection:", C), a({
|
|
4122
4122
|
type: B.SELECT,
|
|
4123
|
-
blockIds:
|
|
4123
|
+
blockIds: C,
|
|
4124
4124
|
shiftKey: !0
|
|
4125
4125
|
});
|
|
4126
4126
|
return;
|
|
4127
|
-
} else
|
|
4127
|
+
} else L ? (E.currentTarget.setPointerCapture(E.pointerId), a({
|
|
4128
4128
|
type: B.START_PRESS,
|
|
4129
4129
|
blockId: R,
|
|
4130
4130
|
startGrid: { col: k, row: j },
|
|
@@ -4163,7 +4163,7 @@ const pn = F(
|
|
|
4163
4163
|
if (i.mode !== z.PRESSING && i.mode !== z.DRAGGING || !i.dragging) return;
|
|
4164
4164
|
const P = (q = m.current) == null ? void 0 : q.getBoundingClientRect();
|
|
4165
4165
|
if (!P) return;
|
|
4166
|
-
const M = u ?? 1, G = P.width / M, R = P.height / M, k = (E.clientX - P.left) / M, j = (E.clientY - P.top) / M, N = i.dragging.type !== lt.RESIZE && (k < 0 || k > G || j < 0 || j > R),
|
|
4166
|
+
const M = u ?? 1, G = P.width / M, R = P.height / M, k = (E.clientX - P.left) / M, j = (E.clientY - P.top) / M, N = i.dragging.type !== lt.RESIZE && (k < 0 || k > G || j < 0 || j > R), L = Math.max(0, Math.min(k, G)), C = Math.max(0, Math.min(j, R)), W = o(L), X = l(C);
|
|
4167
4167
|
a({
|
|
4168
4168
|
type: B.UPDATE_DRAG,
|
|
4169
4169
|
currentGrid: { col: W, row: X },
|
|
@@ -4198,7 +4198,7 @@ const pn = F(
|
|
|
4198
4198
|
n.rows
|
|
4199
4199
|
), k = G.map((j) => {
|
|
4200
4200
|
const N = R.find(
|
|
4201
|
-
(
|
|
4201
|
+
(L) => L.blockId === j.id
|
|
4202
4202
|
);
|
|
4203
4203
|
return N ? {
|
|
4204
4204
|
...j,
|
|
@@ -4220,21 +4220,21 @@ const pn = F(
|
|
|
4220
4220
|
if (G && k) {
|
|
4221
4221
|
const j = e[G];
|
|
4222
4222
|
if (j) {
|
|
4223
|
-
const { x: N, y:
|
|
4223
|
+
const { x: N, y: L } = Bo(
|
|
4224
4224
|
{ x: R.col, y: R.row },
|
|
4225
4225
|
{ w: k.w, h: k.h },
|
|
4226
4226
|
n.cols,
|
|
4227
4227
|
n.rows
|
|
4228
|
-
),
|
|
4228
|
+
), C = Mt(j, {
|
|
4229
4229
|
x: N,
|
|
4230
|
-
y:
|
|
4230
|
+
y: L,
|
|
4231
4231
|
w: k.w,
|
|
4232
4232
|
h: k.h
|
|
4233
4233
|
});
|
|
4234
4234
|
c == null || c({
|
|
4235
4235
|
type: ht.ADD,
|
|
4236
|
-
blockIds: [
|
|
4237
|
-
blocks: [
|
|
4236
|
+
blockIds: [C.id],
|
|
4237
|
+
blocks: [C]
|
|
4238
4238
|
});
|
|
4239
4239
|
}
|
|
4240
4240
|
}
|
|
@@ -4293,12 +4293,12 @@ const pn = F(
|
|
|
4293
4293
|
if ((i.mode === z.PRESSING || i.mode === z.DRAGGING) && i.dragging) {
|
|
4294
4294
|
const M = (P = m.current) == null ? void 0 : P.getBoundingClientRect();
|
|
4295
4295
|
if (M) {
|
|
4296
|
-
const G = u ?? 1, R = (E.clientX - M.left) / G, k = (E.clientY - M.top) / G, j = M.width / G, N = M.height / G,
|
|
4296
|
+
const G = u ?? 1, R = (E.clientX - M.left) / G, k = (E.clientY - M.top) / G, j = M.width / G, N = M.height / G, L = Math.max(0, Math.min(R, j)), C = Math.max(0, Math.min(k, N));
|
|
4297
4297
|
a({
|
|
4298
4298
|
type: B.UPDATE_DRAG,
|
|
4299
4299
|
currentGrid: {
|
|
4300
|
-
col: o(
|
|
4301
|
-
row: l(
|
|
4300
|
+
col: o(L),
|
|
4301
|
+
row: l(C)
|
|
4302
4302
|
},
|
|
4303
4303
|
currentMousePx: { x: R, y: k },
|
|
4304
4304
|
isOutside: !0
|
|
@@ -4335,7 +4335,7 @@ const pn = F(
|
|
|
4335
4335
|
(M) => M.id === i.editingBlockId
|
|
4336
4336
|
), P = E ? e[E.kind] : null;
|
|
4337
4337
|
return !E || !P ? null : /* @__PURE__ */ r.jsx(
|
|
4338
|
-
|
|
4338
|
+
ko,
|
|
4339
4339
|
{
|
|
4340
4340
|
ref: h,
|
|
4341
4341
|
id: E.id,
|
|
@@ -4495,10 +4495,10 @@ function De(t, e, n = H) {
|
|
|
4495
4495
|
), N = I(
|
|
4496
4496
|
(O) => k(O - m),
|
|
4497
4497
|
[k, m]
|
|
4498
|
-
),
|
|
4498
|
+
), L = I(
|
|
4499
4499
|
(O) => j(O - _),
|
|
4500
4500
|
[j, _]
|
|
4501
|
-
),
|
|
4501
|
+
), C = A(() => ({
|
|
4502
4502
|
cols: D,
|
|
4503
4503
|
rows: E
|
|
4504
4504
|
}), [D, E]), W = A(() => ({
|
|
@@ -4518,19 +4518,19 @@ function De(t, e, n = H) {
|
|
|
4518
4518
|
content: q
|
|
4519
4519
|
}), [W, X, q]), T = I(
|
|
4520
4520
|
(O) => {
|
|
4521
|
-
const { x: Y, y: vt, w:
|
|
4521
|
+
const { x: Y, y: vt, w: Lt, h: J } = O.layout, dt = C.cols, wt = C.rows;
|
|
4522
4522
|
if (!dt.length || !wt.length)
|
|
4523
4523
|
return { left: 0, top: 0, width: 0, height: 0 };
|
|
4524
|
-
const Xt = Math.min(Math.max(0, Y), dt.length - 1), Rn = Math.min(Math.max(0, Y +
|
|
4525
|
-
return { left: Mn, top: Pn, width:
|
|
4524
|
+
const Xt = Math.min(Math.max(0, Y), dt.length - 1), Rn = Math.min(Math.max(0, Y + Lt), dt.length - 1), Re = Math.min(Math.max(0, vt), wt.length - 1), An = Math.min(Math.max(0, vt + J), wt.length - 1), Mn = (dt[Xt] ?? 0) + m, Pn = (wt[Re] ?? 0) + _, Ln = (dt[Rn] ?? 0) - (dt[Xt] ?? 0), Cn = (wt[An] ?? 0) - (wt[Re] ?? 0);
|
|
4525
|
+
return { left: Mn, top: Pn, width: Ln, height: Cn };
|
|
4526
4526
|
},
|
|
4527
|
-
[
|
|
4527
|
+
[C, m, _]
|
|
4528
4528
|
);
|
|
4529
4529
|
return {
|
|
4530
4530
|
paperPx: b,
|
|
4531
|
-
gridPosPx:
|
|
4531
|
+
gridPosPx: C,
|
|
4532
4532
|
getColIndex: N,
|
|
4533
|
-
getRowIndex:
|
|
4533
|
+
getRowIndex: L,
|
|
4534
4534
|
getBlockRectPx: T
|
|
4535
4535
|
};
|
|
4536
4536
|
}
|
|
@@ -4606,7 +4606,7 @@ const vn = F(
|
|
|
4606
4606
|
scale: o = 1,
|
|
4607
4607
|
className: l
|
|
4608
4608
|
}) => {
|
|
4609
|
-
const [i, a] =
|
|
4609
|
+
const [i, a] = Go(), { paperPx: c, gridPosPx: u, getBlockRectPx: f, getColIndex: p, getRowIndex: x } = De(t.paper, t.grid, H), v = I(
|
|
4610
4610
|
(w) => {
|
|
4611
4611
|
if (n)
|
|
4612
4612
|
switch (w.type) {
|
|
@@ -4915,7 +4915,7 @@ const bn = ({
|
|
|
4915
4915
|
);
|
|
4916
4916
|
};
|
|
4917
4917
|
bn.displayName = "NoteView";
|
|
4918
|
-
const
|
|
4918
|
+
const Vo = F(te(bn)), Fo = F(
|
|
4919
4919
|
({
|
|
4920
4920
|
schema: t,
|
|
4921
4921
|
values: e,
|
|
@@ -4929,7 +4929,12 @@ const Bo = F(te(bn)), Vo = F(
|
|
|
4929
4929
|
}) => {
|
|
4930
4930
|
const u = I(
|
|
4931
4931
|
(f, p) => {
|
|
4932
|
-
|
|
4932
|
+
if (l)
|
|
4933
|
+
if (p == null) {
|
|
4934
|
+
const { [f]: x, ...v } = e;
|
|
4935
|
+
l(v);
|
|
4936
|
+
} else
|
|
4937
|
+
l({ ...e, [f]: p });
|
|
4933
4938
|
},
|
|
4934
4939
|
[e, l]
|
|
4935
4940
|
);
|
|
@@ -4954,7 +4959,7 @@ const Bo = F(te(bn)), Vo = F(
|
|
|
4954
4959
|
className: c
|
|
4955
4960
|
}
|
|
4956
4961
|
) : /* @__PURE__ */ r.jsx(
|
|
4957
|
-
|
|
4962
|
+
Vo,
|
|
4958
4963
|
{
|
|
4959
4964
|
schema: t,
|
|
4960
4965
|
values: e,
|
|
@@ -4965,7 +4970,7 @@ const Bo = F(te(bn)), Vo = F(
|
|
|
4965
4970
|
);
|
|
4966
4971
|
}
|
|
4967
4972
|
);
|
|
4968
|
-
|
|
4973
|
+
Fo.displayName = "NoteEditor";
|
|
4969
4974
|
function jt(t, e) {
|
|
4970
4975
|
if (t.length === 0) return;
|
|
4971
4976
|
const n = (i, a) => {
|
|
@@ -4979,11 +4984,11 @@ function jt(t, e) {
|
|
|
4979
4984
|
}, s = e.split("."), o = n(t[0], s);
|
|
4980
4985
|
return t.every((i) => n(i, s) === o) ? o : void 0;
|
|
4981
4986
|
}
|
|
4982
|
-
const
|
|
4983
|
-
container:
|
|
4984
|
-
row:
|
|
4985
|
-
inputWrapper:
|
|
4986
|
-
},
|
|
4987
|
+
const Uo = "_container_1tfjv_1", Wo = "_row_1tfjv_20", Yo = "_inputWrapper_1tfjv_37", pe = {
|
|
4988
|
+
container: Uo,
|
|
4989
|
+
row: Wo,
|
|
4990
|
+
inputWrapper: Yo
|
|
4991
|
+
}, zo = ({
|
|
4987
4992
|
selectedBlocks: t,
|
|
4988
4993
|
onUpdateBlocks: e
|
|
4989
4994
|
}) => {
|
|
@@ -5032,7 +5037,7 @@ function Nt(t, e, n) {
|
|
|
5032
5037
|
};
|
|
5033
5038
|
return o(t, 0);
|
|
5034
5039
|
}
|
|
5035
|
-
const
|
|
5040
|
+
const Ho = ({
|
|
5036
5041
|
selectedBlocks: t,
|
|
5037
5042
|
onUpdateBlocks: e
|
|
5038
5043
|
}) => {
|
|
@@ -5313,13 +5318,13 @@ const zo = ({
|
|
|
5313
5318
|
]
|
|
5314
5319
|
}
|
|
5315
5320
|
);
|
|
5316
|
-
},
|
|
5317
|
-
container:
|
|
5318
|
-
grid:
|
|
5319
|
-
field:
|
|
5320
|
-
label:
|
|
5321
|
-
inputWrapper:
|
|
5322
|
-
},
|
|
5321
|
+
}, Ko = "_container_1daw7_1", Xo = "_grid_1daw7_19", qo = "_field_1daw7_26", Jo = "_label_1daw7_33", Zo = "_inputWrapper_1daw7_43", ct = {
|
|
5322
|
+
container: Ko,
|
|
5323
|
+
grid: Xo,
|
|
5324
|
+
field: qo,
|
|
5325
|
+
label: Jo,
|
|
5326
|
+
inputWrapper: Zo
|
|
5327
|
+
}, Qo = ({
|
|
5323
5328
|
selectedBlocks: t,
|
|
5324
5329
|
onUpdateBlocks: e,
|
|
5325
5330
|
gridSize: n
|
|
@@ -5427,12 +5432,12 @@ const zo = ({
|
|
|
5427
5432
|
) })
|
|
5428
5433
|
] })
|
|
5429
5434
|
] }) });
|
|
5430
|
-
},
|
|
5431
|
-
container:
|
|
5432
|
-
row:
|
|
5433
|
-
label:
|
|
5434
|
-
inputWrapper:
|
|
5435
|
-
},
|
|
5435
|
+
}, ts = "_container_1h4w8_1", es = "_row_1h4w8_10", ns = "_label_1h4w8_16", rs = "_inputWrapper_1h4w8_25", At = {
|
|
5436
|
+
container: ts,
|
|
5437
|
+
row: es,
|
|
5438
|
+
label: ns,
|
|
5439
|
+
inputWrapper: rs
|
|
5440
|
+
}, os = ({
|
|
5436
5441
|
selectedBlocks: t,
|
|
5437
5442
|
onUpdateBlocks: e
|
|
5438
5443
|
}) => {
|
|
@@ -5483,20 +5488,20 @@ const zo = ({
|
|
|
5483
5488
|
}
|
|
5484
5489
|
) }) })
|
|
5485
5490
|
] });
|
|
5486
|
-
},
|
|
5487
|
-
container:
|
|
5488
|
-
scrollArea:
|
|
5489
|
-
section:
|
|
5490
|
-
sectionTitle:
|
|
5491
|
-
subsection:
|
|
5492
|
-
subsectionTitle:
|
|
5493
|
-
fields:
|
|
5494
|
-
emptyState:
|
|
5495
|
-
},
|
|
5496
|
-
field:
|
|
5497
|
-
label:
|
|
5498
|
-
mixed:
|
|
5499
|
-
description:
|
|
5491
|
+
}, ss = "_container_wa11y_1", is = "_scrollArea_wa11y_18", ls = "_section_wa11y_26", as = "_sectionTitle_wa11y_35", cs = "_subsection_wa11y_47", us = "_subsectionTitle_wa11y_51", ds = "_fields_wa11y_59", hs = "_emptyState_wa11y_69", st = {
|
|
5492
|
+
container: ss,
|
|
5493
|
+
scrollArea: is,
|
|
5494
|
+
section: ls,
|
|
5495
|
+
sectionTitle: as,
|
|
5496
|
+
subsection: cs,
|
|
5497
|
+
subsectionTitle: us,
|
|
5498
|
+
fields: ds,
|
|
5499
|
+
emptyState: hs
|
|
5500
|
+
}, fs = "_field_qo0ef_1", ms = "_label_qo0ef_7", ps = "_mixed_qo0ef_15", xs = "_description_qo0ef_22", Zt = {
|
|
5501
|
+
field: fs,
|
|
5502
|
+
label: ms,
|
|
5503
|
+
mixed: ps,
|
|
5504
|
+
description: xs
|
|
5500
5505
|
}, Te = F(
|
|
5501
5506
|
({
|
|
5502
5507
|
propertyKey: t,
|
|
@@ -5526,7 +5531,7 @@ const zo = ({
|
|
|
5526
5531
|
}
|
|
5527
5532
|
);
|
|
5528
5533
|
Te.displayName = "PropertyField";
|
|
5529
|
-
function
|
|
5534
|
+
function vs(t) {
|
|
5530
5535
|
return t !== !1;
|
|
5531
5536
|
}
|
|
5532
5537
|
const gn = F(
|
|
@@ -5566,7 +5571,7 @@ const gn = F(
|
|
|
5566
5571
|
);
|
|
5567
5572
|
}
|
|
5568
5573
|
return p.forEach(([x, v]) => {
|
|
5569
|
-
if (!
|
|
5574
|
+
if (!vs(v) || t.length > 1 && v.disableInMultiSelection || v.condition && !v.condition(l.props))
|
|
5570
5575
|
return;
|
|
5571
5576
|
const y = v.group || "基本";
|
|
5572
5577
|
f[y] || (f[y] = []), v.Component && f[y].push({
|
|
@@ -5593,7 +5598,7 @@ const gn = F(
|
|
|
5593
5598
|
/* @__PURE__ */ r.jsxs("div", { className: st.section, children: [
|
|
5594
5599
|
/* @__PURE__ */ r.jsx("div", { className: st.sectionTitle, children: "配置・サイズ" }),
|
|
5595
5600
|
/* @__PURE__ */ r.jsx(
|
|
5596
|
-
|
|
5601
|
+
Qo,
|
|
5597
5602
|
{
|
|
5598
5603
|
selectedBlocks: t,
|
|
5599
5604
|
onUpdateBlocks: n,
|
|
@@ -5604,7 +5609,7 @@ const gn = F(
|
|
|
5604
5609
|
/* @__PURE__ */ r.jsxs("div", { className: st.section, children: [
|
|
5605
5610
|
/* @__PURE__ */ r.jsx("div", { className: st.sectionTitle, children: "背景" }),
|
|
5606
5611
|
/* @__PURE__ */ r.jsx(
|
|
5607
|
-
|
|
5612
|
+
zo,
|
|
5608
5613
|
{
|
|
5609
5614
|
selectedBlocks: t,
|
|
5610
5615
|
onUpdateBlocks: n
|
|
@@ -5614,7 +5619,7 @@ const gn = F(
|
|
|
5614
5619
|
/* @__PURE__ */ r.jsxs("div", { className: st.section, children: [
|
|
5615
5620
|
/* @__PURE__ */ r.jsx("div", { className: st.sectionTitle, children: "枠線" }),
|
|
5616
5621
|
/* @__PURE__ */ r.jsx(
|
|
5617
|
-
|
|
5622
|
+
Ho,
|
|
5618
5623
|
{
|
|
5619
5624
|
selectedBlocks: t,
|
|
5620
5625
|
onUpdateBlocks: n
|
|
@@ -5637,7 +5642,7 @@ const gn = F(
|
|
|
5637
5642
|
/* @__PURE__ */ r.jsxs("div", { className: st.section, children: [
|
|
5638
5643
|
/* @__PURE__ */ r.jsx("div", { className: st.sectionTitle, children: "基本設定" }),
|
|
5639
5644
|
/* @__PURE__ */ r.jsx(
|
|
5640
|
-
|
|
5645
|
+
os,
|
|
5641
5646
|
{
|
|
5642
5647
|
selectedBlocks: t,
|
|
5643
5648
|
onUpdateBlocks: n
|
|
@@ -5648,17 +5653,17 @@ const gn = F(
|
|
|
5648
5653
|
}
|
|
5649
5654
|
);
|
|
5650
5655
|
gn.displayName = "BlockPropertyPanel";
|
|
5651
|
-
const
|
|
5652
|
-
panel:
|
|
5653
|
-
header:
|
|
5654
|
-
group:
|
|
5655
|
-
groupTitle:
|
|
5656
|
-
groupContent:
|
|
5656
|
+
const bs = "_panel_1h33v_1", gs = "_header_1h33v_11", ws = "_group_1h33v_18", _s = "_groupTitle_1h33v_26", ys = "_groupContent_1h33v_36", kt = {
|
|
5657
|
+
panel: bs,
|
|
5658
|
+
header: gs,
|
|
5659
|
+
group: ws,
|
|
5660
|
+
groupTitle: _s,
|
|
5661
|
+
groupContent: ys
|
|
5657
5662
|
};
|
|
5658
|
-
function
|
|
5663
|
+
function Es(t) {
|
|
5659
5664
|
return t !== !1;
|
|
5660
5665
|
}
|
|
5661
|
-
const
|
|
5666
|
+
const qi = ({
|
|
5662
5667
|
selectedBlocks: t,
|
|
5663
5668
|
pluginRegistry: e,
|
|
5664
5669
|
onUpdateBlocks: n
|
|
@@ -5667,7 +5672,7 @@ const Xi = ({
|
|
|
5667
5672
|
if (!s || !o) return {};
|
|
5668
5673
|
const a = {};
|
|
5669
5674
|
return Object.entries(o.properties).forEach(([c, u]) => {
|
|
5670
|
-
if (!
|
|
5675
|
+
if (!Es(u) || t.length > 1 && u.disableInMultiSelection || u.condition && !u.condition(s.props))
|
|
5671
5676
|
return;
|
|
5672
5677
|
const f = u.group || "基本";
|
|
5673
5678
|
a[f] || (a[f] = []), u.Component && a[f].push({
|
|
@@ -5702,23 +5707,23 @@ const Xi = ({
|
|
|
5702
5707
|
)) })
|
|
5703
5708
|
] }, a))
|
|
5704
5709
|
] });
|
|
5705
|
-
},
|
|
5706
|
-
panel:
|
|
5707
|
-
title:
|
|
5708
|
-
content:
|
|
5709
|
-
description:
|
|
5710
|
-
list:
|
|
5711
|
-
item:
|
|
5712
|
-
dragging:
|
|
5713
|
-
dragOver:
|
|
5714
|
-
dragHandle:
|
|
5715
|
-
itemInfo:
|
|
5716
|
-
itemId:
|
|
5710
|
+
}, js = "_panel_1ekwd_6", Ns = "_title_1ekwd_10", Is = "_content_1ekwd_22", $s = "_description_1ekwd_29", Ds = "_list_1ekwd_35", Ts = "_item_1ekwd_44", Rs = "_dragging_1ekwd_61", As = "_dragOver_1ekwd_66", Ms = "_dragHandle_1ekwd_71", Ps = "_itemInfo_1ekwd_86", Ls = "_itemId_1ekwd_93", Cs = "_itemMeta_1ekwd_98", Os = "_itemKind_1ekwd_105", Ss = "_itemActions_1ekwd_113", ks = "_actionButton_1ekwd_118", Gs = "_empty_1ekwd_154", tt = {
|
|
5711
|
+
panel: js,
|
|
5712
|
+
title: Ns,
|
|
5713
|
+
content: Is,
|
|
5714
|
+
description: $s,
|
|
5715
|
+
list: Ds,
|
|
5716
|
+
item: Ts,
|
|
5717
|
+
dragging: Rs,
|
|
5718
|
+
dragOver: As,
|
|
5719
|
+
dragHandle: Ms,
|
|
5720
|
+
itemInfo: Ps,
|
|
5721
|
+
itemId: Ls,
|
|
5717
5722
|
itemMeta: Cs,
|
|
5718
|
-
itemKind:
|
|
5719
|
-
itemActions:
|
|
5720
|
-
actionButton:
|
|
5721
|
-
empty:
|
|
5723
|
+
itemKind: Os,
|
|
5724
|
+
itemActions: Ss,
|
|
5725
|
+
actionButton: ks,
|
|
5726
|
+
empty: Gs
|
|
5722
5727
|
}, wn = ({
|
|
5723
5728
|
blocks: t,
|
|
5724
5729
|
onBlocksChange: e
|
|
@@ -5963,14 +5968,14 @@ const _n = ({ schema: t, onSchemaChange: e }) => {
|
|
|
5963
5968
|
] });
|
|
5964
5969
|
};
|
|
5965
5970
|
_n.displayName = "CanvasPanel";
|
|
5966
|
-
const
|
|
5967
|
-
panel:
|
|
5968
|
-
title:
|
|
5969
|
-
content:
|
|
5970
|
-
field:
|
|
5971
|
-
horizontal:
|
|
5972
|
-
label:
|
|
5973
|
-
gridSizeRow:
|
|
5971
|
+
const Bs = "_panel_1axyd_6", Vs = "_title_1axyd_10", Fs = "_content_1axyd_22", Us = "_field_1axyd_29", Ws = "_horizontal_1axyd_35", Ys = "_label_1axyd_41", zs = "_gridSizeRow_1axyd_52", _t = {
|
|
5972
|
+
panel: Bs,
|
|
5973
|
+
title: Vs,
|
|
5974
|
+
content: Fs,
|
|
5975
|
+
field: Us,
|
|
5976
|
+
horizontal: Ws,
|
|
5977
|
+
label: Ys,
|
|
5978
|
+
gridSizeRow: zs
|
|
5974
5979
|
}, yn = ({ grid: t, onGridChange: e }) => {
|
|
5975
5980
|
const n = I(
|
|
5976
5981
|
(o) => {
|
|
@@ -6038,19 +6043,19 @@ const Gs = "_panel_1axyd_6", Bs = "_title_1axyd_10", Vs = "_content_1axyd_22", F
|
|
|
6038
6043
|
] });
|
|
6039
6044
|
};
|
|
6040
6045
|
yn.displayName = "GridSizePanel";
|
|
6041
|
-
const
|
|
6042
|
-
panel:
|
|
6043
|
-
header:
|
|
6044
|
-
title:
|
|
6045
|
-
headerActions:
|
|
6046
|
-
content:
|
|
6047
|
-
field:
|
|
6048
|
-
horizontal:
|
|
6049
|
-
label:
|
|
6050
|
-
marginsGrid:
|
|
6051
|
-
topMargin:
|
|
6052
|
-
bottomMargin:
|
|
6053
|
-
sideMargins:
|
|
6046
|
+
const Hs = "_panel_qlcb6_6", Ks = "_header_qlcb6_10", Xs = "_title_qlcb6_20", qs = "_headerActions_qlcb6_29", Js = "_content_qlcb6_33", Zs = "_field_qlcb6_37", Qs = "_horizontal_qlcb6_43", ti = "_label_qlcb6_49", ei = "_marginsGrid_qlcb6_60", ni = "_topMargin_qlcb6_66", ri = "_bottomMargin_qlcb6_67", oi = "_sideMargins_qlcb6_73", Q = {
|
|
6047
|
+
panel: Hs,
|
|
6048
|
+
header: Ks,
|
|
6049
|
+
title: Xs,
|
|
6050
|
+
headerActions: qs,
|
|
6051
|
+
content: Js,
|
|
6052
|
+
field: Zs,
|
|
6053
|
+
horizontal: Qs,
|
|
6054
|
+
label: ti,
|
|
6055
|
+
marginsGrid: ei,
|
|
6056
|
+
topMargin: ni,
|
|
6057
|
+
bottomMargin: ri,
|
|
6058
|
+
sideMargins: oi
|
|
6054
6059
|
}, En = ({ paper: t, onPaperChange: e }) => {
|
|
6055
6060
|
const [n, s] = ot(!1), o = I((u) => {
|
|
6056
6061
|
u !== void 0 && s(u);
|
|
@@ -6189,14 +6194,14 @@ const zs = "_panel_qlcb6_6", Hs = "_header_qlcb6_10", Ks = "_title_qlcb6_20", Xs
|
|
|
6189
6194
|
] });
|
|
6190
6195
|
};
|
|
6191
6196
|
En.displayName = "MarginPanel";
|
|
6192
|
-
const
|
|
6193
|
-
panel:
|
|
6194
|
-
title:
|
|
6195
|
-
content:
|
|
6196
|
-
field:
|
|
6197
|
-
horizontal:
|
|
6198
|
-
label:
|
|
6199
|
-
dimensionsRow:
|
|
6197
|
+
const si = "_panel_16d9o_6", ii = "_title_16d9o_10", li = "_content_16d9o_22", ai = "_field_16d9o_29", ci = "_horizontal_16d9o_35", ui = "_label_16d9o_41", di = "_dimensionsRow_16d9o_52", bt = {
|
|
6198
|
+
panel: si,
|
|
6199
|
+
title: ii,
|
|
6200
|
+
content: li,
|
|
6201
|
+
field: ai,
|
|
6202
|
+
horizontal: ci,
|
|
6203
|
+
label: ui,
|
|
6204
|
+
dimensionsRow: di
|
|
6200
6205
|
}, jn = ({
|
|
6201
6206
|
paper: t,
|
|
6202
6207
|
onPaperChange: e
|
|
@@ -6293,13 +6298,13 @@ const oi = "_panel_16d9o_6", si = "_title_16d9o_10", ii = "_content_16d9o_22", l
|
|
|
6293
6298
|
] });
|
|
6294
6299
|
};
|
|
6295
6300
|
jn.displayName = "PaperSizePanel";
|
|
6296
|
-
const
|
|
6297
|
-
section:
|
|
6298
|
-
title:
|
|
6299
|
-
content:
|
|
6300
|
-
buttonGroup:
|
|
6301
|
-
button:
|
|
6302
|
-
error:
|
|
6301
|
+
const hi = "_section_p4xnx_6", fi = "_title_p4xnx_14", mi = "_content_p4xnx_26", pi = "_buttonGroup_p4xnx_33", xi = "_button_p4xnx_33", vi = "_error_p4xnx_65", et = {
|
|
6302
|
+
section: hi,
|
|
6303
|
+
title: fi,
|
|
6304
|
+
content: mi,
|
|
6305
|
+
buttonGroup: pi,
|
|
6306
|
+
button: xi,
|
|
6307
|
+
error: vi
|
|
6303
6308
|
}, Nn = ({
|
|
6304
6309
|
schema: t,
|
|
6305
6310
|
values: e,
|
|
@@ -6535,12 +6540,12 @@ const In = ({
|
|
|
6535
6540
|
}
|
|
6536
6541
|
) });
|
|
6537
6542
|
In.displayName = "OtherPanel";
|
|
6538
|
-
const
|
|
6539
|
-
container:
|
|
6540
|
-
paletteItems:
|
|
6541
|
-
item:
|
|
6542
|
-
itemPreview:
|
|
6543
|
-
itemName:
|
|
6543
|
+
const bi = "_container_naj39_3", gi = "_paletteItems_naj39_32", wi = "_item_naj39_44", _i = "_itemPreview_naj39_77", yi = "_itemName_naj39_106", Yt = {
|
|
6544
|
+
container: bi,
|
|
6545
|
+
paletteItems: gi,
|
|
6546
|
+
item: wi,
|
|
6547
|
+
itemPreview: _i,
|
|
6548
|
+
itemName: yi
|
|
6544
6549
|
}, $n = ({ plugins: t, className: e }) => {
|
|
6545
6550
|
const [n, s] = ot(null), o = I(
|
|
6546
6551
|
(l, i) => {
|
|
@@ -6680,11 +6685,11 @@ const Tn = ({ plugin: t, mousePos: e }) => {
|
|
|
6680
6685
|
);
|
|
6681
6686
|
};
|
|
6682
6687
|
Tn.displayName = "DragGhost";
|
|
6683
|
-
const
|
|
6684
|
-
container:
|
|
6685
|
-
tabHeader:
|
|
6686
|
-
tabContent:
|
|
6687
|
-
},
|
|
6688
|
+
const Ei = "_container_rt0ql_3", ji = "_tabHeader_rt0ql_14", Ni = "_tabContent_rt0ql_21", Gt = {
|
|
6689
|
+
container: Ei,
|
|
6690
|
+
tabHeader: ji,
|
|
6691
|
+
tabContent: Ni
|
|
6692
|
+
}, Ii = ({
|
|
6688
6693
|
blocks: t,
|
|
6689
6694
|
selectedBlockIds: e,
|
|
6690
6695
|
pluginRegistry: n,
|
|
@@ -6730,25 +6735,25 @@ const yi = "_container_rt0ql_3", Ei = "_tabHeader_rt0ql_14", ji = "_tabContent_r
|
|
|
6730
6735
|
) })
|
|
6731
6736
|
] }) });
|
|
6732
6737
|
};
|
|
6733
|
-
|
|
6738
|
+
Ii.displayName = "Sidebar";
|
|
6734
6739
|
export {
|
|
6735
|
-
|
|
6736
|
-
|
|
6740
|
+
Mi as ACTUAL_UNITS,
|
|
6741
|
+
Ai as ALL_UNITS,
|
|
6737
6742
|
xt as BLOCK_SUB_INDEX,
|
|
6738
6743
|
Nr as BORDER_UNITS,
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6744
|
+
zo as BackgroundPanel,
|
|
6745
|
+
Br as BlockBorder,
|
|
6746
|
+
Vr as BlockCanvas,
|
|
6742
6747
|
ht as BlockChangeType,
|
|
6743
6748
|
nn as BlockContainer,
|
|
6744
|
-
|
|
6749
|
+
Ur as BlockGuideBorder,
|
|
6745
6750
|
ie as BlockLayer,
|
|
6746
6751
|
wn as BlockOrderPanel,
|
|
6747
6752
|
gn as BlockPropertyPanel,
|
|
6748
6753
|
se as BlockRenderer,
|
|
6749
6754
|
Ht as Border,
|
|
6750
|
-
|
|
6751
|
-
|
|
6755
|
+
zr as BorderOverlay,
|
|
6756
|
+
Ho as BorderPanel,
|
|
6752
6757
|
Pt as BorderRenderer,
|
|
6753
6758
|
ur as COLOR_PALETTE,
|
|
6754
6759
|
_n as CanvasPanel,
|
|
@@ -6757,23 +6762,24 @@ export {
|
|
|
6757
6762
|
ee as ColorPicker,
|
|
6758
6763
|
qe as ColorPickerPopover,
|
|
6759
6764
|
H as DEFAULT_DPI,
|
|
6760
|
-
|
|
6765
|
+
Dr as DEFAULT_FONT_FAMILY,
|
|
6766
|
+
Ar as DEFAULT_GRID,
|
|
6761
6767
|
Ne as DEFAULT_GUIDE_BORDER,
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
|
|
6768
|
+
Fr as DEFAULT_GUIDE_LINE,
|
|
6769
|
+
Sr as DEFAULT_PAPER,
|
|
6770
|
+
Or as DEFAULT_PAPER_MARGIN,
|
|
6765
6771
|
tn as DEFAULT_PAPER_SIZES,
|
|
6766
|
-
|
|
6772
|
+
Wi as DEFAULT_SCHEMA,
|
|
6767
6773
|
it as DimensionInput,
|
|
6768
6774
|
fn as DragLayer,
|
|
6769
6775
|
lt as DragType,
|
|
6770
|
-
|
|
6776
|
+
ko as EditingBlock,
|
|
6771
6777
|
Ir as FONT_UNITS,
|
|
6772
|
-
|
|
6773
|
-
|
|
6778
|
+
Li as GRID_UNITS,
|
|
6779
|
+
Hr as GridCanvas,
|
|
6774
6780
|
xe as GridDimensionLabel,
|
|
6775
6781
|
Ie as GridLayer,
|
|
6776
|
-
|
|
6782
|
+
uo as GridOverlay,
|
|
6777
6783
|
ve as GridResizeHandle,
|
|
6778
6784
|
yn as GridSizePanel,
|
|
6779
6785
|
Bt as HorizontalAlign,
|
|
@@ -6784,27 +6790,27 @@ export {
|
|
|
6784
6790
|
B as InteractionEventType,
|
|
6785
6791
|
pn as InteractionLayer,
|
|
6786
6792
|
z as InteractionMode,
|
|
6787
|
-
|
|
6793
|
+
Qo as LayoutPanel,
|
|
6788
6794
|
pt as LineType,
|
|
6789
|
-
|
|
6795
|
+
mo as MarginOverlay,
|
|
6790
6796
|
En as MarginPanel,
|
|
6791
|
-
|
|
6797
|
+
os as MetaPanel,
|
|
6792
6798
|
un as MovingGhost,
|
|
6793
6799
|
Ut as MultilineWhiteSpace,
|
|
6794
6800
|
Ft as MultilineWordWrap,
|
|
6795
6801
|
xn as NoteEdit,
|
|
6796
|
-
|
|
6802
|
+
Fo as NoteEditor,
|
|
6797
6803
|
vn as NoteForm,
|
|
6798
6804
|
mt as NoteMode,
|
|
6799
|
-
|
|
6805
|
+
Vo as NoteView,
|
|
6800
6806
|
ut as NumberInput,
|
|
6801
6807
|
In as OtherPanel,
|
|
6802
6808
|
St as PADDING_UNITS,
|
|
6803
|
-
|
|
6809
|
+
Pi as PAPER_UNITS,
|
|
6804
6810
|
$n as PalettePanel,
|
|
6805
6811
|
jn as PaperSizePanel,
|
|
6806
6812
|
yt as PaperSizePreset,
|
|
6807
|
-
|
|
6813
|
+
qi as PluginPanels,
|
|
6808
6814
|
Te as PropertyField,
|
|
6809
6815
|
$e as RESIZE_HANDLE_STYLE,
|
|
6810
6816
|
Xe as RGBAInputs,
|
|
@@ -6812,80 +6818,80 @@ export {
|
|
|
6812
6818
|
Z as ResizeHandle,
|
|
6813
6819
|
ln as ResizeHandles,
|
|
6814
6820
|
le as SELECTION_STYLE,
|
|
6815
|
-
|
|
6821
|
+
Ce as SIZE_UNITS,
|
|
6816
6822
|
It as Select,
|
|
6817
6823
|
Co as SelectionBorder,
|
|
6818
6824
|
mn as SelectionLayer,
|
|
6819
|
-
|
|
6825
|
+
Ii as Sidebar,
|
|
6820
6826
|
Je as TabPanel,
|
|
6821
6827
|
Ze as Tabs,
|
|
6822
6828
|
Dt as TabsContent,
|
|
6823
6829
|
Qe as TabsList,
|
|
6824
6830
|
$t as TabsTrigger,
|
|
6825
6831
|
zt as TextInput,
|
|
6826
|
-
|
|
6832
|
+
kr as ValidationSeverity,
|
|
6827
6833
|
Vt as VerticalAlign,
|
|
6828
6834
|
V as Z_INDEX,
|
|
6829
6835
|
zn as alignmentDefinition,
|
|
6830
|
-
|
|
6836
|
+
Ui as assertFinite,
|
|
6831
6837
|
je as assertInteger,
|
|
6832
6838
|
Rt as assertNonNegative,
|
|
6833
6839
|
at as assertPositive,
|
|
6834
|
-
|
|
6840
|
+
Mr as assertRange,
|
|
6835
6841
|
me as binarySearch,
|
|
6836
6842
|
Oe as calculateGridResize,
|
|
6837
6843
|
dn as calculateResizedLayout,
|
|
6838
|
-
|
|
6844
|
+
Bo as clampBlockToGrid,
|
|
6839
6845
|
cn as clampMultipleBlocks,
|
|
6840
|
-
|
|
6846
|
+
jo as cleanupPrint,
|
|
6841
6847
|
Mt as createBlock,
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6848
|
+
Rr as createBlockId,
|
|
6849
|
+
Tr as createInitialProps,
|
|
6850
|
+
Si as createPluginRegistry,
|
|
6845
6851
|
Ue as deserializeSchema,
|
|
6846
6852
|
Ye as deserializeValues,
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6853
|
+
so as dimensionToString,
|
|
6854
|
+
Hi as dimensionsToStrings,
|
|
6855
|
+
bo as distributeRemainder,
|
|
6850
6856
|
Ve as executePrint,
|
|
6851
6857
|
He as findBlockAtPoint,
|
|
6852
6858
|
Be as findGridIndex,
|
|
6853
|
-
|
|
6859
|
+
Oi as fontStyleDefinition,
|
|
6854
6860
|
en as getBlockContainerStyle,
|
|
6855
|
-
|
|
6861
|
+
Gr as getBlockZIndex,
|
|
6856
6862
|
jt as getCommonValue,
|
|
6857
|
-
|
|
6863
|
+
Yi as getMaxBlockCount,
|
|
6858
6864
|
Ge as getMaxStep,
|
|
6859
|
-
|
|
6865
|
+
Xi as getPaperSize,
|
|
6860
6866
|
Wt as getStrokeDasharray,
|
|
6861
6867
|
oe as getSubZIndex,
|
|
6862
6868
|
be as globalDragStore,
|
|
6863
6869
|
ge as gridToMms,
|
|
6864
|
-
|
|
6865
|
-
|
|
6870
|
+
Ki as gridToPxs,
|
|
6871
|
+
ki as imageDefinition,
|
|
6866
6872
|
rt as interactionZIndexs,
|
|
6867
|
-
|
|
6873
|
+
Ri as isValidHex,
|
|
6868
6874
|
we as mmsToPxs,
|
|
6869
|
-
|
|
6875
|
+
Gi as multilineDefinition,
|
|
6870
6876
|
$r as paddingDefinition,
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6877
|
+
Le as parseColor,
|
|
6878
|
+
Bi as placeholderDefinition,
|
|
6879
|
+
Eo as preparePrint,
|
|
6874
6880
|
_e as removeUndefinedProps,
|
|
6875
6881
|
We as serializeSchema,
|
|
6876
6882
|
ze as serializeValues,
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6883
|
+
Vi as sizeDefinition,
|
|
6884
|
+
to as stringToDimension,
|
|
6885
|
+
zi as stringsToDimensions,
|
|
6880
6886
|
cr as toHex,
|
|
6881
6887
|
K as toMm,
|
|
6882
6888
|
U as toPx,
|
|
6883
|
-
|
|
6889
|
+
Ti as toRgbaString,
|
|
6884
6890
|
Ci as universalProperties,
|
|
6885
6891
|
De as useGridCalc,
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6892
|
+
Go as useInteractionState,
|
|
6893
|
+
Ro as validateSchema,
|
|
6894
|
+
Ao as validateValues,
|
|
6895
|
+
Fi as validationDefinition
|
|
6890
6896
|
};
|
|
6891
6897
|
//# sourceMappingURL=index.mjs.map
|