@pixerate/editor 0.156.0 → 0.158.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/dist/agent/index.cjs +34 -34
- package/dist/agent/index.js +5 -5
- package/dist/canvas/index.cjs +6 -6
- package/dist/canvas/index.js +2 -2
- package/dist/chart/index.cjs +90 -88
- package/dist/chart/index.js +9 -7
- package/dist/chart/spec.d.cts +2 -1
- package/dist/chart/spec.d.ts +2 -1
- package/dist/chart/types.d.cts +5 -0
- package/dist/chart/types.d.ts +5 -0
- package/dist/{chunk-CD7PLU77.cjs → chunk-3YDQLQH2.cjs} +3 -1
- package/dist/{chunk-2WDZI6QD.cjs → chunk-4T44CJ5K.cjs} +15 -15
- package/dist/{chunk-XTU6QO2W.cjs → chunk-4YWAEV4W.cjs} +36 -27
- package/dist/{chunk-4YQKRHMI.cjs → chunk-57JLBGJ5.cjs} +8 -8
- package/dist/{chunk-SVINJIGK.js → chunk-5QBRAIVK.js} +3 -3
- package/dist/{chunk-R3PECGTQ.cjs → chunk-6LUYFHHN.cjs} +51 -51
- package/dist/{chunk-ZQWLWDZI.js → chunk-72BGL3I2.js} +2 -0
- package/dist/{chunk-ML2II3Y3.cjs → chunk-AKDWAWSY.cjs} +58 -46
- package/dist/{chunk-EQ4SF4X4.js → chunk-DBIVICAO.js} +1 -1
- package/dist/{chunk-SUVZJ2CP.js → chunk-H5XX4KHB.js} +11 -1
- package/dist/{chunk-37RLSNQ3.js → chunk-Q6PA362P.js} +2 -2
- package/dist/{chunk-DSZCDNTM.js → chunk-R3QY7PPL.js} +11 -2
- package/dist/{chunk-4RF2H3N3.js → chunk-SSCL7QQ4.js} +15 -3
- package/dist/{chunk-TLMRGLQQ.cjs → chunk-TVO6W2Q6.cjs} +20 -17
- package/dist/{chunk-EIUTJPEL.js → chunk-UM3RPYC5.js} +5 -2
- package/dist/{chunk-I4AHLP7F.cjs → chunk-WPPJH6X4.cjs} +12 -2
- package/dist/{chunk-RZJCYJWO.cjs → chunk-XNQ5EFB4.cjs} +16 -16
- package/dist/{chunk-R6HNWN7B.js → chunk-YABNLNY7.js} +3 -3
- package/dist/export/index.cjs +4 -4
- package/dist/export/index.js +3 -3
- package/dist/extensions/index.cjs +7 -7
- package/dist/extensions/index.js +6 -6
- package/dist/image-editor/controller.d.cts +24 -1
- package/dist/image-editor/controller.d.ts +24 -1
- package/dist/image-editor/controls.d.cts +9 -0
- package/dist/image-editor/controls.d.ts +9 -0
- package/dist/image-editor/index.cjs +7699 -7446
- package/dist/image-editor/index.js +11053 -10800
- package/dist/image-editor/layers/panel.d.cts +24 -0
- package/dist/image-editor/layers/panel.d.ts +24 -0
- package/dist/image-editor/layers/smart.d.cts +2 -0
- package/dist/image-editor/layers/smart.d.ts +2 -0
- package/dist/image-editor/transform.d.cts +1 -0
- package/dist/image-editor/transform.d.ts +1 -0
- package/dist/index.cjs +13 -13
- package/dist/index.js +7 -7
- package/dist/paint-editor/index.cjs +6 -6
- package/dist/paint-editor/index.js +1 -1
- package/package.json +1 -1
- package/skills/pixerate-chart/SKILL.md +4 -1
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
var _chunkWPPJH6X4cjs = require('./chunk-WPPJH6X4.cjs');
|
|
17
18
|
|
|
18
19
|
// src/chart/schemas.ts
|
|
19
20
|
var VALUE = { type: ["number", "string", "null"], description: 'A number, numeric text ("1,200", "12%", "$40", "(3)") or null for a gap.' };
|
|
@@ -25,7 +26,7 @@ var FORMAT = {
|
|
|
25
26
|
type: "object",
|
|
26
27
|
description: "How numbers are written on this axis or series.",
|
|
27
28
|
properties: {
|
|
28
|
-
style: { type: "string", enum: [...
|
|
29
|
+
style: { type: "string", enum: [..._chunkWPPJH6X4cjs.CHART_NUMBER_STYLES], description: "number (default), percent (0.25 \u2192 25%), currency or compact (1.2K)." },
|
|
29
30
|
decimals: { type: "integer", minimum: 0, maximum: 10, description: "Fixed decimals (default: what the ticks need)." },
|
|
30
31
|
currency: { type: "string", description: 'ISO currency code for style "currency", e.g. "EUR" (default USD).' },
|
|
31
32
|
prefix: { type: "string", description: "Text before every number." },
|
|
@@ -45,10 +46,10 @@ var AXIS = (what) => ({
|
|
|
45
46
|
step: { type: ["number", "null"], exclusiveMinimum: 0, description: "Fixed distance between ticks, or null for automatic." },
|
|
46
47
|
gridlines: { type: "boolean", description: "Grid lines at each tick." },
|
|
47
48
|
format: FORMAT,
|
|
48
|
-
kind: { type: ["string", "null"], enum: [...
|
|
49
|
+
kind: { type: ["string", "null"], enum: [..._chunkWPPJH6X4cjs.CHART_AXIS_KINDS, null], description: 'Category axis only: "date" reads categories as dates and labels them by calendar steps.' },
|
|
49
50
|
scale: {
|
|
50
51
|
type: ["string", "null"],
|
|
51
|
-
enum: [...
|
|
52
|
+
enum: [..._chunkWPPJH6X4cjs.CHART_AXIS_SCALES, null],
|
|
52
53
|
description: 'Value axes and the numeric x axis of scatter / bubble charts: "log" spaces ticks by powers of logBase (values of 0 or less are skipped; min and max must be above 0; not with percent stacking). "linear" or null is the default. Ignored on a category axis.'
|
|
53
54
|
},
|
|
54
55
|
logBase: { type: ["number", "null"], minimum: 2, maximum: 1e3, description: "Base of a log axis, 2 to 1000 (default 10; null resets)." },
|
|
@@ -57,7 +58,7 @@ var AXIS = (what) => ({
|
|
|
57
58
|
additionalProperties: false
|
|
58
59
|
});
|
|
59
60
|
var TRENDLINE_PROPS = {
|
|
60
|
-
type: { type: "string", enum: [...
|
|
61
|
+
type: { type: "string", enum: [..._chunkWPPJH6X4cjs.CHART_TRENDLINE_TYPES], description: "Fit: linear, exponential, logarithmic, power, polynomial or moving-average." },
|
|
61
62
|
order: { type: "integer", minimum: 2, maximum: 6, description: "Polynomial order (default 2)." },
|
|
62
63
|
period: { type: "integer", minimum: 2, description: "Moving-average period in points (default 2)." },
|
|
63
64
|
forward: { type: "number", minimum: 0, description: "Extend the line this many x units past the last point (default 0)." },
|
|
@@ -74,13 +75,13 @@ var ERROR_BARS = (what) => ({
|
|
|
74
75
|
properties: {
|
|
75
76
|
type: {
|
|
76
77
|
type: "string",
|
|
77
|
-
enum: [...
|
|
78
|
+
enum: [..._chunkWPPJH6X4cjs.CHART_ERROR_BAR_TYPES],
|
|
78
79
|
description: "fixed: the same amount at every point; percent: a percentage of each value; stddev: value standard deviations of the series, drawn around the series mean (as Excel does); stderr: the standard error of the series at every point; custom: per-point plus / minus amounts."
|
|
79
80
|
},
|
|
80
81
|
value: { type: "number", minimum: 0, description: "Amount in data units for fixed (default 1), percent of each value for percent (default 5), number of standard deviations for stddev (default 1). Not for stderr or custom." },
|
|
81
82
|
plus: { type: "array", items: VALUE, description: "custom only: amount above each point, one per category, in data units (0 or more; null for none)." },
|
|
82
83
|
minus: { type: "array", items: VALUE, description: "custom only: amount below each point, one per category (default: the plus amounts)." },
|
|
83
|
-
direction: { type: "string", enum: [...
|
|
84
|
+
direction: { type: "string", enum: [..._chunkWPPJH6X4cjs.CHART_ERROR_BAR_DIRECTIONS], description: "both (default), plus (only above) or minus (only below)." },
|
|
84
85
|
cap: { type: "boolean", description: "Draw end caps (default true)." }
|
|
85
86
|
},
|
|
86
87
|
required: ["type"],
|
|
@@ -90,21 +91,21 @@ var SERIES_PROPS = {
|
|
|
90
91
|
name: { type: "string", description: "Series name (legend and data grid header)." },
|
|
91
92
|
values: { type: "array", items: VALUE, description: "One value per category, in category order (padded with gaps)." },
|
|
92
93
|
color: { type: ["string", "null"], description: "CSS colour, or null for the palette colour." },
|
|
93
|
-
type: { type: ["string", "null"], enum: [...
|
|
94
|
+
type: { type: ["string", "null"], enum: [..._chunkWPPJH6X4cjs.CHART_SERIES_TYPES, null], description: "Draw this series as bar, line, area or scatter (a combo chart); null follows the chart type." },
|
|
94
95
|
hidden: { type: "boolean", description: "Hide the series (its data is kept)." },
|
|
95
96
|
axis: { type: ["string", "null"], enum: ["primary", "secondary", null], description: "Value axis: secondary is drawn on the right with its own scale." },
|
|
96
97
|
x: { type: ["array", "null"], items: VALUE, description: "Numeric x per category, for scatter and bubble charts." },
|
|
97
98
|
sizes: { type: ["array", "null"], items: VALUE, description: "Bubble sizes per category (area is proportional to size)." },
|
|
98
99
|
pointColors: { type: ["array", "null"], items: { type: ["string", "null"] }, description: "Colour per category (null keeps the series colour)." },
|
|
99
|
-
marker: { type: ["string", "null"], enum: [...
|
|
100
|
-
curve: { type: ["string", "null"], enum: [...
|
|
100
|
+
marker: { type: ["string", "null"], enum: [..._chunkWPPJH6X4cjs.CHART_MARKERS, null], description: "Point marker shape for line, area and scatter series." },
|
|
101
|
+
curve: { type: ["string", "null"], enum: [..._chunkWPPJH6X4cjs.CHART_CURVES, null], description: "Line shape for this series: linear, smooth or step." },
|
|
101
102
|
dataLabels: { type: ["boolean", "null"], description: "Value labels for this series (null follows the chart)." },
|
|
102
103
|
format: { ...FORMAT, type: ["object", "null"], description: "How this series' labels are written (null follows the value axis)." },
|
|
103
104
|
errorBars: ERROR_BARS("Error bars along the value axis (bar, line, area and scatter series; on stacked charts they sit on the stack top)."),
|
|
104
105
|
xErrorBars: ERROR_BARS("Error bars along the x axis (scatter and bubble charts with numeric x values; amounts in x units).")
|
|
105
106
|
};
|
|
106
107
|
var CHART_UPDATE_PROPERTIES = {
|
|
107
|
-
type: { type: "string", enum: [...
|
|
108
|
+
type: { type: "string", enum: [..._chunkWPPJH6X4cjs.CHART_TYPES], description: "Chart type." },
|
|
108
109
|
title: { type: "string", description: 'Title ("" for none).' },
|
|
109
110
|
subtitle: { type: "string", description: 'Subtitle ("" for none).' },
|
|
110
111
|
xAxis: AXIS("Category axis (or numeric x axis of scatter / bubble charts)."),
|
|
@@ -113,21 +114,23 @@ var CHART_UPDATE_PROPERTIES = {
|
|
|
113
114
|
legend: {
|
|
114
115
|
type: "object",
|
|
115
116
|
description: "Legend.",
|
|
116
|
-
properties: { show: { type: "boolean", description: "Show the legend." }, position: { type: "string", enum: [...
|
|
117
|
+
properties: { show: { type: "boolean", description: "Show the legend." }, position: { type: "string", enum: [..._chunkWPPJH6X4cjs.CHART_LEGEND_POSITIONS], description: "Where the legend goes." } },
|
|
117
118
|
additionalProperties: false
|
|
118
119
|
},
|
|
119
|
-
stacking: { type: "string", enum: [...
|
|
120
|
-
orientation: { type: "string", enum: [...
|
|
121
|
-
curve: { type: "string", enum: [...
|
|
120
|
+
stacking: { type: "string", enum: [..._chunkWPPJH6X4cjs.CHART_STACKINGS], description: "none, stacked, or percent (each category scaled to 100%)." },
|
|
121
|
+
orientation: { type: "string", enum: [..._chunkWPPJH6X4cjs.CHART_ORIENTATIONS], description: "horizontal draws bars sideways." },
|
|
122
|
+
curve: { type: "string", enum: [..._chunkWPPJH6X4cjs.CHART_CURVES], description: "Line shape: linear, smooth or step." },
|
|
122
123
|
points: { type: "boolean", description: "Dots on line and area series." },
|
|
123
124
|
dataLabels: { type: "boolean", description: "Value labels on bars, points and slices." },
|
|
124
|
-
labelPosition: { type: "string", enum: [...
|
|
125
|
+
labelPosition: { type: "string", enum: [..._chunkWPPJH6X4cjs.CHART_LABEL_POSITIONS], description: "Bar label position; auto drops labels that do not fit." },
|
|
125
126
|
palette: { type: "array", items: { type: "string" }, minItems: 1, description: "Series colours in order (CSS colours)." },
|
|
126
127
|
innerRadius: { type: "number", minimum: 0, maximum: 0.9, description: "Donut hole as a fraction of the radius." },
|
|
127
128
|
gapWidth: { type: "number", minimum: 0, maximum: 0.9, description: "Space between bar groups as a fraction of the category (default 0.28)." },
|
|
128
129
|
overlap: { type: "number", minimum: -1, maximum: 1, description: "Bar overlap within a group as a fraction of a bar (negative: a gap; default -0.12)." },
|
|
129
130
|
bins: { type: ["integer", "null"], minimum: 1, maximum: 500, description: "Histogram bin count, or null for \u221An." },
|
|
130
|
-
showTotal: { type: "boolean", description: "Waterfall: append a total bar." }
|
|
131
|
+
showTotal: { type: "boolean", description: "Waterfall: append a total bar." },
|
|
132
|
+
radarTicks: { type: ["integer", "null"], minimum: 1, maximum: 50, description: "Radar: number of evenly spaced rings from the value axis min to max, or null for round-number rings (default null)." },
|
|
133
|
+
radarGraticule: { type: "string", enum: [..._chunkWPPJH6X4cjs.CHART_RADAR_GRATICULES], description: "Radar: draw rings as polygons through the spokes or as circles (default polygon)." }
|
|
131
134
|
};
|
|
132
135
|
|
|
133
136
|
|
|
@@ -9,11 +9,12 @@ import {
|
|
|
9
9
|
CHART_MARKERS,
|
|
10
10
|
CHART_NUMBER_STYLES,
|
|
11
11
|
CHART_ORIENTATIONS,
|
|
12
|
+
CHART_RADAR_GRATICULES,
|
|
12
13
|
CHART_SERIES_TYPES,
|
|
13
14
|
CHART_STACKINGS,
|
|
14
15
|
CHART_TRENDLINE_TYPES,
|
|
15
16
|
CHART_TYPES
|
|
16
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-H5XX4KHB.js";
|
|
17
18
|
|
|
18
19
|
// src/chart/schemas.ts
|
|
19
20
|
var VALUE = { type: ["number", "string", "null"], description: 'A number, numeric text ("1,200", "12%", "$40", "(3)") or null for a gap.' };
|
|
@@ -127,7 +128,9 @@ var CHART_UPDATE_PROPERTIES = {
|
|
|
127
128
|
gapWidth: { type: "number", minimum: 0, maximum: 0.9, description: "Space between bar groups as a fraction of the category (default 0.28)." },
|
|
128
129
|
overlap: { type: "number", minimum: -1, maximum: 1, description: "Bar overlap within a group as a fraction of a bar (negative: a gap; default -0.12)." },
|
|
129
130
|
bins: { type: ["integer", "null"], minimum: 1, maximum: 500, description: "Histogram bin count, or null for \u221An." },
|
|
130
|
-
showTotal: { type: "boolean", description: "Waterfall: append a total bar." }
|
|
131
|
+
showTotal: { type: "boolean", description: "Waterfall: append a total bar." },
|
|
132
|
+
radarTicks: { type: ["integer", "null"], minimum: 1, maximum: 50, description: "Radar: number of evenly spaced rings from the value axis min to max, or null for round-number rings (default null)." },
|
|
133
|
+
radarGraticule: { type: "string", enum: [...CHART_RADAR_GRATICULES], description: "Radar: draw rings as polygons through the spokes or as circles (default polygon)." }
|
|
131
134
|
};
|
|
132
135
|
|
|
133
136
|
export {
|
|
@@ -231,6 +231,7 @@ var CHART_AXIS_SCALES = ["linear", "log"];
|
|
|
231
231
|
var CHART_SERIES_TYPES = ["bar", "line", "area", "scatter"];
|
|
232
232
|
var CHART_STACKINGS = ["none", "stacked", "percent"];
|
|
233
233
|
var CHART_CURVES = ["linear", "smooth", "step"];
|
|
234
|
+
var CHART_RADAR_GRATICULES = ["polygon", "circle"];
|
|
234
235
|
var CHART_ORIENTATIONS = ["vertical", "horizontal"];
|
|
235
236
|
var CHART_LEGEND_POSITIONS = ["top", "bottom", "left", "right"];
|
|
236
237
|
var CHART_NUMBER_STYLES = ["number", "percent", "currency", "compact"];
|
|
@@ -652,6 +653,12 @@ function normalizeChartSpec(input) {
|
|
|
652
653
|
if (Number.isInteger(b) && b >= 1 && b <= 500) bins = b;
|
|
653
654
|
else issues.push({ path: "bins", message: "bins must be a whole number from 1 to 500, or null for automatic." });
|
|
654
655
|
}
|
|
656
|
+
let radarTicks = null;
|
|
657
|
+
if (value.radarTicks !== void 0 && value.radarTicks !== null) {
|
|
658
|
+
const t = Number(value.radarTicks);
|
|
659
|
+
if (Number.isInteger(t) && t >= 1 && t <= 50) radarTicks = t;
|
|
660
|
+
else issues.push({ path: "radarTicks", message: "radarTicks must be a whole number from 1 to 50, or null for round-number rings." });
|
|
661
|
+
}
|
|
655
662
|
const spec = {
|
|
656
663
|
version: 1,
|
|
657
664
|
type,
|
|
@@ -674,7 +681,9 @@ function normalizeChartSpec(input) {
|
|
|
674
681
|
gapWidth,
|
|
675
682
|
overlap,
|
|
676
683
|
bins,
|
|
677
|
-
showTotal: flag(value.showTotal, true, "showTotal", issues)
|
|
684
|
+
showTotal: flag(value.showTotal, true, "showTotal", issues),
|
|
685
|
+
radarTicks,
|
|
686
|
+
radarGraticule: pick(value.radarGraticule, CHART_RADAR_GRATICULES, "polygon", "radarGraticule", issues)
|
|
678
687
|
};
|
|
679
688
|
if (spec.stacking === "percent")
|
|
680
689
|
for (const name of ["yAxis", "yAxis2"]) {
|
|
@@ -822,4 +831,5 @@ function chartColorInputValue(color) {
|
|
|
822
831
|
|
|
823
832
|
|
|
824
833
|
|
|
825
|
-
|
|
834
|
+
|
|
835
|
+
exports.parseChartColor = parseChartColor; exports.chartRgbToHex = chartRgbToHex; exports.shadeChartColor = shadeChartColor; exports.CHART_PALETTE_SHADES = CHART_PALETTE_SHADES; exports.cyclePaletteColor = cyclePaletteColor; exports.chartLuminance = chartLuminance; exports.chartContrastRatio = chartContrastRatio; exports.chartTextOn = chartTextOn; exports.chartRgbToOklab = chartRgbToOklab; exports.chartColorDistance = chartColorDistance; exports.simulateChartVision = simulateChartVision; exports.checkChartColors = checkChartColors; exports.CHART_ERROR_BAR_TYPES = CHART_ERROR_BAR_TYPES; exports.CHART_ERROR_BAR_DIRECTIONS = CHART_ERROR_BAR_DIRECTIONS; exports.CHART_ERROR_BAR_LABELS = CHART_ERROR_BAR_LABELS; exports.defaultChartErrorBarValue = defaultChartErrorBarValue; exports.chartErrorAmounts = chartErrorAmounts; exports.describeChartErrorBars = describeChartErrorBars; exports.chartErrorBarsOfType = chartErrorBarsOfType; exports.formatChartAmountList = formatChartAmountList; exports.parseChartAmountList = parseChartAmountList; exports.CHART_TYPES = CHART_TYPES; exports.CHART_MARKERS = CHART_MARKERS; exports.CHART_TRENDLINE_TYPES = CHART_TRENDLINE_TYPES; exports.CHART_LABEL_POSITIONS = CHART_LABEL_POSITIONS; exports.CHART_AXIS_KINDS = CHART_AXIS_KINDS; exports.CHART_AXIS_SCALES = CHART_AXIS_SCALES; exports.CHART_SERIES_TYPES = CHART_SERIES_TYPES; exports.CHART_STACKINGS = CHART_STACKINGS; exports.CHART_CURVES = CHART_CURVES; exports.CHART_RADAR_GRATICULES = CHART_RADAR_GRATICULES; exports.CHART_ORIENTATIONS = CHART_ORIENTATIONS; exports.CHART_LEGEND_POSITIONS = CHART_LEGEND_POSITIONS; exports.CHART_NUMBER_STYLES = CHART_NUMBER_STYLES; exports.CHART_TYPE_LABELS = CHART_TYPE_LABELS; exports.DEFAULT_CHART_PALETTE = DEFAULT_CHART_PALETTE; exports.DEFAULT_CHART_THEME = DEFAULT_CHART_THEME; exports.CSS_VARIABLE_CHART_THEME = CSS_VARIABLE_CHART_THEME; exports.isCartesianChart = isCartesianChart; exports.isXyChart = isXyChart; exports.chartFamily = chartFamily; exports.chartColorsByCategory = chartColorsByCategory; exports.defaultChartAxis = defaultChartAxis; exports.createChartSpec = createChartSpec; exports.chartSeriesColor = chartSeriesColor; exports.chartSliceColor = chartSliceColor; exports.chartPointColor = chartPointColor; exports.chartSeriesType = chartSeriesType; exports.uniqueChartSeriesId = uniqueChartSeriesId; exports.parseChartValue = parseChartValue; exports.normalizeChartAxis = normalizeChartAxis; exports.normalizeChartValues = normalizeChartValues; exports.normalizeChartErrorBars = normalizeChartErrorBars; exports.normalizeChartTrendline = normalizeChartTrendline; exports.normalizeChartSpec = normalizeChartSpec; exports.cloneChartSpec = cloneChartSpec; exports.cloneChartSeries = cloneChartSeries; exports.chartDataFromTable = chartDataFromTable; exports.chartDataToTable = chartDataToTable; exports.chartColorInputValue = chartColorInputValue;
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkAKDWAWSYcjs = require('./chunk-AKDWAWSY.cjs');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk4YWAEV4Wcjs = require('./chunk-4YWAEV4W.cjs');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkWPPJH6X4cjs = require('./chunk-WPPJH6X4.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
var _chunkG43MNQ4Ccjs = require('./chunk-G43MNQ4C.cjs');
|
|
@@ -1211,7 +1211,7 @@ var ChartNodeView = (_class = class {
|
|
|
1211
1211
|
this.dom.contentEditable = "false";
|
|
1212
1212
|
this.syncAttributes();
|
|
1213
1213
|
this.key = specKey(this.node.attrs.spec);
|
|
1214
|
-
this.controller = new (0,
|
|
1214
|
+
this.controller = new (0, _chunkAKDWAWSYcjs.ChartController)({ spec: this.node.attrs.spec });
|
|
1215
1215
|
this.unsubscribe = this.controller.subscribe((state) => {
|
|
1216
1216
|
if (!state.gesture) this.writeBack();
|
|
1217
1217
|
});
|
|
@@ -1444,7 +1444,7 @@ function readSpec(value) {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
}
|
|
1446
1446
|
if (!input || typeof input !== "object" || Array.isArray(input)) return null;
|
|
1447
|
-
return
|
|
1447
|
+
return _chunkWPPJH6X4cjs.normalizeChartSpec.call(void 0, input).spec;
|
|
1448
1448
|
}
|
|
1449
1449
|
var readSize = (value) => {
|
|
1450
1450
|
const n = value === null ? NaN : Number(value);
|
|
@@ -1470,10 +1470,10 @@ function staticChartSvg(node, options) {
|
|
|
1470
1470
|
const spec = node.attrs.spec;
|
|
1471
1471
|
const width = _nullishCoalesce(node.attrs.width, () => ( options.defaultWidth));
|
|
1472
1472
|
const height = _nullishCoalesce(node.attrs.height, () => ( options.defaultHeight));
|
|
1473
|
-
const scene =
|
|
1474
|
-
return
|
|
1473
|
+
const scene = _chunk4YWAEV4Wcjs.layoutChart.call(void 0, spec, { width, height, theme: options.theme, selection: null });
|
|
1474
|
+
return _chunkAKDWAWSYcjs.chartSceneToDomSpec.call(void 0, scene, {
|
|
1475
1475
|
ariaLabel: spec.title || "Chart",
|
|
1476
|
-
description:
|
|
1476
|
+
description: _chunkAKDWAWSYcjs.describeChart.call(void 0, spec),
|
|
1477
1477
|
attrs: { style: "max-width: 100%; height: auto; display: block" }
|
|
1478
1478
|
});
|
|
1479
1479
|
}
|
|
@@ -1489,7 +1489,7 @@ var Chart = _core.Node.create({
|
|
|
1489
1489
|
return {
|
|
1490
1490
|
HTMLAttributes: {},
|
|
1491
1491
|
nodeView: null,
|
|
1492
|
-
theme:
|
|
1492
|
+
theme: _chunkWPPJH6X4cjs.DEFAULT_CHART_THEME,
|
|
1493
1493
|
defaultWidth: 640,
|
|
1494
1494
|
defaultHeight: 320,
|
|
1495
1495
|
generateId: () => generateStructureId("chart")
|
|
@@ -1503,7 +1503,7 @@ var Chart = _core.Node.create({
|
|
|
1503
1503
|
renderHTML: (attributes) => attributes.id ? { "data-chart-id": attributes.id } : {}
|
|
1504
1504
|
},
|
|
1505
1505
|
spec: {
|
|
1506
|
-
default:
|
|
1506
|
+
default: _chunkWPPJH6X4cjs.normalizeChartSpec.call(void 0, {}).spec,
|
|
1507
1507
|
// null (no `data-chart`) keeps what the parse rule found, e.g. a mermaid block's spec.
|
|
1508
1508
|
parseHTML: (element) => readSpec(element.getAttribute("data-chart")),
|
|
1509
1509
|
renderHTML: (attributes) => ({
|
|
@@ -1541,7 +1541,7 @@ var Chart = _core.Node.create({
|
|
|
1541
1541
|
const code = element.querySelector("code");
|
|
1542
1542
|
const language = _nullishCoalesce(_nullishCoalesce(_optionalChain([code, 'optionalAccess', _34 => _34.getAttribute, 'call', _35 => _35("class")]), () => ( element.getAttribute("data-language"))), () => ( ""));
|
|
1543
1543
|
if (!/(?:^|\s)language-mermaid(?:\s|$)/.test(language) && language !== "mermaid") return false;
|
|
1544
|
-
const result =
|
|
1544
|
+
const result = _chunkAKDWAWSYcjs.chartFromMermaid.call(void 0, _nullishCoalesce((_nullishCoalesce(code, () => ( element))).textContent, () => ( "")));
|
|
1545
1545
|
return result.family ? { spec: result.spec } : false;
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
@@ -1565,7 +1565,7 @@ var Chart = _core.Node.create({
|
|
|
1565
1565
|
return {
|
|
1566
1566
|
markdown: {
|
|
1567
1567
|
serialize(state, node) {
|
|
1568
|
-
const text =
|
|
1568
|
+
const text = _chunkAKDWAWSYcjs.chartToMermaid.call(void 0, node.attrs.spec);
|
|
1569
1569
|
const fence = "`".repeat(Math.max(3, longestBacktickRun(text) + 1));
|
|
1570
1570
|
state.write(`${fence}mermaid
|
|
1571
1571
|
`);
|
|
@@ -1587,7 +1587,7 @@ var Chart = _core.Node.create({
|
|
|
1587
1587
|
type: this.name,
|
|
1588
1588
|
attrs: {
|
|
1589
1589
|
id: _nullishCoalesce(options.id, () => ( this.options.generateId())),
|
|
1590
|
-
spec:
|
|
1590
|
+
spec: _chunkWPPJH6X4cjs.normalizeChartSpec.call(void 0, _nullishCoalesce(options.spec, () => ( {}))).spec,
|
|
1591
1591
|
width: _nullishCoalesce(options.width, () => ( null)),
|
|
1592
1592
|
height: _nullishCoalesce(options.height, () => ( this.options.defaultHeight))
|
|
1593
1593
|
}
|
|
@@ -1598,7 +1598,7 @@ var Chart = _core.Node.create({
|
|
|
1598
1598
|
if (dispatch) {
|
|
1599
1599
|
tr.setNodeMarkup(chart.pos, void 0, {
|
|
1600
1600
|
...chart.node.attrs,
|
|
1601
|
-
...changes.spec !== void 0 ? { spec:
|
|
1601
|
+
...changes.spec !== void 0 ? { spec: _chunkWPPJH6X4cjs.normalizeChartSpec.call(void 0, changes.spec).spec } : {},
|
|
1602
1602
|
...changes.width !== void 0 ? { width: changes.width } : {},
|
|
1603
1603
|
...changes.height !== void 0 ? { height: changes.height } : {}
|
|
1604
1604
|
});
|
|
@@ -1705,14 +1705,14 @@ var Sparkline = _core.Node.create({
|
|
|
1705
1705
|
return [{ tag: 'span[data-type="sparkline"]', priority: 60 }];
|
|
1706
1706
|
},
|
|
1707
1707
|
renderHTML({ node, HTMLAttributes }) {
|
|
1708
|
-
const scene =
|
|
1708
|
+
const scene = _chunkAKDWAWSYcjs.layoutSparkline.call(void 0, node.attrs.values, {
|
|
1709
1709
|
kind: node.attrs.kind,
|
|
1710
1710
|
width: node.attrs.width,
|
|
1711
1711
|
height: node.attrs.height,
|
|
1712
1712
|
color: _nullishCoalesce(node.attrs.color, () => ( this.options.color)),
|
|
1713
1713
|
negativeColor: this.options.negativeColor
|
|
1714
1714
|
});
|
|
1715
|
-
const svg =
|
|
1715
|
+
const svg = _chunkAKDWAWSYcjs.chartSceneToDomSpec.call(void 0, scene, {
|
|
1716
1716
|
ariaLabel: sparklineLabel(node),
|
|
1717
1717
|
attrs: { style: "display: inline-block; vertical-align: middle" }
|
|
1718
1718
|
});
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
CHART_OOXML_NS,
|
|
9
9
|
chartFromOoxml
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DBIVICAO.js";
|
|
11
11
|
import {
|
|
12
12
|
compareDocuments
|
|
13
13
|
} from "./chunk-V5OOP74P.js";
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
searchDocument,
|
|
35
35
|
sliceContainsTable,
|
|
36
36
|
syncInitialContent
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-5QBRAIVK.js";
|
|
38
38
|
import {
|
|
39
39
|
chartDataToTable
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-H5XX4KHB.js";
|
|
41
41
|
import {
|
|
42
42
|
PIXERATE_DOCUMENT_MIME,
|
|
43
43
|
getClipboardData,
|
package/dist/export/index.cjs
CHANGED
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk57JLBGJ5cjs = require('../chunk-57JLBGJ5.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkJLWLX52Lcjs = require('../chunk-JLWLX52L.cjs');
|
|
20
20
|
require('../chunk-YN6JKAUE.cjs');
|
|
21
|
-
require('../chunk-
|
|
22
|
-
require('../chunk-
|
|
21
|
+
require('../chunk-4T44CJ5K.cjs');
|
|
22
|
+
require('../chunk-WPPJH6X4.cjs');
|
|
23
23
|
require('../chunk-ALNIFK5G.cjs');
|
|
24
24
|
require('../chunk-2BSBFBOA.cjs');
|
|
25
25
|
require('../chunk-UKCJ43YL.cjs');
|
|
@@ -40,4 +40,4 @@ require('../chunk-IPJ3TEYR.cjs');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
exports.DOCX_ANONYMOUS_AUTHOR =
|
|
43
|
+
exports.DOCX_ANONYMOUS_AUTHOR = _chunk57JLBGJ5cjs.DOCX_ANONYMOUS_AUTHOR; exports.DOCX_EXPORT_MIME_TYPE = _chunk57JLBGJ5cjs.DOCX_EXPORT_MIME_TYPE; exports.DocxExportController = _chunk57JLBGJ5cjs.DocxExportController; exports.XmlWriter = _chunk57JLBGJ5cjs.XmlWriter; exports.createDocxExportController = _chunk57JLBGJ5cjs.createDocxExportController; exports.createDocxParts = _chunk57JLBGJ5cjs.createDocxParts; exports.deflateRaw = _chunkJLWLX52Lcjs.deflateRaw; exports.docxFileName = _chunk57JLBGJ5cjs.docxFileName; exports.downloadBlob = _chunk57JLBGJ5cjs.downloadBlob; exports.escapeXmlAttr = _chunk57JLBGJ5cjs.escapeXmlAttr; exports.escapeXmlText = _chunk57JLBGJ5cjs.escapeXmlText; exports.exportDocx = _chunk57JLBGJ5cjs.exportDocx; exports.exportDocxBlob = _chunk57JLBGJ5cjs.exportDocxBlob; exports.stripInvalidXmlChars = _chunk57JLBGJ5cjs.stripInvalidXmlChars; exports.writeZip = _chunkJLWLX52Lcjs.writeZip;
|
package/dist/export/index.js
CHANGED
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
exportDocx,
|
|
13
13
|
exportDocxBlob,
|
|
14
14
|
stripInvalidXmlChars
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-Q6PA362P.js";
|
|
16
16
|
import {
|
|
17
17
|
deflateRaw,
|
|
18
18
|
writeZip
|
|
19
19
|
} from "../chunk-AZCODQO5.js";
|
|
20
20
|
import "../chunk-CXXKJBQZ.js";
|
|
21
|
-
import "../chunk-
|
|
22
|
-
import "../chunk-
|
|
21
|
+
import "../chunk-DBIVICAO.js";
|
|
22
|
+
import "../chunk-H5XX4KHB.js";
|
|
23
23
|
import "../chunk-CIQIM2IP.js";
|
|
24
24
|
import "../chunk-HF5QZS7Z.js";
|
|
25
25
|
import "../chunk-AA34BA7G.js";
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
98
|
+
var _chunk6LUYFHHNcjs = require('../chunk-6LUYFHHN.cjs');
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
|
|
@@ -104,7 +104,7 @@ var _chunkR3PECGTQcjs = require('../chunk-R3PECGTQ.cjs');
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
var _chunkYN6JKAUEcjs = require('../chunk-YN6JKAUE.cjs');
|
|
107
|
-
require('../chunk-
|
|
107
|
+
require('../chunk-4T44CJ5K.cjs');
|
|
108
108
|
require('../chunk-HMGWFXEC.cjs');
|
|
109
109
|
|
|
110
110
|
|
|
@@ -171,10 +171,10 @@ require('../chunk-HMGWFXEC.cjs');
|
|
|
171
171
|
|
|
172
172
|
|
|
173
173
|
|
|
174
|
-
var
|
|
175
|
-
require('../chunk-
|
|
176
|
-
require('../chunk-
|
|
177
|
-
require('../chunk-
|
|
174
|
+
var _chunkXNQ5EFB4cjs = require('../chunk-XNQ5EFB4.cjs');
|
|
175
|
+
require('../chunk-AKDWAWSY.cjs');
|
|
176
|
+
require('../chunk-4YWAEV4W.cjs');
|
|
177
|
+
require('../chunk-WPPJH6X4.cjs');
|
|
178
178
|
require('../chunk-3AJMR7EG.cjs');
|
|
179
179
|
require('../chunk-G43MNQ4C.cjs');
|
|
180
180
|
require('../chunk-JG5VGCKP.cjs');
|
|
@@ -411,4 +411,4 @@ require('../chunk-IPJ3TEYR.cjs');
|
|
|
411
411
|
|
|
412
412
|
|
|
413
413
|
|
|
414
|
-
exports.ALLOW_NESTED_TABLES_META = _chunkRZJCYJWOcjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkRZJCYJWOcjs.AgentCaret; exports.Autocorrect = _chunkR3PECGTQcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunkR3PECGTQcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunkR3PECGTQcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunkR3PECGTQcjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunkR3PECGTQcjs.CharacterStyle; exports.Chart = _chunkRZJCYJWOcjs.Chart; exports.ChartNodeView = _chunkRZJCYJWOcjs.ChartNodeView; exports.ColorHighlighter = _chunkR3PECGTQcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunkR3PECGTQcjs.Comments; exports.CrossReference = _chunkR3PECGTQcjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunkRZJCYJWOcjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkRZJCYJWOcjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunkR3PECGTQcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkRZJCYJWOcjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkRZJCYJWOcjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunkR3PECGTQcjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunkR3PECGTQcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkRZJCYJWOcjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunkR3PECGTQcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkRZJCYJWOcjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunkR3PECGTQcjs.FileImport; exports.FindReplace = _chunkR3PECGTQcjs.FindReplace; exports.FindReplaceStore = _chunkR3PECGTQcjs.FindReplaceStore; exports.FontSize = _chunkR3PECGTQcjs.FontSize; exports.Footnote = _chunkR3PECGTQcjs.Footnote; exports.FootnoteReference = _chunkR3PECGTQcjs.FootnoteReference; exports.Footnotes = _chunkR3PECGTQcjs.Footnotes; exports.GradientText = _chunkR3PECGTQcjs.GradientText; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.Image = _chunkR3PECGTQcjs.Image; exports.LoadingNode = _chunkR3PECGTQcjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkRZJCYJWOcjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkRZJCYJWOcjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkRZJCYJWOcjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkRZJCYJWOcjs.MAX_TABLE_ROWS; exports.MOVE_FROM_CLASS = _chunk34RQAGWIcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunk34RQAGWIcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunk34RQAGWIcjs.MOVE_TO_CLASS; exports.Markdown = _chunkR3PECGTQcjs.Markdown; exports.Mention = _chunkR3PECGTQcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.Outline = _chunkR3PECGTQcjs.Outline; exports.ParagraphStyles = _chunkR3PECGTQcjs.ParagraphStyles; exports.RichClipboard = _chunkR3PECGTQcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunkR3PECGTQcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkRZJCYJWOcjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunkR3PECGTQcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunkR3PECGTQcjs.SlashCommands; exports.SmilieReplacer = _chunkR3PECGTQcjs.SmilieReplacer; exports.Sparkline = _chunkRZJCYJWOcjs.Sparkline; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkRZJCYJWOcjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkRZJCYJWOcjs.Table; exports.TableCell = _chunkRZJCYJWOcjs.TableCell; exports.TableHeader = _chunkRZJCYJWOcjs.TableHeader; exports.TableOfContents = _chunkR3PECGTQcjs.TableOfContents; exports.TableRow = _chunkRZJCYJWOcjs.TableRow; exports.TemplateSuggestions = _chunkR3PECGTQcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunkRZJCYJWOcjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunkR3PECGTQcjs.applyDocumentComparison; exports.applyReplacements = _chunkRZJCYJWOcjs.applyReplacements; exports.autocorrectPluginKey = _chunkR3PECGTQcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunkR3PECGTQcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunkR3PECGTQcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunkR3PECGTQcjs.captureSelectionFormat; exports.chartPluginKey = _chunkRZJCYJWOcjs.chartPluginKey; exports.clearAgentCaret = _chunkRZJCYJWOcjs.clearAgentCaret; exports.commentsPluginKey = _chunkR3PECGTQcjs.commentsPluginKey; exports.compareInEditor = _chunkR3PECGTQcjs.compareInEditor; exports.compileFindPattern = _chunkRZJCYJWOcjs.compileFindPattern; exports.computeOutline = _chunkR3PECGTQcjs.computeOutline; exports.createAgentCaretPlugin = _chunkRZJCYJWOcjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkRZJCYJWOcjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createFindReplaceCommands = _chunkR3PECGTQcjs.createFindReplaceCommands; exports.createMentionExtension = _chunkR3PECGTQcjs.createMentionExtension; exports.createOutlineStore = _chunkR3PECGTQcjs.createOutlineStore; exports.createParagraphStylesStore = _chunkR3PECGTQcjs.createParagraphStylesStore; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunkR3PECGTQcjs.createRichTextPreset; exports.createSearchBudget = _chunkRZJCYJWOcjs.createSearchBudget; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunkR3PECGTQcjs.createTableCommands; exports.createTableExtensions = _chunkRZJCYJWOcjs.createTableExtensions; exports.createTableNestingPlugin = _chunkRZJCYJWOcjs.createTableNestingPlugin; exports.createTableStore = _chunkRZJCYJWOcjs.createTableStore; exports.crossReferencePluginKey = _chunkR3PECGTQcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunkR3PECGTQcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.documentStructureCommandItems = _chunkR3PECGTQcjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunkRZJCYJWOcjs.ensureAgentCaret; exports.expandReplacement = _chunkRZJCYJWOcjs.expandReplacement; exports.fileImportPluginKey = _chunkR3PECGTQcjs.fileImportPluginKey; exports.findAllMatches = _chunkRZJCYJWOcjs.findAllMatches; exports.findAutocorrection = _chunkR3PECGTQcjs.findAutocorrection; exports.findCommentRanges = _chunkR3PECGTQcjs.findCommentRanges; exports.findHexColors = _chunkR3PECGTQcjs.findHexColors; exports.findReplacePluginKey = _chunkR3PECGTQcjs.findReplacePluginKey; exports.foldCodePoint = _chunkRZJCYJWOcjs.foldCodePoint; exports.footnotesMarkdownIt = _chunkR3PECGTQcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunkR3PECGTQcjs.footnotesPluginKey; exports.formatFindStatus = _chunkR3PECGTQcjs.formatFindStatus; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.fractionRules = _chunkR3PECGTQcjs.fractionRules; exports.getActiveHeading = _chunkR3PECGTQcjs.getActiveHeading; exports.getAgentCarets = _chunkRZJCYJWOcjs.getAgentCarets; exports.getBookmarks = _chunkR3PECGTQcjs.getBookmarks; exports.getCommentAnchors = _chunkR3PECGTQcjs.getCommentAnchors; exports.getCommentAuthor = _chunkR3PECGTQcjs.getCommentAuthor; exports.getCommentIdsAt = _chunkR3PECGTQcjs.getCommentIdsAt; exports.getCommentStore = _chunkR3PECGTQcjs.getCommentStore; exports.getCrossReferenceTargets = _chunkR3PECGTQcjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunkRZJCYJWOcjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunkR3PECGTQcjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunkR3PECGTQcjs.getFindReplaceState; exports.getFindReplaceStore = _chunkR3PECGTQcjs.getFindReplaceStore; exports.getFootnotes = _chunkR3PECGTQcjs.getFootnotes; exports.getMentionNodes = _chunkR3PECGTQcjs.getMentionNodes; exports.getOutline = _chunkR3PECGTQcjs.getOutline; exports.getParagraphStyleAt = _chunkR3PECGTQcjs.getParagraphStyleAt; exports.getStyleRegistry = _chunkR3PECGTQcjs.getStyleRegistry; exports.getTableActionState = _chunkRZJCYJWOcjs.getTableActionState; exports.getTableOfContentsEntries = _chunkR3PECGTQcjs.getTableOfContentsEntries; exports.getTableState = _chunkRZJCYJWOcjs.getTableState; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.handleImageInsertion = _chunkR3PECGTQcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkRZJCYJWOcjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunkR3PECGTQcjs.imagePastePluginKey; exports.insertImageNode = _chunkR3PECGTQcjs.insertImageNode; exports.insertSliceAfterTable = _chunkRZJCYJWOcjs.insertSliceAfterTable; exports.isChartEnabled = _chunkRZJCYJWOcjs.isChartEnabled; exports.isGfmTable = _chunkRZJCYJWOcjs.isGfmTable; exports.isInTableCell = _chunkRZJCYJWOcjs.isInTableCell; exports.isInsidePromptToken = _chunkR3PECGTQcjs.isInsidePromptToken; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunkR3PECGTQcjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunkRZJCYJWOcjs.isSelectionInTable; exports.isTableEnabled = _chunkRZJCYJWOcjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.markAgentChanges = _chunkRZJCYJWOcjs.markAgentChanges; exports.navigateToHeading = _chunkR3PECGTQcjs.navigateToHeading; exports.normalizeSparklineValues = _chunkRZJCYJWOcjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkRZJCYJWOcjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkRZJCYJWOcjs.normalizeTableCellColor; exports.outermostTableDepth = _chunkRZJCYJWOcjs.outermostTableDepth; exports.outlinePluginKey = _chunkR3PECGTQcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunkR3PECGTQcjs.paragraphStylesPluginKey; exports.parseReplacement = _chunkRZJCYJWOcjs.parseReplacement; exports.removeImageNode = _chunkR3PECGTQcjs.removeImageNode; exports.replaceWithTextTransaction = _chunkRZJCYJWOcjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunkR3PECGTQcjs.richClipboardPluginKey; exports.runTableAction = _chunkRZJCYJWOcjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.searchDocument = _chunkRZJCYJWOcjs.searchDocument; exports.setAgentCaret = _chunkRZJCYJWOcjs.setAgentCaret; exports.setMentionRoleAt = _chunkR3PECGTQcjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunkRZJCYJWOcjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunkRZJCYJWOcjs.sliceContainsTable; exports.smartQuoteRules = _chunkR3PECGTQcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunkR3PECGTQcjs.smilieAutocorrectRules; exports.sparklineLabel = _chunkRZJCYJWOcjs.sparklineLabel; exports.staticChartSvg = _chunkRZJCYJWOcjs.staticChartSvg; exports.symbolRules = _chunkR3PECGTQcjs.symbolRules; exports.syncFootnotes = _chunkR3PECGTQcjs.syncFootnotes; exports.tableNestingPluginKey = _chunkRZJCYJWOcjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunkR3PECGTQcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunkR3PECGTQcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunkR3PECGTQcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkRZJCYJWOcjs.typeAgentText; exports.unnestTables = _chunkRZJCYJWOcjs.unnestTables; exports.updateImageSrc = _chunkR3PECGTQcjs.updateImageSrc; exports.validateFindPattern = _chunkR3PECGTQcjs.validateFindPattern; exports.writeRichClipboard = _chunkR3PECGTQcjs.writeRichClipboard;
|
|
414
|
+
exports.ALLOW_NESTED_TABLES_META = _chunkXNQ5EFB4cjs.ALLOW_NESTED_TABLES_META; exports.AgentCaret = _chunkXNQ5EFB4cjs.AgentCaret; exports.Autocorrect = _chunk6LUYFHHNcjs.Autocorrect; exports.BLOCK_CHANGE_ATTRIBUTE = _chunk34RQAGWIcjs.BLOCK_CHANGE_ATTRIBUTE; exports.Bookmark = _chunk6LUYFHHNcjs.Bookmark; exports.CHARACTER_STYLE_MARK_NAME = _chunk6LUYFHHNcjs.CHARACTER_STYLE_MARK_NAME; exports.COMMENT_MARK_NAME = _chunk6LUYFHHNcjs.COMMENT_MARK_NAME; exports.CharacterStyle = _chunk6LUYFHHNcjs.CharacterStyle; exports.Chart = _chunkXNQ5EFB4cjs.Chart; exports.ChartNodeView = _chunkXNQ5EFB4cjs.ChartNodeView; exports.ColorHighlighter = _chunk6LUYFHHNcjs.ColorHighlighter; exports.CommentStore = _chunk34RQAGWIcjs.CommentStore; exports.Comments = _chunk6LUYFHHNcjs.Comments; exports.CrossReference = _chunk6LUYFHHNcjs.CrossReference; exports.DEFAULT_AGENT_CARET_COLOR = _chunkXNQ5EFB4cjs.DEFAULT_AGENT_CARET_COLOR; exports.DEFAULT_AGENT_CARET_NAME = _chunkXNQ5EFB4cjs.DEFAULT_AGENT_CARET_NAME; exports.DEFAULT_AUTOCORRECT_EXCEPTIONS = _chunk6LUYFHHNcjs.DEFAULT_AUTOCORRECT_EXCEPTIONS; exports.DEFAULT_STYLES = _chunkYN6JKAUEcjs.DEFAULT_STYLES; exports.DEFAULT_TABLE_OPTIONS = _chunkXNQ5EFB4cjs.DEFAULT_TABLE_OPTIONS; exports.DEFAULT_TABLE_TOOLBAR = _chunkXNQ5EFB4cjs.DEFAULT_TABLE_TOOLBAR; exports.DELETION_MARK_NAME = _chunk34RQAGWIcjs.DELETION_MARK_NAME; exports.DocumentCompare = _chunk6LUYFHHNcjs.DocumentCompare; exports.EMPTY_FIND_REPLACE_SNAPSHOT = _chunk6LUYFHHNcjs.EMPTY_FIND_REPLACE_SNAPSHOT; exports.EMPTY_TABLE_STATE = _chunkXNQ5EFB4cjs.EMPTY_TABLE_STATE; exports.FIND_OPTION_TOGGLES = _chunk6LUYFHHNcjs.FIND_OPTION_TOGGLES; exports.FIND_PARAGRAPH_MARK = _chunkXNQ5EFB4cjs.FIND_PARAGRAPH_MARK; exports.FORMAT_CHANGE_MARK_NAME = _chunk34RQAGWIcjs.FORMAT_CHANGE_MARK_NAME; exports.FileImport = _chunk6LUYFHHNcjs.FileImport; exports.FindReplace = _chunk6LUYFHHNcjs.FindReplace; exports.FindReplaceStore = _chunk6LUYFHHNcjs.FindReplaceStore; exports.FontSize = _chunk6LUYFHHNcjs.FontSize; exports.Footnote = _chunk6LUYFHHNcjs.Footnote; exports.FootnoteReference = _chunk6LUYFHHNcjs.FootnoteReference; exports.Footnotes = _chunk6LUYFHHNcjs.Footnotes; exports.GradientText = _chunk6LUYFHHNcjs.GradientText; exports.INSERTION_MARK_NAME = _chunk34RQAGWIcjs.INSERTION_MARK_NAME; exports.Image = _chunk6LUYFHHNcjs.Image; exports.LoadingNode = _chunk6LUYFHHNcjs.LoadingNode; exports.MAX_FIND_PATTERN_LENGTH = _chunkXNQ5EFB4cjs.MAX_FIND_PATTERN_LENGTH; exports.MAX_SPARKLINE_VALUES = _chunkXNQ5EFB4cjs.MAX_SPARKLINE_VALUES; exports.MAX_TABLE_COLUMNS = _chunkXNQ5EFB4cjs.MAX_TABLE_COLUMNS; exports.MAX_TABLE_ROWS = _chunkXNQ5EFB4cjs.MAX_TABLE_ROWS; exports.MOVE_FROM_CLASS = _chunk34RQAGWIcjs.MOVE_FROM_CLASS; exports.MOVE_ID_ATTRIBUTE = _chunk34RQAGWIcjs.MOVE_ID_ATTRIBUTE; exports.MOVE_TO_CLASS = _chunk34RQAGWIcjs.MOVE_TO_CLASS; exports.Markdown = _chunk6LUYFHHNcjs.Markdown; exports.Mention = _chunk6LUYFHHNcjs.Mention; exports.NORMAL_STYLE_ID = _chunkYN6JKAUEcjs.NORMAL_STYLE_ID; exports.Outline = _chunk6LUYFHHNcjs.Outline; exports.ParagraphStyles = _chunk6LUYFHHNcjs.ParagraphStyles; exports.RichClipboard = _chunk6LUYFHHNcjs.RichClipboard; exports.SMILIE_REPLACEMENTS = _chunk6LUYFHHNcjs.SMILIE_REPLACEMENTS; exports.SPARKLINE_KINDS = _chunkXNQ5EFB4cjs.SPARKLINE_KINDS; exports.STYLE_ID_ATTRIBUTE = _chunk6LUYFHHNcjs.STYLE_ID_ATTRIBUTE; exports.SlashCommands = _chunk6LUYFHHNcjs.SlashCommands; exports.SmilieReplacer = _chunk6LUYFHHNcjs.SmilieReplacer; exports.Sparkline = _chunkXNQ5EFB4cjs.Sparkline; exports.StyleRegistry = _chunkYN6JKAUEcjs.StyleRegistry; exports.TABLE_ACTIONS = _chunkXNQ5EFB4cjs.TABLE_ACTIONS; exports.TRACK_CHANGES_SKIP_META = _chunk34RQAGWIcjs.TRACK_CHANGES_SKIP_META; exports.Table = _chunkXNQ5EFB4cjs.Table; exports.TableCell = _chunkXNQ5EFB4cjs.TableCell; exports.TableHeader = _chunkXNQ5EFB4cjs.TableHeader; exports.TableOfContents = _chunk6LUYFHHNcjs.TableOfContents; exports.TableRow = _chunkXNQ5EFB4cjs.TableRow; exports.TemplateSuggestions = _chunk6LUYFHHNcjs.TemplateSuggestions; exports.TrackChanges = _chunk34RQAGWIcjs.TrackChanges; exports.TrackChangesStore = _chunk34RQAGWIcjs.TrackChangesStore; exports.TrackedDeletion = _chunk34RQAGWIcjs.TrackedDeletion; exports.TrackedFormatChange = _chunk34RQAGWIcjs.TrackedFormatChange; exports.TrackedInsertion = _chunk34RQAGWIcjs.TrackedInsertion; exports.agentCaretPluginKey = _chunkXNQ5EFB4cjs.agentCaretPluginKey; exports.applyDocumentComparison = _chunk6LUYFHHNcjs.applyDocumentComparison; exports.applyReplacements = _chunkXNQ5EFB4cjs.applyReplacements; exports.autocorrectPluginKey = _chunk6LUYFHHNcjs.autocorrectPluginKey; exports.buildOutlineTree = _chunk6LUYFHHNcjs.buildOutlineTree; exports.capitalizeSentenceRules = _chunk6LUYFHHNcjs.capitalizeSentenceRules; exports.captureSelectionFormat = _chunk6LUYFHHNcjs.captureSelectionFormat; exports.chartPluginKey = _chunkXNQ5EFB4cjs.chartPluginKey; exports.clearAgentCaret = _chunkXNQ5EFB4cjs.clearAgentCaret; exports.commentsPluginKey = _chunk6LUYFHHNcjs.commentsPluginKey; exports.compareInEditor = _chunk6LUYFHHNcjs.compareInEditor; exports.compileFindPattern = _chunkXNQ5EFB4cjs.compileFindPattern; exports.computeOutline = _chunk6LUYFHHNcjs.computeOutline; exports.createAgentCaretPlugin = _chunkXNQ5EFB4cjs.createAgentCaretPlugin; exports.createChartNodeView = _chunkXNQ5EFB4cjs.createChartNodeView; exports.createCommentStore = _chunk34RQAGWIcjs.createCommentStore; exports.createFindReplaceCommands = _chunk6LUYFHHNcjs.createFindReplaceCommands; exports.createMentionExtension = _chunk6LUYFHHNcjs.createMentionExtension; exports.createOutlineStore = _chunk6LUYFHHNcjs.createOutlineStore; exports.createParagraphStylesStore = _chunk6LUYFHHNcjs.createParagraphStylesStore; exports.createReviewId = _chunk34RQAGWIcjs.createReviewId; exports.createRichTextPreset = _chunk6LUYFHHNcjs.createRichTextPreset; exports.createSearchBudget = _chunkXNQ5EFB4cjs.createSearchBudget; exports.createStyleRegistry = _chunkYN6JKAUEcjs.createStyleRegistry; exports.createTableCommands = _chunk6LUYFHHNcjs.createTableCommands; exports.createTableExtensions = _chunkXNQ5EFB4cjs.createTableExtensions; exports.createTableNestingPlugin = _chunkXNQ5EFB4cjs.createTableNestingPlugin; exports.createTableStore = _chunkXNQ5EFB4cjs.createTableStore; exports.crossReferencePluginKey = _chunk6LUYFHHNcjs.crossReferencePluginKey; exports.defaultAutocorrectRules = _chunk6LUYFHHNcjs.defaultAutocorrectRules; exports.describeBlockChange = _chunk34RQAGWIcjs.describeBlockChange; exports.describeFormatChange = _chunk34RQAGWIcjs.describeFormatChange; exports.documentStructureCommandItems = _chunk6LUYFHHNcjs.documentStructureCommandItems; exports.ensureAgentCaret = _chunkXNQ5EFB4cjs.ensureAgentCaret; exports.expandReplacement = _chunkXNQ5EFB4cjs.expandReplacement; exports.fileImportPluginKey = _chunk6LUYFHHNcjs.fileImportPluginKey; exports.findAllMatches = _chunkXNQ5EFB4cjs.findAllMatches; exports.findAutocorrection = _chunk6LUYFHHNcjs.findAutocorrection; exports.findCommentRanges = _chunk6LUYFHHNcjs.findCommentRanges; exports.findHexColors = _chunk6LUYFHHNcjs.findHexColors; exports.findReplacePluginKey = _chunk6LUYFHHNcjs.findReplacePluginKey; exports.foldCodePoint = _chunkXNQ5EFB4cjs.foldCodePoint; exports.footnotesMarkdownIt = _chunk6LUYFHHNcjs.footnotesMarkdownIt; exports.footnotesPluginKey = _chunk6LUYFHHNcjs.footnotesPluginKey; exports.formatFindStatus = _chunk6LUYFHHNcjs.formatFindStatus; exports.formatReviewTime = _chunk34RQAGWIcjs.formatReviewTime; exports.fractionRules = _chunk6LUYFHHNcjs.fractionRules; exports.getActiveHeading = _chunk6LUYFHHNcjs.getActiveHeading; exports.getAgentCarets = _chunkXNQ5EFB4cjs.getAgentCarets; exports.getBookmarks = _chunk6LUYFHHNcjs.getBookmarks; exports.getCommentAnchors = _chunk6LUYFHHNcjs.getCommentAnchors; exports.getCommentAuthor = _chunk6LUYFHHNcjs.getCommentAuthor; exports.getCommentIdsAt = _chunk6LUYFHHNcjs.getCommentIdsAt; exports.getCommentStore = _chunk6LUYFHHNcjs.getCommentStore; exports.getCrossReferenceTargets = _chunk6LUYFHHNcjs.getCrossReferenceTargets; exports.getDocumentCharts = _chunkXNQ5EFB4cjs.getDocumentCharts; exports.getDocumentStructureCommandItems = _chunk6LUYFHHNcjs.getDocumentStructureCommandItems; exports.getFindReplaceState = _chunk6LUYFHHNcjs.getFindReplaceState; exports.getFindReplaceStore = _chunk6LUYFHHNcjs.getFindReplaceStore; exports.getFootnotes = _chunk6LUYFHHNcjs.getFootnotes; exports.getMentionNodes = _chunk6LUYFHHNcjs.getMentionNodes; exports.getOutline = _chunk6LUYFHHNcjs.getOutline; exports.getParagraphStyleAt = _chunk6LUYFHHNcjs.getParagraphStyleAt; exports.getStyleRegistry = _chunk6LUYFHHNcjs.getStyleRegistry; exports.getTableActionState = _chunkXNQ5EFB4cjs.getTableActionState; exports.getTableOfContentsEntries = _chunk6LUYFHHNcjs.getTableOfContentsEntries; exports.getTableState = _chunkXNQ5EFB4cjs.getTableState; exports.getTrackChangesStore = _chunk34RQAGWIcjs.getTrackChangesStore; exports.getTrackedChangeAt = _chunk34RQAGWIcjs.getTrackedChangeAt; exports.getTrackedChanges = _chunk34RQAGWIcjs.getTrackedChanges; exports.handleImageInsertion = _chunk6LUYFHHNcjs.handleImageInsertion; exports.handleTablePasteWithoutNesting = _chunkXNQ5EFB4cjs.handleTablePasteWithoutNesting; exports.imagePastePluginKey = _chunk6LUYFHHNcjs.imagePastePluginKey; exports.insertImageNode = _chunk6LUYFHHNcjs.insertImageNode; exports.insertSliceAfterTable = _chunkXNQ5EFB4cjs.insertSliceAfterTable; exports.isChartEnabled = _chunkXNQ5EFB4cjs.isChartEnabled; exports.isGfmTable = _chunkXNQ5EFB4cjs.isGfmTable; exports.isInTableCell = _chunkXNQ5EFB4cjs.isInTableCell; exports.isInsidePromptToken = _chunk6LUYFHHNcjs.isInsidePromptToken; exports.isMoveSized = _chunk34RQAGWIcjs.isMoveSized; exports.isParagraphStyleAvailable = _chunk6LUYFHHNcjs.isParagraphStyleAvailable; exports.isSelectionInTable = _chunkXNQ5EFB4cjs.isSelectionInTable; exports.isTableEnabled = _chunkXNQ5EFB4cjs.isTableEnabled; exports.isTrackChangesEnabled = _chunk34RQAGWIcjs.isTrackChangesEnabled; exports.isValidStyleId = _chunkYN6JKAUEcjs.isValidStyleId; exports.markAgentChanges = _chunkXNQ5EFB4cjs.markAgentChanges; exports.navigateToHeading = _chunk6LUYFHHNcjs.navigateToHeading; exports.normalizeSparklineValues = _chunkXNQ5EFB4cjs.normalizeSparklineValues; exports.normalizeTableCellAlignment = _chunkXNQ5EFB4cjs.normalizeTableCellAlignment; exports.normalizeTableCellColor = _chunkXNQ5EFB4cjs.normalizeTableCellColor; exports.outermostTableDepth = _chunkXNQ5EFB4cjs.outermostTableDepth; exports.outlinePluginKey = _chunk6LUYFHHNcjs.outlinePluginKey; exports.paragraphStylesPluginKey = _chunk6LUYFHHNcjs.paragraphStylesPluginKey; exports.parseReplacement = _chunkXNQ5EFB4cjs.parseReplacement; exports.removeImageNode = _chunk6LUYFHHNcjs.removeImageNode; exports.replaceWithTextTransaction = _chunkXNQ5EFB4cjs.replaceWithTextTransaction; exports.resolveTrackedChanges = _chunk34RQAGWIcjs.resolveTrackedChanges; exports.richClipboardPluginKey = _chunk6LUYFHHNcjs.richClipboardPluginKey; exports.runTableAction = _chunkXNQ5EFB4cjs.runTableAction; exports.safeCSSValue = _chunkYN6JKAUEcjs.safeCSSValue; exports.safeMergeAttributes = _chunk34RQAGWIcjs.safeMergeAttributes; exports.searchDocument = _chunkXNQ5EFB4cjs.searchDocument; exports.setAgentCaret = _chunkXNQ5EFB4cjs.setAgentCaret; exports.setMentionRoleAt = _chunk6LUYFHHNcjs.setMentionRoleAt; exports.shouldShowTableBubbleMenu = _chunkXNQ5EFB4cjs.shouldShowTableBubbleMenu; exports.sliceContainsTable = _chunkXNQ5EFB4cjs.sliceContainsTable; exports.smartQuoteRules = _chunk6LUYFHHNcjs.smartQuoteRules; exports.smilieAutocorrectRules = _chunk6LUYFHHNcjs.smilieAutocorrectRules; exports.sparklineLabel = _chunkXNQ5EFB4cjs.sparklineLabel; exports.staticChartSvg = _chunkXNQ5EFB4cjs.staticChartSvg; exports.symbolRules = _chunk6LUYFHHNcjs.symbolRules; exports.syncFootnotes = _chunk6LUYFHHNcjs.syncFootnotes; exports.tableNestingPluginKey = _chunkXNQ5EFB4cjs.tableNestingPluginKey; exports.tableOfContentsMarkdownIt = _chunk6LUYFHHNcjs.tableOfContentsMarkdownIt; exports.tableOfContentsPluginKey = _chunk6LUYFHHNcjs.tableOfContentsPluginKey; exports.trackChangesPluginKey = _chunk34RQAGWIcjs.trackChangesPluginKey; exports.trackedChangeLabel = _chunk34RQAGWIcjs.trackedChangeLabel; exports.twoInitialCapitalsRules = _chunk6LUYFHHNcjs.twoInitialCapitalsRules; exports.typeAgentText = _chunkXNQ5EFB4cjs.typeAgentText; exports.unnestTables = _chunkXNQ5EFB4cjs.unnestTables; exports.updateImageSrc = _chunk6LUYFHHNcjs.updateImageSrc; exports.validateFindPattern = _chunk6LUYFHHNcjs.validateFindPattern; exports.writeRichClipboard = _chunk6LUYFHHNcjs.writeRichClipboard;
|
package/dist/extensions/index.js
CHANGED
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
updateImageSrc,
|
|
96
96
|
validateFindPattern,
|
|
97
97
|
writeRichClipboard
|
|
98
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-YABNLNY7.js";
|
|
99
99
|
import {
|
|
100
100
|
DEFAULT_STYLES,
|
|
101
101
|
NORMAL_STYLE_ID,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
isValidStyleId,
|
|
105
105
|
safeCSSValue
|
|
106
106
|
} from "../chunk-CXXKJBQZ.js";
|
|
107
|
-
import "../chunk-
|
|
107
|
+
import "../chunk-DBIVICAO.js";
|
|
108
108
|
import "../chunk-V5OOP74P.js";
|
|
109
109
|
import {
|
|
110
110
|
ALLOW_NESTED_TABLES_META,
|
|
@@ -171,10 +171,10 @@ import {
|
|
|
171
171
|
tableNestingPluginKey,
|
|
172
172
|
typeAgentText,
|
|
173
173
|
unnestTables
|
|
174
|
-
} from "../chunk-
|
|
175
|
-
import "../chunk-
|
|
176
|
-
import "../chunk-
|
|
177
|
-
import "../chunk-
|
|
174
|
+
} from "../chunk-5QBRAIVK.js";
|
|
175
|
+
import "../chunk-SSCL7QQ4.js";
|
|
176
|
+
import "../chunk-R3QY7PPL.js";
|
|
177
|
+
import "../chunk-H5XX4KHB.js";
|
|
178
178
|
import "../chunk-ZLZKGHSZ.js";
|
|
179
179
|
import "../chunk-2INPJDNY.js";
|
|
180
180
|
import "../chunk-RTRQ7XFI.js";
|
|
@@ -24,7 +24,7 @@ import { CoverageMap, MixerStroke, type CloneTransform, StrokeCoverage, type Bru
|
|
|
24
24
|
import type { Interpolation } from '../raster/transform.cjs';
|
|
25
25
|
import { type PsdImportResult } from './psd/import.cjs';
|
|
26
26
|
import { FreeTransformSession, type FreeTransformInit, type FreeTransformResult } from './free-transform.cjs';
|
|
27
|
-
import { type AffineMatrix, type Quad, type TransformParams, type WarpMesh, type WarpPreset } from './transform.cjs';
|
|
27
|
+
import { type TransformAnchor, type AffineMatrix, type Quad, type TransformParams, type WarpMesh, type WarpPreset } from './transform.cjs';
|
|
28
28
|
import { type BuiltinProfileId, type ColorSpace, type Intent } from '../cms/index.cjs';
|
|
29
29
|
import { type ProofSetup } from './color-management.cjs';
|
|
30
30
|
import type { EffectPattern } from '../raster/effects/patterns.cjs';
|
|
@@ -690,6 +690,15 @@ export declare class ImageEditorController {
|
|
|
690
690
|
* included), or `null` for an empty or non-pixel layer.
|
|
691
691
|
*/
|
|
692
692
|
getLayerBounds(id: string): CropBox | null;
|
|
693
|
+
/**
|
|
694
|
+
* Hit-tests the layer stack at `point` (in document space) and returns the id of the topmost
|
|
695
|
+
* matching visible layer, or `null`. Skips adjustment layers.
|
|
696
|
+
*/
|
|
697
|
+
layerAt(point: ImagePoint, opts?: {
|
|
698
|
+
includeHidden?: boolean;
|
|
699
|
+
includeLocked?: boolean;
|
|
700
|
+
alphaThreshold?: number;
|
|
701
|
+
}): string | null;
|
|
693
702
|
/**
|
|
694
703
|
* A tight base64 PNG data URL of a pixel or smart layer's content, or `null` for an unknown or
|
|
695
704
|
* non-pixel layer, or when the layer is completely transparent.
|
|
@@ -1193,6 +1202,20 @@ export declare class ImageEditorController {
|
|
|
1193
1202
|
/** The active selection, or `null`. */
|
|
1194
1203
|
getSelection(): SelectionMask | null;
|
|
1195
1204
|
get hasSelection(): boolean;
|
|
1205
|
+
/** Returns the current canvas (composition) dimensions. */
|
|
1206
|
+
getCanvasSize(): {
|
|
1207
|
+
width: number;
|
|
1208
|
+
height: number;
|
|
1209
|
+
};
|
|
1210
|
+
/**
|
|
1211
|
+
* Resizes the composition canvas (one undo step). Layers are shifted according to `anchor`
|
|
1212
|
+
* (default 'center'), and the new dimensions are saved into document state.
|
|
1213
|
+
*/
|
|
1214
|
+
resizeCanvas(options: {
|
|
1215
|
+
width: number;
|
|
1216
|
+
height: number;
|
|
1217
|
+
anchor?: TransformAnchor;
|
|
1218
|
+
}): void;
|
|
1196
1219
|
private get naturalSize();
|
|
1197
1220
|
private dropMismatchedSelection;
|
|
1198
1221
|
/**
|
|
@@ -24,7 +24,7 @@ import { CoverageMap, MixerStroke, type CloneTransform, StrokeCoverage, type Bru
|
|
|
24
24
|
import type { Interpolation } from '../raster/transform.js';
|
|
25
25
|
import { type PsdImportResult } from './psd/import.js';
|
|
26
26
|
import { FreeTransformSession, type FreeTransformInit, type FreeTransformResult } from './free-transform.js';
|
|
27
|
-
import { type AffineMatrix, type Quad, type TransformParams, type WarpMesh, type WarpPreset } from './transform.js';
|
|
27
|
+
import { type TransformAnchor, type AffineMatrix, type Quad, type TransformParams, type WarpMesh, type WarpPreset } from './transform.js';
|
|
28
28
|
import { type BuiltinProfileId, type ColorSpace, type Intent } from '../cms/index.js';
|
|
29
29
|
import { type ProofSetup } from './color-management.js';
|
|
30
30
|
import type { EffectPattern } from '../raster/effects/patterns.js';
|
|
@@ -690,6 +690,15 @@ export declare class ImageEditorController {
|
|
|
690
690
|
* included), or `null` for an empty or non-pixel layer.
|
|
691
691
|
*/
|
|
692
692
|
getLayerBounds(id: string): CropBox | null;
|
|
693
|
+
/**
|
|
694
|
+
* Hit-tests the layer stack at `point` (in document space) and returns the id of the topmost
|
|
695
|
+
* matching visible layer, or `null`. Skips adjustment layers.
|
|
696
|
+
*/
|
|
697
|
+
layerAt(point: ImagePoint, opts?: {
|
|
698
|
+
includeHidden?: boolean;
|
|
699
|
+
includeLocked?: boolean;
|
|
700
|
+
alphaThreshold?: number;
|
|
701
|
+
}): string | null;
|
|
693
702
|
/**
|
|
694
703
|
* A tight base64 PNG data URL of a pixel or smart layer's content, or `null` for an unknown or
|
|
695
704
|
* non-pixel layer, or when the layer is completely transparent.
|
|
@@ -1193,6 +1202,20 @@ export declare class ImageEditorController {
|
|
|
1193
1202
|
/** The active selection, or `null`. */
|
|
1194
1203
|
getSelection(): SelectionMask | null;
|
|
1195
1204
|
get hasSelection(): boolean;
|
|
1205
|
+
/** Returns the current canvas (composition) dimensions. */
|
|
1206
|
+
getCanvasSize(): {
|
|
1207
|
+
width: number;
|
|
1208
|
+
height: number;
|
|
1209
|
+
};
|
|
1210
|
+
/**
|
|
1211
|
+
* Resizes the composition canvas (one undo step). Layers are shifted according to `anchor`
|
|
1212
|
+
* (default 'center'), and the new dimensions are saved into document state.
|
|
1213
|
+
*/
|
|
1214
|
+
resizeCanvas(options: {
|
|
1215
|
+
width: number;
|
|
1216
|
+
height: number;
|
|
1217
|
+
anchor?: TransformAnchor;
|
|
1218
|
+
}): void;
|
|
1196
1219
|
private get naturalSize();
|
|
1197
1220
|
private dropMismatchedSelection;
|
|
1198
1221
|
/**
|
|
@@ -94,5 +94,14 @@ export interface ImageCropPreset {
|
|
|
94
94
|
}
|
|
95
95
|
/** Standard aspect-ratio presets for cropping. */
|
|
96
96
|
export declare const IMAGE_CROP_PRESETS: readonly ImageCropPreset[];
|
|
97
|
+
export interface CanvasSizePreset {
|
|
98
|
+
id: string;
|
|
99
|
+
label: string;
|
|
100
|
+
width: number;
|
|
101
|
+
height: number;
|
|
102
|
+
aspectRatio?: string;
|
|
103
|
+
}
|
|
104
|
+
/** Standard composition and canvas size presets. */
|
|
105
|
+
export declare const CANVAS_SIZE_PRESETS: readonly CanvasSizePreset[];
|
|
97
106
|
/** Numeric controls for depth-mask near/far threshold range. */
|
|
98
107
|
export declare const DEPTH_MASK_CONTROLS: readonly ControlSpec[];
|
|
@@ -94,5 +94,14 @@ export interface ImageCropPreset {
|
|
|
94
94
|
}
|
|
95
95
|
/** Standard aspect-ratio presets for cropping. */
|
|
96
96
|
export declare const IMAGE_CROP_PRESETS: readonly ImageCropPreset[];
|
|
97
|
+
export interface CanvasSizePreset {
|
|
98
|
+
id: string;
|
|
99
|
+
label: string;
|
|
100
|
+
width: number;
|
|
101
|
+
height: number;
|
|
102
|
+
aspectRatio?: string;
|
|
103
|
+
}
|
|
104
|
+
/** Standard composition and canvas size presets. */
|
|
105
|
+
export declare const CANVAS_SIZE_PRESETS: readonly CanvasSizePreset[];
|
|
97
106
|
/** Numeric controls for depth-mask near/far threshold range. */
|
|
98
107
|
export declare const DEPTH_MASK_CONTROLS: readonly ControlSpec[];
|