@pi-outpost/embed 0.15.0 → 0.16.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/PdfViewer-BEdoeHbS.cjs +1 -0
- package/dist/{PdfViewer-BHP5lV-o.js → PdfViewer-DvoTT6jM.js} +5 -5
- package/dist/{abnfDiagram-N423BO3Z-WMOVzCba.js → abnfDiagram-VCTEODGH-CYuCmqs8.js} +6 -6
- package/dist/abnfDiagram-VCTEODGH-SjZtzoAs.cjs +1 -0
- package/dist/{arc-BBnpgwVQ.js → arc-CtDF59mU.js} +8 -6
- package/dist/arc-Dh2Zrypi.cjs +1 -0
- package/dist/architecture-7GRP2DOG-BtgYGXkq.cjs +1 -0
- package/dist/architecture-7GRP2DOG-DBQ9eYgM.js +3 -0
- package/dist/{architectureDiagram-T3A2C74G-BH-F8FzB.js → architectureDiagram-5GKGNRK7-D2-hmLgN.js} +327 -318
- package/dist/architectureDiagram-5GKGNRK7-wrDPdf3y.cjs +36 -0
- package/dist/blockDiagram-OSKFZWR5-Boo8WJyt.cjs +129 -0
- package/dist/blockDiagram-OSKFZWR5-Bvi4xQOy.js +1922 -0
- package/dist/{browser-CynjNfkw.js → browser-BmmG9yeb.js} +40 -34
- package/dist/{browser-CAyUayTx.cjs → browser-CUQnQIhV.cjs} +5 -5
- package/dist/c-AHDGPWiJ.cjs +1 -0
- package/dist/{c-Cw4FsAeJ.js → c-BCMbpktW.js} +42 -31
- package/dist/c4Diagram-7LVT6UL2-BCrC0RQo.cjs +38 -0
- package/dist/{c4Diagram-5PPSVZJV-Cfnl6tZM.js → c4Diagram-7LVT6UL2-CU4tNaf1.js} +751 -703
- package/dist/{channel-Bq-0ENlK.js → channel-Cuipqk56.js} +1 -1
- package/dist/channel-DcrLLvcO.cjs +1 -0
- package/dist/{chunk-JQJVKLGR-CZorbEP3.js → chunk-3NF5O7KM-B-2znsHr.js} +155 -115
- package/dist/chunk-3NF5O7KM-B-DpUW2r.cjs +168 -0
- package/dist/chunk-4HAMMTFA-CtkrBT7X.cjs +62 -0
- package/dist/chunk-4HAMMTFA-dRm_HqMI.js +4188 -0
- package/dist/chunk-75Z2AOVW-DOXS9ORa.cjs +2 -0
- package/dist/{chunk-NSK5VX7P-DPxIxDdV.js → chunk-75Z2AOVW-Eg_bFxBJ.js} +60 -96
- package/dist/chunk-DU6HZSFF-3Hhp3Fo5.cjs +127 -0
- package/dist/{chunk-I66GZJ75-DexfhZwA.js → chunk-DU6HZSFF-CaHy-FdL.js} +527 -478
- package/dist/{chunk-2GRJ4B5K-DzaxUd3W.cjs → chunk-F27PBJKO-3UPgzIlN.cjs} +1 -1
- package/dist/{chunk-2GRJ4B5K-DXwE-yr5.js → chunk-F27PBJKO-BriqLvNp.js} +4 -4
- package/dist/{chunk-KEIR6QF5-BVnxrdHo.js → chunk-FOHPRMQF-BNNbqxGX.js} +424 -356
- package/dist/chunk-FOHPRMQF-tmTlwTeH.cjs +161 -0
- package/dist/chunk-GMAD6QVW-B6uvB_wz.cjs +72 -0
- package/dist/{chunk-WRU74C26-D4huAZcy.js → chunk-GMAD6QVW-DCCx2Rg1.js} +503 -267
- package/dist/chunk-GVQU2GXP-BRMv2gX3.js +37 -0
- package/dist/chunk-GVQU2GXP-iZT_vNLp.cjs +1 -0
- package/dist/{chunk-GF5L2VYU-BPBMCCz5.js → chunk-HLEWEB6X-DlG0X171.js} +16 -16
- package/dist/{chunk-GF5L2VYU-DgG-wovM.cjs → chunk-HLEWEB6X-aqFoPl02.cjs} +4 -4
- package/dist/chunk-L3NEJ4N5-DkoFQHrz.js +245 -0
- package/dist/chunk-L3NEJ4N5-vW3qRjIb.cjs +1 -0
- package/dist/{chunk-7Z6QIM7H-CIoK8R3m.js → chunk-OSK3NFVY-CxjvZYNR.js} +232 -150
- package/dist/chunk-OSK3NFVY-DU2FGOlI.cjs +10 -0
- package/dist/chunk-P2QGCYS3-DWeL9spl.cjs +1 -0
- package/dist/{chunk-W5SLKNZC-Djmw_p6f.js → chunk-P2QGCYS3-uCJfSNHC.js} +19 -19
- package/dist/{chunk-KBJHAD2P-CthZVYG5.cjs → chunk-POPQ4Y6H-BRQPB1-9.cjs} +1 -1
- package/dist/{chunk-KBJHAD2P-BlQyFndF.js → chunk-POPQ4Y6H-D2Z11lA3.js} +3 -3
- package/dist/{chunk-4I5QYGJK-LCSWSJfh.cjs → chunk-PWAF6VOD-CZZKCekP.cjs} +1 -1
- package/dist/{chunk-4I5QYGJK-JZmvuONC.js → chunk-PWAF6VOD-j4sFqhOF.js} +7 -9
- package/dist/{chunk-6Q2QTUOP-C5n08EA-.cjs → chunk-SVP7TREG-CTKSOFlx.cjs} +2 -2
- package/dist/{chunk-6Q2QTUOP-DvJxCxMM.js → chunk-SVP7TREG-CtJsmAIb.js} +4 -4
- package/dist/{chunk-XXDRQBXY-DsVp5qjg.js → chunk-XXDRQBXY-fOrVUHLI.js} +1 -1
- package/dist/{chunk-XXDRQBXY-gWcN0uCZ.cjs → chunk-XXDRQBXY-yMT3rT5Y.cjs} +1 -1
- package/dist/chunk-ZLD2IHE6-BZxKwfuv.cjs +231 -0
- package/dist/{chunk-5RXB4S5H-JthGygoA.js → chunk-ZLD2IHE6-tqumZV0E.js} +44 -48
- package/dist/classDiagram-CYGNFDIV-CQLOfBmz.cjs +1 -0
- package/dist/classDiagram-CYGNFDIV-DIu4rTyR.js +30 -0
- package/dist/classDiagram-v2-TLXNO2FR-BsYK4QnI.js +30 -0
- package/dist/classDiagram-v2-TLXNO2FR-CQLOfBmz.cjs +1 -0
- package/dist/{core-BO2hTFeF.js → core-B9pe29T7.js} +8 -7
- package/dist/core-BrupIPpc.cjs +3 -0
- package/dist/{cose-bilkent-JH36ORCC-BFo5zomD.js → cose-bilkent-JH36ORCC-1Ad4jvll.js} +65 -62
- package/dist/cose-bilkent-JH36ORCC-Cc2qvpLA.cjs +1 -0
- package/dist/{cpp-CeyO6lBG.js → cpp-CL2nTisp.js} +25 -14
- package/dist/cpp-DpAsh4uT.cjs +1 -0
- package/dist/{csharp-Ck6Fet_o.js → csharp-CK75iOSn.js} +37 -37
- package/dist/csharp-TOr_W-v9.cjs +1 -0
- package/dist/css-4wogsuks.cjs +1 -0
- package/dist/{css-ClSGJRju.js → css-DJr8nnnu.js} +6 -1
- package/dist/cynefin-OW5HDTMX-BmLJra-4.cjs +1 -0
- package/dist/cynefin-OW5HDTMX-CfYr_cVN.js +3 -0
- package/dist/{cynefinDiagram-MW4NZA55-CB4ZzMEN.js → cynefinDiagram-5FMLGOSQ-BSRTnQvp.js} +29 -23
- package/dist/cynefinDiagram-5FMLGOSQ-GvGZco52.cjs +62 -0
- package/dist/{cytoscape.esm-asYnbYTy.js → cytoscape.esm-Cq7KPj0t.js} +2480 -2480
- package/dist/cytoscape.esm-uHsEX1XI.cjs +321 -0
- package/dist/{dagre-BpqwxFKp.js → dagre-BMKbPnPh.js} +689 -456
- package/dist/dagre-EEW2OxRU.cjs +1 -0
- package/dist/dagre-OS7QT2EB-DFi6nnZc.cjs +4 -0
- package/dist/dagre-OS7QT2EB-DcpSzxsR.js +425 -0
- package/dist/{defaultLocale-up9-vqhM.js → defaultLocale-B4ncmkvI.js} +1 -4
- package/dist/defaultLocale-ybN1Vtvg.cjs +1 -0
- package/dist/diagram-S7CK7UJ4-BA67ZpiO.cjs +30 -0
- package/dist/{diagram-7IWD3JNH-Cschro8T.js → diagram-S7CK7UJ4-Cx2fQdp6.js} +39 -38
- package/dist/{diagram-UB23O5K3-D-yL2fvd.js → diagram-UQ7AKVKN-CvQH-Box.js} +12 -12
- package/dist/diagram-UQ7AKVKN-OteiyKD9.cjs +41 -0
- package/dist/{diagram-B4RE2ZJO-DKbKOwkP.cjs → diagram-VSXAHHWV-BjsZz1JJ.cjs} +1 -1
- package/dist/{diagram-B4RE2ZJO-B94mhDmV.js → diagram-VSXAHHWV-CCpCVOIq.js} +6 -6
- package/dist/diagram-VX7I27RA-Bx9fEhR0.cjs +24 -0
- package/dist/{diagram-Q27KOJAE-Cqn3IliP.js → diagram-VX7I27RA-HE5nQAXN.js} +64 -62
- package/dist/{diagram-LBJQPF4R-D0MEwBt6.js → diagram-Z3DM3KII-BEu4c4pP.js} +11 -11
- package/dist/diagram-Z3DM3KII-jy895UiZ.cjs +24 -0
- package/dist/{dist-D6LMt8nW.js → dist-Dtt9eY41.js} +1 -1
- package/dist/{dist-DNGlMOWd.cjs → dist-Dwv2VYAL.cjs} +1 -1
- package/dist/{ebnfDiagram-BXEA7PRR-B2HDWFYF.js → ebnfDiagram-PWID7BFC-B06rGL3A.js} +6 -6
- package/dist/ebnfDiagram-PWID7BFC-BQZKHpUr.cjs +1 -0
- package/dist/erDiagram-2YWLMYGG-CuEEIv1I.cjs +99 -0
- package/dist/{erDiagram-JOGREHBK-Badv_hu8.js → erDiagram-2YWLMYGG-IL4IhNXb.js} +1046 -807
- package/dist/eventmodeling-NTZA5JFV-D57pc07U.cjs +1 -0
- package/dist/eventmodeling-NTZA5JFV-DUbGOrrF.js +3 -0
- package/dist/flowDiagram-T62WH6J4-DdJo3Te1.js +16 -0
- package/dist/flowDiagram-T62WH6J4-YyzE7N5Z.cjs +1 -0
- package/dist/{ganttDiagram-PKOTCBZU-By0w7TmO.js → ganttDiagram-EL5Y4UJY-CIBhrOW6.js} +26 -36
- package/dist/ganttDiagram-EL5Y4UJY-PTWIufq8.cjs +292 -0
- package/dist/gitGraph-4MIJSDKK-CY4IuhXZ.js +3 -0
- package/dist/gitGraph-4MIJSDKK-D97vaDci.cjs +1 -0
- package/dist/{gitGraphDiagram-DS77QQ5N-B1uJYchG.js → gitGraphDiagram-WWUBYQGX-CjeedV4i.js} +16 -12
- package/dist/{gitGraphDiagram-DS77QQ5N-Fw8a66di.cjs → gitGraphDiagram-WWUBYQGX-D5yozoaq.cjs} +3 -3
- package/dist/{go-rg7jg1mu.js → go-B2E3I9E3.js} +4 -0
- package/dist/{go-D-pz-dmd.cjs → go-BDkypVKn.cjs} +1 -1
- package/dist/{graphlib-CkkG5MuS.cjs → graphlib-BaETKKSa.cjs} +1 -1
- package/dist/{graphlib-B0GbLif1.js → graphlib-CQa_B3rm.js} +5 -5
- package/dist/info-A6RAGUB7-Cx39sHYM.js +3 -0
- package/dist/info-A6RAGUB7-DT06-FB3.cjs +1 -0
- package/dist/{infoDiagram-6WML65LV-CkWm_KTB.js → infoDiagram-FKFFQAWI-BalzsRT4.js} +6 -6
- package/dist/infoDiagram-FKFFQAWI-NPtQF4vB.cjs +2 -0
- package/dist/init-BJdqMO10.cjs +1 -0
- package/dist/{init-CirqLVcp.js → init-CuXVI8k2.js} +1 -3
- package/dist/{ishikawaDiagram-WSZJBQD7-DTeFqC8L.js → ishikawaDiagram-5VMMS53U-BC2vrJSo.js} +14 -14
- package/dist/{ishikawaDiagram-WSZJBQD7-CQWHhozU.cjs → ishikawaDiagram-5VMMS53U-DN23jmFw.cjs} +3 -3
- package/dist/java-DFBMvIUR.cjs +1 -0
- package/dist/{java-HguKEfA2.js → java-T8Nr25pJ.js} +27 -22
- package/dist/{javascript-C8NCH8DE.js → javascript-CIP6I0eT.js} +6 -4
- package/dist/javascript-Gn0piXHk.cjs +1 -0
- package/dist/{journeyDiagram-NVQOT4AX-Cg6C3dFy.js → journeyDiagram-EYS64GPL-CLMBONXO.js} +14 -14
- package/dist/{journeyDiagram-NVQOT4AX-DLomv_vN.cjs → journeyDiagram-EYS64GPL-Co9rp-Q1.cjs} +3 -3
- package/dist/json-DOqjN5nI.js +42 -0
- package/dist/json-LMrXTXZM.cjs +1 -0
- package/dist/{kanban-definition-27J2QSJJ-B9Fog3W7.cjs → kanban-definition-UXKFOSKX-DzKPVjAq.cjs} +5 -5
- package/dist/{kanban-definition-27J2QSJJ-Bb7nb0gX.js → kanban-definition-UXKFOSKX-SNTHZo65.js} +31 -31
- package/dist/katex-CEF6MvLx.cjs +257 -0
- package/dist/katex-ohtLbxXc.js +21977 -0
- package/dist/{line-yqcJYv29.js → line-4_dF7rOW.js} +2 -2
- package/dist/{line-pOZ7Sdj7.cjs → line-D6gR53Af.cjs} +1 -1
- package/dist/{linear-CVhyaVzf.js → linear-C1gZJMVz.js} +8 -9
- package/dist/linear-Nt9BuHfn.cjs +1 -0
- package/dist/{markdown-CzgRofaE.js → markdown-BW-hB0s4.js} +2 -5
- package/dist/markdown-CTkHoGys.cjs +1 -0
- package/dist/{mermaid-parser.core-Cgsz0CdK.cjs → mermaid-parser.core-CBiDgMLi.cjs} +2 -2
- package/dist/{mermaid-parser.core-B8DQcCaz.js → mermaid-parser.core-DLNlSmfj.js} +31 -31
- package/dist/mermaid.core-B3QcBB1O.cjs +43 -0
- package/dist/mermaid.core-BIqYA7q2.js +3012 -0
- package/dist/{mindmap-definition-FAOFIHXS-9wa1P9NT.cjs → mindmap-definition-THT77NOG-Bo3D8RRT.cjs} +4 -4
- package/dist/{mindmap-definition-FAOFIHXS-DFG0Zs_1.js → mindmap-definition-THT77NOG-BtDuvAQ_.js} +27 -29
- package/dist/{ordinal-D0iNZ43g.cjs → ordinal-Bm_chml2.cjs} +1 -1
- package/dist/{ordinal-C1oQzsBn.js → ordinal-D3SPD7Kk.js} +2 -2
- package/dist/packet-AYTQ26CC-BGX2McoE.cjs +1 -0
- package/dist/packet-AYTQ26CC-IgkU2VYK.js +3 -0
- package/dist/path-DIS6ck99.cjs +1 -0
- package/dist/{path-mKa7UESy.js → path-PGqhG0Rz.js} +10 -11
- package/dist/{pdf-DyDm1M1B.js → pdf-B6zVkETi.js} +182 -220
- package/dist/pdf-cYqATYeW.cjs +54 -0
- package/dist/pegDiagram-XKGWAZYB-Cx-wZf4B.cjs +1 -0
- package/dist/{pegDiagram-VL7TDLO6-XOjprD-j.js → pegDiagram-XKGWAZYB-Ucd8o52_.js} +6 -6
- package/dist/{php-C9FOMGEA.js → php-Cn7gPoxt.js} +6 -0
- package/dist/{php-j6EhDZDE.cjs → php-DQmdBizx.cjs} +1 -1
- package/dist/pi-outpost-embed.cjs +47 -47
- package/dist/pi-outpost-embed.js +3750 -3717
- package/dist/pie-WAS4IAKB-CEyPj3UJ.cjs +1 -0
- package/dist/pie-WAS4IAKB-odE0A7fM.js +3 -0
- package/dist/pieDiagram-E7YTZNPT-BC-pW4cK.cjs +39 -0
- package/dist/{pieDiagram-7S7Q4E2Y-Cwe7fXgJ.js → pieDiagram-E7YTZNPT-DSx5wFMY.js} +20 -22
- package/dist/{python-DKAazMIE.js → python-BUfdXZqP.js} +6 -6
- package/dist/python-CrsffQw-.cjs +1 -0
- package/dist/{quadrantDiagram-CIZ2JOQS-CbaMHmYB.js → quadrantDiagram-AXDQQJYC-D8Y50xmh.js} +11 -11
- package/dist/{quadrantDiagram-CIZ2JOQS-CDfrU0dm.cjs → quadrantDiagram-AXDQQJYC-zPfqM9Q4.cjs} +2 -2
- package/dist/radar-RG4KPBEZ-ClYJNseM.cjs +1 -0
- package/dist/radar-RG4KPBEZ-DqbNqlJH.js +3 -0
- package/dist/railroad-74A4TZTK-Dzt4afqg.js +3 -0
- package/dist/railroad-74A4TZTK-hSKcr2y6.cjs +1 -0
- package/dist/railroad-abnf-HS5TGJTU-gq2RybTO.js +3 -0
- package/dist/railroad-abnf-HS5TGJTU-irEXz0eI.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-CG19A1Xj.cjs +1 -0
- package/dist/railroad-ebnf-LZEXJU2U-D-pNpFrj.js +3 -0
- package/dist/railroad-peg-WCYAUIDC-BLdK3QCV.cjs +1 -0
- package/dist/railroad-peg-WCYAUIDC-Bo7wfe--.js +3 -0
- package/dist/railroadDiagram-O6MQD6OU-3JsgWyLe.cjs +1 -0
- package/dist/{railroadDiagram-AXF67PYL-CVXAv-Uu.js → railroadDiagram-O6MQD6OU-BTg2KtZO.js} +6 -6
- package/dist/{requirementDiagram-LRYGKXZP-Bzik4kgS.js → requirementDiagram-IS5BZ75X-C1OrS7DV.js} +25 -24
- package/dist/{requirementDiagram-LRYGKXZP-BGlGCftH.cjs → requirementDiagram-IS5BZ75X-D1BMLxZg.cjs} +4 -4
- package/dist/{rolldown-runtime-Dqa2HsxW.js → rolldown-runtime-B0aSnxlc.js} +2 -2
- package/dist/{rolldown-runtime-mLOUI7ql.cjs → rolldown-runtime-DF3sbh8G.cjs} +1 -1
- package/dist/{rough.esm-r0QOSzHM.cjs → rough.esm-ChRLLRha.cjs} +1 -1
- package/dist/{rough.esm-C5XyeDCN.js → rough.esm-D2JJJ0Ot.js} +60 -51
- package/dist/{ruby-ClR4zp-1.cjs → ruby-B1inj-Q8.cjs} +1 -1
- package/dist/{ruby-BAUeZQKZ.js → ruby-DYVKXPXk.js} +1 -1
- package/dist/{rust-DiTjMjP5.js → rust-BihXqTNi.js} +38 -25
- package/dist/rust-D39kF6re.cjs +1 -0
- package/dist/{sankeyDiagram-W5VNT64P-OeLUMuT6.cjs → sankeyDiagram-P5KCCOFB-D5BHxcxB.cjs} +2 -2
- package/dist/{sankeyDiagram-W5VNT64P-_8xZpo45.js → sankeyDiagram-P5KCCOFB-DTnkE4oO.js} +17 -15
- package/dist/{scss-CckAvQOx.js → scss-CzfrZ5cc.js} +6 -1
- package/dist/scss-t-vKjRr4.cjs +1 -0
- package/dist/{sequenceDiagram-SI44F4Z6-X4mzY21C.js → sequenceDiagram-WJ2MYXX4-Ba-z2rSx.js} +36 -48
- package/dist/sequenceDiagram-WJ2MYXX4-DlVJIIIl.cjs +162 -0
- package/dist/{sizeCapture-X5ZJPWSS-DKbHZNyz.js → sizeCapture-INFHLROL-B5Lg3qGn.js} +1 -1
- package/dist/{src-DJ4x3y2O.js → src-BMMAFeC3.js} +288 -291
- package/dist/src-D9o9TOtH.cjs +1 -0
- package/dist/{stateDiagram-OKZ733FA-CMM1orC_.js → stateDiagram-XQSTLZYL-BtcUS_dg.js} +21 -21
- package/dist/stateDiagram-XQSTLZYL-mSOJx_Wv.cjs +1 -0
- package/dist/stateDiagram-v2-IH3M54BS-DAa6SuH4.cjs +1 -0
- package/dist/stateDiagram-v2-IH3M54BS-E_Rhduzm.js +30 -0
- package/dist/swimlanes-V6O3JKXN-BooYLGtP.cjs +1 -0
- package/dist/{swimlanes-SLNWSIFB-C7LLK1V2.js → swimlanes-V6O3JKXN-xxlpXv1f.js} +1022 -1109
- package/dist/swimlanesDiagram-JKAHXJPX-BaMCBEUQ.cjs +8 -0
- package/dist/swimlanesDiagram-JKAHXJPX-DyQwD-QO.js +30 -0
- package/dist/timeline-definition-24CTP7MA-D6sSmprF.cjs +120 -0
- package/dist/{timeline-definition-Z64GVDOM-Cgc-2OmU.js → timeline-definition-24CTP7MA-Dr8ouzBO.js} +19 -19
- package/dist/treeView-Q6P3EWNA-BmkQxkVU.cjs +1 -0
- package/dist/treeView-Q6P3EWNA-CPEEGmNv.js +3 -0
- package/dist/treemap-WGGIJYW6-CGULpntJ.js +3 -0
- package/dist/treemap-WGGIJYW6-Dmi9HAR8.cjs +1 -0
- package/dist/typescript-BarIi8q9.cjs +1 -0
- package/dist/{typescript-mdYq8uqf.js → typescript-C93MG6Zk.js} +26 -24
- package/dist/vennDiagram-4TSXK5OY-D5MMYyff.cjs +34 -0
- package/dist/{vennDiagram-T6HMQDX7-BWj1BhMh.js → vennDiagram-4TSXK5OY-i6B1rhUA.js} +15 -15
- package/dist/wardley-WFR3VGLG-9zHZLKh9.js +3 -0
- package/dist/wardley-WFR3VGLG-B6YvLPJA.cjs +1 -0
- package/dist/{wardleyDiagram-T6FBY63Y-d_t4oVLE.js → wardleyDiagram-VM6X3IG4-1SFyFcXg.js} +46 -46
- package/dist/{wardleyDiagram-T6FBY63Y-OomvVIFj.cjs → wardleyDiagram-VM6X3IG4-DzZNzmB8.cjs} +36 -36
- package/dist/{workspacePath-BScUv3M_.js → workspacePath-CfDl0V4n.js} +1 -1
- package/dist/{workspacePath-kqTwbSP1.cjs → workspacePath-EgAFT36l.cjs} +1 -1
- package/dist/{xml-BamqaQOf.cjs → xml-B0vjUBag.cjs} +1 -1
- package/dist/{xml-DVYfB8uY.js → xml-GxASmsT7.js} +2 -6
- package/dist/{xychartDiagram-ELKLHX3M-BOSOdubI.cjs → xychartDiagram-S5SC5T6Z-BOsjfYJh.cjs} +4 -4
- package/dist/{xychartDiagram-ELKLHX3M-Ce-ai3a8.js → xychartDiagram-S5SC5T6Z-D6QDBBGJ.js} +263 -158
- package/dist/{yaml-_1BORZTQ.js → yaml-CHhF1kKQ.js} +25 -25
- package/dist/yaml-DZS9gzaB.cjs +1 -0
- package/package.json +2 -2
- package/dist/PdfViewer-BBmVq73v.cjs +0 -1
- package/dist/abnfDiagram-N423BO3Z-DOZfbvMH.cjs +0 -1
- package/dist/arc-DcUn9_NX.cjs +0 -1
- package/dist/architecture-TIHT7OUA-D-35jO9Y.cjs +0 -1
- package/dist/architecture-TIHT7OUA-DDyMqjR1.js +0 -3
- package/dist/architectureDiagram-T3A2C74G-RJUsi-Sx.cjs +0 -36
- package/dist/blockDiagram-VBNYF7ZC-Bz8oqXJQ.cjs +0 -132
- package/dist/blockDiagram-VBNYF7ZC-DYMmF9bV.js +0 -3160
- package/dist/c-4QgYfi8K.cjs +0 -1
- package/dist/c4Diagram-5PPSVZJV-DM6x-BYG.cjs +0 -10
- package/dist/channel-DoxF0tZj.cjs +0 -1
- package/dist/chunk-3NCLNEKW-CO28EZBG.cjs +0 -1
- package/dist/chunk-3NCLNEKW-dTH67Ne_.js +0 -10
- package/dist/chunk-5RXB4S5H-B5b3tdRl.cjs +0 -231
- package/dist/chunk-7BUUIJ7U-BFUeQBoS.js +0 -82
- package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
- package/dist/chunk-7Z6QIM7H-Ctljl7Vq.cjs +0 -10
- package/dist/chunk-I66GZJ75-CrpH-Rmq.cjs +0 -127
- package/dist/chunk-J7OUQ5F2-DhMpZbAr.js +0 -57
- package/dist/chunk-J7OUQ5F2-b-MfW4O9.cjs +0 -1
- package/dist/chunk-JQJVKLGR-2AQwaWbm.cjs +0 -156
- package/dist/chunk-KEIR6QF5-Cy_QBNG6.cjs +0 -161
- package/dist/chunk-NSK5VX7P-D5CepZHI.cjs +0 -2
- package/dist/chunk-QR6OTTB3-CQ_jjYb-.js +0 -3736
- package/dist/chunk-QR6OTTB3-DSg3ZWNW.cjs +0 -62
- package/dist/chunk-RYQCIY6F-27FDzaaE.cjs +0 -1
- package/dist/chunk-RYQCIY6F-C-YC3QS_.js +0 -239
- package/dist/chunk-UBXNYLIW-BBncokef.js +0 -32
- package/dist/chunk-UBXNYLIW-DlNyCWjj.cjs +0 -1
- package/dist/chunk-W5SLKNZC-bHBkM2CL.cjs +0 -1
- package/dist/chunk-WRU74C26-9KZxhHnn.cjs +0 -70
- package/dist/chunk-ZIRB5QZD-BU6XQUGC.cjs +0 -32
- package/dist/chunk-ZIRB5QZD-Cj-y77rH.js +0 -1146
- package/dist/classDiagram-JCYQIIEL-DeHc-x8i.cjs +0 -1
- package/dist/classDiagram-JCYQIIEL-DlHKjVPc.js +0 -30
- package/dist/classDiagram-v2-OCEON4UE-DeHc-x8i.cjs +0 -1
- package/dist/classDiagram-v2-OCEON4UE-DlhHN57j.js +0 -30
- package/dist/core-2nR1zkKb.cjs +0 -3
- package/dist/cose-bilkent-JH36ORCC-AyWV1dUo.cjs +0 -1
- package/dist/cpp-BUtp-HE2.cjs +0 -1
- package/dist/csharp-BJu4kEpt.cjs +0 -1
- package/dist/css-DeFr0lev.cjs +0 -1
- package/dist/cynefin-VYW2F7L2-DHhUPDgc.cjs +0 -1
- package/dist/cynefin-VYW2F7L2-DwiVqvhg.js +0 -3
- package/dist/cynefinDiagram-MW4NZA55-By102s5I.cjs +0 -62
- package/dist/cytoscape.esm-ByjvpCPI.cjs +0 -321
- package/dist/dagre-BBlCxSvR.cjs +0 -1
- package/dist/dagre-VZM6K2ZE-5zrH2LqV.js +0 -328
- package/dist/dagre-VZM6K2ZE-CNe7-jhy.cjs +0 -4
- package/dist/defaultLocale-u9yUoUmE.cjs +0 -1
- package/dist/diagram-7IWD3JNH-CSzLXhRw.cjs +0 -30
- package/dist/diagram-LBJQPF4R-DgD0a56I.cjs +0 -24
- package/dist/diagram-Q27KOJAE-DNWfiaD5.cjs +0 -24
- package/dist/diagram-UB23O5K3-DguyM6v_.cjs +0 -41
- package/dist/ebnfDiagram-BXEA7PRR-DuJrkFn-.cjs +0 -1
- package/dist/erDiagram-JOGREHBK-DtyaQROs.cjs +0 -85
- package/dist/eventmodeling-45OFAUF4-COTtdYDJ.js +0 -3
- package/dist/eventmodeling-45OFAUF4-CPEyr9kU.cjs +0 -1
- package/dist/flowDiagram-UKHOOZJN-C7t5VpYH.js +0 -17
- package/dist/flowDiagram-UKHOOZJN-CdkElxh8.cjs +0 -1
- package/dist/ganttDiagram-PKOTCBZU-CFgz4r57.cjs +0 -292
- package/dist/gitGraph-TEB2WS4Q-C3qBT0GM.js +0 -3
- package/dist/gitGraph-TEB2WS4Q-a8KsoPmR.cjs +0 -1
- package/dist/info-DKCQHKI2-BEYhR6ip.cjs +0 -1
- package/dist/info-DKCQHKI2-BPF6-pOb.js +0 -3
- package/dist/infoDiagram-6WML65LV-CB6z_iKE.cjs +0 -2
- package/dist/init-07zIhv_j.cjs +0 -1
- package/dist/java-CUN_usaq.cjs +0 -1
- package/dist/javascript-UZXSyUuu.cjs +0 -1
- package/dist/json-Cp01TR_B.js +0 -36
- package/dist/json-usH_MUzR.cjs +0 -1
- package/dist/linear-Cl2-QuPP.cjs +0 -1
- package/dist/map-CwPlMWPw.cjs +0 -1
- package/dist/map-DU12fF3s.js +0 -241
- package/dist/markdown-qeo95R0i.cjs +0 -1
- package/dist/mermaid.core-BIq27e0A.js +0 -1068
- package/dist/mermaid.core-DpsSj3iy.cjs +0 -10
- package/dist/packet-7NZHBO7P-DqvBYJTR.js +0 -3
- package/dist/packet-7NZHBO7P-Dz0O2bgq.cjs +0 -1
- package/dist/path-Kklx0M1v.cjs +0 -1
- package/dist/pdf-aU0TN69t.cjs +0 -54
- package/dist/pegDiagram-VL7TDLO6-B4FslsmM.cjs +0 -1
- package/dist/pie-RZYD4A2V-Hi9UdoE3.cjs +0 -1
- package/dist/pie-RZYD4A2V-qnruo9sH.js +0 -3
- package/dist/pieDiagram-7S7Q4E2Y-CNzUVS2d.cjs +0 -39
- package/dist/python-BYJzTRkK.cjs +0 -1
- package/dist/radar-I7S5WNFK-Dqdssa34.cjs +0 -1
- package/dist/radar-I7S5WNFK-np_pJCO-.js +0 -3
- package/dist/railroad-3IZDKUUU-NILjDQft.cjs +0 -1
- package/dist/railroad-3IZDKUUU-sjKBeXxB.js +0 -3
- package/dist/railroad-abnf-AHOZXSZD-BojH9sxV.cjs +0 -1
- package/dist/railroad-abnf-AHOZXSZD-x5cC_e_R.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-2mlWpz38.js +0 -3
- package/dist/railroad-ebnf-EBAXGLYW-BKCSut1M.cjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-CsH-gnsp.cjs +0 -1
- package/dist/railroad-peg-LSFZ7HO6-D5vguo03.js +0 -3
- package/dist/railroadDiagram-AXF67PYL-EO1cBHEj.cjs +0 -1
- package/dist/rust-ghVvEWhm.cjs +0 -1
- package/dist/scss-CKxh5HRg.cjs +0 -1
- package/dist/sequenceDiagram-SI44F4Z6-CuaCFBtR.cjs +0 -162
- package/dist/src-CR--T_NF.cjs +0 -1
- package/dist/stateDiagram-OKZ733FA-Dq6hI_pq.cjs +0 -1
- package/dist/stateDiagram-v2-UEYNNEHI-BmWUstzl.js +0 -30
- package/dist/stateDiagram-v2-UEYNNEHI-DZULVhS9.cjs +0 -1
- package/dist/swimlanes-SLNWSIFB-BMS6R0BK.cjs +0 -1
- package/dist/swimlanesDiagram-ULZ7WXOC-DxHKX_pj.cjs +0 -8
- package/dist/swimlanesDiagram-ULZ7WXOC-uXMuqsao.js +0 -31
- package/dist/timeline-definition-Z64GVDOM-PPJqDdOy.cjs +0 -120
- package/dist/treeView-QDETBFTQ-Cpg_YeQ4.cjs +0 -1
- package/dist/treeView-QDETBFTQ-DdpEhzZX.js +0 -3
- package/dist/treemap-6X3UGDF4-BeCuRpkA.js +0 -3
- package/dist/treemap-6X3UGDF4-CFAmnKaf.cjs +0 -1
- package/dist/typescript-clWeqIBY.cjs +0 -1
- package/dist/vennDiagram-T6HMQDX7-DqY7YgNx.cjs +0 -34
- package/dist/wardley-OPB4EBWU-B0jnKd8x.cjs +0 -1
- package/dist/wardley-OPB4EBWU-DlIk2K0J.js +0 -3
- package/dist/yaml-bAgWofBg.cjs +0 -1
- /package/dist/{sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs → sizeCapture-INFHLROL-bJ2ZX4Du.cjs} +0 -0
|
@@ -579,7 +579,7 @@ var _e = class e {
|
|
|
579
579
|
return i(t), r;
|
|
580
580
|
}
|
|
581
581
|
static shouldBuildText(e) {
|
|
582
|
-
return
|
|
582
|
+
return e !== "textarea" && e !== "input" && e !== "option" && e !== "select";
|
|
583
583
|
}
|
|
584
584
|
}, ye = /url\(|image-set\(/i, be = /^on/i, xe = class {
|
|
585
585
|
static get _allowedHtmlElements() {
|
|
@@ -671,7 +671,6 @@ var _e = class e {
|
|
|
671
671
|
let n = e.target.options, i = n.selectedIndex === -1 ? "" : n[n.selectedIndex].value;
|
|
672
672
|
r.setValue(t, { value: i });
|
|
673
673
|
});
|
|
674
|
-
break;
|
|
675
674
|
}
|
|
676
675
|
}
|
|
677
676
|
static setAttributes({ html: e, element: t, storage: n = null, intent: r, linkService: i }) {
|
|
@@ -1077,9 +1076,7 @@ function Ve(e, t) {
|
|
|
1077
1076
|
case r:
|
|
1078
1077
|
t[0] = ((i - n) / e + 2) * 60;
|
|
1079
1078
|
break;
|
|
1080
|
-
case i:
|
|
1081
|
-
t[0] = ((n - r) / e + 4) * 60;
|
|
1082
|
-
break;
|
|
1079
|
+
case i: t[0] = ((n - r) / e + 4) * 60;
|
|
1083
1080
|
}
|
|
1084
1081
|
}
|
|
1085
1082
|
t[2] = s;
|
|
@@ -1103,9 +1100,7 @@ function He(e, t) {
|
|
|
1103
1100
|
t[0] = o + s, t[1] = s, t[2] = a + s;
|
|
1104
1101
|
break;
|
|
1105
1102
|
case 5:
|
|
1106
|
-
case 6:
|
|
1107
|
-
t[0] = a + s, t[1] = s, t[2] = o + s;
|
|
1108
|
-
break;
|
|
1103
|
+
case 6: t[0] = a + s, t[1] = s, t[2] = o + s;
|
|
1109
1104
|
}
|
|
1110
1105
|
}
|
|
1111
1106
|
function Ue(e) {
|
|
@@ -1174,9 +1169,7 @@ function Je(e) {
|
|
|
1174
1169
|
case v.closePath:
|
|
1175
1170
|
t.closePath();
|
|
1176
1171
|
break;
|
|
1177
|
-
default:
|
|
1178
|
-
w(`Unrecognized drawing path operator: ${e[n - 1]}`);
|
|
1179
|
-
break;
|
|
1172
|
+
default: w(`Unrecognized drawing path operator: ${e[n - 1]}`);
|
|
1180
1173
|
}
|
|
1181
1174
|
return t;
|
|
1182
1175
|
}
|
|
@@ -1274,11 +1267,7 @@ var Ye = class e {
|
|
|
1274
1267
|
this.#f(t), this.#r.append(t, this.#p);
|
|
1275
1268
|
}
|
|
1276
1269
|
removeButton(e) {
|
|
1277
|
-
|
|
1278
|
-
case "comment":
|
|
1279
|
-
this.#a?.removeToolbarCommentButton(), this.#a = null, this.#o?.remove(), this.#o = null;
|
|
1280
|
-
break;
|
|
1281
|
-
}
|
|
1270
|
+
e === "comment" && (this.#a?.removeToolbarCommentButton(), this.#a = null, this.#o?.remove(), this.#o = null);
|
|
1282
1271
|
}
|
|
1283
1272
|
async addButton(e, t) {
|
|
1284
1273
|
switch (e) {
|
|
@@ -1294,9 +1283,7 @@ var Ye = class e {
|
|
|
1294
1283
|
case "delete":
|
|
1295
1284
|
this.addDeleteButton();
|
|
1296
1285
|
break;
|
|
1297
|
-
case "comment":
|
|
1298
|
-
t && this.addComment(t);
|
|
1299
|
-
break;
|
|
1286
|
+
case "comment": t && this.addComment(t);
|
|
1300
1287
|
}
|
|
1301
1288
|
}
|
|
1302
1289
|
async addButtonBefore(e, t, n) {
|
|
@@ -1380,7 +1367,7 @@ var V = class e {
|
|
|
1380
1367
|
return e.#e === t;
|
|
1381
1368
|
}
|
|
1382
1369
|
static isSamePointerIdOrRemove(t) {
|
|
1383
|
-
return e.#e === t
|
|
1370
|
+
return e.#e === t || (e.#t?.delete(t), !1);
|
|
1384
1371
|
}
|
|
1385
1372
|
static isSamePointerType(t) {
|
|
1386
1373
|
return e.#r === t;
|
|
@@ -1985,11 +1972,7 @@ var V = class e {
|
|
|
1985
1972
|
});
|
|
1986
1973
|
}
|
|
1987
1974
|
onSetPreference({ name: e, value: t }) {
|
|
1988
|
-
|
|
1989
|
-
case "enableNewAltTextWhenAddingImage":
|
|
1990
|
-
this.#b = t;
|
|
1991
|
-
break;
|
|
1992
|
-
}
|
|
1975
|
+
e === "enableNewAltTextWhenAddingImage" && (this.#b = t);
|
|
1993
1976
|
}
|
|
1994
1977
|
onPageChanging({ pageNumber: e }) {
|
|
1995
1978
|
this.#p = e - 1;
|
|
@@ -2098,11 +2081,11 @@ var V = class e {
|
|
|
2098
2081
|
this.#R && (this.#E?.hide(), this.#R = null, this.#le({ hasSelectedText: !1 }));
|
|
2099
2082
|
return;
|
|
2100
2083
|
}
|
|
2101
|
-
if (this.#E?.hide(), this.#R = t, this.#le({ hasSelectedText: !0 }),
|
|
2084
|
+
if (this.#E?.hide(), this.#R = t, this.#le({ hasSelectedText: !0 }), (this.#I === l.HIGHLIGHT || this.#I === l.NONE) && (this.#I === l.HIGHLIGHT && this.showAllEditors("highlight", !0, !0), this.#T = this.isShiftKeyDown, !this.isShiftKeyDown)) {
|
|
2102
2085
|
let e = this.#I === l.HIGHLIGHT ? this.#Z(n) : null;
|
|
2103
2086
|
if (e?.toggleDrawing(), this.#k) {
|
|
2104
2087
|
let t = new AbortController(), n = this.combinedSignal(t), r = (n) => {
|
|
2105
|
-
n.type
|
|
2088
|
+
(n.type !== "pointerup" || n.button === 0) && (t.abort(), e?.toggleDrawing(!0), n.type === "pointerup" && this.#ee("main_toolbar"));
|
|
2106
2089
|
};
|
|
2107
2090
|
window.addEventListener("pointerup", r, { signal: n }), window.addEventListener("blur", r, { signal: n });
|
|
2108
2091
|
} else e?.toggleDrawing(!0), this.#ee("main_toolbar");
|
|
@@ -2249,9 +2232,7 @@ var V = class e {
|
|
|
2249
2232
|
case "highlightSelection":
|
|
2250
2233
|
this.highlightSelection("context_menu");
|
|
2251
2234
|
break;
|
|
2252
|
-
case "commentSelection":
|
|
2253
|
-
this.commentSelection("context_menu");
|
|
2254
|
-
break;
|
|
2235
|
+
case "commentSelection": this.commentSelection("context_menu");
|
|
2255
2236
|
}
|
|
2256
2237
|
}
|
|
2257
2238
|
updatePageIndex(e, t) {
|
|
@@ -2370,18 +2351,16 @@ var V = class e {
|
|
|
2370
2351
|
case u.CREATE:
|
|
2371
2352
|
this.currentLayer.addNewEditor(t);
|
|
2372
2353
|
return;
|
|
2373
|
-
case u.HIGHLIGHT_SHOW_ALL:
|
|
2374
|
-
this
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
action: "toggle_visibility"
|
|
2381
|
-
}
|
|
2354
|
+
case u.HIGHLIGHT_SHOW_ALL: this._eventBus.dispatch("reporttelemetry", {
|
|
2355
|
+
source: this,
|
|
2356
|
+
details: {
|
|
2357
|
+
type: "editing",
|
|
2358
|
+
data: {
|
|
2359
|
+
type: "highlight",
|
|
2360
|
+
action: "toggle_visibility"
|
|
2382
2361
|
}
|
|
2383
|
-
}
|
|
2384
|
-
|
|
2362
|
+
}
|
|
2363
|
+
}), (this.#V ||= /* @__PURE__ */ new Map()).set(e, t), this.showAllEditors("highlight", t);
|
|
2385
2364
|
}
|
|
2386
2365
|
if (this.hasSelection) for (let n of this.#L) n.updateParams(e, t);
|
|
2387
2366
|
else for (let n of this.#g) n.updateDefaultParams(e, t);
|
|
@@ -2659,19 +2638,17 @@ var V = class e {
|
|
|
2659
2638
|
height: o / i
|
|
2660
2639
|
});
|
|
2661
2640
|
break;
|
|
2662
|
-
default:
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
});
|
|
2669
|
-
break;
|
|
2641
|
+
default: o = (e, t, o, s) => ({
|
|
2642
|
+
x: (e - n) / i,
|
|
2643
|
+
y: (t - r) / a,
|
|
2644
|
+
width: o / i,
|
|
2645
|
+
height: s / a
|
|
2646
|
+
});
|
|
2670
2647
|
}
|
|
2671
2648
|
let s = [];
|
|
2672
2649
|
for (let e = 0, n = t.rangeCount; e < n; e++) {
|
|
2673
2650
|
let n = t.getRangeAt(e);
|
|
2674
|
-
if (!n.collapsed) for (let { x: e, y: t, width: r, height: i } of n.getClientRects()) r
|
|
2651
|
+
if (!n.collapsed) for (let { x: e, y: t, width: r, height: i } of n.getClientRects()) r !== 0 && i !== 0 && s.push(o(e, t, r, i));
|
|
2675
2652
|
}
|
|
2676
2653
|
return s.length === 0 ? null : s;
|
|
2677
2654
|
}
|
|
@@ -2787,7 +2764,7 @@ var V = class e {
|
|
|
2787
2764
|
};
|
|
2788
2765
|
}
|
|
2789
2766
|
set data({ altText: e, decorative: t, guessedText: n, textWithDisclaimer: r, cancel: i = !1 }) {
|
|
2790
|
-
n && (this.#l = n, this.#u = r),
|
|
2767
|
+
n && (this.#l = n, this.#u = r), (this.#e !== e || this.#t !== t) && (i || (this.#e = e, this.#t = t), this.#m());
|
|
2791
2768
|
}
|
|
2792
2769
|
toggle(e = !1) {
|
|
2793
2770
|
this.#n && (!e && this.#a && (clearTimeout(this.#a), this.#a = null), this.#n.disabled = !e);
|
|
@@ -3236,9 +3213,7 @@ var V = class e {
|
|
|
3236
3213
|
case 270:
|
|
3237
3214
|
this.x += this.height * t / (e * 2), this.y -= this.width * e / (t * 2);
|
|
3238
3215
|
break;
|
|
3239
|
-
default:
|
|
3240
|
-
this.x -= this.width / 2, this.y -= this.height / 2;
|
|
3241
|
-
break;
|
|
3216
|
+
default: this.x -= this.width / 2, this.y -= this.height / 2;
|
|
3242
3217
|
}
|
|
3243
3218
|
this.fixAndSetPosition();
|
|
3244
3219
|
}
|
|
@@ -3350,9 +3325,7 @@ var V = class e {
|
|
|
3350
3325
|
case 180:
|
|
3351
3326
|
i = I(i, o, n), a = I(a, s, r);
|
|
3352
3327
|
break;
|
|
3353
|
-
case 270:
|
|
3354
|
-
i = I(i, s, n), a = I(a, 0, r - o);
|
|
3355
|
-
break;
|
|
3328
|
+
case 270: i = I(i, s, n), a = I(a, 0, r - o);
|
|
3356
3329
|
}
|
|
3357
3330
|
this.x = i /= n, this.y = a /= r;
|
|
3358
3331
|
let [c, l] = this.getBaseTranslation();
|
|
@@ -3484,7 +3457,7 @@ var V = class e {
|
|
|
3484
3457
|
let { savedX: e, savedY: t, savedWidth: n, savedHeight: r } = this.#u;
|
|
3485
3458
|
this.#u = null;
|
|
3486
3459
|
let i = this.x, a = this.y, o = this.width, s = this.height;
|
|
3487
|
-
i
|
|
3460
|
+
(i !== e || a !== t || o !== n || s !== r) && this.addCommands({
|
|
3488
3461
|
cmd: this.#j.bind(this, i, a, o, s),
|
|
3489
3462
|
undo: this.#j.bind(this, e, t, n, r),
|
|
3490
3463
|
mustExec: !0
|
|
@@ -3517,9 +3490,7 @@ var V = class e {
|
|
|
3517
3490
|
case "bottomLeft":
|
|
3518
3491
|
_ = !0, h = (e, t) => [0, t], g = (e, t) => [e, 0];
|
|
3519
3492
|
break;
|
|
3520
|
-
case "middleLeft":
|
|
3521
|
-
v = !0, h = (e, t) => [0, t / 2], g = (e, t) => [e, t / 2];
|
|
3522
|
-
break;
|
|
3493
|
+
case "middleLeft": v = !0, h = (e, t) => [0, t / 2], g = (e, t) => [e, t / 2];
|
|
3523
3494
|
}
|
|
3524
3495
|
let y = h(s, c), b = g(s, c), x = f(...b), S = e._round(a + x[0]), C = e._round(o + x[1]), w = 1, T = 1, E, D;
|
|
3525
3496
|
if (n.fromKeyboard) ({deltaX: E, deltaY: D} = n);
|
|
@@ -3867,7 +3838,7 @@ var V = class e {
|
|
|
3867
3838
|
return !1;
|
|
3868
3839
|
}
|
|
3869
3840
|
enableEditMode() {
|
|
3870
|
-
return this.isInEditMode()
|
|
3841
|
+
return !this.isInEditMode() && (this.parent.setEditingState(!1), this.#_ = !0, !0);
|
|
3871
3842
|
}
|
|
3872
3843
|
disableEditMode() {
|
|
3873
3844
|
return this.isInEditMode() ? (this.parent.setEditingState(!0), this.#_ = !1, !0) : !1;
|
|
@@ -6345,9 +6316,11 @@ var fn = class {
|
|
|
6345
6316
|
let r = F.transform(n, t.baseTransform);
|
|
6346
6317
|
this.matrix && (r = F.transform(r, this.matrix));
|
|
6347
6318
|
let i = .001, a = Math.hypot(r[0], r[1]), o = Math.hypot(r[2], r[3]), s = (r[0] * r[2] + r[1] * r[3]) / (a * o);
|
|
6348
|
-
if (Math.abs(s) < i)
|
|
6349
|
-
if (
|
|
6350
|
-
|
|
6319
|
+
if (Math.abs(s) < i) {
|
|
6320
|
+
if (this.isRadial()) {
|
|
6321
|
+
if (Math.abs(a - o) < i) return this._createGradient(e, r);
|
|
6322
|
+
} else return this._createGradient(e, r);
|
|
6323
|
+
}
|
|
6351
6324
|
}
|
|
6352
6325
|
let a = t.current.getClippedPathBoundingBox(r, z(e)) || [
|
|
6353
6326
|
0,
|
|
@@ -6580,7 +6553,7 @@ function Tn(e, t) {
|
|
|
6580
6553
|
"beginPath"
|
|
6581
6554
|
]) {
|
|
6582
6555
|
let i = e[r];
|
|
6583
|
-
typeof i
|
|
6556
|
+
typeof i == "function" && typeof t[r] == "function" && (n.set(r, i), e[r] = function(...e) {
|
|
6584
6557
|
return t[r](...e), i.apply(this, e);
|
|
6585
6558
|
});
|
|
6586
6559
|
}
|
|
@@ -6780,11 +6753,13 @@ var Nn = [
|
|
|
6780
6753
|
continue;
|
|
6781
6754
|
}
|
|
6782
6755
|
}
|
|
6783
|
-
if (!i || i(s))
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6756
|
+
if (!i || i(s)) {
|
|
6757
|
+
if (m = o[s], h = a[s] ?? null, m !== _.dependency) h === null ? this[m](s) : this[m](s, ...h);
|
|
6758
|
+
else for (let e of h) {
|
|
6759
|
+
this.dependencyTracker?.recordNamedData(e, s);
|
|
6760
|
+
let t = e.startsWith("g_") ? f : p;
|
|
6761
|
+
if (!t.has(e)) return t.get(e, n), s;
|
|
6762
|
+
}
|
|
6788
6763
|
}
|
|
6789
6764
|
if (s++, s === c) return s;
|
|
6790
6765
|
if (l && ++d > Cn) {
|
|
@@ -6971,9 +6946,7 @@ var Nn = [
|
|
|
6971
6946
|
case "SMask":
|
|
6972
6947
|
this.dependencyTracker?.recordSimpleData("SMask", e), this.current.activeSMask = r ? this.tempSMask : null, this.current.activeSMask && (this.current.activeSMask.blendMode = this.ctx.globalCompositeOperation), this.tempSMask = null, this.checkSMaskState(e);
|
|
6973
6948
|
break;
|
|
6974
|
-
case "TR":
|
|
6975
|
-
this.dependencyTracker?.recordSimpleData("filter", e), this.ctx.filter = this.current.transferMaps = this.filterFactory.addFilter(r);
|
|
6976
|
-
break;
|
|
6949
|
+
case "TR": this.dependencyTracker?.recordSimpleData("filter", e), this.ctx.filter = this.current.transferMaps = this.filterFactory.addFilter(r);
|
|
6977
6950
|
}
|
|
6978
6951
|
}
|
|
6979
6952
|
get inSMaskMode() {
|
|
@@ -7183,14 +7156,16 @@ var Nn = [
|
|
|
7183
7156
|
}
|
|
7184
7157
|
stroke(e, t, n = !0) {
|
|
7185
7158
|
let r = n && this.#h(this.current.strokeAlpha), i = this.ctx, a = this.current.strokeColor;
|
|
7186
|
-
if (i.globalAlpha = this.current.strokeAlpha, this.contentVisible)
|
|
7187
|
-
|
|
7188
|
-
|
|
7189
|
-
|
|
7190
|
-
|
|
7191
|
-
|
|
7192
|
-
|
|
7193
|
-
|
|
7159
|
+
if (i.globalAlpha = this.current.strokeAlpha, this.contentVisible) {
|
|
7160
|
+
if (typeof a == "object" && a?.getPattern) {
|
|
7161
|
+
let n = a.isModifyingCurrentTransform() ? i.getTransform() : null;
|
|
7162
|
+
if (i.save(), i.strokeStyle = a.getPattern(i, this, B(i), Y.STROKE, e), n) {
|
|
7163
|
+
let e = new Path2D();
|
|
7164
|
+
e.addPath(t, i.getTransform().invertSelf().multiplySelf(n)), t = e;
|
|
7165
|
+
}
|
|
7166
|
+
this.rescaleAndStroke(t, !1), i.restore();
|
|
7167
|
+
} else this.rescaleAndStroke(t, !0);
|
|
7168
|
+
}
|
|
7194
7169
|
this.dependencyTracker?.recordDependencies(e, G.stroke), n && this.consumePath(e, t, this.current.getClippedPathBoundingBox(Y.STROKE, z(this.ctx))), i.globalAlpha = this.current.fillAlpha, this.#g(r);
|
|
7195
7170
|
}
|
|
7196
7171
|
closeStroke(e, t) {
|
|
@@ -7309,23 +7284,27 @@ var Nn = [
|
|
|
7309
7284
|
if ((c.disableFontFace || p || m || h) && !c.missingFile && (g = c.getPathGenerator(this.commonObjs, t)), g && (c.disableFontFace || m || h)) {
|
|
7310
7285
|
o.save(), o.translate(n, r), o.scale(u, -u), this.dependencyTracker?.recordCharacterBBox(e, o, c);
|
|
7311
7286
|
let t;
|
|
7312
|
-
if (d === f.FILL || d === f.FILL_STROKE)
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
r,
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7287
|
+
if (d === f.FILL || d === f.FILL_STROKE) {
|
|
7288
|
+
if (i) {
|
|
7289
|
+
t = o.getTransform(), o.setTransform(...i);
|
|
7290
|
+
let e = this.#_(g, t, i);
|
|
7291
|
+
o.fill(e);
|
|
7292
|
+
} else o.fill(g);
|
|
7293
|
+
}
|
|
7294
|
+
if (d === f.STROKE || d === f.FILL_STROKE) {
|
|
7295
|
+
if (a) {
|
|
7296
|
+
t ||= o.getTransform(), o.setTransform(...a);
|
|
7297
|
+
let { a: e, b: n, c: r, d: i } = t, s = F.inverseTransform(a), c = F.transform([
|
|
7298
|
+
e,
|
|
7299
|
+
n,
|
|
7300
|
+
r,
|
|
7301
|
+
i,
|
|
7302
|
+
0,
|
|
7303
|
+
0
|
|
7304
|
+
], s);
|
|
7305
|
+
F.singularValueDecompose2dScale(c, Z), o.lineWidth *= Math.max(Z[0], Z[1]) / u, o.stroke(this.#_(g, t, a));
|
|
7306
|
+
} else o.lineWidth /= u, o.stroke(g);
|
|
7307
|
+
}
|
|
7329
7308
|
o.restore();
|
|
7330
7309
|
} else (d === f.FILL || d === f.FILL_STROKE) && (o.fillText(t, n, r), this.dependencyTracker?.recordCharacterBBox(e, o, c, u, n, r, () => o.measureText(t))), (d === f.STROKE || d === f.FILL_STROKE) && (this.dependencyTracker && this.dependencyTracker?.recordCharacterBBox(e, o, c, u, n, r, () => o.measureText(t)).recordDependencies(e, G.stroke), o.strokeText(t, n, r));
|
|
7331
7310
|
p && ((this.pendingTextPaths ||= []).push({
|
|
@@ -7617,24 +7596,25 @@ var Nn = [
|
|
|
7617
7596
|
r.canvas.height
|
|
7618
7597
|
], t, o);
|
|
7619
7598
|
let s = this.#l.at(-1);
|
|
7620
|
-
if (this.#e > 0)
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7599
|
+
if (this.#e > 0) {
|
|
7600
|
+
if (a.hasInnerBackdrop) {
|
|
7601
|
+
let { width: e, height: n } = r.canvas, o = this.canvasFactory.create(e, n), s = o.context;
|
|
7602
|
+
s.drawImage(i.canvas, a.offsetX, a.offsetY, e, n, 0, 0, e, n), s.globalCompositeOperation = "source-over", s.drawImage(r.canvas, 0, 0);
|
|
7603
|
+
let c = this.#f(r.canvas);
|
|
7604
|
+
s.globalCompositeOperation = "destination-in", s.drawImage(c.canvas, 0, 0);
|
|
7605
|
+
let l = this.ctx.globalCompositeOperation, u = this.ctx.globalAlpha, d = this.ctx.filter;
|
|
7606
|
+
this.ctx.save(), this.ctx.setTransform(...t), this.ctx.globalAlpha = 1, P.isCanvasFilterSupported && (this.ctx.filter = "none"), this.ctx.globalCompositeOperation = "destination-out", this.ctx.drawImage(c.canvas, 0, 0), this.ctx.globalCompositeOperation = l, this.ctx.globalAlpha = u, P.isCanvasFilterSupported && (this.ctx.filter = d ?? "none"), this.ctx.drawImage(o.canvas, 0, 0), this.ctx.restore(), this.canvasFactory.destroy(c), this.canvasFactory.destroy(o);
|
|
7607
|
+
} else {
|
|
7608
|
+
let e = s?.backdropCtx ?? null;
|
|
7609
|
+
this.#m(this.ctx, r.canvas, {
|
|
7610
|
+
backdropCanvas: e?.canvas ?? null,
|
|
7611
|
+
destTransform: t,
|
|
7612
|
+
backdropOffset: e ? [s.offsetX + a.offsetX, s.offsetY + a.offsetY] : [0, 0],
|
|
7613
|
+
sourceAlpha: this.ctx.globalAlpha,
|
|
7614
|
+
sourceFilter: this.ctx.filter
|
|
7615
|
+
});
|
|
7616
|
+
}
|
|
7627
7617
|
} else {
|
|
7628
|
-
let e = s?.backdropCtx ?? null;
|
|
7629
|
-
this.#m(this.ctx, r.canvas, {
|
|
7630
|
-
backdropCanvas: e?.canvas ?? null,
|
|
7631
|
-
destTransform: t,
|
|
7632
|
-
backdropOffset: e ? [s.offsetX + a.offsetX, s.offsetY + a.offsetY] : [0, 0],
|
|
7633
|
-
sourceAlpha: this.ctx.globalAlpha,
|
|
7634
|
-
sourceFilter: this.ctx.filter
|
|
7635
|
-
});
|
|
7636
|
-
}
|
|
7637
|
-
else {
|
|
7638
7618
|
if (a.replaceBackdrop) {
|
|
7639
7619
|
let e = new Path2D();
|
|
7640
7620
|
e.rect(0, 0, r.canvas.width, r.canvas.height), this.ctx.clip(e), this.ctx.globalCompositeOperation = "copy";
|
|
@@ -7844,12 +7824,13 @@ var Nn = [
|
|
|
7844
7824
|
let { lineWidth: e } = this.current, { a: t, b: n, c: r, d: i } = this.ctx.getTransform(), a, o;
|
|
7845
7825
|
if (n === 0 && r === 0) {
|
|
7846
7826
|
let n = Math.abs(t), r = Math.abs(i);
|
|
7847
|
-
if (n === r)
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7827
|
+
if (n === r) {
|
|
7828
|
+
if (e === 0) a = o = 1 / n;
|
|
7829
|
+
else {
|
|
7830
|
+
let t = n * e;
|
|
7831
|
+
a = o = t < 1 ? 1 / t : 1;
|
|
7832
|
+
}
|
|
7833
|
+
} else if (e === 0) a = 1 / n, o = 1 / r;
|
|
7853
7834
|
else {
|
|
7854
7835
|
let t = n * e, i = r * e;
|
|
7855
7836
|
a = t < 1 ? 1 / t : 1, o = i < 1 ? 1 / i : 1;
|
|
@@ -8180,9 +8161,7 @@ var nr = class extends Rn {
|
|
|
8180
8161
|
case "progressiveRead":
|
|
8181
8162
|
this.#e(e.begin, e.chunk);
|
|
8182
8163
|
break;
|
|
8183
|
-
case "progressiveDone":
|
|
8184
|
-
this._fullReader?.progressiveDone(), this._progressiveDone = !0;
|
|
8185
|
-
break;
|
|
8164
|
+
case "progressiveDone": this._fullReader?.progressiveDone(), this._progressiveDone = !0;
|
|
8186
8165
|
}
|
|
8187
8166
|
});
|
|
8188
8167
|
}
|
|
@@ -8564,7 +8543,7 @@ var gr = class {
|
|
|
8564
8543
|
if (this.#n) return this.#r;
|
|
8565
8544
|
if (!this.#r) return !1;
|
|
8566
8545
|
let { print: e, view: t } = this.usage;
|
|
8567
|
-
return this.#e ? t?.viewState !== "OFF" : this.#t
|
|
8546
|
+
return this.#e ? t?.viewState !== "OFF" : !this.#t || e?.printState !== "OFF";
|
|
8568
8547
|
}
|
|
8569
8548
|
_setVisible(e, t, n = !1) {
|
|
8570
8549
|
e !== vr && T("Internal method `_setVisible` called."), this.#n = n, this.#r = t;
|
|
@@ -8632,19 +8611,22 @@ var gr = class {
|
|
|
8632
8611
|
if (this.#t.get(t).visible) return !0;
|
|
8633
8612
|
}
|
|
8634
8613
|
return !1;
|
|
8635
|
-
}
|
|
8614
|
+
}
|
|
8615
|
+
if (e.policy === "AllOn") {
|
|
8636
8616
|
for (let t of e.ids) {
|
|
8637
8617
|
if (!this.#t.has(t)) return w(`Optional content group not found: ${t}`), !0;
|
|
8638
8618
|
if (!this.#t.get(t).visible) return !1;
|
|
8639
8619
|
}
|
|
8640
8620
|
return !0;
|
|
8641
|
-
}
|
|
8621
|
+
}
|
|
8622
|
+
if (e.policy === "AnyOff") {
|
|
8642
8623
|
for (let t of e.ids) {
|
|
8643
8624
|
if (!this.#t.has(t)) return w(`Optional content group not found: ${t}`), !0;
|
|
8644
8625
|
if (!this.#t.get(t).visible) return !0;
|
|
8645
8626
|
}
|
|
8646
8627
|
return !1;
|
|
8647
|
-
}
|
|
8628
|
+
}
|
|
8629
|
+
if (e.policy === "AllOff") {
|
|
8648
8630
|
for (let t of e.ids) {
|
|
8649
8631
|
if (!this.#t.has(t)) return w(`Optional content group not found: ${t}`), !0;
|
|
8650
8632
|
if (this.#t.get(t).visible) return !1;
|
|
@@ -8682,9 +8664,7 @@ var gr = class {
|
|
|
8682
8664
|
case "OFF":
|
|
8683
8665
|
this.setVisibility(r, !1, t);
|
|
8684
8666
|
break;
|
|
8685
|
-
case "Toggle":
|
|
8686
|
-
this.setVisibility(r, !e.visible, t);
|
|
8687
|
-
break;
|
|
8667
|
+
case "Toggle": this.setVisibility(r, !e.visible, t);
|
|
8688
8668
|
}
|
|
8689
8669
|
}
|
|
8690
8670
|
this.#e = null;
|
|
@@ -9054,7 +9034,7 @@ var gr = class {
|
|
|
9054
9034
|
}
|
|
9055
9035
|
static #O(e, t, n) {
|
|
9056
9036
|
let r = this.#x.get(e);
|
|
9057
|
-
t
|
|
9037
|
+
(t !== r.size || n !== r.family) && (e.font = `${t}px ${n}`, r.size = t, r.family = n);
|
|
9058
9038
|
}
|
|
9059
9039
|
static #k() {
|
|
9060
9040
|
if (this.#S !== null) return;
|
|
@@ -9135,20 +9115,22 @@ function kr(t = {}) {
|
|
|
9135
9115
|
if (d.destroyed) throw Error("Worker was destroyed");
|
|
9136
9116
|
se.evaluatorOptions.hasGPU = e;
|
|
9137
9117
|
let t = d.messageHandler.sendWithPromise("GetDocRequest", se, a ? [a.buffer] : null), c;
|
|
9138
|
-
if (!a)
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9118
|
+
if (!a) {
|
|
9119
|
+
if (l) c = new nr({
|
|
9120
|
+
pdfDataRangeTransport: l,
|
|
9121
|
+
disableRange: ee,
|
|
9122
|
+
disableStream: k
|
|
9123
|
+
});
|
|
9124
|
+
else if (i) c = new (hr(i))({
|
|
9125
|
+
url: i,
|
|
9126
|
+
httpHeaders: o,
|
|
9127
|
+
withCredentials: s,
|
|
9128
|
+
rangeChunkSize: u,
|
|
9129
|
+
disableRange: ee,
|
|
9130
|
+
disableStream: k
|
|
9131
|
+
});
|
|
9132
|
+
else throw Error("getDocument - expected either `data`, `range`, or `url` parameter.");
|
|
9133
|
+
}
|
|
9152
9134
|
return t.then((e) => {
|
|
9153
9135
|
if (d.destroyed) throw Error("Worker was destroyed");
|
|
9154
9136
|
let t = new Wt(r, e, d.port), i = new Fr(t, n, c, ce, F, ae);
|
|
@@ -10343,10 +10325,12 @@ var Ar = class e {
|
|
|
10343
10325
|
}, { signal: this.#r._signal }), c;
|
|
10344
10326
|
}
|
|
10345
10327
|
update(e) {
|
|
10346
|
-
if (this.#e)
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10328
|
+
if (this.#e) {
|
|
10329
|
+
if (this.#t) {
|
|
10330
|
+
let t = F.hexNums[Math.round(this.#n.opacity * 255)];
|
|
10331
|
+
this.#e.value = e + t;
|
|
10332
|
+
} else this.#e.value = e;
|
|
10333
|
+
}
|
|
10350
10334
|
}
|
|
10351
10335
|
updateOpacity(e) {
|
|
10352
10336
|
if (!this.#e || !this.#t) return;
|
|
@@ -10593,10 +10577,7 @@ var Wr = class {
|
|
|
10593
10577
|
case h.INSET:
|
|
10594
10578
|
w("Unimplemented border style: inset");
|
|
10595
10579
|
break;
|
|
10596
|
-
case h.UNDERLINE:
|
|
10597
|
-
a.borderBottomStyle = "solid";
|
|
10598
|
-
break;
|
|
10599
|
-
default: break;
|
|
10580
|
+
case h.UNDERLINE: a.borderBottomStyle = "solid";
|
|
10600
10581
|
}
|
|
10601
10582
|
let r = t.borderColor || null;
|
|
10602
10583
|
r ? (this.#t = !0, a.borderColor = F.makeHexColor(...r)) : a.borderWidth = 0;
|
|
@@ -11073,15 +11054,16 @@ var Wr = class {
|
|
|
11073
11054
|
let { target: t } = e;
|
|
11074
11055
|
if (d && (t.type = l, u && (t.step = u)), s.userValue) {
|
|
11075
11056
|
let e = s.userValue;
|
|
11076
|
-
if (d)
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11057
|
+
if (d) {
|
|
11058
|
+
if (l === "time") {
|
|
11059
|
+
let n = new Date(e);
|
|
11060
|
+
t.value = [
|
|
11061
|
+
n.getHours(),
|
|
11062
|
+
n.getMinutes(),
|
|
11063
|
+
n.getSeconds()
|
|
11064
|
+
].map((e) => e.toString().padStart(2, "0")).join(":");
|
|
11065
|
+
} else t.value = new Date(e - Yr).toISOString().split(l === "date" ? "T" : ".", 1)[0];
|
|
11066
|
+
} else t.value = e;
|
|
11085
11067
|
}
|
|
11086
11068
|
s.lastCommittedValue = t.value, s.commitKey = 1, this.data.actions?.Focus || (s.focused = !0);
|
|
11087
11069
|
}), n.addEventListener("updatefromsandbox", (n) => {
|
|
@@ -11179,9 +11161,7 @@ var Wr = class {
|
|
|
11179
11161
|
case "deleteContentBackward":
|
|
11180
11162
|
a === o && --c;
|
|
11181
11163
|
break;
|
|
11182
|
-
case "deleteContentForward":
|
|
11183
|
-
a === o && (l += 1);
|
|
11184
|
-
break;
|
|
11164
|
+
case "deleteContentForward": a === o && (l += 1);
|
|
11185
11165
|
}
|
|
11186
11166
|
e.preventDefault(), this.linkService.eventBus?.dispatch("dispatcheventinsandbox", {
|
|
11187
11167
|
source: this,
|
|
@@ -11715,7 +11695,7 @@ var Wr = class {
|
|
|
11715
11695
|
this.#e || (this.#E(), this.#C && (this.#p || this.#L(), this.#C = !1, this.#o.hidden = !1));
|
|
11716
11696
|
}
|
|
11717
11697
|
get isVisible() {
|
|
11718
|
-
return this.#e
|
|
11698
|
+
return !this.#e && this.#o.hidden === !1;
|
|
11719
11699
|
}
|
|
11720
11700
|
}, li = class extends Q {
|
|
11721
11701
|
constructor(e) {
|
|
@@ -12341,9 +12321,7 @@ var Wr = class {
|
|
|
12341
12321
|
case u.FREETEXT_SIZE:
|
|
12342
12322
|
e._defaultFontSize = n;
|
|
12343
12323
|
break;
|
|
12344
|
-
case u.FREETEXT_COLOR:
|
|
12345
|
-
e._defaultColor = n;
|
|
12346
|
-
break;
|
|
12324
|
+
case u.FREETEXT_COLOR: e._defaultColor = n;
|
|
12347
12325
|
}
|
|
12348
12326
|
}
|
|
12349
12327
|
updateParams(e, t) {
|
|
@@ -12351,9 +12329,7 @@ var Wr = class {
|
|
|
12351
12329
|
case u.FREETEXT_SIZE:
|
|
12352
12330
|
this.#i(t);
|
|
12353
12331
|
break;
|
|
12354
|
-
case u.FREETEXT_COLOR:
|
|
12355
|
-
this.#a(t);
|
|
12356
|
-
break;
|
|
12332
|
+
case u.FREETEXT_COLOR: this.#a(t);
|
|
12357
12333
|
}
|
|
12358
12334
|
}
|
|
12359
12335
|
static get defaultPropertiesToUpdate() {
|
|
@@ -12434,7 +12410,7 @@ var Wr = class {
|
|
|
12434
12410
|
let t = [];
|
|
12435
12411
|
this.editorDiv.normalize();
|
|
12436
12412
|
let n = null;
|
|
12437
|
-
for (let r of this.editorDiv.childNodes) n?.nodeType
|
|
12413
|
+
for (let r of this.editorDiv.childNodes) (n?.nodeType !== Node.TEXT_NODE || r.nodeName !== "BR") && (t.push(e.#c(r)), n = r);
|
|
12438
12414
|
return t.join("\n");
|
|
12439
12415
|
}
|
|
12440
12416
|
#s() {
|
|
@@ -12519,9 +12495,7 @@ var Wr = class {
|
|
|
12519
12495
|
case 180:
|
|
12520
12496
|
d = e - this.width + (i[0] - l) / s, f = t - (i[1] - u) / c, [a, o] = [-a, -o];
|
|
12521
12497
|
break;
|
|
12522
|
-
case 270:
|
|
12523
|
-
d = e + (i[0] - l - this.height * c) / s, f = t + (i[1] - u - this.width * s) / c, [a, o] = [-o, a];
|
|
12524
|
-
break;
|
|
12498
|
+
case 270: d = e + (i[0] - l - this.height * c) / s, f = t + (i[1] - u - this.width * s) / c, [a, o] = [-o, a];
|
|
12525
12499
|
}
|
|
12526
12500
|
this.setAt(d * n, f * r, a, o);
|
|
12527
12501
|
} else this._moveAfterPaste(e, t);
|
|
@@ -12928,9 +12902,7 @@ var Wr = class {
|
|
|
12928
12902
|
case 180:
|
|
12929
12903
|
s = $._rescale(this.#o, n, t, -a, o), c = $._rescale(this.#i, n, t, -a, o);
|
|
12930
12904
|
break;
|
|
12931
|
-
case 270:
|
|
12932
|
-
s = $._rescaleAndSwap(this.#o, n, r, -a, -o), c = $._rescaleAndSwap(this.#i, n, r, -a, -o);
|
|
12933
|
-
break;
|
|
12905
|
+
case 270: s = $._rescaleAndSwap(this.#o, n, r, -a, -o), c = $._rescaleAndSwap(this.#i, n, r, -a, -o);
|
|
12934
12906
|
}
|
|
12935
12907
|
return {
|
|
12936
12908
|
outline: Array.from(s),
|
|
@@ -13283,9 +13255,7 @@ var Wr = class {
|
|
|
13283
13255
|
case u.HIGHLIGHT_COLOR:
|
|
13284
13256
|
e._defaultColor = n;
|
|
13285
13257
|
break;
|
|
13286
|
-
case u.HIGHLIGHT_THICKNESS:
|
|
13287
|
-
e._defaultThickness = n;
|
|
13288
|
-
break;
|
|
13258
|
+
case u.HIGHLIGHT_THICKNESS: e._defaultThickness = n;
|
|
13289
13259
|
}
|
|
13290
13260
|
}
|
|
13291
13261
|
translateInPage(e, t) {}
|
|
@@ -13300,9 +13270,7 @@ var Wr = class {
|
|
|
13300
13270
|
case u.HIGHLIGHT_COLOR:
|
|
13301
13271
|
this.#b(t);
|
|
13302
13272
|
break;
|
|
13303
|
-
case u.HIGHLIGHT_THICKNESS:
|
|
13304
|
-
this.#x(t);
|
|
13305
|
-
break;
|
|
13273
|
+
case u.HIGHLIGHT_THICKNESS: this.#x(t);
|
|
13306
13274
|
}
|
|
13307
13275
|
}
|
|
13308
13276
|
static get defaultPropertiesToUpdate() {
|
|
@@ -13480,9 +13448,7 @@ var Wr = class {
|
|
|
13480
13448
|
this.#D(!0);
|
|
13481
13449
|
break;
|
|
13482
13450
|
case 1:
|
|
13483
|
-
case 3:
|
|
13484
|
-
this.#D(!1);
|
|
13485
|
-
break;
|
|
13451
|
+
case 3: this.#D(!1);
|
|
13486
13452
|
}
|
|
13487
13453
|
}
|
|
13488
13454
|
#D(e) {
|
|
@@ -13853,7 +13819,7 @@ var Wr = class {
|
|
|
13853
13819
|
this._drawId === null || !this.parent || (this.parent.drawLayer.remove(this._drawId), this._drawId = null, this._drawingOptions.reset());
|
|
13854
13820
|
}
|
|
13855
13821
|
#c(e = this.parent) {
|
|
13856
|
-
if (
|
|
13822
|
+
if (this._drawId === null || this.parent !== e) {
|
|
13857
13823
|
if (this._drawId !== null) {
|
|
13858
13824
|
this.parent.drawLayer.updateParent(this._drawId, e.drawLayer);
|
|
13859
13825
|
return;
|
|
@@ -14316,9 +14282,7 @@ var Wr = class {
|
|
|
14316
14282
|
case 180:
|
|
14317
14283
|
y = $._rescale, d = e + n, f = t, p = -n, m = r, h = e + (1 - s - l) * n, g = t + c * r, _ = e + (1 - s) * n, v = t + (c + u) * r;
|
|
14318
14284
|
break;
|
|
14319
|
-
case 270:
|
|
14320
|
-
y = $._rescaleAndSwap, d = e + n, f = t + r, p = -n, m = -r, h = e + (1 - c - u) * n, g = t + (1 - s - l) * r, _ = e + (1 - c) * n, v = t + (1 - s) * r;
|
|
14321
|
-
break;
|
|
14285
|
+
case 270: y = $._rescaleAndSwap, d = e + n, f = t + r, p = -n, m = -r, h = e + (1 - c - u) * n, g = t + (1 - s - l) * r, _ = e + (1 - c) * n, v = t + (1 - s) * r;
|
|
14322
14286
|
}
|
|
14323
14287
|
for (let { line: e, points: t } of this.#r) a.push(y(e, d, f, p, m, i ? Array(e.length) : null)), o.push(y(t, d, f, p, m, i ? Array(t.length) : null));
|
|
14324
14288
|
return {
|
|
@@ -14344,9 +14308,7 @@ var Wr = class {
|
|
|
14344
14308
|
case 180:
|
|
14345
14309
|
m = $._rescale, u = e / n + 1, d = -t / r, f = -1 / n, p = 1 / r;
|
|
14346
14310
|
break;
|
|
14347
|
-
case 270:
|
|
14348
|
-
m = $._rescaleAndSwap, u = t / r + 1, d = e / n + 1, f = -1 / r, p = -1 / n;
|
|
14349
|
-
break;
|
|
14311
|
+
case 270: m = $._rescaleAndSwap, u = t / r + 1, d = e / n + 1, f = -1 / r, p = -1 / n;
|
|
14350
14312
|
}
|
|
14351
14313
|
if (!a) {
|
|
14352
14314
|
a = [];
|
|
@@ -14790,7 +14752,7 @@ var Wr = class {
|
|
|
14790
14752
|
m = e;
|
|
14791
14753
|
break;
|
|
14792
14754
|
}
|
|
14793
|
-
m ? m.isHole ?
|
|
14755
|
+
p.parent = m ? m.isHole ? f ? m.parent : s : f ? s : m.parent : f ? s : 0;
|
|
14794
14756
|
let h = this.#r(a, t, e, n, l, u, 0);
|
|
14795
14757
|
if (h === -1) {
|
|
14796
14758
|
a[r] = -o, a[r] !== 1 && (s = Math.abs(a[r]));
|
|
@@ -14808,7 +14770,8 @@ var Wr = class {
|
|
|
14808
14770
|
if (a[p + 1] === 0 ? a[p] = -o : a[p] === 1 && (a[p] = o), c === e && f === n && b === v && x === y) {
|
|
14809
14771
|
a[r] !== 1 && (s = Math.abs(a[r]));
|
|
14810
14772
|
break;
|
|
14811
|
-
}
|
|
14773
|
+
}
|
|
14774
|
+
l = b, u = x, b = c, x = f;
|
|
14812
14775
|
}
|
|
14813
14776
|
}
|
|
14814
14777
|
}
|
|
@@ -14906,7 +14869,7 @@ var Wr = class {
|
|
|
14906
14869
|
c = new OffscreenCanvas(y, b), l = c.getContext("2d", {
|
|
14907
14870
|
alpha: !0,
|
|
14908
14871
|
willReadFrequently: !0
|
|
14909
|
-
}), l.font = u, l.filter = "grayscale(1)", l.fillStyle = "white", l.fillRect(0, 0, y, b), l.fillStyle = "black", l.fillText(e, y *
|
|
14872
|
+
}), l.font = u, l.filter = "grayscale(1)", l.fillStyle = "white", l.fillRect(0, 0, y, b), l.fillStyle = "black", l.fillText(e, y * .5 / 2, b * 1.5 / 2);
|
|
14910
14873
|
let x = this.#u(l.getImageData(0, 0, y, b).data), S = this.#l(x), C = this.#d(S), w = this.#a(x, y, b, C);
|
|
14911
14874
|
return this.processDrawnLines({
|
|
14912
14875
|
lines: {
|
|
@@ -15037,15 +15000,13 @@ var Wr = class {
|
|
|
15037
15000
|
case Int16Array.BYTES_PER_ELEMENT:
|
|
15038
15001
|
_ = new Int16Array(a.buffer, g);
|
|
15039
15002
|
break;
|
|
15040
|
-
case Int32Array.BYTES_PER_ELEMENT:
|
|
15041
|
-
_ = new Int32Array(a.buffer, g);
|
|
15042
|
-
break;
|
|
15003
|
+
case Int32Array.BYTES_PER_ELEMENT: _ = new Int32Array(a.buffer, g);
|
|
15043
15004
|
}
|
|
15044
15005
|
o = 0;
|
|
15045
15006
|
for (let e = 0; e < p; e++) {
|
|
15046
15007
|
let t = s[Hi * e + Vi], n = new Float32Array(t + 2);
|
|
15047
15008
|
h.push(n);
|
|
15048
|
-
for (let t = 0; t <
|
|
15009
|
+
for (let t = 0; t < 2; t++) n[t] = s[Hi * e + Vi + t + 1];
|
|
15049
15010
|
for (let e = 0; e < t; e++) n[e + 2] = n[e] + _[o++];
|
|
15050
15011
|
}
|
|
15051
15012
|
return {
|
|
@@ -15134,19 +15095,20 @@ var Wr = class {
|
|
|
15134
15095
|
render() {
|
|
15135
15096
|
if (this.div) return this.div;
|
|
15136
15097
|
let t, n, { _isCopy: r } = this;
|
|
15137
|
-
if (r && (this._isCopy = !1, t = this.x, n = this.y), super.render(), this._drawId === null)
|
|
15138
|
-
|
|
15139
|
-
lines: t,
|
|
15140
|
-
|
|
15141
|
-
|
|
15142
|
-
|
|
15143
|
-
|
|
15144
|
-
|
|
15145
|
-
|
|
15146
|
-
|
|
15147
|
-
|
|
15148
|
-
|
|
15149
|
-
|
|
15098
|
+
if (r && (this._isCopy = !1, t = this.x, n = this.y), super.render(), this._drawId === null) {
|
|
15099
|
+
if (this.#n) {
|
|
15100
|
+
let { lines: t, mustSmooth: n, areContours: r, description: i, uuid: a, heightInPage: o } = this.#n, { rawDims: { pageWidth: s, pageHeight: c }, rotation: l } = this.parent.viewport, u = Ui.processDrawnLines({
|
|
15101
|
+
lines: t,
|
|
15102
|
+
pageWidth: s,
|
|
15103
|
+
pageHeight: c,
|
|
15104
|
+
rotation: l,
|
|
15105
|
+
innerMargin: e._INNER_MARGIN,
|
|
15106
|
+
mustSmooth: n,
|
|
15107
|
+
areContours: r
|
|
15108
|
+
});
|
|
15109
|
+
this.addSignature(u, o, i, a);
|
|
15110
|
+
} else this.div.setAttribute("data-l10n-args", JSON.stringify({ description: "" })), this.div.hidden = !0, this._uiManager.getSignature(this);
|
|
15111
|
+
} else this.div.setAttribute("data-l10n-args", JSON.stringify({ description: this.#t || "" }));
|
|
15150
15112
|
return r && (this._isCopy = !0, this._moveAfterPaste(t, n)), this.div;
|
|
15151
15113
|
}
|
|
15152
15114
|
setUuid(e) {
|
|
@@ -15727,8 +15689,8 @@ var Wr = class {
|
|
|
15727
15689
|
if (t.serialize() !== null) {
|
|
15728
15690
|
e.set(t.annotationElementId, t);
|
|
15729
15691
|
continue;
|
|
15730
|
-
}
|
|
15731
|
-
this.getEditableAnnotation(t.annotationElementId)?.show(), t.remove();
|
|
15692
|
+
}
|
|
15693
|
+
r.set(t.annotationElementId, t), this.getEditableAnnotation(t.annotationElementId)?.show(), t.remove();
|
|
15732
15694
|
}
|
|
15733
15695
|
for (let n of t.getEditableAnnotations()) {
|
|
15734
15696
|
let { id: t } = n.data;
|
|
@@ -16153,7 +16115,7 @@ var $i = class e {
|
|
|
16153
16115
|
}), n.set(r, a);
|
|
16154
16116
|
}
|
|
16155
16117
|
let o = [];
|
|
16156
|
-
for (let { x: e, y: n, width: r, height: i } of t.getClientRects()) r
|
|
16118
|
+
for (let { x: e, y: n, width: r, height: i } of t.getClientRects()) r !== 0 && i !== 0 && ({x: e, y: n, width: r, height: i} = a(e, n, r, i), (r !== 1 || i !== 1) && o.push(`M${e} ${n} h${r} v${i} h-${r} Z`));
|
|
16157
16119
|
if (o.length === 0) continue;
|
|
16158
16120
|
let s = i.drawLayer, c = i.selectionDiv, l = i.path;
|
|
16159
16121
|
if (!c) {
|