pptx-react-viewer 3.17.1 → 3.18.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/CHANGELOG.md +6 -0
- package/README.md +33 -31
- package/dist/{AiChatPanel-SINEEZBW.mjs → AiChatPanel-DDZC6IRK.mjs} +4 -4
- package/dist/AiChatPanel-DDZC6IRK.mjs.br +0 -0
- package/dist/AiChatPanel-DDZC6IRK.mjs.gz +0 -0
- package/dist/{AiChatPanel-GYH43XWW.js → AiChatPanel-T2QSCUQR.js} +25 -25
- package/dist/AiChatPanel-T2QSCUQR.js.br +0 -0
- package/dist/AiChatPanel-T2QSCUQR.js.gz +0 -0
- package/dist/{Area3DChartScene-D7GSJGPQ.js → Area3DChartScene-WEU2MP3B.js} +2 -2
- package/dist/Area3DChartScene-WEU2MP3B.js.br +0 -0
- package/dist/Area3DChartScene-WEU2MP3B.js.gz +0 -0
- package/dist/{Area3DChartScene-X5SM67PZ.mjs → Area3DChartScene-WTKQDHC7.mjs} +1 -1
- package/dist/Area3DChartScene-WTKQDHC7.mjs.br +0 -0
- package/dist/Area3DChartScene-WTKQDHC7.mjs.gz +0 -0
- package/dist/{Bar3DChartScene-M72WQW5Y.js → Bar3DChartScene-25G6TG53.js} +2 -2
- package/dist/Bar3DChartScene-25G6TG53.js.br +0 -0
- package/dist/Bar3DChartScene-25G6TG53.js.gz +0 -0
- package/dist/{Bar3DChartScene-HWIFFGI3.mjs → Bar3DChartScene-A5ICLHXS.mjs} +1 -1
- package/dist/{Bar3DChartScene-HWIFFGI3.mjs.br → Bar3DChartScene-A5ICLHXS.mjs.br} +0 -0
- package/dist/Bar3DChartScene-A5ICLHXS.mjs.gz +0 -0
- package/dist/{GLTFLoader-374ZNTXW.mjs → GLTFLoader-IWJFC4XI.mjs} +54 -16
- package/dist/GLTFLoader-IWJFC4XI.mjs.br +0 -0
- package/dist/GLTFLoader-IWJFC4XI.mjs.gz +0 -0
- package/dist/{GLTFLoader-Q7BHCGAW.js → GLTFLoader-KY7AYPMX.js} +178 -140
- package/dist/GLTFLoader-KY7AYPMX.js.br +0 -0
- package/dist/GLTFLoader-KY7AYPMX.js.gz +0 -0
- package/dist/{Line3DChartScene-7MPZWVF3.mjs → Line3DChartScene-ARCDLHXQ.mjs} +1 -1
- package/dist/Line3DChartScene-ARCDLHXQ.mjs.br +0 -0
- package/dist/Line3DChartScene-ARCDLHXQ.mjs.gz +0 -0
- package/dist/{Line3DChartScene-YOZEEQZ3.js → Line3DChartScene-WRZ52Z2Z.js} +2 -2
- package/dist/Line3DChartScene-WRZ52Z2Z.js.br +0 -0
- package/dist/Line3DChartScene-WRZ52Z2Z.js.gz +0 -0
- package/dist/{Model3DScene-5IJSNGDZ.js → Model3DScene-JGUG5NPX.js} +2 -2
- package/dist/Model3DScene-JGUG5NPX.js.br +0 -0
- package/dist/Model3DScene-JGUG5NPX.js.gz +0 -0
- package/dist/{Model3DScene-57LVY5QW.mjs → Model3DScene-PBKBL2YU.mjs} +1 -1
- package/dist/Model3DScene-PBKBL2YU.mjs.br +0 -0
- package/dist/Model3DScene-PBKBL2YU.mjs.gz +0 -0
- package/dist/OrbitControls-2XOMWUVE.mjs +3 -0
- package/dist/OrbitControls-2XOMWUVE.mjs.br +0 -0
- package/dist/OrbitControls-2XOMWUVE.mjs.gz +0 -0
- package/dist/OrbitControls-CGYUF3BY.js +12 -0
- package/dist/OrbitControls-CGYUF3BY.js.br +0 -0
- package/dist/OrbitControls-CGYUF3BY.js.gz +0 -0
- package/dist/{PieChart3DScene-UBI6X66Q.js → PieChart3DScene-S25DNSRS.js} +2 -2
- package/dist/PieChart3DScene-S25DNSRS.js.br +0 -0
- package/dist/PieChart3DScene-S25DNSRS.js.gz +0 -0
- package/dist/{PieChart3DScene-WD5B6NP3.mjs → PieChart3DScene-ZNKXS62H.mjs} +1 -1
- package/dist/{PieChart3DScene-WD5B6NP3.mjs.br → PieChart3DScene-ZNKXS62H.mjs.br} +0 -0
- package/dist/PieChart3DScene-ZNKXS62H.mjs.gz +0 -0
- package/dist/{SmartArt3DScene-ODKCGJBO.mjs → SmartArt3DScene-QZGIABOK.mjs} +2 -2
- package/dist/SmartArt3DScene-QZGIABOK.mjs.br +0 -0
- package/dist/SmartArt3DScene-QZGIABOK.mjs.gz +0 -0
- package/dist/{SmartArt3DScene-BK7QN3WT.js → SmartArt3DScene-T236GYUT.js} +33 -33
- package/dist/SmartArt3DScene-T236GYUT.js.br +0 -0
- package/dist/SmartArt3DScene-T236GYUT.js.gz +0 -0
- package/dist/{SurfaceChart3DScene-JZGU6BBD.mjs → SurfaceChart3DScene-EBT7RPCX.mjs} +1 -1
- package/dist/SurfaceChart3DScene-EBT7RPCX.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-EBT7RPCX.mjs.gz +0 -0
- package/dist/{SurfaceChart3DScene-JGNPYQ32.js → SurfaceChart3DScene-LXBC3HMV.js} +2 -2
- package/dist/SurfaceChart3DScene-LXBC3HMV.js.br +0 -0
- package/dist/SurfaceChart3DScene-LXBC3HMV.js.gz +0 -0
- package/dist/{chunk-KVXB22D3.js → chunk-2LTTSFLD.js} +5 -5
- package/dist/chunk-2LTTSFLD.js.br +0 -0
- package/dist/chunk-2LTTSFLD.js.gz +0 -0
- package/dist/{chunk-VYSMTC5C.mjs → chunk-2OCTGK4L.mjs} +6 -110
- package/dist/chunk-2OCTGK4L.mjs.br +0 -0
- package/dist/chunk-2OCTGK4L.mjs.gz +0 -0
- package/dist/{chunk-IXKAIIA2.mjs → chunk-3KKPRPVE.mjs} +114 -126
- package/dist/chunk-3KKPRPVE.mjs.br +0 -0
- package/dist/chunk-3KKPRPVE.mjs.gz +0 -0
- package/dist/{chunk-B4QYQLZU.js → chunk-3N6AC4HA.js} +1122 -693
- package/dist/chunk-3N6AC4HA.js.br +0 -0
- package/dist/chunk-3N6AC4HA.js.gz +0 -0
- package/dist/{chunk-OAKDJYYT.mjs → chunk-5S3A6HL3.mjs} +121 -42
- package/dist/chunk-5S3A6HL3.mjs.br +0 -0
- package/dist/chunk-5S3A6HL3.mjs.gz +0 -0
- package/dist/{chunk-IRG7SIUX.js → chunk-6R2EUDJQ.js} +1399 -1411
- package/dist/chunk-6R2EUDJQ.js.br +0 -0
- package/dist/chunk-6R2EUDJQ.js.gz +0 -0
- package/dist/{chunk-XBMKFZVP.mjs → chunk-7TAWW5QQ.mjs} +1120 -694
- package/dist/chunk-7TAWW5QQ.mjs.br +0 -0
- package/dist/chunk-7TAWW5QQ.mjs.gz +0 -0
- package/dist/{chunk-64FUV37N.js → chunk-BRJN3ZMG.js} +2 -1
- package/dist/chunk-BRJN3ZMG.js.br +0 -0
- package/dist/{chunk-64FUV37N.js.gz → chunk-BRJN3ZMG.js.gz} +0 -0
- package/dist/{chunk-QTGCOL5H.mjs → chunk-GNRVDNCV.mjs} +1707 -435
- package/dist/chunk-GNRVDNCV.mjs.br +0 -0
- package/dist/chunk-GNRVDNCV.mjs.gz +0 -0
- package/dist/{chunk-6C2WYLZY.js → chunk-IXS7DALE.js} +45 -39
- package/dist/chunk-IXS7DALE.js.br +0 -0
- package/dist/chunk-IXS7DALE.js.gz +0 -0
- package/dist/{chunk-7FBKS7OS.js → chunk-LJ46KXUV.js} +179 -283
- package/dist/chunk-LJ46KXUV.js.br +0 -0
- package/dist/chunk-LJ46KXUV.js.gz +0 -0
- package/dist/{chunk-LAU34UMB.mjs → chunk-MQUTXOET.mjs} +2 -1
- package/dist/chunk-MQUTXOET.mjs.br +0 -0
- package/dist/{chunk-LAU34UMB.mjs.gz → chunk-MQUTXOET.mjs.gz} +0 -0
- package/dist/{chunk-3CBDTD46.mjs → chunk-MV2GCDBR.mjs} +8 -2
- package/dist/chunk-MV2GCDBR.mjs.br +0 -0
- package/dist/chunk-MV2GCDBR.mjs.gz +0 -0
- package/dist/{chunk-4SPZ5IZN.js → chunk-V32F4I45.js} +1713 -439
- package/dist/chunk-V32F4I45.js.br +0 -0
- package/dist/chunk-V32F4I45.js.gz +0 -0
- package/dist/{chunk-E55VEC37.js → chunk-WGBXO4LM.js} +576 -497
- package/dist/chunk-WGBXO4LM.js.br +0 -0
- package/dist/chunk-WGBXO4LM.js.gz +0 -0
- package/dist/{chunk-7YJBRPCT.mjs → chunk-WRO37U2O.mjs} +1 -1
- package/dist/chunk-WRO37U2O.mjs.br +0 -0
- package/dist/chunk-WRO37U2O.mjs.gz +0 -0
- package/dist/i18n.js +4 -4
- package/dist/i18n.js.br +0 -0
- package/dist/i18n.js.gz +0 -0
- package/dist/i18n.mjs +1 -1
- package/dist/i18n.mjs.br +0 -0
- package/dist/i18n.mjs.gz +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +47 -47
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.br +0 -0
- package/dist/index.mjs.gz +0 -0
- package/dist/internals.d.ts +18 -0
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +79 -79
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/internals.mjs +4 -4
- package/dist/internals.mjs.br +0 -0
- package/dist/internals.mjs.gz +0 -0
- package/dist/pptx-viewer.css +1 -1
- package/dist/pptx-viewer.css.br +0 -0
- package/dist/pptx-viewer.css.gz +0 -0
- package/dist/three.module-LGUV2LI6.mjs +2 -0
- package/dist/three.module-LGUV2LI6.mjs.br +0 -0
- package/dist/three.module-LGUV2LI6.mjs.gz +0 -0
- package/dist/{three.module-GNNNRIMK.js → three.module-YZ4M24WM.js} +454 -442
- package/dist/three.module-YZ4M24WM.js.br +0 -0
- package/dist/three.module-YZ4M24WM.js.gz +0 -0
- package/dist/{useViewerBuildingBlocks-DkUGmlkP.d.ts → useViewerBuildingBlocks-4Tj6P8Fm.d.ts} +3 -1
- package/dist/useViewerBuildingBlocks-4Tj6P8Fm.d.ts.map +1 -0
- package/dist/viewer/index.js +27 -27
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/viewer/index.mjs +6 -6
- package/dist/viewer/index.mjs.br +0 -0
- package/dist/viewer/index.mjs.gz +0 -0
- package/package.json +3 -3
- package/dist/AiChatPanel-GYH43XWW.js.br +0 -0
- package/dist/AiChatPanel-GYH43XWW.js.gz +0 -0
- package/dist/AiChatPanel-SINEEZBW.mjs.br +0 -0
- package/dist/AiChatPanel-SINEEZBW.mjs.gz +0 -0
- package/dist/Area3DChartScene-D7GSJGPQ.js.br +0 -0
- package/dist/Area3DChartScene-D7GSJGPQ.js.gz +0 -0
- package/dist/Area3DChartScene-X5SM67PZ.mjs.br +0 -0
- package/dist/Area3DChartScene-X5SM67PZ.mjs.gz +0 -0
- package/dist/Bar3DChartScene-HWIFFGI3.mjs.gz +0 -0
- package/dist/Bar3DChartScene-M72WQW5Y.js.br +0 -0
- package/dist/Bar3DChartScene-M72WQW5Y.js.gz +0 -0
- package/dist/GLTFLoader-374ZNTXW.mjs.br +0 -0
- package/dist/GLTFLoader-374ZNTXW.mjs.gz +0 -0
- package/dist/GLTFLoader-Q7BHCGAW.js.br +0 -0
- package/dist/GLTFLoader-Q7BHCGAW.js.gz +0 -0
- package/dist/Line3DChartScene-7MPZWVF3.mjs.br +0 -0
- package/dist/Line3DChartScene-7MPZWVF3.mjs.gz +0 -0
- package/dist/Line3DChartScene-YOZEEQZ3.js.br +0 -0
- package/dist/Line3DChartScene-YOZEEQZ3.js.gz +0 -0
- package/dist/Model3DScene-57LVY5QW.mjs.br +0 -0
- package/dist/Model3DScene-57LVY5QW.mjs.gz +0 -0
- package/dist/Model3DScene-5IJSNGDZ.js.br +0 -0
- package/dist/Model3DScene-5IJSNGDZ.js.gz +0 -0
- package/dist/OrbitControls-SMYCPLXO.js +0 -12
- package/dist/OrbitControls-SMYCPLXO.js.br +0 -3
- package/dist/OrbitControls-SMYCPLXO.js.gz +0 -0
- package/dist/OrbitControls-ZTGHPI5G.mjs +0 -3
- package/dist/OrbitControls-ZTGHPI5G.mjs.br +0 -0
- package/dist/OrbitControls-ZTGHPI5G.mjs.gz +0 -0
- package/dist/PieChart3DScene-UBI6X66Q.js.br +0 -0
- package/dist/PieChart3DScene-UBI6X66Q.js.gz +0 -0
- package/dist/PieChart3DScene-WD5B6NP3.mjs.gz +0 -0
- package/dist/SmartArt3DScene-BK7QN3WT.js.br +0 -0
- package/dist/SmartArt3DScene-BK7QN3WT.js.gz +0 -0
- package/dist/SmartArt3DScene-ODKCGJBO.mjs.br +0 -0
- package/dist/SmartArt3DScene-ODKCGJBO.mjs.gz +0 -0
- package/dist/SurfaceChart3DScene-JGNPYQ32.js.br +0 -0
- package/dist/SurfaceChart3DScene-JGNPYQ32.js.gz +0 -0
- package/dist/SurfaceChart3DScene-JZGU6BBD.mjs.br +0 -0
- package/dist/SurfaceChart3DScene-JZGU6BBD.mjs.gz +0 -0
- package/dist/chunk-3CBDTD46.mjs.br +0 -0
- package/dist/chunk-3CBDTD46.mjs.gz +0 -0
- package/dist/chunk-4SPZ5IZN.js.br +0 -0
- package/dist/chunk-4SPZ5IZN.js.gz +0 -0
- package/dist/chunk-64FUV37N.js.br +0 -0
- package/dist/chunk-6C2WYLZY.js.br +0 -0
- package/dist/chunk-6C2WYLZY.js.gz +0 -0
- package/dist/chunk-7FBKS7OS.js.br +0 -0
- package/dist/chunk-7FBKS7OS.js.gz +0 -0
- package/dist/chunk-7YJBRPCT.mjs.br +0 -0
- package/dist/chunk-7YJBRPCT.mjs.gz +0 -0
- package/dist/chunk-B4QYQLZU.js.br +0 -0
- package/dist/chunk-B4QYQLZU.js.gz +0 -0
- package/dist/chunk-E55VEC37.js.br +0 -0
- package/dist/chunk-E55VEC37.js.gz +0 -0
- package/dist/chunk-IRG7SIUX.js.br +0 -0
- package/dist/chunk-IRG7SIUX.js.gz +0 -0
- package/dist/chunk-IXKAIIA2.mjs.br +0 -0
- package/dist/chunk-IXKAIIA2.mjs.gz +0 -0
- package/dist/chunk-KVXB22D3.js.br +0 -0
- package/dist/chunk-KVXB22D3.js.gz +0 -0
- package/dist/chunk-LAU34UMB.mjs.br +0 -0
- package/dist/chunk-OAKDJYYT.mjs.br +0 -0
- package/dist/chunk-OAKDJYYT.mjs.gz +0 -0
- package/dist/chunk-QTGCOL5H.mjs.br +0 -0
- package/dist/chunk-QTGCOL5H.mjs.gz +0 -0
- package/dist/chunk-VYSMTC5C.mjs.br +0 -0
- package/dist/chunk-VYSMTC5C.mjs.gz +0 -0
- package/dist/chunk-XBMKFZVP.mjs.br +0 -0
- package/dist/chunk-XBMKFZVP.mjs.gz +0 -0
- package/dist/three.module-AC7ESV4W.mjs +0 -2
- package/dist/three.module-AC7ESV4W.mjs.br +0 -0
- package/dist/three.module-AC7ESV4W.mjs.gz +0 -0
- package/dist/three.module-GNNNRIMK.js.br +0 -0
- package/dist/three.module-GNNNRIMK.js.gz +0 -0
- package/dist/useViewerBuildingBlocks-DkUGmlkP.d.ts.map +0 -1
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
|
|
2
|
-
import { mountLineChart3D } from './chunk-
|
|
2
|
+
import { mountLineChart3D } from './chunk-GNRVDNCV.mjs';
|
|
3
3
|
import './chunk-XGB3TDIC.mjs';
|
|
4
4
|
import { useRef, useEffect } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
|
|
5
5
|
require('./chunk-4VNS5WPM.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -23,7 +23,7 @@ function Line3DChartScene({
|
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
let disposed = false;
|
|
26
|
-
void
|
|
26
|
+
void chunkV32F4I45_js.mountLineChart3D(container, options, stableInteraction).then((handle) => {
|
|
27
27
|
if (disposed) {
|
|
28
28
|
handle.dispose();
|
|
29
29
|
} else {
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
|
|
4
4
|
require('./chunk-4VNS5WPM.js');
|
|
5
5
|
var react = require('react');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -14,7 +14,7 @@ function Model3DScene({ modelUrl, interactive, width, height }) {
|
|
|
14
14
|
return;
|
|
15
15
|
}
|
|
16
16
|
let disposed = false;
|
|
17
|
-
void
|
|
17
|
+
void chunkV32F4I45_js.mountModel3D(container, modelUrl, { width, height, interactive }).then((handle) => {
|
|
18
18
|
if (disposed) {
|
|
19
19
|
handle.dispose();
|
|
20
20
|
} else {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkIXS7DALE_js = require('./chunk-IXS7DALE.js');
|
|
4
|
+
require('./chunk-3N6AC4HA.js');
|
|
5
|
+
require('./chunk-4VNS5WPM.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "OrbitControls", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkIXS7DALE_js.OrbitControls; }
|
|
12
|
+
});
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
|
|
5
5
|
require('./chunk-4VNS5WPM.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -21,7 +21,7 @@ function PieChart3DScene({
|
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
23
|
let disposed = false;
|
|
24
|
-
void
|
|
24
|
+
void chunkV32F4I45_js.mountPieChart3D(container, options, stableInteraction).then((handle) => {
|
|
25
25
|
if (disposed) {
|
|
26
26
|
handle.dispose();
|
|
27
27
|
} else {
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
|
|
2
|
-
import { mountPieChart3D } from './chunk-
|
|
2
|
+
import { mountPieChart3D } from './chunk-GNRVDNCV.mjs';
|
|
3
3
|
import './chunk-XGB3TDIC.mjs';
|
|
4
4
|
import { useRef, useEffect } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useLatestRef } from './chunk-T6GFCLSM.mjs';
|
|
2
|
-
import { OrbitControls } from './chunk-
|
|
3
|
-
import { WebGLRenderer, Scene, Color, PerspectiveCamera, AmbientLight, DirectionalLight, Group, MeshStandardMaterial, Mesh, EdgesGeometry, LineBasicMaterial, LineSegments, PlaneGeometry, MeshBasicMaterial, Euler, Vector3, BufferGeometry, Line, Shape, ExtrudeGeometry, CanvasTexture, SRGBColorSpace, LinearFilter, RepeatWrapping } from './chunk-
|
|
2
|
+
import { OrbitControls } from './chunk-MV2GCDBR.mjs';
|
|
3
|
+
import { WebGLRenderer, Scene, Color, PerspectiveCamera, AmbientLight, DirectionalLight, Group, MeshStandardMaterial, Mesh, EdgesGeometry, LineBasicMaterial, LineSegments, PlaneGeometry, MeshBasicMaterial, Euler, Vector3, BufferGeometry, Line, Shape, ExtrudeGeometry, CanvasTexture, SRGBColorSpace, LinearFilter, RepeatWrapping } from './chunk-7TAWW5QQ.mjs';
|
|
4
4
|
import './chunk-XGB3TDIC.mjs';
|
|
5
5
|
import { useRef, useEffect } from 'react';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
Binary file
|
|
Binary file
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkIXS7DALE_js = require('./chunk-IXS7DALE.js');
|
|
5
|
+
var chunk3N6AC4HA_js = require('./chunk-3N6AC4HA.js');
|
|
6
6
|
require('./chunk-4VNS5WPM.js');
|
|
7
7
|
var react = require('react');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -84,20 +84,20 @@ function makeTextTexture(text, color, fontSize, footW, footH, emphasis) {
|
|
|
84
84
|
ctx.stroke();
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
const texture = new
|
|
88
|
-
texture.colorSpace =
|
|
89
|
-
texture.minFilter =
|
|
90
|
-
texture.magFilter =
|
|
87
|
+
const texture = new chunk3N6AC4HA_js.CanvasTexture(canvas);
|
|
88
|
+
texture.colorSpace = chunk3N6AC4HA_js.SRGBColorSpace;
|
|
89
|
+
texture.minFilter = chunk3N6AC4HA_js.LinearFilter;
|
|
90
|
+
texture.magFilter = chunk3N6AC4HA_js.LinearFilter;
|
|
91
91
|
texture.flipY = false;
|
|
92
92
|
texture.premultiplyAlpha = false;
|
|
93
|
-
texture.wrapT =
|
|
93
|
+
texture.wrapT = chunk3N6AC4HA_js.RepeatWrapping;
|
|
94
94
|
texture.repeat.set(1, -1);
|
|
95
95
|
texture.offset.set(0, 1);
|
|
96
96
|
texture.needsUpdate = true;
|
|
97
97
|
return { texture, worldWidth, worldHeight };
|
|
98
98
|
}
|
|
99
99
|
function extrudeGeometry(m) {
|
|
100
|
-
const shape = new
|
|
100
|
+
const shape = new chunk3N6AC4HA_js.Shape();
|
|
101
101
|
m.outline.forEach((p, i) => {
|
|
102
102
|
if (i === 0) {
|
|
103
103
|
shape.moveTo(p.x, p.y);
|
|
@@ -107,7 +107,7 @@ function extrudeGeometry(m) {
|
|
|
107
107
|
});
|
|
108
108
|
shape.closePath();
|
|
109
109
|
const bevelEnabled = m.bevel > 0;
|
|
110
|
-
return new
|
|
110
|
+
return new chunk3N6AC4HA_js.ExtrudeGeometry(shape, {
|
|
111
111
|
depth: m.depth,
|
|
112
112
|
bevelEnabled,
|
|
113
113
|
bevelThickness: m.bevel,
|
|
@@ -119,22 +119,22 @@ function extrudeGeometry(m) {
|
|
|
119
119
|
}
|
|
120
120
|
function addBlock(group, disposables, m) {
|
|
121
121
|
const geo = extrudeGeometry(m);
|
|
122
|
-
const material = new
|
|
123
|
-
color: new
|
|
122
|
+
const material = new chunk3N6AC4HA_js.MeshStandardMaterial({
|
|
123
|
+
color: new chunk3N6AC4HA_js.Color(m.fill),
|
|
124
124
|
metalness: 0.12,
|
|
125
125
|
roughness: 0.52,
|
|
126
126
|
transparent: m.opacity < 1,
|
|
127
127
|
opacity: m.opacity
|
|
128
128
|
});
|
|
129
|
-
const mesh = new
|
|
129
|
+
const mesh = new chunk3N6AC4HA_js.Mesh(geo, material);
|
|
130
130
|
mesh.position.set(m.position.x, m.position.y, m.position.z);
|
|
131
131
|
mesh.rotation.set(m.rotation.x, m.rotation.y, m.rotation.z);
|
|
132
132
|
group.add(mesh);
|
|
133
133
|
disposables.push(geo, material);
|
|
134
134
|
if (m.strokeWidth > 0) {
|
|
135
|
-
const edges = new
|
|
136
|
-
const lineMaterial = new
|
|
137
|
-
const line = new
|
|
135
|
+
const edges = new chunk3N6AC4HA_js.EdgesGeometry(geo, 30);
|
|
136
|
+
const lineMaterial = new chunk3N6AC4HA_js.LineBasicMaterial({ color: new chunk3N6AC4HA_js.Color(m.stroke) });
|
|
137
|
+
const line = new chunk3N6AC4HA_js.LineSegments(edges, lineMaterial);
|
|
138
138
|
line.position.copy(mesh.position);
|
|
139
139
|
line.rotation.copy(mesh.rotation);
|
|
140
140
|
group.add(line);
|
|
@@ -157,15 +157,15 @@ function buildLabelPlane(m, textStyle) {
|
|
|
157
157
|
if (!tex) {
|
|
158
158
|
return null;
|
|
159
159
|
}
|
|
160
|
-
const planeGeo = new
|
|
161
|
-
const planeMaterial = new
|
|
160
|
+
const planeGeo = new chunk3N6AC4HA_js.PlaneGeometry(tex.worldWidth, tex.worldHeight);
|
|
161
|
+
const planeMaterial = new chunk3N6AC4HA_js.MeshBasicMaterial({
|
|
162
162
|
map: tex.texture,
|
|
163
163
|
transparent: true,
|
|
164
164
|
depthWrite: false
|
|
165
165
|
});
|
|
166
|
-
const plane = new
|
|
167
|
-
const euler = new
|
|
168
|
-
const offset = new
|
|
166
|
+
const plane = new chunk3N6AC4HA_js.Mesh(planeGeo, planeMaterial);
|
|
167
|
+
const euler = new chunk3N6AC4HA_js.Euler(m.rotation.x, m.rotation.y, m.rotation.z);
|
|
168
|
+
const offset = new chunk3N6AC4HA_js.Vector3(0, 0, m.depth + m.bevel + 0.4).applyEuler(euler);
|
|
169
169
|
plane.position.set(m.position.x + offset.x, m.position.y + offset.y, m.position.z + offset.z);
|
|
170
170
|
plane.rotation.copy(euler);
|
|
171
171
|
return { plane, disposables: [planeGeo, planeMaterial, tex.texture] };
|
|
@@ -175,13 +175,13 @@ function addConnectors(group, disposables, model) {
|
|
|
175
175
|
if (c.points.length < 2) {
|
|
176
176
|
continue;
|
|
177
177
|
}
|
|
178
|
-
const geo = new
|
|
179
|
-
const material = new
|
|
180
|
-
color: new
|
|
178
|
+
const geo = new chunk3N6AC4HA_js.BufferGeometry().setFromPoints(c.points.map((p) => new chunk3N6AC4HA_js.Vector3(p.x, p.y, p.z)));
|
|
179
|
+
const material = new chunk3N6AC4HA_js.LineBasicMaterial({
|
|
180
|
+
color: new chunk3N6AC4HA_js.Color(c.color),
|
|
181
181
|
transparent: true,
|
|
182
182
|
opacity: 0.7
|
|
183
183
|
});
|
|
184
|
-
group.add(new
|
|
184
|
+
group.add(new chunk3N6AC4HA_js.Line(geo, material));
|
|
185
185
|
disposables.push(geo, material);
|
|
186
186
|
}
|
|
187
187
|
}
|
|
@@ -196,7 +196,7 @@ function clearLabel(group, entry) {
|
|
|
196
196
|
entry.disposables = [];
|
|
197
197
|
}
|
|
198
198
|
function buildMeshGroup(model, textStyle) {
|
|
199
|
-
const group = new
|
|
199
|
+
const group = new chunk3N6AC4HA_js.Group();
|
|
200
200
|
const blockDisposables = [];
|
|
201
201
|
const labelEntries = model.meshes.map((m) => {
|
|
202
202
|
addBlock(group, blockDisposables, m);
|
|
@@ -273,7 +273,7 @@ function frameDistance(radius, aspect) {
|
|
|
273
273
|
return radius / Math.sin(minFov / 2) * 1.1;
|
|
274
274
|
}
|
|
275
275
|
function mountSmartArt3D(canvas, model, width, height, options = {}) {
|
|
276
|
-
const renderer = new
|
|
276
|
+
const renderer = new chunk3N6AC4HA_js.WebGLRenderer({ canvas, antialias: true, alpha: !options.background });
|
|
277
277
|
renderer.setPixelRatio(
|
|
278
278
|
Math.min(
|
|
279
279
|
typeof window === "undefined" ? 1 : window.devicePixelRatio || 1,
|
|
@@ -281,21 +281,21 @@ function mountSmartArt3D(canvas, model, width, height, options = {}) {
|
|
|
281
281
|
)
|
|
282
282
|
);
|
|
283
283
|
renderer.setSize(width, height, false);
|
|
284
|
-
const scene = new
|
|
284
|
+
const scene = new chunk3N6AC4HA_js.Scene();
|
|
285
285
|
if (options.background) {
|
|
286
|
-
scene.background = new
|
|
286
|
+
scene.background = new chunk3N6AC4HA_js.Color(options.background);
|
|
287
287
|
}
|
|
288
288
|
const { cx, cy, cz, radius } = contentSphere(model);
|
|
289
289
|
const aspect = width / Math.max(1, height);
|
|
290
290
|
const dist = frameDistance(radius, aspect);
|
|
291
|
-
const camera = new
|
|
291
|
+
const camera = new chunk3N6AC4HA_js.PerspectiveCamera(FOV, aspect, 0.1, dist * 8 + radius * 4);
|
|
292
292
|
camera.position.set(cx + radius * 0.25, cy + radius * 0.3, cz + dist);
|
|
293
293
|
camera.lookAt(cx, cy, cz);
|
|
294
|
-
scene.add(new
|
|
295
|
-
const key = new
|
|
294
|
+
scene.add(new chunk3N6AC4HA_js.AmbientLight(16777215, 0.62));
|
|
295
|
+
const key = new chunk3N6AC4HA_js.DirectionalLight(16777215, 0.95);
|
|
296
296
|
key.position.set(cx + radius, cy + radius * 1.4, cz + dist);
|
|
297
297
|
scene.add(key);
|
|
298
|
-
const fill = new
|
|
298
|
+
const fill = new chunk3N6AC4HA_js.DirectionalLight(16777215, 0.3);
|
|
299
299
|
fill.position.set(cx - radius, cy - radius * 0.6, cz + dist * 0.6);
|
|
300
300
|
scene.add(fill);
|
|
301
301
|
const built = buildMeshGroup(model, options.textStyle);
|
|
@@ -303,7 +303,7 @@ function mountSmartArt3D(canvas, model, width, height, options = {}) {
|
|
|
303
303
|
let controls = null;
|
|
304
304
|
const enableControls = (on) => {
|
|
305
305
|
if (on && !controls) {
|
|
306
|
-
controls = new
|
|
306
|
+
controls = new chunkIXS7DALE_js.OrbitControls(camera, canvas);
|
|
307
307
|
controls.enablePan = false;
|
|
308
308
|
controls.target.set(cx, cy, cz);
|
|
309
309
|
controls.minDistance = dist * 0.4;
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useStableChart3DInteraction, useLatestRef } from './chunk-T6GFCLSM.mjs';
|
|
2
|
-
import { mountSurfaceChart3D } from './chunk-
|
|
2
|
+
import { mountSurfaceChart3D } from './chunk-GNRVDNCV.mjs';
|
|
3
3
|
import './chunk-XGB3TDIC.mjs';
|
|
4
4
|
import { useRef, useEffect } from 'react';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
Binary file
|
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkDNR6CH6I_js = require('./chunk-DNR6CH6I.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
|
|
5
5
|
require('./chunk-4VNS5WPM.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -23,7 +23,7 @@ function SurfaceChart3DScene({
|
|
|
23
23
|
return;
|
|
24
24
|
}
|
|
25
25
|
let disposed = false;
|
|
26
|
-
void
|
|
26
|
+
void chunkV32F4I45_js.mountSurfaceChart3D(container, options, stableInteraction).then((handle) => {
|
|
27
27
|
if (disposed) {
|
|
28
28
|
handle.dispose();
|
|
29
29
|
} else {
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkV32F4I45_js = require('./chunk-V32F4I45.js');
|
|
4
4
|
var chunk4VNS5WPM_js = require('./chunk-4VNS5WPM.js');
|
|
5
5
|
var mcp = require('pptx-viewer-mcp');
|
|
6
6
|
var mcpSchemas = require('pptx-viewer-mcp/schemas');
|
|
@@ -19079,7 +19079,7 @@ async function buildSlideMarkdown(slides, slideIndex2, meta3, options = {}) {
|
|
|
19079
19079
|
};
|
|
19080
19080
|
let markdown;
|
|
19081
19081
|
try {
|
|
19082
|
-
const converter = new
|
|
19082
|
+
const converter = new chunkV32F4I45_js.PptxMarkdownConverter(
|
|
19083
19083
|
"",
|
|
19084
19084
|
{
|
|
19085
19085
|
sourceName: meta3.title ?? "deck.pptx",
|
|
@@ -19671,7 +19671,7 @@ var getTheme = (ctx) => {
|
|
|
19671
19671
|
name: theme?.name,
|
|
19672
19672
|
colorScheme: theme?.colorScheme,
|
|
19673
19673
|
fontScheme: theme?.fontScheme,
|
|
19674
|
-
availablePresets: Object.keys(
|
|
19674
|
+
availablePresets: Object.keys(chunkV32F4I45_js.ThemePresets)
|
|
19675
19675
|
};
|
|
19676
19676
|
};
|
|
19677
19677
|
var readExecutors = {
|
|
@@ -20776,7 +20776,7 @@ function applyElementUpdate(el, u) {
|
|
|
20776
20776
|
applyShapeStyleUpdate(el, u);
|
|
20777
20777
|
}
|
|
20778
20778
|
function applyTextUpdate(el, u) {
|
|
20779
|
-
if (!
|
|
20779
|
+
if (!chunkV32F4I45_js.hasTextProperties(el)) {
|
|
20780
20780
|
return;
|
|
20781
20781
|
}
|
|
20782
20782
|
const textEl = el;
|
|
@@ -20822,7 +20822,7 @@ function applyShapeStyleUpdate(el, u) {
|
|
|
20822
20822
|
if (u.fillColor === void 0 && u.strokeColor === void 0 && u.strokeWidth === void 0) {
|
|
20823
20823
|
return;
|
|
20824
20824
|
}
|
|
20825
|
-
if (!
|
|
20825
|
+
if (!chunkV32F4I45_js.hasShapeProperties(el)) {
|
|
20826
20826
|
return;
|
|
20827
20827
|
}
|
|
20828
20828
|
const holder = el;
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, buildStrokeOutline, getPresetShapeVectorGeometry, isWedgeCalloutPresetShape, svgGradientFillRef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, canDrillDown, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildTiledSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects,
|
|
2
|
-
import { translationsEn } from './chunk-
|
|
1
|
+
import { SHAPE_PRESET_DEFS, VIEWER_SHORTCUT_REFERENCE, STROKE_DASH_OPTIONS, getAnimationInitialStyle, cloneHistorySnapshot, hasShapeProperties, getImageFitStyle, getComputedFillStyle, isImageLikeElement, getCropShapeClipPath, getImageTilingStyle, mediaPlaybackAttributes, buildTextBlockStyle, hasTextProperties, toCssWritingMode, toCssTextOrientation, toCssVerticalDirection, buildTextBodyLayoutStyle, buildTextBody3DSceneStyle, buildParagraphs, colorWithOpacity, normalizeHexColor, hexToRgbUnit, build3DExtrusionData, getComputedEffectStyle, getComputedStrokeStyle, getAnimationColorBaseStyle, isStrokeOnlyPresetElement, resolveShapeGeometry, getConnectorPathGeometry, normalizeStrokeDashType, getSvgStrokeDasharray, buildSvgGradientDef, buildStrokeOutline, getPresetShapeVectorGeometry, isWedgeCalloutPresetShape, svgGradientFillRef, isCalloutShape, getCalloutLeaderLineGeometry, buildCalloutLeaderLineSvgPath, getCalloutViewBoxBounds, svgLineCap, getCompoundLineOffsets, getCompoundLineWidths, canDrillDown, computeSelectionRect, DEFAULT_FONT_FAMILY, cellStyleToCss, rectToCells, isCellInRect, tableContainerCss, buildChartViewModel, resolveChartKind, chartPreserveAspectRatio, buildNotesPdfBytes, buildTiledSlidesPdfBytes, buildPreviewAnimation, buildMotionPathPreview, mediaFallbackVisual, scheduleMediaTrimAndFade, registerCrossSlideAudio, resolveAutoFitFontScale, resolveFontKerning, getSubstituteFontFamily, parsePanoseString, resolveScriptFontSet, hasDistinctScriptFonts, nestedTextDecorationStyle, pieceLetterSpacing, resolveMetricTrackingPx, hollowTextFillStyle, stripUnderlineDecoration, buildTabContext, TEXT_BUILD_ID_SEP, buildTextBuildSpec, textBuildSpanStyle, apply3dEffects, customGeometryPathsToSvgSubpaths, buildSubpathPaints, computeColumnBoundaries, getTableCellBandStyle, parseDrawingColor, parseDrawingColorOpacity, getCellDiagonalBorders, xmlText, cellRunStyle, getChartStylePalette, computeChartLegendLayout, mediaFallbackIcon, mediaFallbackLabelKey, MEDIA_CHROME_ATTRIBUTE, convertOmmlToMathMl, sanitizeMathMl, tableCellCss, computeResizedColumnWidths, computeResizedRowHeight, DEFAULT_ROW_HEIGHT, ooxmlGradientAngleToCssDegrees, buildRectPathGradient, buildRunTabLines, chartPartToAttrs, splitWordsForUnderline, splitRunForMetrics, splitRunByScriptFont } from './chunk-GNRVDNCV.mjs';
|
|
2
|
+
import { translationsEn } from './chunk-MQUTXOET.mjs';
|
|
3
3
|
import { clsx } from 'clsx';
|
|
4
4
|
import { twMerge } from 'tailwind-merge';
|
|
5
5
|
import React7, { useRef, useState, useEffect, useCallback, useMemo, useLayoutEffect } from 'react';
|
|
@@ -1796,112 +1796,8 @@ function getShapeVisualStyle(element, _hasFill, fillColor, _strokeWidth, _stroke
|
|
|
1796
1796
|
return base;
|
|
1797
1797
|
}
|
|
1798
1798
|
}
|
|
1799
|
-
function
|
|
1800
|
-
|
|
1801
|
-
if (typeof direct === "number" && Number.isFinite(direct)) {
|
|
1802
|
-
return clampUnitInterval(direct / 1e5);
|
|
1803
|
-
}
|
|
1804
|
-
const fallbackKey = element.shapeAdjustments?.adj;
|
|
1805
|
-
if (typeof fallbackKey === "number" && Number.isFinite(fallbackKey)) {
|
|
1806
|
-
return clampUnitInterval(fallbackKey / 1e5);
|
|
1807
|
-
}
|
|
1808
|
-
return clampUnitInterval(fallback);
|
|
1809
|
-
}
|
|
1810
|
-
function getConnectorPathGeometry(element) {
|
|
1811
|
-
const width = Math.max(element.width, 0);
|
|
1812
|
-
const height = Math.max(element.height, 0);
|
|
1813
|
-
const normalizedType = (element.shapeType || "").toLowerCase();
|
|
1814
|
-
const mapX = (value) => value;
|
|
1815
|
-
const mapY = (value) => value;
|
|
1816
|
-
const point = (x, y) => `${mapX(x)} ${mapY(y)}`;
|
|
1817
|
-
const startX = mapX(0);
|
|
1818
|
-
const startY = mapY(0);
|
|
1819
|
-
const endX = mapX(width);
|
|
1820
|
-
const endY = mapY(height);
|
|
1821
|
-
const horizontalDominant = width >= height;
|
|
1822
|
-
if (normalizedType.includes("bentconnector3")) {
|
|
1823
|
-
const adj1 = getConnectorAdjustment(element, "adj1", 0.32);
|
|
1824
|
-
const adj2 = getConnectorAdjustment(element, "adj2", 0.68);
|
|
1825
|
-
if (horizontalDominant) {
|
|
1826
|
-
const x1 = width * Math.min(adj1, adj2);
|
|
1827
|
-
const x2 = width * Math.max(adj1, adj2);
|
|
1828
|
-
const yMid = height * 0.5;
|
|
1829
|
-
return {
|
|
1830
|
-
startX,
|
|
1831
|
-
startY,
|
|
1832
|
-
endX,
|
|
1833
|
-
endY,
|
|
1834
|
-
pathData: `M ${point(0, 0)} L ${point(x1, 0)} L ${point(x1, yMid)} L ${point(x2, yMid)} L ${point(x2, height)} L ${point(width, height)}`
|
|
1835
|
-
};
|
|
1836
|
-
}
|
|
1837
|
-
const y1 = height * Math.min(adj1, adj2);
|
|
1838
|
-
const y2 = height * Math.max(adj1, adj2);
|
|
1839
|
-
const xMid = width * 0.5;
|
|
1840
|
-
return {
|
|
1841
|
-
startX,
|
|
1842
|
-
startY,
|
|
1843
|
-
endX,
|
|
1844
|
-
endY,
|
|
1845
|
-
pathData: `M ${point(0, 0)} L ${point(0, y1)} L ${point(xMid, y1)} L ${point(xMid, y2)} L ${point(width, y2)} L ${point(width, height)}`
|
|
1846
|
-
};
|
|
1847
|
-
}
|
|
1848
|
-
if (normalizedType.includes("bentconnector")) {
|
|
1849
|
-
const adj1 = getConnectorAdjustment(element, "adj1", 0.5);
|
|
1850
|
-
const adj2 = getConnectorAdjustment(element, "adj2", 0.5);
|
|
1851
|
-
if (horizontalDominant) {
|
|
1852
|
-
const bendX = width * adj1;
|
|
1853
|
-
return {
|
|
1854
|
-
startX,
|
|
1855
|
-
startY,
|
|
1856
|
-
endX,
|
|
1857
|
-
endY,
|
|
1858
|
-
pathData: `M ${point(0, 0)} L ${point(bendX, 0)} L ${point(bendX, height)} L ${point(width, height)}`
|
|
1859
|
-
};
|
|
1860
|
-
}
|
|
1861
|
-
const bendY = height * adj2;
|
|
1862
|
-
return {
|
|
1863
|
-
startX,
|
|
1864
|
-
startY,
|
|
1865
|
-
endX,
|
|
1866
|
-
endY,
|
|
1867
|
-
pathData: `M ${point(0, 0)} L ${point(0, bendY)} L ${point(width, bendY)} L ${point(width, height)}`
|
|
1868
|
-
};
|
|
1869
|
-
}
|
|
1870
|
-
if (normalizedType.includes("curvedconnector3")) {
|
|
1871
|
-
const adj1 = getConnectorAdjustment(element, "adj1", 0.22);
|
|
1872
|
-
const adj2 = getConnectorAdjustment(element, "adj2", 0.78);
|
|
1873
|
-
const control1X = width * adj1;
|
|
1874
|
-
const control2X = width * adj2;
|
|
1875
|
-
const control1Y = 0;
|
|
1876
|
-
const control2Y = height;
|
|
1877
|
-
return {
|
|
1878
|
-
startX,
|
|
1879
|
-
startY,
|
|
1880
|
-
endX,
|
|
1881
|
-
endY,
|
|
1882
|
-
pathData: `M ${point(0, 0)} C ${point(control1X, control1Y)} ${point(control2X, control2Y)} ${point(width, height)}`
|
|
1883
|
-
};
|
|
1884
|
-
}
|
|
1885
|
-
if (normalizedType.includes("curvedconnector")) {
|
|
1886
|
-
const adj1 = getConnectorAdjustment(element, "adj1", 0.5);
|
|
1887
|
-
const adj2 = getConnectorAdjustment(element, "adj2", horizontalDominant ? 0 : 1);
|
|
1888
|
-
const controlX = width * adj1;
|
|
1889
|
-
const controlY = height * adj2;
|
|
1890
|
-
return {
|
|
1891
|
-
startX,
|
|
1892
|
-
startY,
|
|
1893
|
-
endX,
|
|
1894
|
-
endY,
|
|
1895
|
-
pathData: `M ${point(0, 0)} Q ${point(controlX, controlY)} ${point(width, height)}`
|
|
1896
|
-
};
|
|
1897
|
-
}
|
|
1898
|
-
return {
|
|
1899
|
-
startX,
|
|
1900
|
-
startY,
|
|
1901
|
-
endX,
|
|
1902
|
-
endY,
|
|
1903
|
-
pathData: `M ${point(0, 0)} L ${point(width, height)}`
|
|
1904
|
-
};
|
|
1799
|
+
function getConnectorPathGeometry2(element) {
|
|
1800
|
+
return getConnectorPathGeometry(element);
|
|
1905
1801
|
}
|
|
1906
1802
|
var ARROW_SIZE_SCALE = {
|
|
1907
1803
|
sm: 0.6,
|
|
@@ -2286,7 +2182,7 @@ function renderVectorShape(element, hasFill, fillColor, strokeWidth, strokeColor
|
|
|
2286
2182
|
if (element.type === "connector" || getShapeType(element.shapeType) === "connector" || element.shapeType === "line") {
|
|
2287
2183
|
const viewWidth = Math.max(element.width, 1);
|
|
2288
2184
|
const viewHeight = Math.max(element.height, 1);
|
|
2289
|
-
const { pathData } =
|
|
2185
|
+
const { pathData } = getConnectorPathGeometry2(element);
|
|
2290
2186
|
const markerSeed = element.id.replace(/[^a-zA-Z0-9_-]/gu, "_");
|
|
2291
2187
|
const startMarkerId = `${markerSeed}-start-arrow`;
|
|
2292
2188
|
const endMarkerId = `${markerSeed}-end-arrow`;
|
|
@@ -3866,4 +3762,4 @@ function stopPreviewAnimation() {
|
|
|
3866
3762
|
activePreview = null;
|
|
3867
3763
|
}
|
|
3868
3764
|
|
|
3869
|
-
export { ANIMATION_PRESET_OPTIONS, ARROW_SIZE_OPTIONS, CONNECTOR_ARROW_OPTIONS, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY2 as DEFAULT_FONT_FAMILY, DEFAULT_SECTION_GROUP_ID, DEFAULT_STROKE_COLOR, DEFAULT_TABLE_COLUMNS, DEFAULT_TABLE_ROWS, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, GRID_SIZE, HYPERLINK_COLOR, MIN_ELEMENT_SIZE, SHAPE_PRESETS, SHORTCUT_REFERENCE_ITEMS, SLIDE_NAV_THUMBNAIL_WIDTH, STROKE_DASH_OPTIONS2 as STROKE_DASH_OPTIONS, TOOLBAR_SECTIONS, UNGROUPED_SECTION_ID, ZOOM_TO_SELECTION_PADDING, build3DExtrusionData2 as build3DExtrusionData, buildLineGlowFilter, buildLineShadowCss, buildNotesPdf, buildPdfFromTiledImageData, buildReactChartViewModel, buildTextBody3DSceneStyle2 as buildTextBody3DSceneStyle, cloneHistorySnapshot2 as cloneHistorySnapshot, cn, getAnimationInitialStyle2 as getAnimationInitialStyle, getConnectorPathGeometry, getCropShapeClipPath2 as getCropShapeClipPath, getDuotoneColors, getImageRenderStyle, getImageSurfaceMaskStyle, getImageSurfaceStyle, getImageTilingStyle2 as getImageTilingStyle, getShapeVisualStyle, getTextLayoutStyle, getTextStyleForElement, getTextWarpStyle, hasDagDuotoneEffect, isConnectorOrLineElement, renderChartElement, renderConnectorMarker, renderDagDuotoneSvgFilter, renderMediaElement, renderTableElement, renderTextSegments, renderVectorShape, shouldRenderFallbackLabel, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation };
|
|
3765
|
+
export { ANIMATION_PRESET_OPTIONS, ARROW_SIZE_OPTIONS, CONNECTOR_ARROW_OPTIONS, DEFAULT_CANVAS_HEIGHT, DEFAULT_CANVAS_WIDTH, DEFAULT_FILL_COLOR, DEFAULT_FONT_FAMILY2 as DEFAULT_FONT_FAMILY, DEFAULT_SECTION_GROUP_ID, DEFAULT_STROKE_COLOR, DEFAULT_TABLE_COLUMNS, DEFAULT_TABLE_ROWS, DEFAULT_TEXT_COLOR, DEFAULT_TEXT_FONT_SIZE, GRID_SIZE, HYPERLINK_COLOR, MIN_ELEMENT_SIZE, SHAPE_PRESETS, SHORTCUT_REFERENCE_ITEMS, SLIDE_NAV_THUMBNAIL_WIDTH, STROKE_DASH_OPTIONS2 as STROKE_DASH_OPTIONS, TOOLBAR_SECTIONS, UNGROUPED_SECTION_ID, ZOOM_TO_SELECTION_PADDING, build3DExtrusionData2 as build3DExtrusionData, buildLineGlowFilter, buildLineShadowCss, buildNotesPdf, buildPdfFromTiledImageData, buildReactChartViewModel, buildTextBody3DSceneStyle2 as buildTextBody3DSceneStyle, cloneHistorySnapshot2 as cloneHistorySnapshot, cn, getAnimationInitialStyle2 as getAnimationInitialStyle, getConnectorPathGeometry2 as getConnectorPathGeometry, getCropShapeClipPath2 as getCropShapeClipPath, getDuotoneColors, getImageRenderStyle, getImageSurfaceMaskStyle, getImageSurfaceStyle, getImageTilingStyle2 as getImageTilingStyle, getShapeVisualStyle, getTextLayoutStyle, getTextStyleForElement, getTextWarpStyle, hasDagDuotoneEffect, isConnectorOrLineElement, renderChartElement, renderConnectorMarker, renderDagDuotoneSvgFilter, renderMediaElement, renderTableElement, renderTextSegments, renderVectorShape, shouldRenderFallbackLabel, startMotionPathPreview, startPreviewAnimation, stopPreviewAnimation };
|
|
Binary file
|
|
Binary file
|