ooxml-ui 1.34.0 → 1.36.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/custom-elements.json +14 -1
- package/dist/chart/format-pane-analysis.d.ts +0 -1
- package/dist/chart/format-pane-effects.d.ts +0 -1
- package/dist/chart/format-pane-fill-kinds.d.ts +0 -1
- package/dist/chart/format-pane-fill-line.d.ts +0 -1
- package/dist/chart/format-pane-targets.d.ts +0 -1
- package/dist/chart/format-pane-text.d.ts +0 -1
- package/dist/chrome/tab-drag.d.ts +27 -0
- package/dist/chrome/tab-drag.d.ts.map +1 -0
- package/dist/chrome/tab-strip.d.ts +25 -1
- package/dist/chrome/tab-strip.d.ts.map +1 -1
- package/dist/{chunk-CDC5MAZS.js → chunk-6VF4FEMY.js} +1 -1
- package/dist/chunk-7RRN2GPO.js +19 -0
- package/dist/{chunk-3AOIYE3R.js → chunk-7ST5QRD5.js} +1 -1
- package/dist/{chunk-6TS7ASDJ.js → chunk-C4KI635Q.js} +2 -17
- package/dist/{chunk-CALEXPBD.js → chunk-GZNBWWJ5.js} +840 -51
- package/dist/{chunk-KYXSQFDB.js → chunk-QAX4FAB7.js} +139 -4
- package/dist/{chunk-SWDVBUBW.js → chunk-Z4DML5NW.js} +3 -3
- package/dist/controls.d.ts +1 -1
- package/dist/controls.d.ts.map +1 -1
- package/dist/controls.js +1 -1
- package/dist/docx/building-blocks-actions.d.ts +2 -2
- package/dist/docx/editable-region-view.d.ts +4 -0
- package/dist/docx/editor-chrome.d.ts +1 -1
- package/dist/docx/editor-core.d.ts +4 -0
- package/dist/docx/editor-plugins.d.ts +3 -0
- package/dist/docx/file-commands.d.ts +5 -0
- package/dist/docx/format-dialogs.d.ts +6 -1
- package/dist/docx/insert-controller.d.ts +5 -0
- package/dist/docx/list-commands.d.ts +3 -1
- package/dist/docx/list-marker-display.d.ts +1 -1
- package/dist/docx/locales/en-app.d.ts +0 -1
- package/dist/docx/locales/en-ribbon.d.ts +51 -0
- package/dist/docx/locales/en.d.ts +51 -1
- package/dist/docx/localization-strings.d.ts +51 -1
- package/dist/docx/paragraph-styles.d.ts +1 -1
- package/dist/docx/print-picture.d.ts +4 -0
- package/dist/docx/protection-controls.d.ts +4 -0
- package/dist/docx/restrict-editing-pane.d.ts +14 -0
- package/dist/docx/ribbon-action.d.ts +4 -0
- package/dist/docx/ribbon-icons.d.ts +1 -0
- package/dist/docx/search-controller.d.ts +12 -5
- package/dist/docx/search-document.d.ts +32 -0
- package/dist/docx.js +1227 -390
- package/dist/export/pdf-embedded-font.d.ts +65 -0
- package/dist/export/pdf-fonts.d.ts +14 -0
- package/dist/export/pdf-vector.d.ts +84 -0
- package/dist/image-native-size.d.ts +43 -0
- package/dist/image-native-size.d.ts.map +1 -0
- package/dist/index.js +5 -5
- package/dist/picture-artistic-filters.d.ts +9 -0
- package/dist/picture-artistic-filters.d.ts.map +1 -0
- package/dist/picture-artistic-preview.d.ts +3 -0
- package/dist/picture-artistic-preview.d.ts.map +1 -0
- package/dist/picture-effects.d.ts +3 -1
- package/dist/picture-effects.d.ts.map +1 -0
- package/dist/picture-paint.d.ts +23 -0
- package/dist/picture-paint.d.ts.map +1 -0
- package/dist/picture-pixels.d.ts +11 -0
- package/dist/picture-pixels.d.ts.map +1 -0
- package/dist/picture-standard-filter.d.ts +6 -0
- package/dist/picture-standard-filter.d.ts.map +1 -0
- package/dist/picture-view.d.ts +10 -0
- package/dist/picture-view.d.ts.map +1 -0
- package/dist/pptx/ai/bridge-factory.d.ts +4 -1
- package/dist/pptx/ai/bridge-factory.d.ts.map +1 -1
- package/dist/pptx/ai/config.d.ts +1 -1
- package/dist/pptx/ai/config.d.ts.map +1 -1
- package/dist/pptx/ai/host.cjs +36 -36
- package/dist/pptx/ai/host.mjs +1 -1
- package/dist/pptx/ai/index.cjs +50 -43
- package/dist/pptx/ai/index.mjs +10 -3
- package/dist/pptx/ai/system-prompt.d.ts +1 -1
- package/dist/pptx/ai/system-prompt.d.ts.map +1 -1
- package/dist/pptx/ai/tool-summary.d.ts.map +1 -1
- package/dist/pptx/ai/tools/mcp-registry.d.ts.map +1 -1
- package/dist/pptx/{chart-3d-view-scene-HNL4NWJT.mjs → chart-3d-view-scene-BKNMGRGO.mjs} +3 -25
- package/dist/pptx/{chart-3d-view-scene-OPVBTZL5.cjs → chart-3d-view-scene-V55XPBBF.cjs} +39 -61
- package/dist/pptx/{chunk-KGDMMWIY.mjs → chunk-2AK5MS6H.mjs} +11 -0
- package/dist/pptx/{chunk-M55PNMFQ.cjs → chunk-4OKSYRYA.cjs} +11 -0
- package/dist/pptx/{chunk-CH4Z6H6C.mjs → chunk-4RSRCNRM.mjs} +1192 -382
- package/dist/pptx/{chunk-TDIJHLS5.cjs → chunk-6JJD3LFT.cjs} +1532 -715
- package/dist/pptx/{chunk-46HIE4IE.cjs → chunk-CRV7G4GC.cjs} +8 -0
- package/dist/pptx/{chunk-S3L5NNCK.cjs → chunk-FROIGMTI.cjs} +1 -1
- package/dist/pptx/{chunk-S5I64Y55.cjs → chunk-HIRBPTML.cjs} +12 -12
- package/dist/pptx/{chunk-D4LJJ7Z7.cjs → chunk-KJICUZXM.cjs} +171 -540
- package/dist/pptx/{chunk-7DT3UJQB.mjs → chunk-KNCCSPAV.mjs} +7 -3
- package/dist/pptx/{chunk-RZVEPTLN.mjs → chunk-QK6LJT3K.mjs} +140 -529
- package/dist/pptx/{chunk-ZS5EVODY.cjs → chunk-SI7GQYSL.cjs} +52 -48
- package/dist/pptx/{chunk-LCCRLB7Q.mjs → chunk-UHDWWRTX.mjs} +1 -1
- package/dist/pptx/{chunk-6MEBLCNK.mjs → chunk-WQI3NLMY.mjs} +8 -0
- package/dist/pptx/{chunk-SPOECCPV.mjs → chunk-WZHYA2B3.mjs} +1 -1
- package/dist/pptx/dom/elements/smartart.d.ts.map +1 -1
- package/dist/pptx/dom/index.cjs +427 -427
- package/dist/pptx/dom/index.mjs +10 -10
- package/dist/pptx/export/html2canvas-clone.cjs +6 -6
- package/dist/pptx/export/html2canvas-clone.mjs +1 -1
- package/dist/pptx/i18n/index.cjs +6 -6
- package/dist/pptx/i18n/index.mjs +1 -1
- package/dist/pptx/i18n/translations-en.d.ts.map +1 -1
- package/dist/pptx/index.cjs +3361 -3353
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/render/chart-3d-projection.d.ts +5 -54
- package/dist/pptx/render/chart-3d-projection.d.ts.map +1 -1
- package/dist/pptx/render/chart-3d-shading.d.ts +7 -10
- package/dist/pptx/render/chart-3d-shading.d.ts.map +1 -1
- package/dist/pptx/render/chart-combo-stock.cjs +3 -3
- package/dist/pptx/render/chart-combo-stock.mjs +1 -1
- package/dist/pptx/render/chart-funnel-sunburst.d.ts +1 -1
- package/dist/pptx/render/chart-funnel-sunburst.d.ts.map +1 -1
- package/dist/pptx/render/chart-map-projection.d.ts +2 -37
- package/dist/pptx/render/chart-map-projection.d.ts.map +1 -1
- package/dist/pptx/render/chart-overlays.cjs +7 -7
- package/dist/pptx/render/chart-overlays.mjs +1 -1
- package/dist/pptx/render/chart-region-map-alias.d.ts +1 -11
- package/dist/pptx/render/chart-region-map-alias.d.ts.map +1 -1
- package/dist/pptx/render/chart-region-map-colors.d.ts +1 -3
- package/dist/pptx/render/chart-region-map-colors.d.ts.map +1 -1
- package/dist/pptx/render/chart-region-map-data.d.ts +2 -44
- package/dist/pptx/render/chart-region-map-data.d.ts.map +1 -1
- package/dist/pptx/render/chart-region-map-view.d.ts.map +1 -1
- package/dist/pptx/render/chart-surface-treemap.cjs +4 -4
- package/dist/pptx/render/chart-surface-treemap.mjs +1 -1
- package/dist/pptx/render/chart-view-model-types.d.ts +2 -0
- package/dist/pptx/render/chart-view-model-types.d.ts.map +1 -1
- package/dist/pptx/render/chart-view-model.cjs +44 -44
- package/dist/pptx/render/chart-view-model.mjs +1 -1
- package/dist/pptx/render/chart-waterfall-map.cjs +6 -6
- package/dist/pptx/render/chart-waterfall-map.mjs +1 -1
- package/dist/pptx/render/controller/custom-shows-controller.d.ts +93 -0
- package/dist/pptx/render/controller/custom-shows-controller.d.ts.map +1 -0
- package/dist/pptx/render/controller/index.d.ts +2 -0
- package/dist/pptx/render/controller/index.d.ts.map +1 -1
- package/dist/pptx/render/custom-shows.d.ts +10 -2
- package/dist/pptx/render/custom-shows.d.ts.map +1 -1
- package/dist/pptx/render/editor-key-target.d.ts.map +1 -1
- package/dist/pptx/render/image-effect-filter-values.d.ts +1 -10
- package/dist/pptx/render/image-effect-filter-values.d.ts.map +1 -1
- package/dist/pptx/render/image-effects.d.ts +1 -0
- package/dist/pptx/render/image-effects.d.ts.map +1 -1
- package/dist/pptx/render/image-native-size.d.ts +1 -42
- package/dist/pptx/render/image-native-size.d.ts.map +1 -1
- package/dist/pptx/render/image-tiling.d.ts.map +1 -1
- package/dist/pptx/render/index.d.ts +1 -1
- package/dist/pptx/render/index.d.ts.map +1 -1
- package/dist/pptx/render/render-cache.d.ts +1 -3
- package/dist/pptx/render/render-cache.d.ts.map +1 -1
- package/dist/pptx/render/smartart-drawing.d.ts +3 -0
- package/dist/pptx/render/smartart-drawing.d.ts.map +1 -1
- package/dist/pptx/render/smartart-picture-image.d.ts +9 -0
- package/dist/pptx/render/smartart-picture-image.d.ts.map +1 -0
- package/dist/pptx/render/smartart-reflow-to-shapes.d.ts.map +1 -1
- package/dist/pptx/{smartart-insert-preview-RQUFRLSV.mjs → smartart-insert-preview-JH5TXECK.mjs} +6 -6
- package/dist/pptx/{smartart-insert-preview-YKNB37GE.cjs → smartart-insert-preview-QWROEVZL.cjs} +7 -7
- package/dist/render-cache.d.ts +4 -0
- package/dist/render-cache.d.ts.map +1 -0
- package/dist/smartart/smartart-paint.d.ts +2 -1
- package/dist/smartart/smartart-picture.d.ts +4 -3
- package/dist/smartart/smartart-text-pane-tools.d.ts +0 -1
- package/dist/smartart.d.ts +3 -0
- package/dist/smartart.js +1 -1
- package/dist/teams.js +2 -2
- package/dist/theme-bridge.d.ts +0 -1
- package/dist/theme.d.ts +0 -1
- package/dist/touch-targets.d.ts +0 -1
- package/dist/visio/binding.d.ts +2 -1
- package/dist/visio/canvas-editing.d.ts +2 -0
- package/dist/visio/controller.d.ts +3 -0
- package/dist/visio/pdf-path.d.ts +37 -0
- package/dist/visio/pdf-svg-gradient.d.ts +23 -0
- package/dist/visio/pdf-svg-style.d.ts +20 -0
- package/dist/visio/pdf-svg-text.d.ts +8 -0
- package/dist/visio/pdf-svg.d.ts +22 -0
- package/dist/visio/ribbon-action.d.ts +47 -5
- package/dist/visio/ribbon-arrange.d.ts +9 -0
- package/dist/visio/ribbon-contextual-formats.d.ts +18 -0
- package/dist/visio/ribbon-org-chart.d.ts +7 -0
- package/dist/visio/ribbon-router.d.ts +18 -0
- package/dist/visio/ribbon-shape-format.d.ts +7 -0
- package/dist/visio/ribbon-size-fields.d.ts +5 -0
- package/dist/visio/ribbon-swimlane.d.ts +9 -0
- package/dist/visio/ribbon-themes.d.ts +13 -3
- package/dist/visio/ribbon.d.ts +5 -1
- package/dist/visio/shapes-files-ui.d.ts +1 -1
- package/dist/visio/template-thumbnails.d.ts +10 -0
- package/dist/visio/viewer-backstage.d.ts +9 -3
- package/dist/visio/viewer-chart-editor.d.ts +2 -1
- package/dist/visio/viewer-contextual-tabs.d.ts +21 -0
- package/dist/visio/viewer-diagram-parts.d.ts +9 -1
- package/dist/visio/viewer-element.d.ts +10 -0
- package/dist/visio/viewer-export.d.ts +1 -6
- package/dist/visio/viewer-file-commands.d.ts +6 -1
- package/dist/visio/viewer-guides.d.ts +8 -1
- package/dist/visio/viewer-inline-size.d.ts +15 -0
- package/dist/visio/viewer-insert-dialog.d.ts +1 -0
- package/dist/visio/viewer-new-drawing.d.ts +3 -2
- package/dist/visio/viewer-org-chart.d.ts +19 -0
- package/dist/visio/viewer-pdf-options.d.ts +26 -0
- package/dist/visio/viewer-pdf.d.ts +47 -0
- package/dist/visio/viewer-picture-format.d.ts +20 -0
- package/dist/visio/viewer-resize-handles.d.ts +13 -1
- package/dist/visio/viewer-swimlanes.d.ts +34 -0
- package/dist/visio.js +4079 -742
- package/dist/xlsx/dialogs/audit-dialogs.d.ts +9 -0
- package/dist/xlsx/dialogs/custom-autofilter.d.ts +12 -0
- package/dist/xlsx/dialogs/custom-lists.d.ts +6 -0
- package/dist/xlsx/dialogs/filter-dates.d.ts +4 -0
- package/dist/xlsx/dialogs/help-dialogs.d.ts +2 -2
- package/dist/xlsx/dialogs/sort-dialog.d.ts +3 -3
- package/dist/xlsx/dialogs/text-to-columns.d.ts +0 -7
- package/dist/xlsx/dialogs/top10-filter.d.ts +5 -0
- package/dist/xlsx/dialogs/watch-window.d.ts +4 -0
- package/dist/xlsx/grid/audit-layer.d.ts +3 -0
- package/dist/xlsx/grid/filter-buttons.d.ts +11 -0
- package/dist/xlsx/grid/filter-menu.d.ts +10 -0
- package/dist/xlsx/grid/filter-presets.d.ts +19 -0
- package/dist/xlsx/grid/grid-view.d.ts +23 -1
- package/dist/xlsx/grid/pane-chrome.d.ts +2 -0
- package/dist/xlsx/grid/split-bars.d.ts +2 -0
- package/dist/xlsx/grid/styles.d.ts +1 -1
- package/dist/xlsx/sheet-tabs/drag.d.ts +1 -2
- package/dist/xlsx.js +1991 -450
- package/package.json +2 -2
|
@@ -1,31 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkHIRBPTML_cjs = require('./chunk-HIRBPTML.cjs');
|
|
4
|
+
var chunkKJICUZXM_cjs = require('./chunk-KJICUZXM.cjs');
|
|
5
|
+
var chart = require('ooxml-core/chart');
|
|
5
6
|
|
|
6
|
-
// src/pptx/render/chart-3d-shading.ts
|
|
7
|
-
var FACE_SHADE_AMOUNT = {
|
|
8
|
-
front: 0,
|
|
9
|
-
top: 0.25,
|
|
10
|
-
right: 0.36,
|
|
11
|
-
left: 0.36,
|
|
12
|
-
back: 0.36,
|
|
13
|
-
bottom: 0.5
|
|
14
|
-
};
|
|
15
|
-
function shadeChart3DFace(baseColor, face) {
|
|
16
|
-
const amount = FACE_SHADE_AMOUNT[face];
|
|
17
|
-
return amount === 0 ? baseColor : chunkD4LJJ7Z7_cjs.shade(baseColor, amount);
|
|
18
|
-
}
|
|
19
|
-
function buildChart3DBoxFaceColors(baseColor) {
|
|
20
|
-
return [
|
|
21
|
-
shadeChart3DFace(baseColor, "right"),
|
|
22
|
-
shadeChart3DFace(baseColor, "left"),
|
|
23
|
-
shadeChart3DFace(baseColor, "top"),
|
|
24
|
-
shadeChart3DFace(baseColor, "bottom"),
|
|
25
|
-
shadeChart3DFace(baseColor, "front"),
|
|
26
|
-
shadeChart3DFace(baseColor, "back")
|
|
27
|
-
];
|
|
28
|
-
}
|
|
29
7
|
var NORMAL_SHADE = {
|
|
30
8
|
box: [0.64, 0.75, 1],
|
|
31
9
|
cylinder: [0.62, 0.75, 1.07],
|
|
@@ -175,7 +153,7 @@ function buildChart3DBarMeshes(three, layout, svgWidth, svgHeight) {
|
|
|
175
153
|
materials.push(material);
|
|
176
154
|
mesh = new three.Mesh(new three.BufferGeometry(), material);
|
|
177
155
|
} else {
|
|
178
|
-
const faceMaterials = buildChart3DBoxFaceColors(bar.color).map(
|
|
156
|
+
const faceMaterials = chart.buildChart3DBoxFaceColors(bar.color).map(
|
|
179
157
|
(color) => new three.MeshBasicMaterial({ color })
|
|
180
158
|
);
|
|
181
159
|
materials.push(...faceMaterials);
|
|
@@ -203,7 +181,7 @@ function buildChart3DBarMeshes(three, layout, svgWidth, svgHeight) {
|
|
|
203
181
|
// src/pptx/render/chart-3d-chrome-overlay.ts
|
|
204
182
|
function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
205
183
|
const vm = box ? withBoxChromePositions(source) : source;
|
|
206
|
-
const svg =
|
|
184
|
+
const svg = chunkHIRBPTML_cjs.createSvgEl(doc, "svg", {
|
|
207
185
|
class: "pptxv-chart-3d-chrome",
|
|
208
186
|
viewBox: `0 0 ${vm.svgWidth} ${vm.svgHeight}`,
|
|
209
187
|
preserveAspectRatio: "none"
|
|
@@ -216,7 +194,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
216
194
|
svg.style.setProperty("pointer-events", "none");
|
|
217
195
|
if (vm.areaFill) {
|
|
218
196
|
svg.appendChild(
|
|
219
|
-
|
|
197
|
+
chunkHIRBPTML_cjs.createSvgEl(doc, "rect", {
|
|
220
198
|
x: 0,
|
|
221
199
|
y: 0,
|
|
222
200
|
width: vm.svgWidth,
|
|
@@ -227,7 +205,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
227
205
|
);
|
|
228
206
|
}
|
|
229
207
|
if (vm.title) {
|
|
230
|
-
const title =
|
|
208
|
+
const title = chunkHIRBPTML_cjs.createSvgEl(doc, "text", {
|
|
231
209
|
x: vm.titleX,
|
|
232
210
|
y: vm.titleY,
|
|
233
211
|
"text-anchor": "middle",
|
|
@@ -239,7 +217,7 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
239
217
|
});
|
|
240
218
|
if (vm.titleRunSpans && vm.titleRunSpans.length > 0) {
|
|
241
219
|
for (const run of vm.titleRunSpans) {
|
|
242
|
-
const tspan =
|
|
220
|
+
const tspan = chunkHIRBPTML_cjs.createSvgEl(doc, "tspan", {
|
|
243
221
|
"font-size": run.fontSize,
|
|
244
222
|
"font-weight": run.fontWeight,
|
|
245
223
|
"font-style": run.fontStyle,
|
|
@@ -258,28 +236,28 @@ function renderChart3DChromeOverlaySvg(doc, source, box) {
|
|
|
258
236
|
appendBoxLabels(doc, svg, vm, box.labels);
|
|
259
237
|
const legend = box.legend ?? vm.legend.map((item) => ({ ...item, lineSwatch: void 0 }));
|
|
260
238
|
const legendVm = { ...vm, legend: box.reverseLegend ? legend.reverse() : legend };
|
|
261
|
-
|
|
239
|
+
chunkHIRBPTML_cjs.appendChartLegendSvg(doc, svg, legendVm);
|
|
262
240
|
return svg;
|
|
263
241
|
}
|
|
264
242
|
for (const gl of vm.gridlines) {
|
|
265
|
-
svg.appendChild(
|
|
243
|
+
svg.appendChild(chunkHIRBPTML_cjs.renderChartLineSvg(doc, gl));
|
|
266
244
|
}
|
|
267
245
|
for (const gl of vm.secondaryGridlines ?? []) {
|
|
268
|
-
svg.appendChild(
|
|
246
|
+
svg.appendChild(chunkHIRBPTML_cjs.renderChartLineSvg(doc, gl));
|
|
269
247
|
}
|
|
270
248
|
for (const lbl of vm.axisLabels) {
|
|
271
|
-
svg.appendChild(
|
|
249
|
+
svg.appendChild(chunkHIRBPTML_cjs.renderChartTextSvg(doc, lbl));
|
|
272
250
|
}
|
|
273
251
|
for (const lbl of vm.secondaryAxisLabels ?? []) {
|
|
274
|
-
svg.appendChild(
|
|
252
|
+
svg.appendChild(chunkHIRBPTML_cjs.renderChartTextSvg(doc, lbl));
|
|
275
253
|
}
|
|
276
254
|
if (vm.zeroLine) {
|
|
277
|
-
svg.appendChild(
|
|
255
|
+
svg.appendChild(chunkHIRBPTML_cjs.renderChartLineSvg(doc, vm.zeroLine));
|
|
278
256
|
}
|
|
279
257
|
for (const lbl of vm.categoryLabels) {
|
|
280
|
-
svg.appendChild(
|
|
258
|
+
svg.appendChild(chunkHIRBPTML_cjs.renderChartTextSvg(doc, lbl));
|
|
281
259
|
}
|
|
282
|
-
|
|
260
|
+
chunkHIRBPTML_cjs.appendChartLegendSvg(doc, svg, vm);
|
|
283
261
|
return svg;
|
|
284
262
|
}
|
|
285
263
|
var PT = 4 / 3;
|
|
@@ -298,7 +276,7 @@ function appendBoxLabels(doc, svg, vm, labels) {
|
|
|
298
276
|
const style = vm.axisLabels[0];
|
|
299
277
|
for (const label of labels) {
|
|
300
278
|
svg.appendChild(
|
|
301
|
-
|
|
279
|
+
chunkHIRBPTML_cjs.renderChartTextSvg(doc, {
|
|
302
280
|
kind: "text",
|
|
303
281
|
x: label.x,
|
|
304
282
|
y: label.y,
|
|
@@ -368,7 +346,7 @@ function attachChart3DMarkInteraction(options) {
|
|
|
368
346
|
}
|
|
369
347
|
const point = pointAt(event.clientX, event.clientY);
|
|
370
348
|
const value = point ? adapter.valueOf(point) : void 0;
|
|
371
|
-
const tooltip = point && value !== void 0 ?
|
|
349
|
+
const tooltip = point && value !== void 0 ? chunkHIRBPTML_cjs.buildBarChart3DHoverTooltip(
|
|
372
350
|
{ seriesIndex: point.seriesIndex, categoryIndex: point.pointIndex, value },
|
|
373
351
|
{
|
|
374
352
|
categoryLabels: options.categoryLabels,
|
|
@@ -386,7 +364,7 @@ function attachChart3DMarkInteraction(options) {
|
|
|
386
364
|
return;
|
|
387
365
|
}
|
|
388
366
|
const point = pointAt(event.clientX, event.clientY);
|
|
389
|
-
const armed = point !== null &&
|
|
367
|
+
const armed = point !== null && chunkHIRBPTML_cjs.isChartInteractionArmed(target);
|
|
390
368
|
if (armed) {
|
|
391
369
|
event.stopPropagation();
|
|
392
370
|
}
|
|
@@ -462,7 +440,7 @@ function obliqueDragValue(layout, startValue, dx, dy) {
|
|
|
462
440
|
const along = layout.horizontal ? dx : -dy;
|
|
463
441
|
const raw = startValue + along / layout.valueScale;
|
|
464
442
|
const span = layout.range.max - layout.range.min;
|
|
465
|
-
return
|
|
443
|
+
return chunkHIRBPTML_cjs.roundDragValue(raw, { min: layout.range.min, max: layout.range.max, span });
|
|
466
444
|
}
|
|
467
445
|
function obliqueDraggedExtent(layout, value) {
|
|
468
446
|
const { min, max } = layout.range;
|
|
@@ -475,7 +453,7 @@ function obliqueDraggedExtent(layout, value) {
|
|
|
475
453
|
function obliqueBarAtValue(layout, bar, value) {
|
|
476
454
|
const { from, length } = obliqueDraggedExtent(layout, value);
|
|
477
455
|
const extent = (layout.range.max - layout.range.min) * layout.valueScale;
|
|
478
|
-
const taper =
|
|
456
|
+
const taper = chunkHIRBPTML_cjs.obliqueBarTaper(bar.shape, from, from + length, extent, value);
|
|
479
457
|
return layout.horizontal ? { ...bar, x: from, w: length, value, taper } : { ...bar, y: from, h: length, value, taper };
|
|
480
458
|
}
|
|
481
459
|
|
|
@@ -567,7 +545,7 @@ function buildPerspBarPrisms(chartData, layout, override) {
|
|
|
567
545
|
const nSer = chartData.series.length;
|
|
568
546
|
const catExtent = layout.horizontal ? layout.view.box.h : layout.view.box.w;
|
|
569
547
|
const slot = nCat > 0 ? catExtent / nCat : catExtent;
|
|
570
|
-
const gapWidth = (chartData.barGapWidth ??
|
|
548
|
+
const gapWidth = (chartData.barGapWidth ?? chunkKJICUZXM_cjs.DEFAULT_BAR_GAP_WIDTH) / 100;
|
|
571
549
|
const slots = layout.grouping === "clustered" ? nSer : 1;
|
|
572
550
|
const barW = slot / (slots + gapWidth);
|
|
573
551
|
const depth = Math.min(barW, layout.rowDepth);
|
|
@@ -620,7 +598,7 @@ function buildPerspBarPrisms(chartData, layout, override) {
|
|
|
620
598
|
z0,
|
|
621
599
|
z1: z0 + depth,
|
|
622
600
|
shape,
|
|
623
|
-
taper:
|
|
601
|
+
taper: chunkHIRBPTML_cjs.obliqueBarTaper(
|
|
624
602
|
shape,
|
|
625
603
|
v0,
|
|
626
604
|
v1,
|
|
@@ -815,7 +793,7 @@ function buildPerspGridlines(three, layout) {
|
|
|
815
793
|
function buildPerspMeshes(three, layout, prisms) {
|
|
816
794
|
const group = new three.Group();
|
|
817
795
|
group.matrixAutoUpdate = false;
|
|
818
|
-
group.matrix.copy(
|
|
796
|
+
group.matrix.copy(chunkHIRBPTML_cjs.perspBoxMatrix(three, layout.view));
|
|
819
797
|
const gridlines = buildPerspGridlines(three, layout);
|
|
820
798
|
group.add(gridlines);
|
|
821
799
|
const material = new three.MeshBasicMaterial({ vertexColors: true, side: three.DoubleSide });
|
|
@@ -870,7 +848,7 @@ function surfaceBands(chartData, range, palette) {
|
|
|
870
848
|
const fmt = chartData.bandFmts?.find((b) => b.index === i)?.spPr;
|
|
871
849
|
const cycle = palette.length > 0 ? palette : ["#4472C4"];
|
|
872
850
|
const base = cycle[i % cycle.length];
|
|
873
|
-
const fallback = Math.floor(i / cycle.length) % 2 === 1 ?
|
|
851
|
+
const fallback = Math.floor(i / cycle.length) % 2 === 1 ? chunkKJICUZXM_cjs.shade(base, 0.4) : base;
|
|
874
852
|
return {
|
|
875
853
|
label: `${formatEdge(lo)}-${formatEdge(edges[i + 1])}`,
|
|
876
854
|
color: fmt?.fillColor ?? fmt?.strokeColor ?? fallback
|
|
@@ -1054,7 +1032,7 @@ function disposeObject(object) {
|
|
|
1054
1032
|
function buildSurfaceMarks(three, chartData, layout, palette) {
|
|
1055
1033
|
const group = new three.Group();
|
|
1056
1034
|
group.matrixAutoUpdate = false;
|
|
1057
|
-
group.matrix.copy(
|
|
1035
|
+
group.matrix.copy(chunkHIRBPTML_cjs.perspBoxMatrix(three, layout.view));
|
|
1058
1036
|
const gridlines = buildPerspGridlines(three, layout);
|
|
1059
1037
|
group.add(gridlines);
|
|
1060
1038
|
let visual = buildVisual(three, chartData, layout, palette);
|
|
@@ -1194,8 +1172,8 @@ function surfaceLegend(chartData, layout, palette, background, textStyle) {
|
|
|
1194
1172
|
function mountPerspChartView(input, ctx) {
|
|
1195
1173
|
const three = ctx.three;
|
|
1196
1174
|
const { vm, layout, chartData } = input;
|
|
1197
|
-
const palette =
|
|
1198
|
-
const camera =
|
|
1175
|
+
const palette = chunkKJICUZXM_cjs.resolveChartPalette(chartData);
|
|
1176
|
+
const camera = chunkHIRBPTML_cjs.buildPerspCamera(three, layout.view, vm.svgWidth, vm.svgHeight);
|
|
1199
1177
|
const scene = new three.Scene();
|
|
1200
1178
|
const marks = buildPerspMarkSet(three, chartData, layout, palette);
|
|
1201
1179
|
scene.add(marks.group);
|
|
@@ -1244,15 +1222,15 @@ function mountPerspChartView(input, ctx) {
|
|
|
1244
1222
|
const a = marks.anchor(point, start);
|
|
1245
1223
|
const step = unit * layout.valueScale;
|
|
1246
1224
|
const b = layout.horizontal ? [a[0] + step, a[1], a[2]] : [a[0], a[1] + step, a[2]];
|
|
1247
|
-
const s0 =
|
|
1248
|
-
const s1 =
|
|
1225
|
+
const s0 = chunkHIRBPTML_cjs.perspToScreen(layout.view, a);
|
|
1226
|
+
const s1 = chunkHIRBPTML_cjs.perspToScreen(layout.view, b);
|
|
1249
1227
|
const ux = (s1.x - s0.x) / unit;
|
|
1250
1228
|
const uy = (s1.y - s0.y) / unit;
|
|
1251
1229
|
const len2 = ux * ux + uy * uy || 1;
|
|
1252
1230
|
const span = layout.range.max - layout.range.min;
|
|
1253
1231
|
return {
|
|
1254
1232
|
preview(dx, dy) {
|
|
1255
|
-
const value =
|
|
1233
|
+
const value = chunkHIRBPTML_cjs.roundDragValue(start + (dx * ux + dy * uy) / len2, {
|
|
1256
1234
|
min: layout.range.min,
|
|
1257
1235
|
max: layout.range.max,
|
|
1258
1236
|
span
|
|
@@ -1340,7 +1318,7 @@ function sliceBuffers(three, layout, slice) {
|
|
|
1340
1318
|
const steps = Math.max(2, Math.ceil(span / (Math.PI * 2) * SEGMENTS_PER_TURN));
|
|
1341
1319
|
const angles = Array.from({ length: steps + 1 }, (_, i) => slice.startAngle + span * i / steps);
|
|
1342
1320
|
const rim = (a, y) => {
|
|
1343
|
-
const p =
|
|
1321
|
+
const p = chunkHIRBPTML_cjs.pieRimPoint(cx, cz, r, a);
|
|
1344
1322
|
return [p.x, y, p.z];
|
|
1345
1323
|
};
|
|
1346
1324
|
const radial = (a) => [Math.sin(a), 0, Math.cos(a)];
|
|
@@ -1384,7 +1362,7 @@ function sliceBuffers(three, layout, slice) {
|
|
|
1384
1362
|
function buildPieMarks(three, layout) {
|
|
1385
1363
|
const group = new three.Group();
|
|
1386
1364
|
group.matrixAutoUpdate = false;
|
|
1387
|
-
group.matrix.copy(
|
|
1365
|
+
group.matrix.copy(chunkHIRBPTML_cjs.perspBoxMatrix(three, layout.view));
|
|
1388
1366
|
const material = new three.MeshBasicMaterial({
|
|
1389
1367
|
vertexColors: true,
|
|
1390
1368
|
side: three.DoubleSide,
|
|
@@ -1448,12 +1426,12 @@ function slicesWith(input, pointIndex, value) {
|
|
|
1448
1426
|
...input.element,
|
|
1449
1427
|
chartData: { ...input.chartData, series }
|
|
1450
1428
|
};
|
|
1451
|
-
return
|
|
1429
|
+
return chunkHIRBPTML_cjs.computePieChartLayout(element, input.vm)?.slices ?? input.layout.slices;
|
|
1452
1430
|
}
|
|
1453
1431
|
function mountPieChartView(input, ctx) {
|
|
1454
1432
|
const three = ctx.three;
|
|
1455
1433
|
const { vm, layout, chartData } = input;
|
|
1456
|
-
const camera =
|
|
1434
|
+
const camera = chunkHIRBPTML_cjs.buildPerspCamera(three, layout.view, vm.svgWidth, vm.svgHeight);
|
|
1457
1435
|
const scene = new three.Scene();
|
|
1458
1436
|
const marks = buildPieMarks(three, layout);
|
|
1459
1437
|
scene.add(marks.group);
|
|
@@ -1494,7 +1472,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1494
1472
|
const start = values();
|
|
1495
1473
|
return {
|
|
1496
1474
|
preview(_dx, _dy, at) {
|
|
1497
|
-
const hit =
|
|
1475
|
+
const hit = chunkHIRBPTML_cjs.perspScreenToPlaneY(layout.view, at.x, at.y, layout.center.y);
|
|
1498
1476
|
if (!hit) {
|
|
1499
1477
|
return start[point.pointIndex];
|
|
1500
1478
|
}
|
|
@@ -1502,7 +1480,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1502
1480
|
hit.x - layout.center.x - slice.offset.x,
|
|
1503
1481
|
hit.z - layout.center.z - slice.offset.z
|
|
1504
1482
|
);
|
|
1505
|
-
const value =
|
|
1483
|
+
const value = chunkHIRBPTML_cjs.resolvePieSliceShareValue(
|
|
1506
1484
|
angle,
|
|
1507
1485
|
slice.startAngle,
|
|
1508
1486
|
start,
|
|
@@ -1518,7 +1496,7 @@ function mountPieChartView(input, ctx) {
|
|
|
1518
1496
|
marker.visible = slice !== void 0;
|
|
1519
1497
|
if (slice) {
|
|
1520
1498
|
const mid = (slice.startAngle + slice.endAngle) / 2;
|
|
1521
|
-
const p =
|
|
1499
|
+
const p = chunkHIRBPTML_cjs.pieRimPoint(
|
|
1522
1500
|
layout.center.x + slice.offset.x,
|
|
1523
1501
|
layout.center.z + slice.offset.z,
|
|
1524
1502
|
layout.radius * 0.6,
|
|
@@ -1583,7 +1561,7 @@ async function mountChart3DView(spec, ctx) {
|
|
|
1583
1561
|
return mountPieChartView(
|
|
1584
1562
|
{
|
|
1585
1563
|
element: spec.element,
|
|
1586
|
-
vm:
|
|
1564
|
+
vm: chunkHIRBPTML_cjs.widenPieViewModel(spec.vm, spec.element),
|
|
1587
1565
|
layout: spec.geometry.layout,
|
|
1588
1566
|
chartData: chartData2,
|
|
1589
1567
|
categoryLabels: spec.categoryLabels
|
|
@@ -124,6 +124,7 @@ function readDeckData(port) {
|
|
|
124
124
|
height: canvas.height,
|
|
125
125
|
theme: port.getTheme(),
|
|
126
126
|
sections: copy(port.getSections()),
|
|
127
|
+
customShows: copy(port.getCustomShows?.()),
|
|
127
128
|
presentationProperties: port.getPresentationProperties(),
|
|
128
129
|
customProperties: copy(port.getCustomProperties()),
|
|
129
130
|
coreProperties: port.getCoreProperties(),
|
|
@@ -165,6 +166,11 @@ function commitDeckData(port, before, after, label) {
|
|
|
165
166
|
port.setSections(sections);
|
|
166
167
|
changed = true;
|
|
167
168
|
}
|
|
169
|
+
const customShows = after.customShows ?? before.customShows ?? [];
|
|
170
|
+
if (port.setCustomShows && differs(before.customShows, customShows)) {
|
|
171
|
+
port.setCustomShows(customShows);
|
|
172
|
+
changed = true;
|
|
173
|
+
}
|
|
168
174
|
const presentation = after.presentationProperties ?? before.presentationProperties ?? {};
|
|
169
175
|
if (differs(before.presentationProperties, presentation)) {
|
|
170
176
|
port.setPresentationProperties(presentation);
|
|
@@ -1358,6 +1364,11 @@ var TOOL_PHRASES = {
|
|
|
1358
1364
|
present: () => "Organising the sections",
|
|
1359
1365
|
past: () => "Organised the sections"
|
|
1360
1366
|
},
|
|
1367
|
+
manage_custom_shows: {
|
|
1368
|
+
icon: "slide",
|
|
1369
|
+
present: () => "Editing the custom shows",
|
|
1370
|
+
past: () => "Edited the custom shows"
|
|
1371
|
+
},
|
|
1361
1372
|
update_presentation_properties: {
|
|
1362
1373
|
icon: "tool",
|
|
1363
1374
|
present: () => "Updating the slideshow settings",
|
|
@@ -126,6 +126,7 @@ function readDeckData(port) {
|
|
|
126
126
|
height: canvas.height,
|
|
127
127
|
theme: port.getTheme(),
|
|
128
128
|
sections: copy(port.getSections()),
|
|
129
|
+
customShows: copy(port.getCustomShows?.()),
|
|
129
130
|
presentationProperties: port.getPresentationProperties(),
|
|
130
131
|
customProperties: copy(port.getCustomProperties()),
|
|
131
132
|
coreProperties: port.getCoreProperties(),
|
|
@@ -167,6 +168,11 @@ function commitDeckData(port, before, after, label) {
|
|
|
167
168
|
port.setSections(sections);
|
|
168
169
|
changed = true;
|
|
169
170
|
}
|
|
171
|
+
const customShows = after.customShows ?? before.customShows ?? [];
|
|
172
|
+
if (port.setCustomShows && differs(before.customShows, customShows)) {
|
|
173
|
+
port.setCustomShows(customShows);
|
|
174
|
+
changed = true;
|
|
175
|
+
}
|
|
170
176
|
const presentation = after.presentationProperties ?? before.presentationProperties ?? {};
|
|
171
177
|
if (differs(before.presentationProperties, presentation)) {
|
|
172
178
|
port.setPresentationProperties(presentation);
|
|
@@ -1360,6 +1366,11 @@ var TOOL_PHRASES = {
|
|
|
1360
1366
|
present: () => "Organising the sections",
|
|
1361
1367
|
past: () => "Organised the sections"
|
|
1362
1368
|
},
|
|
1369
|
+
manage_custom_shows: {
|
|
1370
|
+
icon: "slide",
|
|
1371
|
+
present: () => "Editing the custom shows",
|
|
1372
|
+
past: () => "Edited the custom shows"
|
|
1373
|
+
},
|
|
1363
1374
|
update_presentation_properties: {
|
|
1364
1375
|
icon: "tool",
|
|
1365
1376
|
present: () => "Updating the slideshow settings",
|