leiting-bim 2.1.43 → 2.1.48
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/leiting-bim.es.js +78 -78
- package/leiting-bim.umd.js +6 -6
- package/leitingbim.css +1 -1
- package/package.json +5 -3
package/leiting-bim.es.js
CHANGED
|
@@ -2190,7 +2190,7 @@ class pl {
|
|
|
2190
2190
|
if (ye(F, E) != Go)
|
|
2191
2191
|
throw new Error(pg);
|
|
2192
2192
|
gl(P, F, E + 6);
|
|
2193
|
-
const U = !!P.bitFlag.languageEncodingFlag, H = E + 46, L = H + P.filenameLength, b = L + P.extraFieldLength, v = Oe(F, E + 4), w = v >> 8 == 0, I = v >> 8 == 3, R = B.subarray(H, L), _ = Oe(F, E + 32), O = b + _, S = B.subarray(b, O), Q = U, z = U, K = ye(F, E + 38), ee = K & bs,
|
|
2193
|
+
const U = !!P.bitFlag.languageEncodingFlag, H = E + 46, L = H + P.filenameLength, b = L + P.extraFieldLength, v = Oe(F, E + 4), w = v >> 8 == 0, I = v >> 8 == 3, R = B.subarray(H, L), _ = Oe(F, E + 32), O = b + _, S = B.subarray(b, O), Q = U, z = U, K = ye(F, E + 38), ee = K & bs, ae = {
|
|
2194
2194
|
readOnly: !!(ee & Jh),
|
|
2195
2195
|
hidden: !!(ee & Zh),
|
|
2196
2196
|
system: !!(ee & ef),
|
|
@@ -2211,7 +2211,7 @@ class pl {
|
|
|
2211
2211
|
internalFileAttributes: Oe(F, E + 36),
|
|
2212
2212
|
externalFileAttributes: K,
|
|
2213
2213
|
msdosAttributesRaw: ee,
|
|
2214
|
-
msdosAttributes:
|
|
2214
|
+
msdosAttributes: ae,
|
|
2215
2215
|
rawFilename: R,
|
|
2216
2216
|
filenameUTF8: Q,
|
|
2217
2217
|
commentUTF8: z,
|
|
@@ -2231,7 +2231,7 @@ class pl {
|
|
|
2231
2231
|
internalFileAttribute: P.internalFileAttributes,
|
|
2232
2232
|
externalFileAttribute: P.externalFileAttributes,
|
|
2233
2233
|
executable: kt,
|
|
2234
|
-
directory: Ft || Ki || w &&
|
|
2234
|
+
directory: Ft || Ki || w && ae.directory || fe.endsWith(af) && !P.uncompressedSize,
|
|
2235
2235
|
zipCrypto: P.encrypted && !P.extraFieldAES
|
|
2236
2236
|
});
|
|
2237
2237
|
const Rt = new sr(P);
|
|
@@ -2323,7 +2323,7 @@ class Eg {
|
|
|
2323
2323
|
const { onstart: S, onprogress: Q, onend: z } = s, K = h == _o;
|
|
2324
2324
|
let ee = Qe(o, s, cg);
|
|
2325
2325
|
K && (ee = !1);
|
|
2326
|
-
const
|
|
2326
|
+
const ae = {
|
|
2327
2327
|
options: {
|
|
2328
2328
|
codecType: Xa,
|
|
2329
2329
|
password: T,
|
|
@@ -2362,7 +2362,7 @@ class Eg {
|
|
|
2362
2362
|
try {
|
|
2363
2363
|
if (!O) {
|
|
2364
2364
|
R && (e = new WritableStream()), e = new dp(e), await Cn(e, p ? y : A), { writable: be } = e;
|
|
2365
|
-
const { outputSize: Y } = await ip({ readable: w, writable: be },
|
|
2365
|
+
const { outputSize: Y } = await ip({ readable: w, writable: be }, ae);
|
|
2366
2366
|
if (e.size += Y, Y != (p ? y : A))
|
|
2367
2367
|
throw new Error(Va);
|
|
2368
2368
|
}
|
|
@@ -8893,14 +8893,14 @@ function bl(i) {
|
|
|
8893
8893
|
function yr(i, e) {
|
|
8894
8894
|
i || bl(e);
|
|
8895
8895
|
}
|
|
8896
|
-
const
|
|
8896
|
+
const le = { fail: bl, argument: yr, assert: yr }, vr = 32768, Cr = 2147483648, fi = {}, j = {}, se = {};
|
|
8897
8897
|
function ot(i) {
|
|
8898
8898
|
return function() {
|
|
8899
8899
|
return i;
|
|
8900
8900
|
};
|
|
8901
8901
|
}
|
|
8902
8902
|
j.BYTE = function(i) {
|
|
8903
|
-
return
|
|
8903
|
+
return le.argument(i >= 0 && i <= 255, "Byte value should be between 0 and 255."), [i];
|
|
8904
8904
|
};
|
|
8905
8905
|
se.BYTE = ot(1);
|
|
8906
8906
|
j.CHAR = function(i) {
|
|
@@ -8947,7 +8947,7 @@ j.LONGDATETIME = function(i) {
|
|
|
8947
8947
|
};
|
|
8948
8948
|
se.LONGDATETIME = ot(8);
|
|
8949
8949
|
j.TAG = function(i) {
|
|
8950
|
-
return
|
|
8950
|
+
return le.argument(i.length === 4, "Tag should be exactly 4 ASCII characters."), [
|
|
8951
8951
|
i.charCodeAt(0),
|
|
8952
8952
|
i.charCodeAt(1),
|
|
8953
8953
|
i.charCodeAt(2),
|
|
@@ -9213,7 +9213,7 @@ j.OPERAND = function(i, e) {
|
|
|
9213
9213
|
let t = [];
|
|
9214
9214
|
if (Array.isArray(e))
|
|
9215
9215
|
for (let n = 0; n < e.length; n += 1)
|
|
9216
|
-
|
|
9216
|
+
le.argument(i.length === e.length, "Not enough arguments given for type" + e), t = t.concat(j.OPERAND(i[n], e[n]));
|
|
9217
9217
|
else if (e === "SID")
|
|
9218
9218
|
t = t.concat(j.NUMBER(i));
|
|
9219
9219
|
else if (e === "offset")
|
|
@@ -9248,18 +9248,18 @@ se.CHARSTRING = function(i) {
|
|
|
9248
9248
|
};
|
|
9249
9249
|
j.OBJECT = function(i) {
|
|
9250
9250
|
const e = j[i.type];
|
|
9251
|
-
return
|
|
9251
|
+
return le.argument(e !== void 0, "No encoding function for type " + i.type), e(i.value);
|
|
9252
9252
|
};
|
|
9253
9253
|
se.OBJECT = function(i) {
|
|
9254
9254
|
const e = se[i.type];
|
|
9255
|
-
return
|
|
9255
|
+
return le.argument(e !== void 0, "No sizeOf function for type " + i.type), e(i.value);
|
|
9256
9256
|
};
|
|
9257
9257
|
j.TABLE = function(i) {
|
|
9258
9258
|
let e = [];
|
|
9259
9259
|
const t = i.fields.length, n = [], s = [];
|
|
9260
9260
|
for (let o = 0; o < t; o += 1) {
|
|
9261
9261
|
const r = i.fields[o], l = j[r.type];
|
|
9262
|
-
|
|
9262
|
+
le.argument(l !== void 0, "No encoding function for field type " + r.type + " (" + r.name + ")");
|
|
9263
9263
|
let a = i[r.name];
|
|
9264
9264
|
a === void 0 && (a = r.value);
|
|
9265
9265
|
const c = l(a);
|
|
@@ -9267,7 +9267,7 @@ j.TABLE = function(i) {
|
|
|
9267
9267
|
}
|
|
9268
9268
|
for (let o = 0; o < n.length; o += 1) {
|
|
9269
9269
|
const r = s[o], l = e.length;
|
|
9270
|
-
|
|
9270
|
+
le.argument(l < 65536, "Table " + i.tableName + " too big."), e[r] = l >> 8, e[r + 1] = l & 255, e = e.concat(n[o]);
|
|
9271
9271
|
}
|
|
9272
9272
|
return e;
|
|
9273
9273
|
};
|
|
@@ -9276,7 +9276,7 @@ se.TABLE = function(i) {
|
|
|
9276
9276
|
const t = i.fields.length;
|
|
9277
9277
|
for (let n = 0; n < t; n += 1) {
|
|
9278
9278
|
const s = i.fields[n], o = se[s.type];
|
|
9279
|
-
|
|
9279
|
+
le.argument(o !== void 0, "No sizeOf function for field type " + s.type + " (" + s.name + ")");
|
|
9280
9280
|
let r = i[s.name];
|
|
9281
9281
|
r === void 0 && (r = s.value), e += o(r), s.type === "TABLE" && (e += 2);
|
|
9282
9282
|
}
|
|
@@ -9337,7 +9337,7 @@ function wn(i) {
|
|
|
9337
9337
|
this,
|
|
9338
9338
|
"coverageTable",
|
|
9339
9339
|
[{ name: "coverageFormat", type: "USHORT", value: 1 }].concat(Qi("glyph", i.glyphs))
|
|
9340
|
-
) :
|
|
9340
|
+
) : le.assert(!1, "Can't create coverage table format 2 yet.");
|
|
9341
9341
|
}
|
|
9342
9342
|
wn.prototype = Object.create(Ge.prototype);
|
|
9343
9343
|
wn.prototype.constructor = wn;
|
|
@@ -9348,7 +9348,7 @@ function En(i) {
|
|
|
9348
9348
|
bn("scriptRecord", i, function(e, t) {
|
|
9349
9349
|
const n = e.script;
|
|
9350
9350
|
let s = n.defaultLangSys;
|
|
9351
|
-
return
|
|
9351
|
+
return le.assert(!!s, "Unable to write GSUB: script " + e.tag + " has no default language system."), [
|
|
9352
9352
|
{ name: "scriptTag" + t, type: "TAG", value: e.tag },
|
|
9353
9353
|
{ name: "script" + t, type: "TABLE", value: new Ge("scriptTable", [
|
|
9354
9354
|
{ name: "defaultLangSys", type: "TABLE", value: new Ge("defaultLangSys", [
|
|
@@ -9391,7 +9391,7 @@ xn.prototype.constructor = xn;
|
|
|
9391
9391
|
function In(i, e) {
|
|
9392
9392
|
Ge.call(this, "lookupListTable", Ts("lookup", i, function(t) {
|
|
9393
9393
|
let n = e[t.lookupType];
|
|
9394
|
-
return
|
|
9394
|
+
return le.assert(!!n, "Unable to write GSUB lookup type " + t.lookupType + " tables."), new Ge("lookupTable", [
|
|
9395
9395
|
{ name: "lookupType", type: "USHORT", value: t.lookupType },
|
|
9396
9396
|
{ name: "lookupFlag", type: "USHORT", value: t.lookupFlag }
|
|
9397
9397
|
].concat(Ts("subtable", t.subtables, n)));
|
|
@@ -9748,7 +9748,7 @@ G.prototype.parseFeatureList = function() {
|
|
|
9748
9748
|
G.prototype.parseLookupList = function(i) {
|
|
9749
9749
|
return this.parsePointer(G.list(G.pointer(function() {
|
|
9750
9750
|
const e = this.parseUShort();
|
|
9751
|
-
|
|
9751
|
+
le.argument(1 <= e && e <= 9, "GPOS/GSUB lookup type " + e + " unknown.");
|
|
9752
9752
|
const t = this.parseUShort(), n = t & 16;
|
|
9753
9753
|
return {
|
|
9754
9754
|
lookupType: e,
|
|
@@ -9761,7 +9761,7 @@ G.prototype.parseLookupList = function(i) {
|
|
|
9761
9761
|
G.prototype.parseFeatureVariationsList = function() {
|
|
9762
9762
|
return this.parsePointer32(function() {
|
|
9763
9763
|
const i = this.parseUShort(), e = this.parseUShort();
|
|
9764
|
-
return
|
|
9764
|
+
return le.argument(i === 1 && e < 1, "GPOS/GSUB feature variations table unknown."), this.parseRecordList32({
|
|
9765
9765
|
conditionSetOffset: G.offset32,
|
|
9766
9766
|
featureTableSubstitutionOffset: G.offset32
|
|
9767
9767
|
});
|
|
@@ -9807,7 +9807,7 @@ function EA(i, e, t, n, s) {
|
|
|
9807
9807
|
}
|
|
9808
9808
|
function xA(i, e) {
|
|
9809
9809
|
const t = {};
|
|
9810
|
-
t.version = J.getUShort(i, e),
|
|
9810
|
+
t.version = J.getUShort(i, e), le.argument(t.version === 0, "cmap table version should be 0."), t.numTables = J.getUShort(i, e + 2);
|
|
9811
9811
|
let n = -1;
|
|
9812
9812
|
for (let o = t.numTables - 1; o >= 0; o -= 1) {
|
|
9813
9813
|
const r = J.getUShort(i, e + 4 + o * 8), l = J.getUShort(i, e + 4 + o * 8 + 2);
|
|
@@ -11201,7 +11201,7 @@ tt.prototype.getContours = function() {
|
|
|
11201
11201
|
const n = this.points[t];
|
|
11202
11202
|
e.push(n), n.lastPointOfContour && (i.push(e), e = []);
|
|
11203
11203
|
}
|
|
11204
|
-
return
|
|
11204
|
+
return le.argument(e.length === 0, "There are still points left in the current contour."), i;
|
|
11205
11205
|
};
|
|
11206
11206
|
tt.prototype.getMetrics = function() {
|
|
11207
11207
|
const i = this.path.commands, e = [], t = [];
|
|
@@ -11847,7 +11847,7 @@ function em(i, e) {
|
|
|
11847
11847
|
const Rl = { parse: WA, make: em };
|
|
11848
11848
|
function tm(i, e) {
|
|
11849
11849
|
const t = {}, n = new J.Parser(i, e);
|
|
11850
|
-
return t.version = n.parseVersion(), t.fontRevision = Math.round(n.parseFixed() * 1e3) / 1e3, t.checkSumAdjustment = n.parseULong(), t.magicNumber = n.parseULong(),
|
|
11850
|
+
return t.version = n.parseVersion(), t.fontRevision = Math.round(n.parseFixed() * 1e3) / 1e3, t.checkSumAdjustment = n.parseULong(), t.magicNumber = n.parseULong(), le.argument(t.magicNumber === 1594834165, "Font header has wrong magic number."), t.flags = n.parseUShort(), t.unitsPerEm = n.parseUShort(), t.created = n.parseLongDateTime(), t.modified = n.parseLongDateTime(), t.xMin = n.parseShort(), t.yMin = n.parseShort(), t.xMax = n.parseShort(), t.yMax = n.parseShort(), t.macStyle = n.parseUShort(), t.lowestRecPPEM = n.parseUShort(), t.fontDirectionHint = n.parseShort(), t.indexToLocFormat = n.parseShort(), t.glyphDataFormat = n.parseShort(), t;
|
|
11851
11851
|
}
|
|
11852
11852
|
function im(i) {
|
|
11853
11853
|
const e = Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3) + 2082844800;
|
|
@@ -11933,7 +11933,7 @@ function am(i) {
|
|
|
11933
11933
|
}
|
|
11934
11934
|
function lm(i, e) {
|
|
11935
11935
|
const t = new J.Parser(i, e), n = t.parseULong();
|
|
11936
|
-
|
|
11936
|
+
le.argument(n === 1, "Unsupported ltag table version."), t.skip("uLong", 1);
|
|
11937
11937
|
const s = t.parseULong(), o = [];
|
|
11938
11938
|
for (let r = 0; r < s; r++) {
|
|
11939
11939
|
let l = "";
|
|
@@ -13166,11 +13166,11 @@ nt[1] = function() {
|
|
|
13166
13166
|
coverage: this.parsePointer(G.coverage),
|
|
13167
13167
|
substitute: this.parseOffset16List()
|
|
13168
13168
|
};
|
|
13169
|
-
|
|
13169
|
+
le.assert(!1, "0x" + e.toString(16) + ": lookup type 1 format must be 1 or 2.");
|
|
13170
13170
|
};
|
|
13171
13171
|
nt[2] = function() {
|
|
13172
13172
|
const e = this.parseUShort();
|
|
13173
|
-
return
|
|
13173
|
+
return le.argument(e === 1, "GSUB Multiple Substitution Subtable identifier-format must be 1"), {
|
|
13174
13174
|
substFormat: e,
|
|
13175
13175
|
coverage: this.parsePointer(G.coverage),
|
|
13176
13176
|
sequences: this.parseListOfLists()
|
|
@@ -13178,7 +13178,7 @@ nt[2] = function() {
|
|
|
13178
13178
|
};
|
|
13179
13179
|
nt[3] = function() {
|
|
13180
13180
|
const e = this.parseUShort();
|
|
13181
|
-
return
|
|
13181
|
+
return le.argument(e === 1, "GSUB Alternate Substitution Subtable identifier-format must be 1"), {
|
|
13182
13182
|
substFormat: e,
|
|
13183
13183
|
coverage: this.parsePointer(G.coverage),
|
|
13184
13184
|
alternateSets: this.parseListOfLists()
|
|
@@ -13186,7 +13186,7 @@ nt[3] = function() {
|
|
|
13186
13186
|
};
|
|
13187
13187
|
nt[4] = function() {
|
|
13188
13188
|
const e = this.parseUShort();
|
|
13189
|
-
return
|
|
13189
|
+
return le.argument(e === 1, "GSUB ligature table identifier-format must be 1"), {
|
|
13190
13190
|
substFormat: e,
|
|
13191
13191
|
coverage: this.parsePointer(G.coverage),
|
|
13192
13192
|
ligatureSets: this.parseListOfLists(function() {
|
|
@@ -13236,7 +13236,7 @@ nt[5] = function() {
|
|
|
13236
13236
|
lookupRecords: this.parseRecordList(s, di)
|
|
13237
13237
|
};
|
|
13238
13238
|
}
|
|
13239
|
-
|
|
13239
|
+
le.assert(!1, "0x" + e.toString(16) + ": lookup type 5 format must be 1, 2 or 3.");
|
|
13240
13240
|
};
|
|
13241
13241
|
nt[6] = function() {
|
|
13242
13242
|
const e = this.offset + this.relativeOffset, t = this.parseUShort();
|
|
@@ -13277,11 +13277,11 @@ nt[6] = function() {
|
|
|
13277
13277
|
lookaheadCoverage: this.parseList(G.pointer(G.coverage)),
|
|
13278
13278
|
lookupRecords: this.parseRecordList(di)
|
|
13279
13279
|
};
|
|
13280
|
-
|
|
13280
|
+
le.assert(!1, "0x" + e.toString(16) + ": lookup type 6 format must be 1, 2 or 3.");
|
|
13281
13281
|
};
|
|
13282
13282
|
nt[7] = function() {
|
|
13283
13283
|
const e = this.parseUShort();
|
|
13284
|
-
|
|
13284
|
+
le.argument(e === 1, "GSUB Extension Substitution subtable identifier-format must be 1");
|
|
13285
13285
|
const t = this.parseUShort(), n = new G(this.data, this.offset + this.parseULong());
|
|
13286
13286
|
return {
|
|
13287
13287
|
substFormat: 1,
|
|
@@ -13291,7 +13291,7 @@ nt[7] = function() {
|
|
|
13291
13291
|
};
|
|
13292
13292
|
nt[8] = function() {
|
|
13293
13293
|
const e = this.parseUShort();
|
|
13294
|
-
return
|
|
13294
|
+
return le.argument(e === 1, "GSUB Reverse Chaining Contextual Single Substitution Subtable identifier-format must be 1"), {
|
|
13295
13295
|
substFormat: e,
|
|
13296
13296
|
coverage: this.parsePointer(G.coverage),
|
|
13297
13297
|
backtrackCoverage: this.parseList(G.pointer(G.coverage)),
|
|
@@ -13302,7 +13302,7 @@ nt[8] = function() {
|
|
|
13302
13302
|
function Em(i, e) {
|
|
13303
13303
|
e = e || 0;
|
|
13304
13304
|
const t = new G(i, e), n = t.parseVersion(1);
|
|
13305
|
-
return
|
|
13305
|
+
return le.argument(n === 1 || n === 1.1, "Unsupported GSUB table version."), n === 1 ? {
|
|
13306
13306
|
version: n,
|
|
13307
13307
|
scripts: t.parseScriptList(),
|
|
13308
13308
|
features: t.parseFeatureList(),
|
|
@@ -13327,7 +13327,7 @@ On[1] = function(e) {
|
|
|
13327
13327
|
].concat(ie.ushortList("substitute", e.substitute)));
|
|
13328
13328
|
};
|
|
13329
13329
|
On[3] = function(e) {
|
|
13330
|
-
return
|
|
13330
|
+
return le.assert(e.substFormat === 1, "Lookup type 3 substFormat must be 1."), new ie.Table("substitutionTable", [
|
|
13331
13331
|
{ name: "substFormat", type: "USHORT", value: 1 },
|
|
13332
13332
|
{ name: "coverage", type: "TABLE", value: new ie.Coverage(e.coverage) }
|
|
13333
13333
|
].concat(ie.tableList("altSet", e.alternateSets, function(t) {
|
|
@@ -13335,7 +13335,7 @@ On[3] = function(e) {
|
|
|
13335
13335
|
})));
|
|
13336
13336
|
};
|
|
13337
13337
|
On[4] = function(e) {
|
|
13338
|
-
return
|
|
13338
|
+
return le.assert(e.substFormat === 1, "Lookup type 4 substFormat must be 1."), new ie.Table("substitutionTable", [
|
|
13339
13339
|
{ name: "substFormat", type: "USHORT", value: 1 },
|
|
13340
13340
|
{ name: "coverage", type: "TABLE", value: new ie.Coverage(e.coverage) }
|
|
13341
13341
|
].concat(ie.tableList("ligSet", e.ligatureSets, function(t) {
|
|
@@ -13358,7 +13358,7 @@ function xm(i) {
|
|
|
13358
13358
|
const jl = { parse: Em, make: xm };
|
|
13359
13359
|
function Im(i, e) {
|
|
13360
13360
|
const t = new J.Parser(i, e), n = t.parseULong();
|
|
13361
|
-
|
|
13361
|
+
le.argument(n === 1, "Unsupported META table version."), t.parseULong(), t.parseULong();
|
|
13362
13362
|
const s = t.parseULong(), o = {};
|
|
13363
13363
|
for (let r = 0; r < s; r++) {
|
|
13364
13364
|
const l = t.parseTag(), a = t.parseULong(), c = t.parseULong(), u = fi.UTF8(i, e + a, c);
|
|
@@ -13418,9 +13418,9 @@ function Kl(i) {
|
|
|
13418
13418
|
o += 1, s.push({ name: "padding", type: "BYTE", value: 0 });
|
|
13419
13419
|
for (let r = 0; r < i.length; r += 1) {
|
|
13420
13420
|
const l = i[r];
|
|
13421
|
-
|
|
13421
|
+
le.argument(l.tableName.length === 4, "Table name" + l.tableName + " is invalid.");
|
|
13422
13422
|
const a = l.sizeOf(), c = Mr(l.tableName, to(l.encode()), o, a);
|
|
13423
|
-
for (n.push({ name: c.tag + " Table Record", type: "RECORD", value: c }), s.push({ name: l.tableName + " table", type: "RECORD", value: l }), o += a,
|
|
13423
|
+
for (n.push({ name: c.tag + " Table Record", type: "RECORD", value: c }), s.push({ name: l.tableName + " table", type: "RECORD", value: l }), o += a, le.argument(!isNaN(o), "Something went wrong calculating the offset."); o % 4 !== 0; )
|
|
13424
13424
|
o += 1, s.push({ name: "padding", type: "BYTE", value: 0 });
|
|
13425
13425
|
}
|
|
13426
13426
|
return n.sort(function(r, l) {
|
|
@@ -13717,7 +13717,7 @@ Hi.prototype = {
|
|
|
13717
13717
|
return o.feature;
|
|
13718
13718
|
if (n) {
|
|
13719
13719
|
const a = l.length;
|
|
13720
|
-
return
|
|
13720
|
+
return le.assert(a === 0 || t >= l[a - 1].tag, "Features must be added in alphabetical order."), o = {
|
|
13721
13721
|
tag: t,
|
|
13722
13722
|
feature: { params: 0, lookupListIndexes: [] }
|
|
13723
13723
|
}, l.push(o), r.push(a), o.feature;
|
|
@@ -13943,7 +13943,7 @@ rt.prototype.addSingle = function(i, e, t, n) {
|
|
|
13943
13943
|
coverage: { format: 1, glyphs: [] },
|
|
13944
13944
|
substitute: []
|
|
13945
13945
|
});
|
|
13946
|
-
|
|
13946
|
+
le.assert(o.coverage.format === 1, "Ligature: unable to modify coverage table format " + o.coverage.format);
|
|
13947
13947
|
const r = e.sub;
|
|
13948
13948
|
let l = this.binSearch(o.coverage.glyphs, r);
|
|
13949
13949
|
l < 0 && (l = -1 - l, o.coverage.glyphs.splice(l, 0, r), o.substitute.splice(l, 0, 0)), o.substitute[l] = e.by;
|
|
@@ -13955,7 +13955,7 @@ rt.prototype.addAlternate = function(i, e, t, n) {
|
|
|
13955
13955
|
coverage: { format: 1, glyphs: [] },
|
|
13956
13956
|
alternateSets: []
|
|
13957
13957
|
});
|
|
13958
|
-
|
|
13958
|
+
le.assert(o.coverage.format === 1, "Ligature: unable to modify coverage table format " + o.coverage.format);
|
|
13959
13959
|
const r = e.sub;
|
|
13960
13960
|
let l = this.binSearch(o.coverage.glyphs, r);
|
|
13961
13961
|
l < 0 && (l = -1 - l, o.coverage.glyphs.splice(l, 0, r), o.alternateSets.splice(l, 0, 0)), o.alternateSets[l] = e.by;
|
|
@@ -13968,7 +13968,7 @@ rt.prototype.addLigature = function(i, e, t, n) {
|
|
|
13968
13968
|
substFormat: 1,
|
|
13969
13969
|
coverage: { format: 1, glyphs: [] },
|
|
13970
13970
|
ligatureSets: []
|
|
13971
|
-
}, s.subtables[0] = o),
|
|
13971
|
+
}, s.subtables[0] = o), le.assert(o.coverage.format === 1, "Ligature: unable to modify coverage table format " + o.coverage.format);
|
|
13972
13972
|
const r = e.sub[0], l = e.sub.slice(1), a = {
|
|
13973
13973
|
ligGlyph: e.by,
|
|
13974
13974
|
components: l
|
|
@@ -14051,7 +14051,7 @@ function Rm(i, e, t) {
|
|
|
14051
14051
|
for (let u = 0; u < c; u += 1)
|
|
14052
14052
|
s.push(o), a += 1;
|
|
14053
14053
|
}
|
|
14054
|
-
if (
|
|
14054
|
+
if (le.argument(s.length === l, "Bad flags."), r.length > 0) {
|
|
14055
14055
|
const a = [];
|
|
14056
14056
|
let c;
|
|
14057
14057
|
if (l > 0) {
|
|
@@ -14112,7 +14112,7 @@ function Om(i) {
|
|
|
14112
14112
|
const s = i[n];
|
|
14113
14113
|
t.push(s), s.lastPointOfContour && (e.push(t), t = []);
|
|
14114
14114
|
}
|
|
14115
|
-
return
|
|
14115
|
+
return le.argument(t.length === 0, "There are still points left in the current contour."), e;
|
|
14116
14116
|
}
|
|
14117
14117
|
function Xl(i) {
|
|
14118
14118
|
const e = new Fe();
|
|
@@ -16005,7 +16005,7 @@ function y0(i, e) {
|
|
|
16005
16005
|
}
|
|
16006
16006
|
function v0(i, e, t) {
|
|
16007
16007
|
const n = new J.Parser(i, e), s = n.parseULong();
|
|
16008
|
-
|
|
16008
|
+
le.argument(s === 65536, "Unsupported fvar table version.");
|
|
16009
16009
|
const o = n.parseOffset16();
|
|
16010
16010
|
n.skip("uShort", 1);
|
|
16011
16011
|
const r = n.parseUShort(), l = n.parseUShort(), a = n.parseUShort(), c = n.parseUShort(), u = [];
|
|
@@ -16031,11 +16031,11 @@ st[1] = function() {
|
|
|
16031
16031
|
coverage: this.parsePointer(G.coverage),
|
|
16032
16032
|
values: this.parseValueRecordList()
|
|
16033
16033
|
};
|
|
16034
|
-
|
|
16034
|
+
le.assert(!1, "0x" + e.toString(16) + ": GPOS lookup type 1 format must be 1 or 2.");
|
|
16035
16035
|
};
|
|
16036
16036
|
st[2] = function() {
|
|
16037
16037
|
const e = this.offset + this.relativeOffset, t = this.parseUShort();
|
|
16038
|
-
|
|
16038
|
+
le.assert(t === 1 || t === 2, "0x" + e.toString(16) + ": GPOS lookup type 2 format must be 1 or 2.");
|
|
16039
16039
|
const n = this.parsePointer(G.coverage), s = this.parseUShort(), o = this.parseUShort();
|
|
16040
16040
|
if (t === 1)
|
|
16041
16041
|
return {
|
|
@@ -16097,7 +16097,7 @@ st[9] = function() {
|
|
|
16097
16097
|
function b0(i, e) {
|
|
16098
16098
|
e = e || 0;
|
|
16099
16099
|
const t = new G(i, e), n = t.parseVersion(1);
|
|
16100
|
-
return
|
|
16100
|
+
return le.argument(n === 1 || n === 1.1, "Unsupported GPOS table version " + n), n === 1 ? {
|
|
16101
16101
|
version: n,
|
|
16102
16102
|
scripts: t.parseScriptList(),
|
|
16103
16103
|
features: t.parseFeatureList(),
|
|
@@ -16124,7 +16124,7 @@ function I0(i) {
|
|
|
16124
16124
|
const e = {};
|
|
16125
16125
|
i.skip("uShort");
|
|
16126
16126
|
const t = i.parseUShort();
|
|
16127
|
-
|
|
16127
|
+
le.argument(t === 0, "Unsupported kern sub-table version."), i.skip("uShort", 2);
|
|
16128
16128
|
const n = i.parseUShort();
|
|
16129
16129
|
i.skip("uShort", 3);
|
|
16130
16130
|
for (let s = 0; s < n; s += 1) {
|
|
@@ -20781,7 +20781,7 @@ function $0(i) {
|
|
|
20781
20781
|
a.Matrix4.multiply(z, S, z);
|
|
20782
20782
|
const K = new a.Cartesian3(R.x, R.y, 0), ee = new a.Cartesian3();
|
|
20783
20783
|
a.Matrix4.multiplyByPoint(z, K, ee);
|
|
20784
|
-
const
|
|
20784
|
+
const ae = a.Cartographic.fromCartesian(ee), be = _.box3?.Center?.x || 0, Y = _.box3?.Center?.y || 0, V = _.box3?.Center?.z || 0, ne = new a.Cartesian3(
|
|
20785
20785
|
-R.x + be,
|
|
20786
20786
|
-R.y + Y,
|
|
20787
20787
|
0 + V
|
|
@@ -20794,8 +20794,8 @@ function $0(i) {
|
|
|
20794
20794
|
de
|
|
20795
20795
|
);
|
|
20796
20796
|
const he = a.Cartesian3.fromDegrees(
|
|
20797
|
-
|
|
20798
|
-
|
|
20797
|
+
ae.longitude / Math.PI * 180,
|
|
20798
|
+
ae.latitude / Math.PI * 180,
|
|
20799
20799
|
b.height
|
|
20800
20800
|
), Re = a.Transforms.eastNorthUpToFixedFrame(he);
|
|
20801
20801
|
a.Matrix4.multiply(Re, de, Re);
|
|
@@ -20866,9 +20866,9 @@ function $0(i) {
|
|
|
20866
20866
|
v.height
|
|
20867
20867
|
), K = a.Transforms.eastNorthUpToFixedFrame(z);
|
|
20868
20868
|
a.Matrix4.multiply(K, Q, K);
|
|
20869
|
-
const ee = new a.Cartesian3(R.x, R.y, 0),
|
|
20870
|
-
a.Matrix4.multiplyByPoint(K, ee,
|
|
20871
|
-
const be = a.Cartographic.fromCartesian(
|
|
20869
|
+
const ee = new a.Cartesian3(R.x, R.y, 0), ae = new a.Cartesian3();
|
|
20870
|
+
a.Matrix4.multiplyByPoint(K, ee, ae);
|
|
20871
|
+
const be = a.Cartographic.fromCartesian(ae), Y = O.box3?.Center?.x || 0, V = O.box3?.Center?.y || 0, ne = O.box3?.Center?.z || 0, fe = new a.Cartesian3(
|
|
20872
20872
|
-R.x + Y,
|
|
20873
20873
|
-R.y + V,
|
|
20874
20874
|
0 + ne
|
|
@@ -22349,8 +22349,8 @@ const MC = { class: "adjust-panel" }, DC = { class: "control-panel" }, PC = { cl
|
|
|
22349
22349
|
const O = C();
|
|
22350
22350
|
let S = 0, Q = 0, z = 0;
|
|
22351
22351
|
if (O) {
|
|
22352
|
-
const { dLon: K, dLat: ee, dHeight:
|
|
22353
|
-
S = K, Q = ee, z =
|
|
22352
|
+
const { dLon: K, dLat: ee, dHeight: ae } = O.calculateOffset(d.value, f.value);
|
|
22353
|
+
S = K, Q = ee, z = ae;
|
|
22354
22354
|
} else
|
|
22355
22355
|
S = f.value.longitude - d.value.longitude, Q = f.value.latitude - d.value.latitude, z = f.value.height - d.value.height;
|
|
22356
22356
|
T.value.longitude += S, T.value.latitude += Q, T.value.height += z, v(c.value, {
|
|
@@ -22431,34 +22431,34 @@ const MC = { class: "adjust-panel" }, DC = { class: "control-panel" }, PC = { cl
|
|
|
22431
22431
|
}
|
|
22432
22432
|
const { lonlat: Q, heightDistance: z, rotation: K } = T.value;
|
|
22433
22433
|
S.forEach((ee) => {
|
|
22434
|
-
const
|
|
22434
|
+
const ae = { ...ee.formData };
|
|
22435
22435
|
switch (O) {
|
|
22436
22436
|
case "north":
|
|
22437
|
-
|
|
22437
|
+
ae.latitude += Q;
|
|
22438
22438
|
break;
|
|
22439
22439
|
case "south":
|
|
22440
|
-
|
|
22440
|
+
ae.latitude -= Q;
|
|
22441
22441
|
break;
|
|
22442
22442
|
case "east":
|
|
22443
|
-
|
|
22443
|
+
ae.longitude += Q;
|
|
22444
22444
|
break;
|
|
22445
22445
|
case "west":
|
|
22446
|
-
|
|
22446
|
+
ae.longitude -= Q;
|
|
22447
22447
|
break;
|
|
22448
22448
|
case "up":
|
|
22449
|
-
|
|
22449
|
+
ae.height += z;
|
|
22450
22450
|
break;
|
|
22451
22451
|
case "down":
|
|
22452
|
-
|
|
22452
|
+
ae.height -= z;
|
|
22453
22453
|
break;
|
|
22454
22454
|
case "rotateLeft":
|
|
22455
|
-
|
|
22455
|
+
ae.totalRotation = (ae.totalRotation || 0) + K;
|
|
22456
22456
|
break;
|
|
22457
22457
|
case "rotateRight":
|
|
22458
|
-
|
|
22458
|
+
ae.totalRotation = (ae.totalRotation || 0) - K;
|
|
22459
22459
|
break;
|
|
22460
22460
|
}
|
|
22461
|
-
ee.modelId === c.value && Object.assign(T.value,
|
|
22461
|
+
ee.modelId === c.value && (ae.lonlat = Q, ae.heightDistance = z, ae.rotation = K, Object.assign(T.value, ae)), v(ee.modelId, ae);
|
|
22462
22462
|
});
|
|
22463
22463
|
}, R = () => {
|
|
22464
22464
|
if (!c.value) {
|
|
@@ -22780,7 +22780,7 @@ const MC = { class: "adjust-panel" }, DC = { class: "control-panel" }, PC = { cl
|
|
|
22780
22780
|
_: 1
|
|
22781
22781
|
}, 8, ["visible", "full-height"]));
|
|
22782
22782
|
}
|
|
22783
|
-
}), _s = /* @__PURE__ */ qe(fb, [["__scopeId", "data-v-
|
|
22783
|
+
}), _s = /* @__PURE__ */ qe(fb, [["__scopeId", "data-v-3bfda484"]]);
|
|
22784
22784
|
function Tn() {
|
|
22785
22785
|
return Tn = Object.assign ? Object.assign.bind() : function(i) {
|
|
22786
22786
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -22939,7 +22939,7 @@ function dc() {
|
|
|
22939
22939
|
case h:
|
|
22940
22940
|
return R ? O(1, z) : O(0, z + 1);
|
|
22941
22941
|
case u:
|
|
22942
|
-
var
|
|
22942
|
+
var ae = this.$locale().weekStart || 0, be = (Q < ae ? Q + 7 : Q) - ae;
|
|
22943
22943
|
return O(R ? K - be : K + (6 - be), z);
|
|
22944
22944
|
case c:
|
|
22945
22945
|
case g:
|
|
@@ -22984,7 +22984,7 @@ function dc() {
|
|
|
22984
22984
|
}, b.format = function(v) {
|
|
22985
22985
|
var w = this, I = this.$locale();
|
|
22986
22986
|
if (!this.isValid()) return I.invalidDate || C;
|
|
22987
|
-
var R = v || "YYYY-MM-DDTHH:mm:ssZ", _ = P.z(this), O = this.$H, S = this.$m, Q = this.$M, z = I.weekdays, K = I.months, ee = I.meridiem,
|
|
22987
|
+
var R = v || "YYYY-MM-DDTHH:mm:ssZ", _ = P.z(this), O = this.$H, S = this.$m, Q = this.$M, z = I.weekdays, K = I.months, ee = I.meridiem, ae = function(V, ne, fe, de) {
|
|
22988
22988
|
return V && (V[ne] || V(w, R)) || fe[ne].slice(0, de);
|
|
22989
22989
|
}, be = function(V) {
|
|
22990
22990
|
return P.s(O % 12 || 12, V, "0");
|
|
@@ -23004,9 +23004,9 @@ function dc() {
|
|
|
23004
23004
|
case "MM":
|
|
23005
23005
|
return P.s(Q + 1, 2, "0");
|
|
23006
23006
|
case "MMM":
|
|
23007
|
-
return
|
|
23007
|
+
return ae(I.monthsShort, Q, K, 3);
|
|
23008
23008
|
case "MMMM":
|
|
23009
|
-
return
|
|
23009
|
+
return ae(K, Q);
|
|
23010
23010
|
case "D":
|
|
23011
23011
|
return w.$D;
|
|
23012
23012
|
case "DD":
|
|
@@ -23014,9 +23014,9 @@ function dc() {
|
|
|
23014
23014
|
case "d":
|
|
23015
23015
|
return String(w.$W);
|
|
23016
23016
|
case "dd":
|
|
23017
|
-
return
|
|
23017
|
+
return ae(I.weekdaysMin, w.$W, z, 2);
|
|
23018
23018
|
case "ddd":
|
|
23019
|
-
return
|
|
23019
|
+
return ae(I.weekdaysShort, w.$W, z, 3);
|
|
23020
23020
|
case "dddd":
|
|
23021
23021
|
return z[w.$W];
|
|
23022
23022
|
case "H":
|
|
@@ -23360,9 +23360,9 @@ function Fb() {
|
|
|
23360
23360
|
P && (H = p[2]), a = this.$locale(), !M && H && (a = E.Ls[H]), this.$d = (function(w, I, R, _) {
|
|
23361
23361
|
try {
|
|
23362
23362
|
if (["x", "X"].indexOf(I) > -1) return new Date((I === "X" ? 1e3 : 1) * w);
|
|
23363
|
-
var O = C(I)(w), S = O.year, Q = O.month, z = O.day, K = O.hours, ee = O.minutes,
|
|
23363
|
+
var O = C(I)(w), S = O.year, Q = O.month, z = O.day, K = O.hours, ee = O.minutes, ae = O.seconds, be = O.milliseconds, Y = O.zone, V = O.week, ne = /* @__PURE__ */ new Date(), fe = z || (S || Q ? 1 : ne.getDate()), de = S || ne.getFullYear(), he = 0;
|
|
23364
23364
|
S && !Q || (he = Q > 0 ? Q - 1 : ne.getMonth());
|
|
23365
|
-
var Re, Be = K || 0, Ne = ee || 0, kt =
|
|
23365
|
+
var Re, Be = K || 0, Ne = ee || 0, kt = ae || 0, Ft = be || 0;
|
|
23366
23366
|
return Y ? new Date(Date.UTC(de, he, fe, Be, Ne, kt, Ft + 60 * Y.offset * 1e3)) : R ? new Date(Date.UTC(de, he, fe, Be, Ne, kt, Ft)) : (Re = new Date(de, he, fe, Be, Ne, kt, Ft), V && (Re = _(Re).week(V).toDate()), Re);
|
|
23367
23367
|
} catch {
|
|
23368
23368
|
return /* @__PURE__ */ new Date("");
|
|
@@ -25107,7 +25107,7 @@ const ax = ["onClick"], lx = { class: "menu-label" }, cx = {
|
|
|
25107
25107
|
}), Z(y, (Y) => {
|
|
25108
25108
|
Y && (ee(), L.value && U.value.length && L.value.addGltfOr3dTilesModelList(U.value));
|
|
25109
25109
|
});
|
|
25110
|
-
const
|
|
25110
|
+
const ae = e, be = (Y) => {
|
|
25111
25111
|
I.value && I.value.saveCadCalibration && I.value.saveCadCalibration(Y), I.value && I.value.saveCadRegion && I.value.saveCadRegion(Y);
|
|
25112
25112
|
};
|
|
25113
25113
|
return Ve(async () => {
|
|
@@ -25322,11 +25322,11 @@ const ax = ["onClick"], lx = { class: "menu-label" }, cx = {
|
|
|
25322
25322
|
}), pt.push(...D.value), x({ x: Qn, y: _n }, pt);
|
|
25323
25323
|
}, Ot.ScreenSpaceEventType.RIGHT_CLICK), Me.insertContextMenu = M, Me.deleteContextMenu = P, Me.hideContextMenu = p;
|
|
25324
25324
|
const bo = de?.onLoaded || de?.onloaded;
|
|
25325
|
-
bo && bo({ Cesium: Ot, viewer: Jt, methods: qi }),
|
|
25325
|
+
bo && bo({ Cesium: Ot, viewer: Jt, methods: qi }), ae("init", { Cesium: Ot, viewer: Jt, methods: qi }), ae("ready", { Cesium: Ot, viewer: Jt, methods: qi });
|
|
25326
25326
|
}
|
|
25327
25327
|
};
|
|
25328
25328
|
let fe = !1;
|
|
25329
|
-
|
|
25329
|
+
ae("register", (de, he) => {
|
|
25330
25330
|
fe = !0, ne(de, he);
|
|
25331
25331
|
}), fe || setTimeout(() => {
|
|
25332
25332
|
I.value.getViewer || ne();
|