ooxml-core 1.3.0 → 1.5.0
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/README.md +2 -0
- package/dist/automation/index.cjs +6089 -5381
- package/dist/automation/index.mjs +6089 -5381
- package/dist/teams/index.cjs +73 -23
- package/dist/teams/index.mjs +73 -23
- package/dist/visio/basic-shapes.d.ts +18 -0
- package/dist/visio/basic-shapes.d.ts.map +1 -0
- package/dist/visio/edit-commands.d.ts +13 -2
- package/dist/visio/edit-commands.d.ts.map +1 -1
- package/dist/visio/edit-page-size.d.ts +5 -0
- package/dist/visio/edit-page-size.d.ts.map +1 -0
- package/dist/visio/edit-pages.d.ts.map +1 -1
- package/dist/visio/edit-shape-create.d.ts.map +1 -1
- package/dist/visio/edit-text-range-commands.d.ts +21 -0
- package/dist/visio/edit-text-range-commands.d.ts.map +1 -0
- package/dist/visio/edit-text-range-plan.d.ts +7 -0
- package/dist/visio/edit-text-range-plan.d.ts.map +1 -0
- package/dist/visio/edit-text-ranges.d.ts +4 -0
- package/dist/visio/edit-text-ranges.d.ts.map +1 -0
- package/dist/visio/edit-text-target.d.ts +3 -0
- package/dist/visio/edit-text-target.d.ts.map +1 -0
- package/dist/visio/edit-text.d.ts.map +1 -1
- package/dist/visio/edit.d.ts +1 -1
- package/dist/visio/edit.d.ts.map +1 -1
- package/dist/visio/index.cjs +623 -49
- package/dist/visio/index.d.ts +2 -1
- package/dist/visio/index.d.ts.map +1 -1
- package/dist/visio/index.mjs +621 -50
- package/dist/visio/model.d.ts +3 -0
- package/dist/visio/model.d.ts.map +1 -1
- package/dist/visio/parser.d.ts.map +1 -1
- package/dist/visio/ui/draw-plan.d.ts +4 -1
- package/dist/visio/ui/draw-plan.d.ts.map +1 -1
- package/dist/visio/ui/edit-commands.d.ts.map +1 -1
- package/dist/visio/ui/index.cjs +139 -14
- package/dist/visio/ui/index.d.ts +1 -0
- package/dist/visio/ui/index.d.ts.map +1 -1
- package/dist/visio/ui/index.mjs +135 -15
- package/dist/visio/ui/page-size.d.ts +31 -0
- package/dist/visio/ui/page-size.d.ts.map +1 -0
- package/dist/visio/ui/scene-validation.d.ts.map +1 -1
- package/dist/visio/ui/snapshot-scene.d.ts.map +1 -1
- package/dist/visio/ui/text-replace-types.d.ts +6 -2
- package/dist/visio/ui/text-replace-types.d.ts.map +1 -1
- package/dist/visio/ui/text-replace.d.ts +3 -4
- package/dist/visio/ui/text-replace.d.ts.map +1 -1
- package/dist/visio/xml-validation.d.ts.map +1 -1
- package/dist/xlsx/collab/codec.d.ts +2 -0
- package/dist/xlsx/collab/codec.d.ts.map +1 -1
- package/dist/xlsx/collab/index.cjs +5 -0
- package/dist/xlsx/collab/index.mjs +5 -0
- package/dist/xlsx/display-text.d.ts +4 -0
- package/dist/xlsx/display-text.d.ts.map +1 -0
- package/dist/xlsx/edit/cell-values.d.ts +4 -3
- package/dist/xlsx/edit/cell-values.d.ts.map +1 -1
- package/dist/xlsx/edit/clipboard.d.ts.map +1 -1
- package/dist/xlsx/edit/context.d.ts +7 -5
- package/dist/xlsx/edit/context.d.ts.map +1 -1
- package/dist/xlsx/edit/deps.d.ts +1 -1
- package/dist/xlsx/edit/deps.d.ts.map +1 -1
- package/dist/xlsx/edit/dimensions.d.ts.map +1 -1
- package/dist/xlsx/edit/fill.d.ts.map +1 -1
- package/dist/xlsx/edit/filter.d.ts.map +1 -1
- package/dist/xlsx/edit/find.d.ts.map +1 -1
- package/dist/xlsx/edit/paste-selection.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-formulas.d.ts +10 -4
- package/dist/xlsx/edit/shift-formulas.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-sheet.d.ts.map +1 -1
- package/dist/xlsx/edit/structure.d.ts +1 -1
- package/dist/xlsx/edit/structure.d.ts.map +1 -1
- package/dist/xlsx/edit/table-header-names.d.ts +3 -0
- package/dist/xlsx/edit/table-header-names.d.ts.map +1 -0
- package/dist/xlsx/edit/tables.d.ts +1 -2
- package/dist/xlsx/edit/tables.d.ts.map +1 -1
- package/dist/xlsx/filter-rows.d.ts +12 -0
- package/dist/xlsx/filter-rows.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/math-sum.d.ts.map +1 -1
- package/dist/xlsx/formula/table-refs.d.ts +2 -0
- package/dist/xlsx/formula/table-refs.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +466 -329
- package/dist/xlsx/index.mjs +466 -329
- package/dist/xlsx/load/index.cjs +7622 -7585
- package/dist/xlsx/load/index.mjs +7622 -7585
- package/dist/xlsx/model.d.ts +4 -0
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/load.d.ts.map +1 -1
- package/dist/xlsx/ui/index.cjs +464 -329
- package/dist/xlsx/ui/index.mjs +464 -329
- package/dist/xlsx/ui/locales/de/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/shell.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/shell.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/teams/index.cjs
CHANGED
|
@@ -7287,8 +7287,10 @@ function usedRange(sheet) {
|
|
|
7287
7287
|
if (maxRow < 0) return void 0;
|
|
7288
7288
|
return { start: { row: minRow, col: minCol }, end: { row: maxRow, col: maxCol } };
|
|
7289
7289
|
}
|
|
7290
|
+
var getCell;
|
|
7290
7291
|
var init_cells = __esm({
|
|
7291
7292
|
"xlsx/cells.ts"() {
|
|
7293
|
+
getCell = (sheet, row2, col) => sheet.rows.get(row2)?.get(col);
|
|
7292
7294
|
}
|
|
7293
7295
|
});
|
|
7294
7296
|
|
|
@@ -12207,6 +12209,73 @@ var init_criteria = __esm({
|
|
|
12207
12209
|
}
|
|
12208
12210
|
});
|
|
12209
12211
|
|
|
12212
|
+
// xlsx/styles.ts
|
|
12213
|
+
function styleKey(style2) {
|
|
12214
|
+
return JSON.stringify(sortKeys(style2));
|
|
12215
|
+
}
|
|
12216
|
+
function sortKeys(value) {
|
|
12217
|
+
if (Array.isArray(value)) return value.map(sortKeys);
|
|
12218
|
+
if (value && typeof value === "object") {
|
|
12219
|
+
const out = {};
|
|
12220
|
+
for (const key of Object.keys(value).sort()) {
|
|
12221
|
+
const entry3 = value[key];
|
|
12222
|
+
if (entry3 !== void 0) out[key] = sortKeys(entry3);
|
|
12223
|
+
}
|
|
12224
|
+
return out;
|
|
12225
|
+
}
|
|
12226
|
+
return value;
|
|
12227
|
+
}
|
|
12228
|
+
function styleAt(workbook, styleId) {
|
|
12229
|
+
const style2 = workbook.styles[styleId ?? 0] ?? workbook.styles[0];
|
|
12230
|
+
if (!style2) throw new Error("Workbook has no default cell style");
|
|
12231
|
+
return style2;
|
|
12232
|
+
}
|
|
12233
|
+
var init_styles = __esm({
|
|
12234
|
+
"xlsx/styles.ts"() {
|
|
12235
|
+
}
|
|
12236
|
+
});
|
|
12237
|
+
|
|
12238
|
+
// xlsx/display-text.ts
|
|
12239
|
+
function displayText(workbook, cell) {
|
|
12240
|
+
if (!cell || cell.value === null) return "";
|
|
12241
|
+
const value = cell.value;
|
|
12242
|
+
if (isCellError(value)) return value.error;
|
|
12243
|
+
if (typeof value === "boolean") return value ? "TRUE" : "FALSE";
|
|
12244
|
+
if (cell.richText && typeof value === "string") return value;
|
|
12245
|
+
return formatValue(value, styleAt(workbook, cell.styleId).numFmt, {
|
|
12246
|
+
date1904: workbook.date1904
|
|
12247
|
+
}).text;
|
|
12248
|
+
}
|
|
12249
|
+
var init_display_text = __esm({
|
|
12250
|
+
"xlsx/display-text.ts"() {
|
|
12251
|
+
init_model();
|
|
12252
|
+
init_numfmt();
|
|
12253
|
+
init_styles();
|
|
12254
|
+
}
|
|
12255
|
+
});
|
|
12256
|
+
|
|
12257
|
+
// xlsx/filter-rows.ts
|
|
12258
|
+
function rowMatchesFilter(workbook, sheet, row2, filter2) {
|
|
12259
|
+
return (filter2.columns ?? []).every((column) => {
|
|
12260
|
+
if (!column.values && !column.blank) return true;
|
|
12261
|
+
const text = displayText(workbook, getCell(sheet, row2, filter2.range.start.col + column.offset));
|
|
12262
|
+
return text === "" ? !!column.blank : (column.values ?? []).includes(text);
|
|
12263
|
+
});
|
|
12264
|
+
}
|
|
12265
|
+
function isFilteredRow(workbook, sheet, row2) {
|
|
12266
|
+
const filter2 = sheet.autoFilter;
|
|
12267
|
+
if (!filter2) return false;
|
|
12268
|
+
const info = sheet.rowInfo.get(row2);
|
|
12269
|
+
if (info?.filteredOut !== void 0) return info.filteredOut;
|
|
12270
|
+
return !!info?.hidden && row2 > filter2.range.start.row && row2 <= filter2.range.end.row && !rowMatchesFilter(workbook, sheet, row2, filter2);
|
|
12271
|
+
}
|
|
12272
|
+
var init_filter_rows = __esm({
|
|
12273
|
+
"xlsx/filter-rows.ts"() {
|
|
12274
|
+
init_cells();
|
|
12275
|
+
init_display_text();
|
|
12276
|
+
}
|
|
12277
|
+
});
|
|
12278
|
+
|
|
12210
12279
|
// xlsx/formula/functions/math-sum.ts
|
|
12211
12280
|
function sumProduct(ctx, args) {
|
|
12212
12281
|
const matrices = args.map((a2) => ctx.toMatrix(a2));
|
|
@@ -12241,7 +12310,7 @@ function pairwise(ctx, args, fn) {
|
|
|
12241
12310
|
}
|
|
12242
12311
|
return total2;
|
|
12243
12312
|
}
|
|
12244
|
-
function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true) {
|
|
12313
|
+
function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true, skipFiltered = false) {
|
|
12245
12314
|
const out = [];
|
|
12246
12315
|
const host = ctx.frame.host;
|
|
12247
12316
|
for (const arg of args) {
|
|
@@ -12254,6 +12323,7 @@ function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true) {
|
|
|
12254
12323
|
for (const area of arg.areas) {
|
|
12255
12324
|
const sheet = ctx.workbook.sheets[area.sheet];
|
|
12256
12325
|
host.forEachStored(area.sheet, area.range, (value, row2, col) => {
|
|
12326
|
+
if (skipFiltered && sheet && isFilteredRow(ctx.workbook, sheet, row2)) return;
|
|
12257
12327
|
if (skipHidden && sheet?.rowInfo.get(row2)?.hidden) return;
|
|
12258
12328
|
if (skipNested && SUBTOTAL_RE.test(host.cellFormula(area.sheet, row2, col) ?? "")) return;
|
|
12259
12329
|
if (skipErrors && isError(value)) return;
|
|
@@ -12315,6 +12385,7 @@ var init_math_sum = __esm({
|
|
|
12315
12385
|
init_criteria();
|
|
12316
12386
|
init_helpers();
|
|
12317
12387
|
init_stats_core();
|
|
12388
|
+
init_filter_rows();
|
|
12318
12389
|
C19 = "Math & Trig";
|
|
12319
12390
|
numbersOf = (values2) => values2.filter((v) => typeof v === "number");
|
|
12320
12391
|
SUBTOTAL_RE = /\b(?:_xlfn\.)?(?:SUBTOTAL|AGGREGATE)\s*\(/i;
|
|
@@ -12430,7 +12501,7 @@ var init_math_sum = __esm({
|
|
|
12430
12501
|
const code = int(args[0]);
|
|
12431
12502
|
const base = code > 100 ? code - 100 : code;
|
|
12432
12503
|
if (base < 1 || base > 11) fail(ERR.VALUE);
|
|
12433
|
-
return aggregate(base, subtotalValues(ctx, args.slice(1), code > 100, false));
|
|
12504
|
+
return aggregate(base, subtotalValues(ctx, args.slice(1), code > 100, false, true, true));
|
|
12434
12505
|
},
|
|
12435
12506
|
["value", "any"]
|
|
12436
12507
|
),
|
|
@@ -16702,27 +16773,6 @@ var init_shared_strings = __esm({
|
|
|
16702
16773
|
}
|
|
16703
16774
|
});
|
|
16704
16775
|
|
|
16705
|
-
// xlsx/styles.ts
|
|
16706
|
-
function styleKey(style2) {
|
|
16707
|
-
return JSON.stringify(sortKeys(style2));
|
|
16708
|
-
}
|
|
16709
|
-
function sortKeys(value) {
|
|
16710
|
-
if (Array.isArray(value)) return value.map(sortKeys);
|
|
16711
|
-
if (value && typeof value === "object") {
|
|
16712
|
-
const out = {};
|
|
16713
|
-
for (const key of Object.keys(value).sort()) {
|
|
16714
|
-
const entry3 = value[key];
|
|
16715
|
-
if (entry3 !== void 0) out[key] = sortKeys(entry3);
|
|
16716
|
-
}
|
|
16717
|
-
return out;
|
|
16718
|
-
}
|
|
16719
|
-
return value;
|
|
16720
|
-
}
|
|
16721
|
-
var init_styles = __esm({
|
|
16722
|
-
"xlsx/styles.ts"() {
|
|
16723
|
-
}
|
|
16724
|
-
});
|
|
16725
|
-
|
|
16726
16776
|
// xlsx/read/builtin-formats.ts
|
|
16727
16777
|
function builtinFormatIdOf(code) {
|
|
16728
16778
|
const id = builtinFormatId(code);
|
package/dist/teams/index.mjs
CHANGED
|
@@ -7260,8 +7260,10 @@ function usedRange(sheet) {
|
|
|
7260
7260
|
if (maxRow < 0) return void 0;
|
|
7261
7261
|
return { start: { row: minRow, col: minCol }, end: { row: maxRow, col: maxCol } };
|
|
7262
7262
|
}
|
|
7263
|
+
var getCell;
|
|
7263
7264
|
var init_cells = __esm({
|
|
7264
7265
|
"xlsx/cells.ts"() {
|
|
7266
|
+
getCell = (sheet, row2, col) => sheet.rows.get(row2)?.get(col);
|
|
7265
7267
|
}
|
|
7266
7268
|
});
|
|
7267
7269
|
|
|
@@ -12180,6 +12182,73 @@ var init_criteria = __esm({
|
|
|
12180
12182
|
}
|
|
12181
12183
|
});
|
|
12182
12184
|
|
|
12185
|
+
// xlsx/styles.ts
|
|
12186
|
+
function styleKey(style2) {
|
|
12187
|
+
return JSON.stringify(sortKeys(style2));
|
|
12188
|
+
}
|
|
12189
|
+
function sortKeys(value) {
|
|
12190
|
+
if (Array.isArray(value)) return value.map(sortKeys);
|
|
12191
|
+
if (value && typeof value === "object") {
|
|
12192
|
+
const out = {};
|
|
12193
|
+
for (const key of Object.keys(value).sort()) {
|
|
12194
|
+
const entry3 = value[key];
|
|
12195
|
+
if (entry3 !== void 0) out[key] = sortKeys(entry3);
|
|
12196
|
+
}
|
|
12197
|
+
return out;
|
|
12198
|
+
}
|
|
12199
|
+
return value;
|
|
12200
|
+
}
|
|
12201
|
+
function styleAt(workbook, styleId) {
|
|
12202
|
+
const style2 = workbook.styles[styleId ?? 0] ?? workbook.styles[0];
|
|
12203
|
+
if (!style2) throw new Error("Workbook has no default cell style");
|
|
12204
|
+
return style2;
|
|
12205
|
+
}
|
|
12206
|
+
var init_styles = __esm({
|
|
12207
|
+
"xlsx/styles.ts"() {
|
|
12208
|
+
}
|
|
12209
|
+
});
|
|
12210
|
+
|
|
12211
|
+
// xlsx/display-text.ts
|
|
12212
|
+
function displayText(workbook, cell) {
|
|
12213
|
+
if (!cell || cell.value === null) return "";
|
|
12214
|
+
const value = cell.value;
|
|
12215
|
+
if (isCellError(value)) return value.error;
|
|
12216
|
+
if (typeof value === "boolean") return value ? "TRUE" : "FALSE";
|
|
12217
|
+
if (cell.richText && typeof value === "string") return value;
|
|
12218
|
+
return formatValue(value, styleAt(workbook, cell.styleId).numFmt, {
|
|
12219
|
+
date1904: workbook.date1904
|
|
12220
|
+
}).text;
|
|
12221
|
+
}
|
|
12222
|
+
var init_display_text = __esm({
|
|
12223
|
+
"xlsx/display-text.ts"() {
|
|
12224
|
+
init_model();
|
|
12225
|
+
init_numfmt();
|
|
12226
|
+
init_styles();
|
|
12227
|
+
}
|
|
12228
|
+
});
|
|
12229
|
+
|
|
12230
|
+
// xlsx/filter-rows.ts
|
|
12231
|
+
function rowMatchesFilter(workbook, sheet, row2, filter2) {
|
|
12232
|
+
return (filter2.columns ?? []).every((column) => {
|
|
12233
|
+
if (!column.values && !column.blank) return true;
|
|
12234
|
+
const text = displayText(workbook, getCell(sheet, row2, filter2.range.start.col + column.offset));
|
|
12235
|
+
return text === "" ? !!column.blank : (column.values ?? []).includes(text);
|
|
12236
|
+
});
|
|
12237
|
+
}
|
|
12238
|
+
function isFilteredRow(workbook, sheet, row2) {
|
|
12239
|
+
const filter2 = sheet.autoFilter;
|
|
12240
|
+
if (!filter2) return false;
|
|
12241
|
+
const info = sheet.rowInfo.get(row2);
|
|
12242
|
+
if (info?.filteredOut !== void 0) return info.filteredOut;
|
|
12243
|
+
return !!info?.hidden && row2 > filter2.range.start.row && row2 <= filter2.range.end.row && !rowMatchesFilter(workbook, sheet, row2, filter2);
|
|
12244
|
+
}
|
|
12245
|
+
var init_filter_rows = __esm({
|
|
12246
|
+
"xlsx/filter-rows.ts"() {
|
|
12247
|
+
init_cells();
|
|
12248
|
+
init_display_text();
|
|
12249
|
+
}
|
|
12250
|
+
});
|
|
12251
|
+
|
|
12183
12252
|
// xlsx/formula/functions/math-sum.ts
|
|
12184
12253
|
function sumProduct(ctx, args) {
|
|
12185
12254
|
const matrices = args.map((a2) => ctx.toMatrix(a2));
|
|
@@ -12214,7 +12283,7 @@ function pairwise(ctx, args, fn) {
|
|
|
12214
12283
|
}
|
|
12215
12284
|
return total2;
|
|
12216
12285
|
}
|
|
12217
|
-
function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true) {
|
|
12286
|
+
function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true, skipFiltered = false) {
|
|
12218
12287
|
const out = [];
|
|
12219
12288
|
const host = ctx.frame.host;
|
|
12220
12289
|
for (const arg of args) {
|
|
@@ -12227,6 +12296,7 @@ function subtotalValues(ctx, args, skipHidden, skipErrors, skipNested = true) {
|
|
|
12227
12296
|
for (const area of arg.areas) {
|
|
12228
12297
|
const sheet = ctx.workbook.sheets[area.sheet];
|
|
12229
12298
|
host.forEachStored(area.sheet, area.range, (value, row2, col) => {
|
|
12299
|
+
if (skipFiltered && sheet && isFilteredRow(ctx.workbook, sheet, row2)) return;
|
|
12230
12300
|
if (skipHidden && sheet?.rowInfo.get(row2)?.hidden) return;
|
|
12231
12301
|
if (skipNested && SUBTOTAL_RE.test(host.cellFormula(area.sheet, row2, col) ?? "")) return;
|
|
12232
12302
|
if (skipErrors && isError(value)) return;
|
|
@@ -12288,6 +12358,7 @@ var init_math_sum = __esm({
|
|
|
12288
12358
|
init_criteria();
|
|
12289
12359
|
init_helpers();
|
|
12290
12360
|
init_stats_core();
|
|
12361
|
+
init_filter_rows();
|
|
12291
12362
|
C19 = "Math & Trig";
|
|
12292
12363
|
numbersOf = (values2) => values2.filter((v) => typeof v === "number");
|
|
12293
12364
|
SUBTOTAL_RE = /\b(?:_xlfn\.)?(?:SUBTOTAL|AGGREGATE)\s*\(/i;
|
|
@@ -12403,7 +12474,7 @@ var init_math_sum = __esm({
|
|
|
12403
12474
|
const code = int(args[0]);
|
|
12404
12475
|
const base = code > 100 ? code - 100 : code;
|
|
12405
12476
|
if (base < 1 || base > 11) fail(ERR.VALUE);
|
|
12406
|
-
return aggregate(base, subtotalValues(ctx, args.slice(1), code > 100, false));
|
|
12477
|
+
return aggregate(base, subtotalValues(ctx, args.slice(1), code > 100, false, true, true));
|
|
12407
12478
|
},
|
|
12408
12479
|
["value", "any"]
|
|
12409
12480
|
),
|
|
@@ -16675,27 +16746,6 @@ var init_shared_strings = __esm({
|
|
|
16675
16746
|
}
|
|
16676
16747
|
});
|
|
16677
16748
|
|
|
16678
|
-
// xlsx/styles.ts
|
|
16679
|
-
function styleKey(style2) {
|
|
16680
|
-
return JSON.stringify(sortKeys(style2));
|
|
16681
|
-
}
|
|
16682
|
-
function sortKeys(value) {
|
|
16683
|
-
if (Array.isArray(value)) return value.map(sortKeys);
|
|
16684
|
-
if (value && typeof value === "object") {
|
|
16685
|
-
const out = {};
|
|
16686
|
-
for (const key of Object.keys(value).sort()) {
|
|
16687
|
-
const entry3 = value[key];
|
|
16688
|
-
if (entry3 !== void 0) out[key] = sortKeys(entry3);
|
|
16689
|
-
}
|
|
16690
|
-
return out;
|
|
16691
|
-
}
|
|
16692
|
-
return value;
|
|
16693
|
-
}
|
|
16694
|
-
var init_styles = __esm({
|
|
16695
|
-
"xlsx/styles.ts"() {
|
|
16696
|
-
}
|
|
16697
|
-
});
|
|
16698
|
-
|
|
16699
16749
|
// xlsx/read/builtin-formats.ts
|
|
16700
16750
|
function builtinFormatIdOf(code) {
|
|
16701
16751
|
const id = builtinFormatId(code);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Outlines for Visio's Basic Shapes stencil, written as local geometry the core can create and
|
|
3
|
+
* resize: every path is a closed run of RelMoveTo/RelLineTo rows in the shape's own box (0 to 1,
|
|
4
|
+
* Y up). Curved outlines (the can) are polylines. Ellipse and Circle are not here; they use the
|
|
5
|
+
* native Ellipse row through `create-ellipse`.
|
|
6
|
+
*/
|
|
7
|
+
export declare const VISIO_BASIC_SHAPES: readonly ['rectangle', 'square', 'triangle', 'right-triangle', 'pentagon', 'hexagon', 'octagon', 'star', 'diamond', 'rounded-rectangle', 'cross', 'parallelogram', 'trapezoid', 'can', 'cube', 'chevron'];
|
|
8
|
+
export type VisioBasicShape = (typeof VISIO_BASIC_SHAPES)[number];
|
|
9
|
+
export type VisioOutlinePoint = readonly [x: number, y: number];
|
|
10
|
+
export interface VisioBasicOutline {
|
|
11
|
+
/** Closed paths, drawn in order; each becomes one Geometry section. */
|
|
12
|
+
paths: readonly (readonly VisioOutlinePoint[])[];
|
|
13
|
+
/** Corner radius as a fraction of the shorter side, written to the Rounding cell. */
|
|
14
|
+
rounding?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const isVisioBasicShape: (value: unknown) => value is VisioBasicShape;
|
|
17
|
+
export declare function visioBasicShapeOutline(shape: VisioBasicShape): VisioBasicOutline;
|
|
18
|
+
//# sourceMappingURL=basic-shapes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basic-shapes.d.ts","sourceRoot":"","sources":["../../visio/basic-shapes.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,YAC9B,WAAW,EACX,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,SAAS,EACT,MAAM,EACN,SAAS,EACT,mBAAmB,EACnB,OAAO,EACP,eAAe,EACf,WAAW,EACX,KAAK,EACL,MAAM,EACN,SAAS,CACA,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAClE,MAAM,MAAM,iBAAiB,GAAG,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC;AAChE,MAAM,WAAW,iBAAiB;IACjC,uEAAuE;IACvE,KAAK,EAAE,SAAS,CAAC,SAAS,iBAAiB,EAAE,CAAC,EAAE,CAAC;IACjD,qFAAqF;IACrF,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,KAAK,IAAI,eACD,CAAC;AAwL5D,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,eAAe,GAAG,iBAAiB,CAEhF"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { type VisioBasicShape } from './basic-shapes.js';
|
|
2
|
+
import { type VisioTextRangesEdit } from './edit-text-range-commands.js';
|
|
3
|
+
export type { VisioTextRange, VisioTextRangesEdit } from './edit-text-range-commands.js';
|
|
1
4
|
import { type VisioResizeAnchor } from './resize-anchor.js';
|
|
2
5
|
export type { VisioResizeAnchor } from './resize-anchor.js';
|
|
3
6
|
import { type VisioDuplicateShapesEdit } from './edit-duplicate-commands.js';
|
|
@@ -38,6 +41,7 @@ export type VisioGeometryEdit = (Target & {
|
|
|
38
41
|
endY: number;
|
|
39
42
|
}) | (BoxCreation & {
|
|
40
43
|
type: 'create-rectangle';
|
|
44
|
+
shape?: VisioBasicShape;
|
|
41
45
|
}) | (BoxCreation & {
|
|
42
46
|
type: 'create-ellipse';
|
|
43
47
|
}) | (BoxCreation & {
|
|
@@ -90,8 +94,15 @@ export interface VisioPageDelete {
|
|
|
90
94
|
type: 'delete-page';
|
|
91
95
|
pageId: string;
|
|
92
96
|
}
|
|
93
|
-
|
|
94
|
-
export
|
|
97
|
+
/** Physical page inches. Select fixed custom mode; printer paper and shape positions are retained. */
|
|
98
|
+
export interface VisioPageSizeEdit {
|
|
99
|
+
type: 'set-page-size';
|
|
100
|
+
pageId: string;
|
|
101
|
+
width: number;
|
|
102
|
+
height: number;
|
|
103
|
+
}
|
|
104
|
+
export type VisioPageEdit = VisioPageInsert | VisioPageReorder | VisioPageRename | VisioPageDelete | VisioPageSizeEdit;
|
|
105
|
+
export type VisioEdit = VisioTextEdit | VisioTextRangesEdit | VisioGeometryEdit | VisioPageEdit | VisioFormatEdit | VisioDuplicateShapesEdit | VisioPasteShapesEdit | VisioShapeOrderEdit;
|
|
95
106
|
export declare const isVisioPageEdit: (edit: VisioEdit) => edit is VisioPageEdit;
|
|
96
107
|
/** Potential direct changes used by both package and master dependency admission. */
|
|
97
108
|
export declare function geometryChangedCells(edit: VisioGeometryEdit): string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-commands.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC/E,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAA2B,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACnG,YAAY,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAuB,KAAK,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACvF,YAAY,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAGN,KAAK,eAAe,EACpB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACX,eAAe,EACf,mBAAmB,EACnB,oBAAoB,GACpB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC;CACjD;AAED,MAAM,WAAW,aAAa;IAC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AAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACb;AACD,8EAA8E;AAC9E,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CACf;AACD,sGAAsG;AACtG,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CACf;AACD,MAAM,MAAM,aAAa,GACtB,eAAe,GACf,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,iBAAiB,CAAC;AACrB,MAAM,MAAM,SAAS,GAClB,aAAa,GACb,mBAAmB,GACnB,iBAAiB,GACjB,aAAa,GACb,eAAe,GACf,wBAAwB,GACxB,oBAAoB,GACpB,mBAAmB,CAAC;AACvB,eAAO,MAAM,eAAe,SAAU,SAAS,KAAG,IAAI,IAAI,aAK5B,CAAC;AAE/B,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,EAAE,CA8BtE;AAED,wBAAgB,kBAAkB,CACjC,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,MAAM,GACb,SAAS,EAAE,CAuJb"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { VisioPackage } from './package.js';
|
|
2
|
+
import type { VisioPageSizeEdit } from './edit-commands.js';
|
|
3
|
+
/** Set physical dimensions and explicit fixed/custom mode, preserving shapes and printer settings. */
|
|
4
|
+
export declare function setVisioPageSize(pkg: VisioPackage, pagesPart: string, pages: Element, pagePaths: ReadonlyMap<string, string>, dirty: Map<string, Element>, command: VisioPageSizeEdit, check: () => void): Promise<void>;
|
|
5
|
+
//# sourceMappingURL=edit-page-size.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-page-size.d.ts","sourceRoot":"","sources":["../../visio/edit-page-size.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AA8IzD,sGAAsG;AACtG,wBAAsB,gBAAgB,CACrC,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,OAAO,EACd,SAAS,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,EACtC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3B,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,IAAI,CAAC,CA6Ef"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-pages.d.ts","sourceRoot":"","sources":["../../visio/edit-pages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-pages.d.ts","sourceRoot":"","sources":["../../visio/edit-pages.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAoB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAU7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAS7C,4FAA4F;AAC5F,wBAAsB,aAAa,CAClC,QAAQ,EAAE,UAAU,EACpB,GAAG,EAAE,YAAY,EACjB,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,EAC9B,QAAQ,EAAE,SAAS,aAAa,EAAE,EAClC,MAAM,EAAE,kBAAkB,EAC1B,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,cAAc,CAAC,CAsLzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-shape-create.d.ts","sourceRoot":"","sources":["../../visio/edit-shape-create.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit-shape-create.d.ts","sourceRoot":"","sources":["../../visio/edit-shape-create.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AA4DzD,wBAAgB,eAAe,CAC9B,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,kBAAkB,GAAG,iBAAiB,CAAA;CAAE,CAAC,GAChF,OAAO,CAoCT;AAED,wBAAgB,aAAa,CAC5B,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,gBAAgB,CAAA;CAAE,CAAC,GAC1D,OAAO,CAST;AAED,sGAAsG;AACtG,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAMhF;AAED,wBAAgB,UAAU,CACzB,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,OAAO,CAAC,iBAAiB,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,GACvD,OAAO,CAkDT"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface VisioTextRange {
|
|
2
|
+
/** Zero-based UTF16 scalar boundaries in the complete original logical text. */
|
|
3
|
+
start: number;
|
|
4
|
+
end: number;
|
|
5
|
+
text: string;
|
|
6
|
+
}
|
|
7
|
+
export interface VisioTextRangesEdit {
|
|
8
|
+
type: 'replace-text-ranges';
|
|
9
|
+
pageId: string;
|
|
10
|
+
shapeId: string;
|
|
11
|
+
/** Complete logical text captured with the ranges; stale source offsets are rejected. */
|
|
12
|
+
expectedText: string;
|
|
13
|
+
/** Ascending, nonempty selected spans inside paragraphs; replacement text may be empty.
|
|
14
|
+
* Fields, paragraph break changes, competing character markers and empty rich paragraphs refuse.
|
|
15
|
+
*/
|
|
16
|
+
ranges: readonly VisioTextRange[];
|
|
17
|
+
}
|
|
18
|
+
export declare function textRangeBoundary(text: string, offset: number): boolean;
|
|
19
|
+
/** Snapshot before any await; commands never retain caller-owned range arrays or objects. */
|
|
20
|
+
export declare function snapshotTextRanges(edit: VisioTextRangesEdit, consume?: (value: unknown) => string): VisioTextRangesEdit;
|
|
21
|
+
//# sourceMappingURL=edit-text-range-commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-text-range-commands.d.ts","sourceRoot":"","sources":["../../visio/edit-text-range-commands.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC9B,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACb;AACD,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,yFAAyF;IACzF,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,EAAE,SAAS,cAAc,EAAE,CAAC;CAClC;AAGD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAOvE;AACD,6FAA6F;AAC7F,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,GAClC,mBAAmB,CA8CrB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VisioTextRangesEdit } from './edit-text-range-commands.js';
|
|
2
|
+
/** Source token surgery preserves marker nodes and stored row identities. */
|
|
3
|
+
export declare function textRangeNodes(node: Element, edit: VisioTextRangesEdit): {
|
|
4
|
+
changed: boolean;
|
|
5
|
+
nodes: Node[];
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=edit-text-range-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-text-range-plan.d.ts","sourceRoot":"","sources":["../../visio/edit-text-range-plan.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEtE,6EAA6E;AAC7E,wBAAgB,cAAc,CAC7B,IAAI,EAAE,OAAO,EACb,IAAI,EAAE,mBAAmB,GACvB;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,IAAI,EAAE,CAAA;CAAE,CAiHrC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { VisioPackage } from './package.js';
|
|
2
|
+
import type { VisioTextRangesEdit } from './edit-text-range-commands.js';
|
|
3
|
+
export declare function replaceScopedTextRanges(pkg: VisioPackage, pagePaths: ReadonlySet<string>, roots: ReadonlyMap<string, Element>, document: Element, edit: VisioTextRangesEdit, check: () => void): Promise<boolean>;
|
|
4
|
+
//# sourceMappingURL=edit-text-ranges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-text-ranges.d.ts","sourceRoot":"","sources":["../../visio/edit-text-ranges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAStE,wBAAsB,uBAAuB,CAC5C,GAAG,EAAE,YAAY,EACjB,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,EAC9B,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,QAAQ,EAAE,OAAO,EACjB,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CAAC,OAAO,CAAC,CAmDlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-text-target.d.ts","sourceRoot":"","sources":["../../visio/edit-text-target.ts"],"names":[],"mappings":"AAIA,yEAAyE;AACzE,wBAAgB,eAAe,CAC9B,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,IAAI,GACf,OAAO,CA2BT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit-text.d.ts","sourceRoot":"","sources":["../../visio/edit-text.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMjE,wBAAsB,gBAAgB,CACrC,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,IAAI,EACjB,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAClE,OAAO,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"edit-text.d.ts","sourceRoot":"","sources":["../../visio/edit-text.ts"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAMjE,wBAAsB,gBAAgB,CACrC,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,IAAI,EACjB,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,GAClE,OAAO,CAAC,OAAO,CAAC,CAgBlB;AAED,wBAAgB,kBAAkB,CACjC,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,kBAAkB,EAC1B,KAAK,EAAE,MAAM,IAAI,GACf;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA2BtC"}
|
package/dist/visio/edit.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type VisioPackageLimits } from './package-common.js';
|
|
2
2
|
import { type VisioEdit } from './edit-commands.js';
|
|
3
|
-
export type { VisioEdit, VisioTextEdit, VisioGeometryEdit, VisioPageInsert, VisioPageReorder, VisioPageRename, VisioPageDelete, VisioPageEdit, VisioFormatEdit, VisioTextFormatEdit, VisioShapeFormatEdit, VisioShapeOrderEdit, VisioDuplicateShapesEdit, VisioPasteShapesEdit, VisioResizeAnchor, } from './edit-commands.js';
|
|
3
|
+
export type { VisioEdit, VisioTextEdit, VisioTextRange, VisioTextRangesEdit, VisioGeometryEdit, VisioPageInsert, VisioPageReorder, VisioPageRename, VisioPageDelete, VisioPageSizeEdit, VisioPageEdit, VisioFormatEdit, VisioTextFormatEdit, VisioShapeFormatEdit, VisioShapeOrderEdit, VisioDuplicateShapesEdit, VisioPasteShapesEdit, VisioResizeAnchor, } from './edit-commands.js';
|
|
4
4
|
export interface EditVsdxOptions {
|
|
5
5
|
limits?: Partial<VisioPackageLimits>;
|
|
6
6
|
maxEdits?: number;
|
package/dist/visio/edit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../visio/edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../visio/edit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAM3E,OAAO,EAGN,KAAK,SAAS,EAEd,MAAM,iBAAiB,CAAC;AAYzB,YAAY,EACX,SAAS,EACT,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,wBAAwB,EACxB,oBAAoB,EACpB,iBAAiB,GACjB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,eAAe;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,cAAc;IAC9B,KAAK,EAAE,UAAU,CAAC;IAClB,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,WAAW,EAAE,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC1D;AAMD;;GAEG;AACH,wBAAsB,QAAQ,CAC7B,KAAK,EAAE,UAAU,GAAG,WAAW,EAC/B,KAAK,EAAE,SAAS,SAAS,EAAE,EAC3B,OAAO,GAAE,eAAoB,GAC3B,OAAO,CAAC,cAAc,CAAC,CA4PzB"}
|