@forevka/wordcanvas 0.10.0 → 0.10.2
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-lib/assets/{worker-BgYN6MEW.js → worker-Dxt4NQIQ.js} +6 -1
- package/dist-lib/builder.js +5 -5
- package/dist-lib/{editorApp-jD0dvds5.js → editorApp-CRXveGOd.js} +1094 -1089
- package/dist-lib/{engine-Co8wGzPh.js → engine-CDHZLDvx.js} +1 -1
- package/dist-lib/{equationEditor-c-Us7Ls9.js → equationEditor-C8O4iQY0.js} +5 -5
- package/dist-lib/export.js +4 -4
- package/dist-lib/generate-toc.js +5 -5
- package/dist-lib/import.js +2 -2
- package/dist-lib/{inlineExport-SN7ZU3G-.js → inlineExport-DufSrjh6.js} +1 -1
- package/dist-lib/{latex-Bw2eoY11.js → latex-BXHY96IY.js} +2 -2
- package/dist-lib/measure.js +1 -1
- package/dist-lib/{measureHost-BPFmyrlK.js → measureHost-CIzjksid.js} +6 -1
- package/dist-lib/{parse-B7crTYAa.js → parse-BBIeOUPD.js} +3 -3
- package/dist-lib/{pipeline-CgTexI-5.js → pipeline-BR9aUw6T.js} +1 -1
- package/dist-lib/{pipeline-DA8bAWrd.js → pipeline-CsIYBlrl.js} +7 -7
- package/dist-lib/query.js +3 -3
- package/dist-lib/recalc-docx.js +2 -2
- package/dist-lib/{recalcToc-C0QoMNY9.js → recalcToc-4YmgOJlg.js} +2 -2
- package/dist-lib/{styleProps-Dw6DnP6p.js → styleProps-hQ-xcGCW.js} +1 -1
- package/dist-lib/{stylesheet-BZQ2DVSJ.js → stylesheet-oa_qg3op.js} +1 -1
- package/dist-lib/{symbolPicker-C-R52Yhe.js → symbolPicker-BXTEUH3F.js} +1 -1
- package/dist-lib/{toc-BIVKqYZ1.js → toc-C4oeGLWP.js} +105 -94
- package/dist-lib/{webmcp-C8oRoce-.js → webmcp-CC54nQHq.js} +8 -8
- package/dist-lib/{wordcanvas-Cdfe3Pcz.js → wordcanvas-mL3V3lME.js} +3 -3
- package/dist-lib/wordcanvas.js +1 -1
- package/dist-node/{chunk-XHBY3PPO.js → chunk-2BASYQX6.js} +2 -2
- package/dist-node/{chunk-KZD72U5U.js → chunk-COPJYE3M.js} +5 -2
- package/dist-node/{chunk-KZD72U5U.js.map → chunk-COPJYE3M.js.map} +2 -2
- package/dist-node/{chunk-YOBNPVKS.js → chunk-Q2PZZE6W.js} +1 -1
- package/dist-node/chunk-Q2PZZE6W.js.map +7 -0
- package/dist-node/{chunk-RH7KMFDB.js → chunk-RLIU3RM7.js} +2 -2
- package/dist-node/{chunk-WSLT7ILY.js → chunk-VGI576RA.js} +2 -2
- package/dist-node/{engine-WTNLTPJA.js → engine-JO72FQWP.js} +3 -3
- package/dist-node/export.js +5 -5
- package/dist-node/generate-toc.js +4 -4
- package/dist-node/import.js +2 -2
- package/dist-node/measure.js +1 -1
- package/dist-node/recalc-docx.js +2 -2
- package/package.json +1 -1
- package/dist-node/chunk-YOBNPVKS.js.map +0 -7
- /package/dist-node/{chunk-XHBY3PPO.js.map → chunk-2BASYQX6.js.map} +0 -0
- /package/dist-node/{chunk-RH7KMFDB.js.map → chunk-RLIU3RM7.js.map} +0 -0
- /package/dist-node/{chunk-WSLT7ILY.js.map → chunk-VGI576RA.js.map} +0 -0
- /package/dist-node/{engine-WTNLTPJA.js.map → engine-JO72FQWP.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as Us } from "./blockRegistry-CGgu7-f7.js";
|
|
2
|
-
import { B as zs, a0 as Gn,
|
|
2
|
+
import { B as zs, a0 as Gn, O as Ks } from "./toc-C4oeGLWP.js";
|
|
3
3
|
import { c as qs, f as tt } from "./lists-BVCy5dMa.js";
|
|
4
4
|
import { m as de, f as ze, c as xe } from "./metrics--iKKpmQZ.js";
|
|
5
5
|
import { d as $s, f as Hn, M as ct, W as Ys, X as Dt, w as Js, o as Vs } from "./paintStyle-BldhHuSV.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { M as Q } from "./paintStyle-BldhHuSV.js";
|
|
2
|
-
import { i as ee, m as te } from "./wordcanvas-
|
|
3
|
-
import { p as j } from "./parse-
|
|
2
|
+
import { i as ee, m as te } from "./wordcanvas-mL3V3lME.js";
|
|
3
|
+
import { p as j } from "./parse-BBIeOUPD.js";
|
|
4
4
|
import { e as i, a as $ } from "./xmlWrite-DxSDwuaP.js";
|
|
5
|
-
import { G as re, O as oe, B as ae, A as ne, l as D } from "./latex-
|
|
6
|
-
import { e as ie } from "./engine-
|
|
7
|
-
import { p as ce } from "./editorApp-
|
|
5
|
+
import { G as re, O as oe, B as ae, A as ne, l as D } from "./latex-BXHY96IY.js";
|
|
6
|
+
import { e as ie } from "./engine-CDHZLDvx.js";
|
|
7
|
+
import { p as ce } from "./editorApp-CRXveGOd.js";
|
|
8
8
|
const se = "http://www.w3.org/1998/Math/MathML";
|
|
9
9
|
function Z(e) {
|
|
10
10
|
return i(
|
package/dist-lib/export.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { r as x } from "./pipeline-
|
|
2
|
-
import "./measureHost-
|
|
1
|
+
import { r as x } from "./pipeline-CsIYBlrl.js";
|
|
2
|
+
import "./measureHost-CIzjksid.js";
|
|
3
3
|
import "./paintStyle-BldhHuSV.js";
|
|
4
|
-
import "./engine-
|
|
5
|
-
import "./recalcToc-
|
|
4
|
+
import "./engine-CDHZLDvx.js";
|
|
5
|
+
import "./recalcToc-4YmgOJlg.js";
|
|
6
6
|
export {
|
|
7
7
|
x as runExport
|
|
8
8
|
};
|
package/dist-lib/generate-toc.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { u as G, s as C, a as R, z as M } from "./browser-ODPzT3Lm.js";
|
|
2
|
-
import { p as H, k as K, t as q, l as J, m as Q } from "./toc-
|
|
2
|
+
import { p as H, k as K, t as q, l as J, m as Q } from "./toc-C4oeGLWP.js";
|
|
3
3
|
import { f as V } from "./contentTypes-CURyJGOC.js";
|
|
4
|
-
import { r as N } from "./pipeline-
|
|
5
|
-
import { c as Y } from "./engine-
|
|
6
|
-
import { p as Z } from "./recalcToc-
|
|
7
|
-
import { r as tt, p as et } from "./styleProps-
|
|
4
|
+
import { r as N } from "./pipeline-BR9aUw6T.js";
|
|
5
|
+
import { c as Y } from "./engine-CDHZLDvx.js";
|
|
6
|
+
import { p as Z } from "./recalcToc-4YmgOJlg.js";
|
|
7
|
+
import { r as tt, p as et } from "./styleProps-hQ-xcGCW.js";
|
|
8
8
|
import { e as d, t as T, a as nt } from "./xmlWrite-DxSDwuaP.js";
|
|
9
9
|
const b = (t) => d("w:r", void 0, d("w:fldChar", { "w:fldCharType": t })), j = (t) => d("w:r", void 0, d("w:instrText", { "xml:space": "preserve" }, nt(t)));
|
|
10
10
|
function rt(t, a, s) {
|
package/dist-lib/import.js
CHANGED
package/dist-lib/measure.js
CHANGED
|
@@ -14660,7 +14660,12 @@ function p2() {
|
|
|
14660
14660
|
getContext() {
|
|
14661
14661
|
return new Gr();
|
|
14662
14662
|
}
|
|
14663
|
-
}
|
|
14663
|
+
};
|
|
14664
|
+
try {
|
|
14665
|
+
i.document = { createElement: () => ({ getContext: () => new Gr() }), body: null };
|
|
14666
|
+
} catch {
|
|
14667
|
+
}
|
|
14668
|
+
pi(new Gr());
|
|
14664
14669
|
})(), E0);
|
|
14665
14670
|
}
|
|
14666
14671
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as M, a2 as _, a as z, D as F } from "./toc-
|
|
2
|
-
import { r as v, s as L } from "./stylesheet-
|
|
1
|
+
import { i as M, a2 as _, a as z, D as F } from "./toc-C4oeGLWP.js";
|
|
2
|
+
import { r as v, s as L } from "./stylesheet-oa_qg3op.js";
|
|
3
3
|
import { a as I, l as H } from "./contentTypes-CURyJGOC.js";
|
|
4
|
-
import { d as x, g as h, h as w, l as y, t as g } from "./pipeline-
|
|
4
|
+
import { d as x, g as h, h as w, l as y, t as g } from "./pipeline-BR9aUw6T.js";
|
|
5
5
|
function P(t) {
|
|
6
6
|
const e = M(t), r = t.rows.length, n = Array.from(
|
|
7
7
|
{ length: r },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Qt, a3 as Le, A as te,
|
|
1
|
+
import { t as Qt, a3 as Le, A as te, Q as Oe, a4 as De } from "./toc-C4oeGLWP.js";
|
|
2
2
|
import { l as He, e as u, b as g, n as k, i as Te, o as $, c as nt, v as ft, r as wt, p as kt, I as It, d as rt, g as xt, t as At, f as We, W as Ge } from "./contentTypes-CURyJGOC.js";
|
|
3
3
|
import { u as _t, s as je } from "./browser-ODPzT3Lm.js";
|
|
4
4
|
function Se() {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { a as $e } from "./index-DEq3oXQF.js";
|
|
2
|
-
import { c as Rt, g as kr, a as nc, $ as ic, b as Ba, r as Uf, d as zf, i as qf, e as Ma, s as ac } from "./measureHost-
|
|
2
|
+
import { c as Rt, g as kr, a as nc, $ as ic, b as Ba, r as Uf, d as zf, i as qf, e as Ma, s as ac } from "./measureHost-CIzjksid.js";
|
|
3
3
|
import { _ as oc, f as nt } from "./__vite-browser-external-BYRIRx8p.js";
|
|
4
|
-
import { a as sc, k as fc, t as lc, p as cc, l as uc } from "./toc-
|
|
4
|
+
import { a as sc, k as fc, t as lc, p as cc, l as uc } from "./toc-C4oeGLWP.js";
|
|
5
5
|
import { p as La, g as hc, n as Da, h as Na, T as dc, i as ja, l as pc, j as gc, I as xc, D as yc, t as Ua, k as ta, U as za, s as qa, r as mc, Z as bc, w as wc, m as vc, v as _c, x as Sc, M as Ec, y as Ac, u as Tc, z as Pc, B as Rc, o as Rr, V as $f, q as Cc, a as Oc, b as Fc, e as Ic, $ as Wf, H as kc, A as Bc, C as Mc } from "./paintStyle-BldhHuSV.js";
|
|
6
6
|
import { g as Hf } from "./blockRegistry-CGgu7-f7.js";
|
|
7
7
|
import { a as Lc, z as Dc } from "./browser-ODPzT3Lm.js";
|
|
8
|
-
import { h as Gf, a as Je, r as Br, b as Nc, c as jc, s as ua, d as Zf, p as Uc, e as dr, f as Gt, g as Xf, i as zc, t as qc } from "./styleProps-
|
|
8
|
+
import { h as Gf, a as Je, r as Br, b as Nc, c as jc, s as ua, d as Zf, p as Uc, e as dr, f as Gt, g as Xf, i as zc, t as qc } from "./styleProps-hQ-xcGCW.js";
|
|
9
9
|
import { e as $, X as vt, a as Vf, W as Wt, t as Kf } from "./xmlWrite-DxSDwuaP.js";
|
|
10
|
-
import { a as $c } from "./stylesheet-
|
|
11
|
-
import { c as Wc } from "./engine-
|
|
12
|
-
import { p as Hc } from "./recalcToc-
|
|
10
|
+
import { a as $c } from "./stylesheet-oa_qg3op.js";
|
|
11
|
+
import { c as Wc } from "./engine-CDHZLDvx.js";
|
|
12
|
+
import { p as Hc } from "./recalcToc-4YmgOJlg.js";
|
|
13
13
|
var pr = { exports: {} }, $a;
|
|
14
14
|
function ha() {
|
|
15
15
|
if ($a) return pr.exports;
|
|
@@ -14322,7 +14322,7 @@ async function ip(e, t = {}) {
|
|
|
14322
14322
|
}
|
|
14323
14323
|
async function ap(e, t, n) {
|
|
14324
14324
|
await qf();
|
|
14325
|
-
const { createLayoutEngine: r } = await import("./engine-
|
|
14325
|
+
const { createLayoutEngine: r } = await import("./engine-CDHZLDvx.js").then((x) => x.a), i = r(n, t.cjk).layout(e), a = new Gl(), o = t.images ?? {}, s = new Wr({ autoFirstPage: !1, compress: !0, font: !1 }), f = sp(s), d = /* @__PURE__ */ new Set(), p = (x, y, A) => {
|
|
14326
14326
|
const O = Ma(x, y, A);
|
|
14327
14327
|
return d.has(O.file) || (s.registerFont(O.file, ea(O.bytes)), d.add(O.file), O.substituted && a.warn("font-substituted", x)), O.file;
|
|
14328
14328
|
}, h = /* @__PURE__ */ new Set();
|
package/dist-lib/query.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as R, B as v, f as Q, D as X, a as Z, c as O, n as tt, d as dt, e as z, h as ft, i as ut, j as F, r as et } from "./toc-
|
|
2
|
-
import { r as nt, c as ht } from "./engine-
|
|
1
|
+
import { t as R, B as v, f as Q, D as X, a as Z, c as O, n as tt, d as dt, e as z, h as ft, i as ut, j as F, r as et } from "./toc-C4oeGLWP.js";
|
|
2
|
+
import { r as nt, c as ht } from "./engine-CDHZLDvx.js";
|
|
3
3
|
import { c as pt } from "./lists-BVCy5dMa.js";
|
|
4
|
-
import { r as mt } from "./stylesheet-
|
|
4
|
+
import { r as mt } from "./stylesheet-oa_qg3op.js";
|
|
5
5
|
function _(o, t, e, n, s = []) {
|
|
6
6
|
for (const r of o)
|
|
7
7
|
if (n(r, t), e.cells && r.kind === "table")
|
package/dist-lib/recalc-docx.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u, s as f, a as m, z as g } from "./browser-ODPzT3Lm.js";
|
|
2
2
|
import { f as h } from "./contentTypes-CURyJGOC.js";
|
|
3
|
-
import { c as b } from "./engine-
|
|
4
|
-
import { p as k } from "./recalcToc-
|
|
3
|
+
import { c as b } from "./engine-CDHZLDvx.js";
|
|
4
|
+
import { p as k } from "./recalcToc-4YmgOJlg.js";
|
|
5
5
|
function w(r, a) {
|
|
6
6
|
const n = k(a), s = {};
|
|
7
7
|
for (const [o, i] of Object.entries(r.bookmarks ?? {})) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { e } from "./xmlWrite-DxSDwuaP.js";
|
|
2
|
-
import { a5 as p } from "./toc-
|
|
2
|
+
import { a5 as p } from "./toc-C4oeGLWP.js";
|
|
3
3
|
const u = (i) => Number.isFinite(i) ? i : 0, a = (i) => Math.round(u(i) * 15), h = (i) => Math.round(u(i) * 1.5), E = (i) => Math.round(u(i) * 9525), k = (i) => Math.max(2, Math.round(u(i) * 6)), v = (i) => Math.round(u(i) * 240), g = { left: "left", center: "center", right: "right", justify: "both" }, F = { left: "left", center: "center", right: "right", decimal: "decimal" }, B = { dot: "dot", dash: "hyphen", underscore: "underscore" }, d = (i) => i.replace(/^#/, "").toLowerCase();
|
|
4
4
|
function l(i, t) {
|
|
5
5
|
if (!t) return "";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as L, m as R } from "./wordcanvas-
|
|
1
|
+
import { i as L, m as R } from "./wordcanvas-mL3V3lME.js";
|
|
2
2
|
const z = ["Symbol", "Wingdings", "Wingdings 2", "Wingdings 3", "Webdings"], F = 61472, P = 61695, k = "cw-symbol-recent", N = 16, T = `
|
|
3
3
|
.cw-symp{position:fixed;z-index:1002;width:360px;max-width:94vw;background:#fff;border:1px solid #d0d5dd;border-radius:10px;box-shadow:0 12px 40px rgba(0,0,0,.22);font:13px/1.4 system-ui,sans-serif;color:#1a1a2e;display:flex;flex-direction:column;overflow:hidden;}
|
|
4
4
|
.cw-symp-head{display:flex;align-items:center;gap:6px;padding:9px 12px;background:#f5f7fa;border-bottom:1px solid #e6e9ee;font-weight:600;}
|