pptx-vue-viewer 4.63.0 → 4.63.1
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 +15 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.br +0 -0
- package/dist/index.cjs.gz +0 -0
- package/dist/index.js +2 -2
- package/dist/index.js.br +0 -0
- package/dist/index.js.gz +0 -0
- package/dist/internals.cjs +1 -1
- package/dist/internals.cjs.br +0 -0
- package/dist/internals.cjs.gz +0 -0
- package/dist/internals.js +1 -1
- package/dist/internals.js.br +0 -0
- package/dist/internals.js.gz +0 -0
- package/dist/pptx-vue-viewer.css +1 -1
- package/dist/pptx-vue-viewer.css.br +0 -0
- package/dist/pptx-vue-viewer.css.gz +0 -0
- package/dist/{useViewerSettingsDialog-Cf0EUQ6A.cjs → useViewerSettingsDialog-D2C68gva.cjs} +60 -58
- package/dist/useViewerSettingsDialog-D2C68gva.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-D2C68gva.cjs.gz +0 -0
- package/dist/{useViewerSettingsDialog-CCdx0WaP.js → useViewerSettingsDialog-DQ-7sQiE.js} +1838 -1836
- package/dist/useViewerSettingsDialog-DQ-7sQiE.js.br +0 -0
- package/dist/useViewerSettingsDialog-DQ-7sQiE.js.gz +0 -0
- package/dist/viewer/index.cjs +1 -1
- package/dist/viewer/index.cjs.br +0 -0
- package/dist/viewer/index.cjs.gz +0 -0
- package/dist/viewer/index.js +2 -2
- package/dist/viewer/index.js.br +0 -0
- package/dist/viewer/index.js.gz +0 -0
- package/dist/{viewer-CEr7y9hX.cjs → viewer-BB08o0Fe.cjs} +2 -2
- package/dist/viewer-BB08o0Fe.cjs.br +0 -0
- package/dist/viewer-BB08o0Fe.cjs.gz +0 -0
- package/dist/{viewer-vQxiJYTJ.js → viewer-BWGk1fRt.js} +2 -2
- package/dist/viewer-BWGk1fRt.js.br +0 -0
- package/dist/viewer-BWGk1fRt.js.gz +0 -0
- package/dist/{y-webrtc-B4BFox9k.js → y-webrtc-DFA3NALq.js} +1 -1
- package/dist/y-webrtc-DFA3NALq.js.br +0 -0
- package/dist/y-webrtc-DFA3NALq.js.gz +0 -0
- package/dist/{y-webrtc-Er9ajboC.cjs → y-webrtc-J37L1eue.cjs} +1 -1
- package/dist/y-webrtc-J37L1eue.cjs.br +0 -0
- package/dist/y-webrtc-J37L1eue.cjs.gz +0 -0
- package/package.json +3 -3
- package/dist/useViewerSettingsDialog-CCdx0WaP.js.br +0 -0
- package/dist/useViewerSettingsDialog-CCdx0WaP.js.gz +0 -0
- package/dist/useViewerSettingsDialog-Cf0EUQ6A.cjs.br +0 -0
- package/dist/useViewerSettingsDialog-Cf0EUQ6A.cjs.gz +0 -0
- package/dist/viewer-CEr7y9hX.cjs.br +0 -0
- package/dist/viewer-CEr7y9hX.cjs.gz +0 -0
- package/dist/viewer-vQxiJYTJ.js.br +0 -0
- package/dist/viewer-vQxiJYTJ.js.gz +0 -0
- package/dist/y-webrtc-B4BFox9k.js.br +0 -0
- package/dist/y-webrtc-B4BFox9k.js.gz +0 -0
- package/dist/y-webrtc-Er9ajboC.cjs.br +0 -0
- package/dist/y-webrtc-Er9ajboC.cjs.gz +0 -0
|
@@ -1270,11 +1270,11 @@ var He = (0, p.defineComponent)({
|
|
|
1270
1270
|
if (!v.value) return null;
|
|
1271
1271
|
const e = t.element;
|
|
1272
1272
|
return (0, k.hasShapeProperties)(e) ? (0, k.getConnectorPathGeometry)(e) : null;
|
|
1273
|
-
}), h = (0, p.computed)(() => t.element.flipHorizontal ?
|
|
1274
|
-
function
|
|
1273
|
+
}), h = (0, p.computed)(() => Math.max(t.element.width, 0)), y = (0, p.computed)(() => Math.max(t.element.height, 0)), g = (0, p.computed)(() => t.element.flipHorizontal ? h.value : 0), x = (0, p.computed)(() => t.element.flipVertical ? y.value : 0), S = (0, p.computed)(() => t.element.flipHorizontal ? 0 : h.value), b = (0, p.computed)(() => t.element.flipVertical ? 0 : y.value), w = (0, p.computed)(() => (0, d.connectorSnapTransform)(t.element, !v.value, c.value.length, o.value)), E = (0, p.computed)(() => Math.max(3 * o.value, 14)), B = (0, p.computed)(() => v.value && f.value ? f.value.pathData : `M ${g.value} ${x.value} L ${S.value} ${b.value}`), C = (0, p.computed)(() => P(n.value?.connectorStartArrow)), I = (0, p.computed)(() => P(n.value?.connectorEndArrow));
|
|
1274
|
+
function P(e) {
|
|
1275
1275
|
return e && "none" !== e ? e : void 0;
|
|
1276
1276
|
}
|
|
1277
|
-
const
|
|
1277
|
+
const T = (0, p.computed)(() => t.element.id.replace(/[^a-zA-Z0-9_-]/gu, "_")), D = (0, p.computed)(() => `${T.value}-start`), z = (0, p.computed)(() => `${T.value}-end`), A = (0, p.computed)(() => {
|
|
1278
1278
|
const e = t.element, n = {
|
|
1279
1279
|
position: "absolute",
|
|
1280
1280
|
left: `${e.x}px`,
|
|
@@ -1285,23 +1285,23 @@ var He = (0, p.defineComponent)({
|
|
|
1285
1285
|
pointerEvents: "none",
|
|
1286
1286
|
overflow: "visible"
|
|
1287
1287
|
};
|
|
1288
|
-
return e.rotation && (n.transform = `rotate(${e.rotation}deg)`), "number" == typeof e.opacity && (n.opacity = e.opacity),
|
|
1289
|
-
}),
|
|
1290
|
-
function
|
|
1288
|
+
return e.rotation && (n.transform = `rotate(${e.rotation}deg)`), "number" == typeof e.opacity && (n.opacity = e.opacity), L.value && (n.filter = L.value), e.hidden && (n.display = "none"), n;
|
|
1289
|
+
}), O = (0, p.computed)(() => C.value ? (0, d.markerPath)(C.value, n.value?.connectorStartArrowWidth, n.value?.connectorStartArrowLength) : null), M = (0, p.computed)(() => I.value ? (0, d.markerPath)(I.value, n.value?.connectorEndArrowWidth, n.value?.connectorEndArrowLength) : null), F = (0, p.computed)(() => (0, d.getLineShadowParams)(n.value)), L = (0, p.computed)(() => (0, d.getLineGlowFilterCss)(n.value)), R = (0, p.computed)(() => `${T.value}-line-shadow`), N = (0, p.computed)(() => (0, k.hasTextProperties)(t.element) ? t.element : void 0), V = (0, p.computed)(() => N.value?.text?.trim() ?? ""), _ = (0, p.computed)(() => N.value?.textSegments), j = (0, p.computed)(() => N.value?.textStyle);
|
|
1290
|
+
function U(e) {
|
|
1291
1291
|
if (0 !== e) return `translate(0, ${e}px)`;
|
|
1292
1292
|
}
|
|
1293
|
-
function
|
|
1293
|
+
function $(e) {
|
|
1294
1294
|
return Math.max(m.value[e] ?? o.value, 1);
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function W(e, t) {
|
|
1297
1297
|
return {
|
|
1298
|
-
strokeWidth: (0, d.
|
|
1299
|
-
transform:
|
|
1298
|
+
strokeWidth: (0, d.connectorStrandScreenWidth)(m.value, o.value, e),
|
|
1299
|
+
transform: U(t) ?? w.value
|
|
1300
1300
|
};
|
|
1301
1301
|
}
|
|
1302
1302
|
return (t, n) => ((0, p.openBlock)(), (0, p.createElementBlock)("div", {
|
|
1303
1303
|
class: "pptx-vue-element pptx-vue-connector",
|
|
1304
|
-
style: (0, p.normalizeStyle)(
|
|
1304
|
+
style: (0, p.normalizeStyle)(A.value),
|
|
1305
1305
|
"data-element-id": e.element.id
|
|
1306
1306
|
}, [
|
|
1307
1307
|
e.textStyleOverrideCss ? ((0, p.openBlock)(), (0, p.createBlock)((0, p.resolveDynamicComponent)("style"), { key: 0 }, {
|
|
@@ -1318,18 +1318,18 @@ var He = (0, p.defineComponent)({
|
|
|
1318
1318
|
}
|
|
1319
1319
|
}, [
|
|
1320
1320
|
(0, p.createElementVNode)("defs", null, [
|
|
1321
|
-
|
|
1321
|
+
O.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("marker", {
|
|
1322
1322
|
key: 0,
|
|
1323
|
-
id:
|
|
1323
|
+
id: D.value,
|
|
1324
1324
|
viewBox: "0 0 10 10",
|
|
1325
|
-
refX:
|
|
1325
|
+
refX: O.value.refX,
|
|
1326
1326
|
refY: "5",
|
|
1327
|
-
markerWidth:
|
|
1327
|
+
markerWidth: O.value.markerWidth,
|
|
1328
1328
|
preserveAspectRatio: "none",
|
|
1329
|
-
markerHeight:
|
|
1329
|
+
markerHeight: O.value.markerHeight,
|
|
1330
1330
|
orient: "auto-start-reverse",
|
|
1331
1331
|
markerUnits: "strokeWidth"
|
|
1332
|
-
}, ["circle" ===
|
|
1332
|
+
}, ["circle" === O.value.shape ? ((0, p.openBlock)(), (0, p.createElementBlock)("circle", {
|
|
1333
1333
|
key: 0,
|
|
1334
1334
|
cx: "5",
|
|
1335
1335
|
cy: "5",
|
|
@@ -1337,22 +1337,22 @@ var He = (0, p.defineComponent)({
|
|
|
1337
1337
|
fill: l.value
|
|
1338
1338
|
}, null, 8, et)) : ((0, p.openBlock)(), (0, p.createElementBlock)("path", {
|
|
1339
1339
|
key: 1,
|
|
1340
|
-
d:
|
|
1341
|
-
fill:
|
|
1342
|
-
stroke:
|
|
1340
|
+
d: O.value.d,
|
|
1341
|
+
fill: O.value.strokeOnly ? "none" : l.value,
|
|
1342
|
+
stroke: O.value.strokeOnly ? l.value : void 0
|
|
1343
1343
|
}, null, 8, tt))], 8, Qe)) : (0, p.createCommentVNode)("", !0),
|
|
1344
|
-
|
|
1344
|
+
M.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("marker", {
|
|
1345
1345
|
key: 1,
|
|
1346
|
-
id:
|
|
1346
|
+
id: z.value,
|
|
1347
1347
|
viewBox: "0 0 10 10",
|
|
1348
|
-
refX:
|
|
1348
|
+
refX: M.value.refX,
|
|
1349
1349
|
refY: "5",
|
|
1350
|
-
markerWidth:
|
|
1350
|
+
markerWidth: M.value.markerWidth,
|
|
1351
1351
|
preserveAspectRatio: "none",
|
|
1352
|
-
markerHeight:
|
|
1352
|
+
markerHeight: M.value.markerHeight,
|
|
1353
1353
|
orient: "auto-start-reverse",
|
|
1354
1354
|
markerUnits: "strokeWidth"
|
|
1355
|
-
}, ["circle" ===
|
|
1355
|
+
}, ["circle" === M.value.shape ? ((0, p.openBlock)(), (0, p.createElementBlock)("circle", {
|
|
1356
1356
|
key: 0,
|
|
1357
1357
|
cx: "5",
|
|
1358
1358
|
cy: "5",
|
|
@@ -1360,71 +1360,73 @@ var He = (0, p.defineComponent)({
|
|
|
1360
1360
|
fill: l.value
|
|
1361
1361
|
}, null, 8, ot)) : ((0, p.openBlock)(), (0, p.createElementBlock)("path", {
|
|
1362
1362
|
key: 1,
|
|
1363
|
-
d:
|
|
1364
|
-
fill:
|
|
1365
|
-
stroke:
|
|
1363
|
+
d: M.value.d,
|
|
1364
|
+
fill: M.value.strokeOnly ? "none" : l.value,
|
|
1365
|
+
stroke: M.value.strokeOnly ? l.value : void 0
|
|
1366
1366
|
}, null, 8, lt))], 8, nt)) : (0, p.createCommentVNode)("", !0),
|
|
1367
|
-
|
|
1367
|
+
F.value ? ((0, p.openBlock)(), (0, p.createElementBlock)("filter", {
|
|
1368
1368
|
key: 2,
|
|
1369
|
-
id:
|
|
1369
|
+
id: R.value,
|
|
1370
1370
|
x: "-50%",
|
|
1371
1371
|
y: "-50%",
|
|
1372
1372
|
width: "200%",
|
|
1373
1373
|
height: "200%"
|
|
1374
1374
|
}, [(0, p.createElementVNode)("feDropShadow", {
|
|
1375
|
-
dx:
|
|
1376
|
-
dy:
|
|
1377
|
-
stdDeviation:
|
|
1378
|
-
"flood-color":
|
|
1379
|
-
"flood-opacity":
|
|
1375
|
+
dx: F.value.offsetX,
|
|
1376
|
+
dy: F.value.offsetY,
|
|
1377
|
+
stdDeviation: F.value.blur / 2,
|
|
1378
|
+
"flood-color": F.value.color,
|
|
1379
|
+
"flood-opacity": F.value.opacity
|
|
1380
1380
|
}, null, 8, rt)], 8, at)) : (0, p.createCommentVNode)("", !0)
|
|
1381
1381
|
]),
|
|
1382
1382
|
(0, p.createElementVNode)("path", {
|
|
1383
1383
|
class: "pptx-vue-connector-hit",
|
|
1384
|
-
d:
|
|
1384
|
+
d: B.value,
|
|
1385
1385
|
fill: "none",
|
|
1386
1386
|
stroke: "transparent",
|
|
1387
|
-
"stroke-width":
|
|
1387
|
+
"stroke-width": E.value,
|
|
1388
1388
|
"stroke-linecap": "round",
|
|
1389
1389
|
"stroke-linejoin": "round",
|
|
1390
1390
|
style: { "pointer-events": "stroke" }
|
|
1391
1391
|
}, null, 8, it),
|
|
1392
1392
|
v.value && f.value ? ((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, { key: 0 }, (0, p.renderList)(c.value, (e, t) => ((0, p.openBlock)(), (0, p.createElementBlock)("path", {
|
|
1393
1393
|
key: t,
|
|
1394
|
+
"data-pptx-line": "",
|
|
1394
1395
|
d: f.value.pathData,
|
|
1395
1396
|
fill: "none",
|
|
1396
1397
|
stroke: l.value,
|
|
1397
|
-
"stroke-width":
|
|
1398
|
+
"stroke-width": $(t),
|
|
1398
1399
|
"stroke-opacity": a.value,
|
|
1399
1400
|
"stroke-dasharray": r.value,
|
|
1400
1401
|
"stroke-linecap": "round",
|
|
1401
1402
|
"stroke-linejoin": "round",
|
|
1402
|
-
filter: 0 === t &&
|
|
1403
|
-
style: (0, p.normalizeStyle)(
|
|
1404
|
-
"marker-start": 0 === t &&
|
|
1405
|
-
"marker-end": t === c.value.length - 1 &&
|
|
1403
|
+
filter: 0 === t && F.value ? `url(#${R.value})` : void 0,
|
|
1404
|
+
style: (0, p.normalizeStyle)(W(t, e)),
|
|
1405
|
+
"marker-start": 0 === t && O.value ? `url(#${D.value})` : void 0,
|
|
1406
|
+
"marker-end": t === c.value.length - 1 && M.value ? `url(#${z.value})` : void 0
|
|
1406
1407
|
}, null, 12, st))), 128)) : ((0, p.openBlock)(!0), (0, p.createElementBlock)(p.Fragment, { key: 1 }, (0, p.renderList)(c.value, (e, t) => ((0, p.openBlock)(), (0, p.createElementBlock)("line", {
|
|
1407
1408
|
key: t,
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1409
|
+
"data-pptx-line": "",
|
|
1410
|
+
x1: g.value,
|
|
1411
|
+
y1: x.value + e,
|
|
1412
|
+
x2: S.value,
|
|
1413
|
+
y2: b.value + e,
|
|
1412
1414
|
stroke: l.value,
|
|
1413
|
-
"stroke-width":
|
|
1414
|
-
style: (0, p.normalizeStyle)(
|
|
1415
|
+
"stroke-width": $(t),
|
|
1416
|
+
style: (0, p.normalizeStyle)(W(t, 0)),
|
|
1415
1417
|
"stroke-opacity": a.value,
|
|
1416
1418
|
"stroke-dasharray": r.value,
|
|
1417
1419
|
"stroke-linecap": "round",
|
|
1418
|
-
filter: 0 === t &&
|
|
1419
|
-
"marker-start": 0 === t &&
|
|
1420
|
-
"marker-end": t === c.value.length - 1 &&
|
|
1420
|
+
filter: 0 === t && F.value ? `url(#${R.value})` : void 0,
|
|
1421
|
+
"marker-start": 0 === t && O.value ? `url(#${D.value})` : void 0,
|
|
1422
|
+
"marker-end": t === c.value.length - 1 && M.value ? `url(#${z.value})` : void 0
|
|
1421
1423
|
}, null, 12, ut))), 128))
|
|
1422
1424
|
], 8, Je)),
|
|
1423
|
-
|
|
1425
|
+
_.value ? ((0, p.openBlock)(), (0, p.createBlock)(Xe, {
|
|
1424
1426
|
key: 1,
|
|
1425
|
-
text:
|
|
1426
|
-
segments:
|
|
1427
|
-
"text-style":
|
|
1427
|
+
text: V.value,
|
|
1428
|
+
segments: _.value,
|
|
1429
|
+
"text-style": j.value
|
|
1428
1430
|
}, null, 8, [
|
|
1429
1431
|
"text",
|
|
1430
1432
|
"segments",
|
|
@@ -2030,7 +2032,7 @@ var zt = { style: {
|
|
|
2030
2032
|
"stroke-linejoin": s.value.lineJoin,
|
|
2031
2033
|
style: (0, p.normalizeStyle)({
|
|
2032
2034
|
strokeWidth: e.cssStrokeWidth,
|
|
2033
|
-
transform: 0 !== e.offset ? `translate(0, ${e.offset}px)` : void 0
|
|
2035
|
+
transform: e.cssTransform ?? (0 !== e.offset ? `translate(0, ${e.offset}px)` : void 0)
|
|
2034
2036
|
})
|
|
2035
2037
|
}, null, 12, fn))), 128))
|
|
2036
2038
|
], 8, on)) : (0, p.createCommentVNode)("", !0),
|
|
@@ -5773,7 +5775,7 @@ function yr(e) {
|
|
|
5773
5775
|
var gr = {
|
|
5774
5776
|
loadYjs: () => import("yjs"),
|
|
5775
5777
|
loadWebsocket: () => import("y-websocket"),
|
|
5776
|
-
loadWebrtc: () => Promise.resolve().then(() => require("./y-webrtc-
|
|
5778
|
+
loadWebrtc: () => Promise.resolve().then(() => require("./y-webrtc-J37L1eue.cjs"))
|
|
5777
5779
|
};
|
|
5778
5780
|
function kr(e, t) {
|
|
5779
5781
|
const n = (0, p.ref)(!1), o = (0, p.ref)(!1), l = (0, p.ref)(void 0), a = (0, d.createCollaborationLivePatcher)();
|
|
Binary file
|
|
Binary file
|