@univerjs/engine-render 1.3.1 → 1.5.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/README.md +17 -5
- package/lib/{af-DK_CjRn6.js → af-CYmDZ4fF.js} +1 -2
- package/lib/{as-BPtSu6VN.js → as-Hwl1DGzz.js} +1 -2
- package/lib/{be-CrQ0smca.js → be-BgqsjH7X.js} +1 -2
- package/lib/{es/bg-CrQqGwni.js → bg-Dr9AqrKw.js} +1 -2
- package/lib/{bn-NCLZcWHi.js → bn-CSXZX5iN.js} +1 -2
- package/lib/{ca-SUf6Y2Om.js → ca-IXHA7IHe.js} +1 -2
- package/lib/cjs/{af-nci0ERu_.js → af-CqmqF0Xw.js} +1 -2
- package/lib/{es/as-BPtSu6VN.js → cjs/as-B87FsdSw.js} +2 -3
- package/lib/{es/be-CrQ0smca.js → cjs/be-CNhkUuRb.js} +2 -3
- package/lib/{bg-CrQqGwni.js → cjs/bg-CDisJl-p.js} +2 -3
- package/lib/{es/bn-NCLZcWHi.js → cjs/bn-Dqg1nQjF.js} +2 -3
- package/lib/{es/ca-SUf6Y2Om.js → cjs/ca-C2JWhM1T.js} +2 -3
- package/lib/{cop-C3sk0IUo.js → cjs/cop-DnGT3Wu0.js} +2 -3
- package/lib/{es/cs-CmAteokq.js → cjs/cs-Bcld5JGl.js} +2 -3
- package/lib/{es/cu-CBUlrW6Y.js → cjs/cu-BDRAFovc.js} +2 -3
- package/lib/{cy-BBPa6z2x.js → cjs/cy-CzqBJCby.js} +2 -3
- package/lib/{da-CCDXfXtG.js → cjs/da-B-OV-eRv.js} +2 -3
- package/lib/{es/de-1901-CWoAOigE.js → cjs/de-1901--cvwcIFw.js} +2 -3
- package/lib/{es/de-1996-BL6awyxG.js → cjs/de-1996-vXM7yufs.js} +2 -3
- package/lib/{es/de-ch-1901-hVThVHVb.js → cjs/de-ch-1901-BDvq3UYQ.js} +2 -3
- package/lib/cjs/doc-skeleton-xHfOLvcR.js +25054 -0
- package/lib/{el-monoton-D3aKqTz2.js → cjs/el-monoton-DwEKi7Jw.js} +2 -3
- package/lib/{el-polyton-ogVWcTzh.js → cjs/el-polyton-PS8gdtgu.js} +2 -3
- package/lib/{es/en-gb-B7Al27b_.js → cjs/en-gb-ClSGdac0.js} +2 -3
- package/lib/{es/es-DcaaHPU_.js → cjs/es-C4I4YZax.js} +2 -3
- package/lib/{es/et-B_spaleu.js → cjs/et-CLjO9-xw.js} +2 -3
- package/lib/{es/eu-Ctv_kq9Z.js → cjs/eu-B_kCozsW.js} +2 -3
- package/lib/{es/fi-RW5VB8Yp.js → cjs/fi-BJtl2WDQ.js} +2 -3
- package/lib/{es/fr-BC2onEz9.js → cjs/fr-BYuWkYn2.js} +2 -3
- package/lib/{fur-AC12wySk.js → cjs/fur-BdiBGCN8.js} +2 -3
- package/lib/{es/ga-Cn6LkudM.js → cjs/ga-n8qTR1-X.js} +2 -3
- package/lib/{gl-DZGc-K_G.js → cjs/gl-BqRCgOSg.js} +2 -3
- package/lib/{es/grc-DOlGgO8T.js → cjs/grc-D8O-iH37.js} +2 -3
- package/lib/{gu-Bjl0l-cf.js → cjs/gu-DygtD3li.js} +2 -3
- package/lib/{hi-DsAaTPCC.js → cjs/hi-DEC-InEV.js} +2 -3
- package/lib/{hr-DT1SBBes.js → cjs/hr-a7O_rBxx.js} +2 -3
- package/lib/{es/hsb-DC_ITc1e.js → cjs/hsb-Bfp3502p.js} +2 -3
- package/lib/cjs/{hu-CZLP-2fR.js → hu-D7cSusC6.js} +1 -2
- package/lib/{hy-e995ysyO.js → cjs/hy-B3kIFRzX.js} +2 -3
- package/lib/{es/ia-Cr4TJH0c.js → cjs/ia-CnD7r26i.js} +2 -3
- package/lib/{es/id-DifDyWg9.js → cjs/id-Bhq0C65a.js} +2 -3
- package/lib/cjs/index.js +11996 -34904
- package/lib/{is-BT8UVRze.js → cjs/is-Boso4Wtt.js} +2 -3
- package/lib/{es/it-Bt_Meacx.js → cjs/it-DLza1ntI.js} +2 -3
- package/lib/{es/ka-jyoLzyDE.js → cjs/ka-GcTuXZ9Z.js} +2 -3
- package/lib/{es/kmr-Cfwhwuff.js → cjs/kmr-BO40rTCu.js} +2 -3
- package/lib/{es/kn-C6Lov-DP.js → cjs/kn-Ddq64KCI.js} +2 -3
- package/lib/{es/la-DuvHjUWw.js → cjs/la-COWcxwux.js} +2 -3
- package/lib/{es/la-x-classic-yTyAOQEt.js → cjs/la-x-classic-0W7cnK_r.js} +2 -3
- package/lib/{es/la-x-liturgic-CXeQb4FY.js → cjs/la-x-liturgic-BdtQodH0.js} +2 -3
- package/lib/{lt-BBe8DlDF.js → cjs/lt-D0b8yQyY.js} +2 -3
- package/lib/{es/lv-Q2BBHnzp.js → cjs/lv-Ctlo0h9m.js} +2 -3
- package/lib/{es/ml-2xLVYkVY.js → cjs/ml-CbRB1eA2.js} +2 -3
- package/lib/{es/mn-cyrl-lHM4n0oC.js → cjs/mn-cyrl-SgbSKGlZ.js} +2 -3
- package/lib/{mn-cyrl-x-lmc-3aetruI8.js → cjs/mn-cyrl-x-lmc-B0BnNk_R.js} +2 -3
- package/lib/{mr-CjWJPVmH.js → cjs/mr-ak54QVek.js} +2 -3
- package/lib/{es/mul-ethi-D_CMSMEq.js → cjs/mul-ethi--mfKdN7U.js} +2 -3
- package/lib/{es/nb-DI8u59ch.js → cjs/nb-BnXKcr2P.js} +2 -3
- package/lib/{es/nl-BHQJ6Gvn.js → cjs/nl-Dge5vX8z.js} +2 -3
- package/lib/{es/nn-ntZvarUK.js → cjs/nn-CRTJwGhd.js} +2 -3
- package/lib/{es/no-B8ItS0F3.js → cjs/no-DEpHCmPt.js} +2 -3
- package/lib/{es/oc-P_i3-xLA.js → cjs/oc-CVPdcYGd.js} +2 -3
- package/lib/{or-50rxpoq4.js → cjs/or-C-yiXtmf.js} +2 -3
- package/lib/{pa-C54UG8eN.js → cjs/pa-LX-1ck9h.js} +2 -3
- package/lib/{es/pi-B9cgjyG1.js → cjs/pi-DAThicHl.js} +2 -3
- package/lib/{pl-9fg-ESVt.js → cjs/pl-DUiLinxp.js} +2 -3
- package/lib/{pms-BRGfm5gS.js → cjs/pms-LmryoS_2.js} +2 -3
- package/lib/{es/pt-Cum2_NUC.js → cjs/pt-B5qNCIx-.js} +2 -3
- package/lib/{es/rm-C0MIK9N4.js → cjs/rm-CH5skx47.js} +2 -3
- package/lib/{es/ro-0fmdH0HA.js → cjs/ro-NNZ0cAqO.js} +2 -3
- package/lib/{es/ru-v4l-ayaq.js → cjs/ru-wNSniMew.js} +2 -3
- package/lib/{es/sa-CKY9c_Vq.js → cjs/sa-L5rV6F9w.js} +2 -3
- package/lib/{sh-cyrl-BpCRFOmq.js → cjs/sh-cyrl-CGC8szSW.js} +2 -3
- package/lib/{es/sh-latn-sRy4Tuaj.js → cjs/sh-latn-BpdepEhC.js} +2 -3
- package/lib/{es/sk-_iOeDNrQ.js → cjs/sk-BErdPVV3.js} +2 -3
- package/lib/{sl-DpiklF-D.js → cjs/sl-C8287Lwt.js} +2 -3
- package/lib/{sr-cyrl-Dpzrbd0W.js → cjs/sr-cyrl-DCAx_hI2.js} +2 -3
- package/lib/{sv-CFm5y56M.js → cjs/sv-K7UxQYXS.js} +2 -3
- package/lib/{es/ta-BcghgTbD.js → cjs/ta-qft50Ghz.js} +2 -3
- package/lib/{es/te-B5Spl2Jk.js → cjs/te-UrPdXUCC.js} +2 -3
- package/lib/{th-DWX5iPSo.js → cjs/th-BcaEXLMD.js} +2 -3
- package/lib/{tk-BMbKB10q.js → cjs/tk-Cj--Pwwb.js} +2 -3
- package/lib/{es/tr-CIHIuzqc.js → cjs/tr-BaPKLwjo.js} +2 -3
- package/lib/{es/uk-Dir3oxLs.js → cjs/uk-Dn7dAWW6.js} +2 -3
- package/lib/cjs/worker.js +241 -0
- package/lib/{es/zh-latn-pinyin-BdYb-Ey_.js → cjs/zh-latn-pinyin-Cw62-680.js} +2 -3
- package/lib/{es/cop-C3sk0IUo.js → cop-B5tK6J-Z.js} +1 -2
- package/lib/{cs-CmAteokq.js → cs-5GDhZ_Ce.js} +1 -2
- package/lib/{cu-CBUlrW6Y.js → cu-BSm1hoGS.js} +1 -2
- package/lib/{es/cy-BBPa6z2x.js → cy-C9DIxPZF.js} +1 -2
- package/lib/{es/da-CCDXfXtG.js → da-BsG0TGcE.js} +1 -2
- package/lib/{de-1901-CWoAOigE.js → de-1901-qqf2iWLB.js} +1 -2
- package/lib/{de-1996-BL6awyxG.js → de-1996-LtGglqob.js} +1 -2
- package/lib/{de-ch-1901-hVThVHVb.js → de-ch-1901-COn1CKDv.js} +1 -2
- package/lib/doc-skeleton-h5WFPD-i.js +24029 -0
- package/lib/{es/el-monoton-D3aKqTz2.js → el-monoton-pORtlC9P.js} +1 -2
- package/lib/{es/el-polyton-ogVWcTzh.js → el-polyton-CDXn9JCY.js} +1 -2
- package/lib/{en-gb-B7Al27b_.js → en-gb-BGHhUzDC.js} +1 -2
- package/lib/es/{af-DK_CjRn6.js → af-CYmDZ4fF.js} +1 -2
- package/lib/{cjs/as-9-ZvOvbK.js → es/as-Hwl1DGzz.js} +2 -3
- package/lib/{cjs/be-CPDnc13A.js → es/be-BgqsjH7X.js} +2 -3
- package/lib/{cjs/bg-Tu2vvwIU.js → es/bg-Dr9AqrKw.js} +2 -3
- package/lib/{cjs/bn-CP4-u1Rh.js → es/bn-CSXZX5iN.js} +2 -3
- package/lib/{cjs/ca-9lX3QWYB.js → es/ca-IXHA7IHe.js} +2 -3
- package/lib/{cjs/cop-BpbDnfNH.js → es/cop-B5tK6J-Z.js} +2 -3
- package/lib/{cjs/cs-6wd1Lm8r.js → es/cs-5GDhZ_Ce.js} +2 -3
- package/lib/{cjs/cu-DoUwo0RX.js → es/cu-BSm1hoGS.js} +2 -3
- package/lib/{cjs/cy-uvacbUjY.js → es/cy-C9DIxPZF.js} +2 -3
- package/lib/{cjs/da-vuRoJfkB.js → es/da-BsG0TGcE.js} +2 -3
- package/lib/{cjs/de-1901-C-Rx0RIO.js → es/de-1901-qqf2iWLB.js} +2 -3
- package/lib/{cjs/de-1996-CqTjCS2g.js → es/de-1996-LtGglqob.js} +2 -3
- package/lib/{cjs/de-ch-1901-j-eB6ude.js → es/de-ch-1901-COn1CKDv.js} +2 -3
- package/lib/es/doc-skeleton-h5WFPD-i.js +24029 -0
- package/lib/{cjs/el-monoton-CdxEzdnL.js → es/el-monoton-pORtlC9P.js} +2 -3
- package/lib/{cjs/el-polyton-QS0KX3lc.js → es/el-polyton-CDXn9JCY.js} +2 -3
- package/lib/{cjs/en-gb-B4rmyRrO.js → es/en-gb-BGHhUzDC.js} +2 -3
- package/lib/{cjs/es-BA4drX0l.js → es/es-PSvYPNjB.js} +2 -3
- package/lib/{et-B_spaleu.js → es/et-CYUTaVWy.js} +1 -2
- package/lib/{eu-Ctv_kq9Z.js → es/eu-CRNA9JLT.js} +1 -2
- package/lib/{fi-RW5VB8Yp.js → es/fi-DNiE_U0X.js} +1 -2
- package/lib/{fr-BC2onEz9.js → es/fr-BIgh4Hkw.js} +1 -2
- package/lib/es/{fur-AC12wySk.js → fur-CoXvgQfx.js} +1 -2
- package/lib/{ga-Cn6LkudM.js → es/ga-D54K6YtG.js} +1 -2
- package/lib/es/{gl-DZGc-K_G.js → gl-Cx_3wrqA.js} +1 -2
- package/lib/{grc-DOlGgO8T.js → es/grc-gFF6GbE6.js} +1 -2
- package/lib/es/{gu-Bjl0l-cf.js → gu-9bPoO3RA.js} +1 -2
- package/lib/es/{hi-DsAaTPCC.js → hi-GilZHMjg.js} +1 -2
- package/lib/es/{hr-DT1SBBes.js → hr-DowcKODH.js} +1 -2
- package/lib/{hsb-DC_ITc1e.js → es/hsb-D_AuBPC_.js} +1 -2
- package/lib/es/{hu-DVk7Y_ka.js → hu-DghCDVxq.js} +1 -2
- package/lib/es/{hy-e995ysyO.js → hy-UUaeTG5g.js} +1 -2
- package/lib/{ia-Cr4TJH0c.js → es/ia-CvHYTdA2.js} +1 -2
- package/lib/{id-DifDyWg9.js → es/id-Dpxs7amD.js} +1 -2
- package/lib/es/index.js +11475 -34381
- package/lib/es/{is-BT8UVRze.js → is-CJ1vxS9j.js} +1 -2
- package/lib/{it-Bt_Meacx.js → es/it-CpWMQzhA.js} +1 -2
- package/lib/{ka-jyoLzyDE.js → es/ka-CCxCVfU6.js} +1 -2
- package/lib/{kmr-Cfwhwuff.js → es/kmr-dEjewOAw.js} +1 -2
- package/lib/{kn-C6Lov-DP.js → es/kn-Bjy8QS2v.js} +1 -2
- package/lib/{la-DuvHjUWw.js → es/la-AGdXyFmb.js} +1 -2
- package/lib/{la-x-classic-yTyAOQEt.js → es/la-x-classic-DcM9aTVI.js} +1 -2
- package/lib/{la-x-liturgic-CXeQb4FY.js → es/la-x-liturgic-DZCmbwFj.js} +1 -2
- package/lib/es/{lt-BBe8DlDF.js → lt-CN8ITi7t.js} +1 -2
- package/lib/{lv-Q2BBHnzp.js → es/lv-C-JuXj31.js} +1 -2
- package/lib/{ml-2xLVYkVY.js → es/ml-BM2UBzMU.js} +1 -2
- package/lib/{mn-cyrl-lHM4n0oC.js → es/mn-cyrl-CyRDZzA3.js} +1 -2
- package/lib/es/{mn-cyrl-x-lmc-3aetruI8.js → mn-cyrl-x-lmc-DbCWj2Po.js} +1 -2
- package/lib/es/{mr-CjWJPVmH.js → mr-BrkCTYf9.js} +1 -2
- package/lib/{mul-ethi-D_CMSMEq.js → es/mul-ethi-D9YZ9OXl.js} +1 -2
- package/lib/{nb-DI8u59ch.js → es/nb-DgKeJnSd.js} +1 -2
- package/lib/{cjs/nl-8OOgTtzV.js → es/nl-BIDJBXRA.js} +2 -3
- package/lib/{nn-ntZvarUK.js → es/nn-C4Gas4NI.js} +1 -2
- package/lib/{no-B8ItS0F3.js → es/no-CSP8-4c2.js} +1 -2
- package/lib/{oc-P_i3-xLA.js → es/oc-CyJ2Q9k9.js} +1 -2
- package/lib/es/{or-50rxpoq4.js → or-DUhKxVse.js} +1 -2
- package/lib/es/{pa-C54UG8eN.js → pa-NDvVySYt.js} +1 -2
- package/lib/{pi-B9cgjyG1.js → es/pi-znB0BT6g.js} +1 -2
- package/lib/es/{pl-9fg-ESVt.js → pl-CaFvP4tu.js} +1 -2
- package/lib/es/{pms-BRGfm5gS.js → pms-92V70vZ4.js} +1 -2
- package/lib/{pt-Cum2_NUC.js → es/pt-BKB_-X0N.js} +1 -2
- package/lib/{rm-C0MIK9N4.js → es/rm-C1letx81.js} +1 -2
- package/lib/{ro-0fmdH0HA.js → es/ro-BUzliR9z.js} +1 -2
- package/lib/{ru-v4l-ayaq.js → es/ru-B591x1qT.js} +1 -2
- package/lib/{sa-CKY9c_Vq.js → es/sa-JnsT9B1R.js} +1 -2
- package/lib/es/{sh-cyrl-BpCRFOmq.js → sh-cyrl-CLuomLGP.js} +1 -2
- package/lib/{sh-latn-sRy4Tuaj.js → es/sh-latn-DdZKFFaE.js} +1 -2
- package/lib/{sk-_iOeDNrQ.js → es/sk-A3STIA2C.js} +1 -2
- package/lib/es/{sl-DpiklF-D.js → sl-DjmW7S7C.js} +1 -2
- package/lib/es/{sr-cyrl-Dpzrbd0W.js → sr-cyrl-DzA2myNl.js} +1 -2
- package/lib/es/{sv-CFm5y56M.js → sv-B01JFt6B.js} +1 -2
- package/lib/{ta-BcghgTbD.js → es/ta-biPP5NX3.js} +1 -2
- package/lib/{te-B5Spl2Jk.js → es/te-DdPqCRaf.js} +1 -2
- package/lib/es/{th-DWX5iPSo.js → th-C4s1cxFT.js} +1 -2
- package/lib/es/{tk-BMbKB10q.js → tk-BfqDjfTh.js} +1 -2
- package/lib/{tr-CIHIuzqc.js → es/tr-C2sIij-w.js} +1 -2
- package/lib/{uk-Dir3oxLs.js → es/uk-DBx0redY.js} +1 -2
- package/lib/es/worker.js +238 -0
- package/lib/{zh-latn-pinyin-BdYb-Ey_.js → es/zh-latn-pinyin-CIit9tZA.js} +1 -2
- package/lib/{es-DcaaHPU_.js → es-PSvYPNjB.js} +1 -2
- package/lib/{cjs/et-C7DwwRsT.js → et-CYUTaVWy.js} +2 -3
- package/lib/{cjs/eu-ClKht9Pp.js → eu-CRNA9JLT.js} +2 -3
- package/lib/{cjs/fi-DuHvPYlK.js → fi-DNiE_U0X.js} +2 -3
- package/lib/{cjs/fr-B6k7oFRi.js → fr-BIgh4Hkw.js} +2 -3
- package/lib/{cjs/fur-BNKRNrN9.js → fur-CoXvgQfx.js} +2 -3
- package/lib/{cjs/ga-BZ0KaaVs.js → ga-D54K6YtG.js} +2 -3
- package/lib/{cjs/gl-CctrPjLD.js → gl-Cx_3wrqA.js} +2 -3
- package/lib/{cjs/grc-BE-oBfLv.js → grc-gFF6GbE6.js} +2 -3
- package/lib/{cjs/gu-Bv2fvk65.js → gu-9bPoO3RA.js} +2 -3
- package/lib/{cjs/hi-D9Q0HIae.js → hi-GilZHMjg.js} +2 -3
- package/lib/{cjs/hr-BWOyJbhV.js → hr-DowcKODH.js} +2 -3
- package/lib/{cjs/hsb-DbVr5Yti.js → hsb-D_AuBPC_.js} +2 -3
- package/lib/{hu-DVk7Y_ka.js → hu-DghCDVxq.js} +1 -2
- package/lib/{cjs/hy-ZPOiR2Pl.js → hy-UUaeTG5g.js} +2 -3
- package/lib/{cjs/ia-COSQW4z-.js → ia-CvHYTdA2.js} +2 -3
- package/lib/{cjs/id-5X-mf3_K.js → id-Dpxs7amD.js} +2 -3
- package/lib/index.js +11475 -34381
- package/lib/{cjs/is-B0v_L_rD.js → is-CJ1vxS9j.js} +2 -3
- package/lib/{cjs/it-BYUjiLCa.js → it-CpWMQzhA.js} +2 -3
- package/lib/{cjs/ka-CqhPSSIU.js → ka-CCxCVfU6.js} +2 -3
- package/lib/{cjs/kmr-BuxJ3UNX.js → kmr-dEjewOAw.js} +2 -3
- package/lib/{cjs/kn-CqFXlbev.js → kn-Bjy8QS2v.js} +2 -3
- package/lib/{cjs/la-BFXoayQr.js → la-AGdXyFmb.js} +2 -3
- package/lib/{cjs/la-x-classic-BYzNHSGU.js → la-x-classic-DcM9aTVI.js} +2 -3
- package/lib/{cjs/la-x-liturgic-vXxx2nLG.js → la-x-liturgic-DZCmbwFj.js} +2 -3
- package/lib/{cjs/lt-D2dXvF2J.js → lt-CN8ITi7t.js} +2 -3
- package/lib/{cjs/lv-bwpCf-Pe.js → lv-C-JuXj31.js} +2 -3
- package/lib/{cjs/ml-Cg8vxrAK.js → ml-BM2UBzMU.js} +2 -3
- package/lib/{cjs/mn-cyrl-B6DZDQQA.js → mn-cyrl-CyRDZzA3.js} +2 -3
- package/lib/{cjs/mn-cyrl-x-lmc-CXBgZUX1.js → mn-cyrl-x-lmc-DbCWj2Po.js} +2 -3
- package/lib/{cjs/mr-BBVGX8dy.js → mr-BrkCTYf9.js} +2 -3
- package/lib/{cjs/mul-ethi-CHBVIYMf.js → mul-ethi-D9YZ9OXl.js} +2 -3
- package/lib/{cjs/nb-BCuMJhLv.js → nb-DgKeJnSd.js} +2 -3
- package/lib/{nl-BHQJ6Gvn.js → nl-BIDJBXRA.js} +1 -2
- package/lib/{cjs/nn-XJlYZMaR.js → nn-C4Gas4NI.js} +2 -3
- package/lib/{cjs/no-BYOYolO_.js → no-CSP8-4c2.js} +2 -3
- package/lib/{cjs/oc-OPfeuk3n.js → oc-CyJ2Q9k9.js} +2 -3
- package/lib/{cjs/or-1B6R0ukY.js → or-DUhKxVse.js} +2 -3
- package/lib/{cjs/pa-D7Ec6DsZ.js → pa-NDvVySYt.js} +2 -3
- package/lib/{cjs/pi-CrindCzM.js → pi-znB0BT6g.js} +2 -3
- package/lib/{cjs/pl-Bhte1xma.js → pl-CaFvP4tu.js} +2 -3
- package/lib/{cjs/pms-B5-d2U_Z.js → pms-92V70vZ4.js} +2 -3
- package/lib/{cjs/pt-CtFPi0Il.js → pt-BKB_-X0N.js} +2 -3
- package/lib/{cjs/rm-fgO3AV82.js → rm-C1letx81.js} +2 -3
- package/lib/{cjs/ro-BUB-IxaH.js → ro-BUzliR9z.js} +2 -3
- package/lib/{cjs/ru-BYdNAMwp.js → ru-B591x1qT.js} +2 -3
- package/lib/{cjs/sa-BX4Bcw9p.js → sa-JnsT9B1R.js} +2 -3
- package/lib/{cjs/sh-cyrl-BMS20HU0.js → sh-cyrl-CLuomLGP.js} +2 -3
- package/lib/{cjs/sh-latn-B5r4ufen.js → sh-latn-DdZKFFaE.js} +2 -3
- package/lib/{cjs/sk-B2xqlAKO.js → sk-A3STIA2C.js} +2 -3
- package/lib/{cjs/sl-BQIVIls0.js → sl-DjmW7S7C.js} +2 -3
- package/lib/{cjs/sr-cyrl-DYfSvoxX.js → sr-cyrl-DzA2myNl.js} +2 -3
- package/lib/{cjs/sv-Dnaw_W7A.js → sv-B01JFt6B.js} +2 -3
- package/lib/{cjs/ta-UtrX1d-L.js → ta-biPP5NX3.js} +2 -3
- package/lib/{cjs/te-Cd9aOzWW.js → te-DdPqCRaf.js} +2 -3
- package/lib/{cjs/th-DMVAQILd.js → th-C4s1cxFT.js} +2 -3
- package/lib/{cjs/tk-CmEXyO1-.js → tk-BfqDjfTh.js} +2 -3
- package/lib/{cjs/tr--Z-rfClX.js → tr-C2sIij-w.js} +2 -3
- package/lib/types/base-object.d.ts +10 -6
- package/lib/types/basics/const.d.ts +2 -2
- package/lib/types/basics/document-node-tools.d.ts +2 -2
- package/lib/types/basics/draw.d.ts +1 -1
- package/lib/types/basics/interfaces.d.ts +1 -0
- package/lib/types/basics/tools.d.ts +10 -9
- package/lib/types/components/component.d.ts +1 -0
- package/lib/types/components/docs/document-layout-presentation.d.ts +1 -0
- package/lib/types/components/docs/layout/footnote-layout.d.ts +3 -3
- package/lib/types/components/{index.d.ts → docs/layout/line-breaker/document-line-breaker.d.ts} +3 -5
- package/lib/types/components/docs/layout/line-breaker/line-breaker.d.ts +16 -8
- package/lib/types/components/docs/layout/shaping-engine/font-cache.d.ts +2 -0
- package/lib/types/components/docs/layout/tools.d.ts +3 -1
- package/lib/types/components/docs/view-model/document-view-model.d.ts +7 -2
- package/lib/types/components/extension.d.ts +5 -1
- package/lib/types/components/sheets/constants.d.ts +2 -0
- package/lib/types/components/sheets/extensions/background.d.ts +1 -0
- package/lib/types/components/sheets/extensions/border-row-cache.d.ts +27 -0
- package/lib/types/components/sheets/extensions/border.d.ts +9 -1
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts +1 -0
- package/lib/types/components/sheets/extensions/custom.d.ts +1 -0
- package/lib/types/components/sheets/extensions/font.d.ts +6 -0
- package/lib/types/components/sheets/extensions/marker.d.ts +1 -0
- package/lib/types/components/sheets/extensions/render-primitive-cache.d.ts +37 -0
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts +1 -0
- package/lib/types/components/sheets/interfaces.d.ts +1 -0
- package/lib/types/components/sheets/sheet-cell-document-view-model.d.ts +25 -0
- package/lib/types/components/sheets/sheet-component.d.ts +3 -0
- package/lib/types/components/sheets/sheet.render-skeleton.d.ts +10 -1
- package/lib/types/components/sheets/spreadsheet.d.ts +25 -3
- package/lib/types/context.d.ts +5 -0
- package/lib/types/index.d.ts +24 -3
- package/lib/types/layer.d.ts +8 -1
- package/lib/types/render-manager/render-manager.service.d.ts +3 -4
- package/lib/types/scene.d.ts +13 -1
- package/lib/types/scene.transformer.d.ts +21 -1
- package/lib/types/services/canvas-color.service.d.ts +1 -1
- package/lib/types/shape/control.d.ts +1 -0
- package/lib/types/shape/index.d.ts +2 -2
- package/lib/types/shape/scroll-bar.d.ts +2 -2
- package/lib/types/shape/text.d.ts +6 -1
- package/lib/types/transformer-rotation.d.ts +42 -0
- package/lib/types/viewport.d.ts +3 -2
- package/lib/types/{components/docs/layout/line-breaker/index.d.ts → worker.d.ts} +3 -1
- package/lib/{cjs/uk-COcQB_vY.js → uk-DBx0redY.js} +2 -3
- package/lib/umd/index.js +5 -5
- package/lib/worker.js +238 -0
- package/lib/{cjs/zh-latn-pinyin-Cw5tH1Uh.js → zh-latn-pinyin-CIit9tZA.js} +2 -3
- package/package.json +13 -8
- package/lib/types/basics/quick-event.d.ts +0 -18
- package/lib/types/components/sheets/index.d.ts +0 -26
- package/lib/types/components/sheets/watermark/index.d.ts +0 -20
- package/lib/types/components/slides/index.d.ts +0 -16
- package/lib/types/components/slides/slide.d.ts +0 -47
- package/lib/types/shape/rich-text.d.ts +0 -117
package/lib/types/index.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export { combineDrawingEffectFilter, createDrawingEffectFilter, expandDrawingEff
|
|
|
21
21
|
export type { IResolvedDrawingShadow } from './basics/drawing-effect';
|
|
22
22
|
export { getOffsetRectForDom } from './basics/position';
|
|
23
23
|
export * from './canvas';
|
|
24
|
-
export * from './components';
|
|
24
|
+
export * from './components/component';
|
|
25
25
|
export type { DocsCustomBlockRenderViewportProvider, IDocsCustomBlockRenderViewport, IDocsCustomBlockRenderViewportInput } from './components/docs/custom-block-render-viewport';
|
|
26
26
|
export { getDocsCustomBlockRenderViewport, setDocsCustomBlockRenderViewportProvider } from './components/docs/custom-block-render-viewport';
|
|
27
27
|
export { getDocCustomGlyphRenderer, registerDocCustomGlyphRenderer, } from './components/docs/custom-glyph-renderer';
|
|
@@ -51,7 +51,29 @@ export { DataStreamTreeNode } from './components/docs/view-model/data-stream-tre
|
|
|
51
51
|
export { DocumentViewModel } from './components/docs/view-model/document-view-model';
|
|
52
52
|
export { DocumentEditArea } from './components/docs/view-model/document-view-model';
|
|
53
53
|
export { parseDataStreamToTree } from './components/docs/view-model/document-view-model';
|
|
54
|
-
export
|
|
54
|
+
export * from './components/extension';
|
|
55
|
+
export * from './components/sheets/column-header';
|
|
56
|
+
export * from './components/sheets/constants';
|
|
57
|
+
export * from './components/sheets/extensions/background';
|
|
58
|
+
export * from './components/sheets/extensions/border';
|
|
59
|
+
export * from './components/sheets/extensions/column-header-layout';
|
|
60
|
+
export * from './components/sheets/extensions/custom';
|
|
61
|
+
export * from './components/sheets/extensions/font';
|
|
62
|
+
export * from './components/sheets/extensions/marker';
|
|
63
|
+
export * from './components/sheets/extensions/row-header-layout';
|
|
64
|
+
export * from './components/sheets/extensions/sheet-extension';
|
|
65
|
+
export * from './components/sheets/interfaces';
|
|
66
|
+
export * from './components/sheets/row-header';
|
|
67
|
+
export { SheetCellDocumentViewModel } from './components/sheets/sheet-cell-document-view-model';
|
|
68
|
+
export * from './components/sheets/sheet-component';
|
|
69
|
+
export * from './components/sheets/sheet.render-skeleton';
|
|
70
|
+
export { RENDER_RAW_FORMULA_KEY } from './components/sheets/sheet.render-skeleton';
|
|
71
|
+
export * from './components/sheets/spreadsheet';
|
|
72
|
+
export { calculateCellImageRect } from './components/sheets/util';
|
|
73
|
+
export type { ICellImageRectConfig } from './components/sheets/util';
|
|
74
|
+
export * from './components/sheets/watermark/type';
|
|
75
|
+
export * from './components/sheets/watermark/util';
|
|
76
|
+
export * from './components/sheets/watermark/watermark-layer';
|
|
55
77
|
export type { IUniverEngineRenderConfig } from './config/config';
|
|
56
78
|
export * from './context';
|
|
57
79
|
export * from './custom';
|
|
@@ -72,5 +94,4 @@ export * from './scroll-timer';
|
|
|
72
94
|
export { CanvasColorService, DumbCanvasColorService, ICanvasColorService } from './services/canvas-color.service';
|
|
73
95
|
export * from './shape';
|
|
74
96
|
export * from './viewport';
|
|
75
|
-
export { DocumentLayoutSession } from './worker-layout';
|
|
76
97
|
export type { IDocumentLayoutSessionStartOptions, IDocumentLayoutStepResult } from './worker-layout';
|
package/lib/types/layer.d.ts
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
import { Disposable } from '@univerjs/core';
|
|
16
17
|
import type { IBoundRectNoAngle, IViewportInfo } from './basics/vector2';
|
|
17
18
|
import type { UniverRenderingContext } from './context';
|
|
18
19
|
import type { Scene } from './scene';
|
|
19
|
-
import { Disposable } from '@univerjs/core';
|
|
20
20
|
import { BaseObject } from './base-object';
|
|
21
21
|
export interface IScrollRenderInfo {
|
|
22
22
|
bounds: IBoundRectNoAngle;
|
|
@@ -27,6 +27,10 @@ export interface ILayerRenderOptions {
|
|
|
27
27
|
dirtyBounds?: IBoundRectNoAngle[];
|
|
28
28
|
preserveCache?: boolean;
|
|
29
29
|
viewportInfos?: Map<string, IViewportInfo>;
|
|
30
|
+
retainedViewportCache?: {
|
|
31
|
+
bottom: number;
|
|
32
|
+
viewportKeys: ReadonlySet<string>;
|
|
33
|
+
};
|
|
30
34
|
}
|
|
31
35
|
export declare function scrollAndClearCanvas(ctx: UniverRenderingContext, pixelRatio: number, scrollRenderInfos: IScrollRenderInfo[], dirtyBounds: IBoundRectNoAngle[]): void;
|
|
32
36
|
export declare class Layer extends Disposable {
|
|
@@ -36,6 +40,7 @@ export declare class Layer extends Disposable {
|
|
|
36
40
|
private _objects;
|
|
37
41
|
private _cacheCanvas;
|
|
38
42
|
private _cacheValid;
|
|
43
|
+
private _retainedCacheValid;
|
|
39
44
|
protected _dirty: boolean;
|
|
40
45
|
private _debounceDirtyFunc;
|
|
41
46
|
constructor(_scene: Scene, objects?: BaseObject[], _zIndex?: number, _allowCache?: boolean);
|
|
@@ -70,6 +75,8 @@ export declare class Layer extends Disposable {
|
|
|
70
75
|
addObjects(objects: BaseObject[]): Layer;
|
|
71
76
|
removeObjects(objects: BaseObject[] | string[]): void;
|
|
72
77
|
makeDirty(state?: boolean): this;
|
|
78
|
+
canReuseViewportCache(): boolean;
|
|
79
|
+
makeDirtyForViewportScroll(): void;
|
|
73
80
|
makeDirtyWithDebounce(state?: boolean): void;
|
|
74
81
|
isDirty(): boolean;
|
|
75
82
|
render(parentCtx?: UniverRenderingContext, isMaxLayer?: boolean, options?: ILayerRenderOptions): this;
|
|
@@ -15,15 +15,14 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { Dependency, DependencyIdentifier, ICreateUnitOptions, IDisposable, Nullable, UnitModel } from '@univerjs/core';
|
|
17
17
|
import type { Observable } from 'rxjs';
|
|
18
|
+
import { Disposable, Injector, IUniverInstanceService, ThemeService, UniverInstanceType } from '@univerjs/core';
|
|
18
19
|
import type { BaseObject } from '../base-object';
|
|
19
20
|
import type { DocComponent } from '../components/docs/doc-component';
|
|
20
21
|
import type { SheetComponent } from '../components/sheets/sheet-component';
|
|
21
|
-
import type { Slide } from '../components/slides/slide';
|
|
22
22
|
import type { IRender } from './render-unit';
|
|
23
|
-
import { Disposable, Injector, IUniverInstanceService, ThemeService, UniverInstanceType } from '@univerjs/core';
|
|
24
23
|
import { Engine } from '../engine';
|
|
25
24
|
import { RenderUnit } from './render-unit';
|
|
26
|
-
export type RenderComponentType = SheetComponent | DocComponent |
|
|
25
|
+
export type RenderComponentType = SheetComponent | DocComponent | BaseObject;
|
|
27
26
|
export interface IRenderManagerService extends IDisposable {
|
|
28
27
|
addRender(unitId: string, renderer: IRender): void;
|
|
29
28
|
/**
|
|
@@ -110,7 +109,7 @@ export declare class RenderManagerService extends Disposable implements IRenderM
|
|
|
110
109
|
getRenderAll(): Map<string, IRender>;
|
|
111
110
|
private _disposeItem;
|
|
112
111
|
}
|
|
113
|
-
export declare const IRenderManagerService: import("@
|
|
112
|
+
export declare const IRenderManagerService: import("@univerjs/core").IdentifierDecorator<IRenderManagerService>;
|
|
114
113
|
export declare function isDisposable(thing: unknown): thing is IDisposable;
|
|
115
114
|
export declare function getCurrentTypeOfRenderer(type: UniverInstanceType, instanceService: IUniverInstanceService, renderManageService: IRenderManagerService): Nullable<IRender>;
|
|
116
115
|
export declare function withCurrentTypeOfRenderer<T>(type: UniverInstanceType, id: DependencyIdentifier<T>, instanceService: IUniverInstanceService, renderManagerService: IRenderManagerService): Nullable<T>;
|
package/lib/types/scene.d.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Nullable } from '@univerjs/core';
|
|
17
|
+
import { Disposable, EventSubject } from '@univerjs/core';
|
|
17
18
|
import type { BaseObject } from './base-object';
|
|
18
19
|
import type { IDragEvent, IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events';
|
|
19
20
|
import type { ISceneTransformState, ITransformChangeState } from './basics/interfaces';
|
|
@@ -24,7 +25,6 @@ import type { UniverRenderingContext } from './context';
|
|
|
24
25
|
import type { Engine } from './engine';
|
|
25
26
|
import type { SceneViewer } from './scene-viewer';
|
|
26
27
|
import type { Viewport } from './viewport';
|
|
27
|
-
import { Disposable, EventSubject } from '@univerjs/core';
|
|
28
28
|
import { CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const';
|
|
29
29
|
import { DeviceType } from './basics/i-events';
|
|
30
30
|
import { Transform } from './basics/transform';
|
|
@@ -57,6 +57,10 @@ export declare class Scene extends Disposable {
|
|
|
57
57
|
private _layers;
|
|
58
58
|
private _viewports;
|
|
59
59
|
private _preserveEngineOnRender;
|
|
60
|
+
private _viewportCacheReuseKey;
|
|
61
|
+
private _viewportCacheReuseBlocked;
|
|
62
|
+
private _viewportCacheReusePending;
|
|
63
|
+
private _renderedViewportCacheKey;
|
|
60
64
|
private _hasPostRenderCanvasMutation;
|
|
61
65
|
private _scrollbarDragViewport;
|
|
62
66
|
private _isScrollbarSeeking;
|
|
@@ -86,6 +90,9 @@ export declare class Scene extends Disposable {
|
|
|
86
90
|
onDblclick$: EventSubject<IMouseEvent | IPointerEvent>;
|
|
87
91
|
onTripleClick$: EventSubject<IMouseEvent | IPointerEvent>;
|
|
88
92
|
onMouseWheel$: EventSubject<IWheelEvent>;
|
|
93
|
+
private readonly _prepareRender$;
|
|
94
|
+
/** Layout updates before scroll-cache decisions; paint on the canvas in beforeRender$ instead. */
|
|
95
|
+
readonly prepareRender$: import("rxjs").Observable<void>;
|
|
89
96
|
private _beforeRender$;
|
|
90
97
|
readonly beforeRender$: import("rxjs").Observable<Nullable<Canvas>>;
|
|
91
98
|
private _afterRender$;
|
|
@@ -131,6 +138,11 @@ export declare class Scene extends Disposable {
|
|
|
131
138
|
detachControl(): this;
|
|
132
139
|
makeDirty(state?: boolean): this;
|
|
133
140
|
makeDirtyForScrolling(): this;
|
|
141
|
+
setViewportCacheReuseKey(key: Nullable<string>): void;
|
|
142
|
+
invalidateViewportCacheReuse(): void;
|
|
143
|
+
isViewportCacheReusePending(): boolean;
|
|
144
|
+
makeDirtyForViewportScroll(viewport: Viewport): void;
|
|
145
|
+
private _getViewportCacheGeometry;
|
|
134
146
|
beginScrollbarDrag(viewport: Viewport): void;
|
|
135
147
|
updateScrollbarDrag(viewport: Viewport): void;
|
|
136
148
|
endScrollbarDrag(viewport: Viewport): void;
|
|
@@ -14,11 +14,13 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Nullable } from '@univerjs/core';
|
|
17
|
+
import { Disposable } from '@univerjs/core';
|
|
17
18
|
import type { BaseObject } from './base-object';
|
|
18
19
|
import type { IMouseEvent, IPointerEvent } from './basics/i-events';
|
|
19
20
|
import type { ITransformerConfig } from './basics/transformer-config';
|
|
20
21
|
import type { Scene } from './scene';
|
|
21
|
-
import {
|
|
22
|
+
import { DeviceType } from './basics/i-events';
|
|
23
|
+
import { Vector2 } from './basics/vector2';
|
|
22
24
|
import { Group } from './group';
|
|
23
25
|
declare enum MoveObserverType {
|
|
24
26
|
MOVE_START = 0,
|
|
@@ -124,12 +126,16 @@ export declare class Transformer extends Disposable implements ITransformerConfi
|
|
|
124
126
|
private _cancelFocusSubscription;
|
|
125
127
|
private _transformerControlMap;
|
|
126
128
|
private _selectedObjectMap;
|
|
129
|
+
private readonly _rotationControls;
|
|
130
|
+
private readonly _rotationSides;
|
|
127
131
|
private _subscriptionObjectMap;
|
|
128
132
|
private _copperControl;
|
|
129
133
|
private _copperSelectedObject;
|
|
130
134
|
private _moveBufferSkip;
|
|
131
135
|
private _debounceClearFunc;
|
|
132
136
|
constructor(_scene: Scene, config?: ITransformerConfig);
|
|
137
|
+
/** Hit-test the actual displayed handles using canvas coordinates, including viewport edge avoidance. */
|
|
138
|
+
isPointOnControl(objectKey: string, coord: Vector2, deviceType?: DeviceType): boolean;
|
|
133
139
|
updateZeroPoint(left: number, top: number): void;
|
|
134
140
|
changeNotification(): this;
|
|
135
141
|
getSelectedObjectMap(): Map<string, BaseObject>;
|
|
@@ -148,10 +154,16 @@ export declare class Transformer extends Disposable implements ITransformerConfi
|
|
|
148
154
|
setSelectedControl(applyObject: BaseObject): void;
|
|
149
155
|
private _getConfig;
|
|
150
156
|
attachTo(applyObject: BaseObject): BaseObject;
|
|
157
|
+
private _selectOnPointerUp;
|
|
151
158
|
detachFrom(applyObject: BaseObject): BaseObject;
|
|
152
159
|
dispose(): void;
|
|
153
160
|
private _initialProps;
|
|
154
161
|
private _checkMoveBoundary;
|
|
162
|
+
/**
|
|
163
|
+
* Filters selected objects by the requested capability in their effective transformer config.
|
|
164
|
+
* Objects without that capability stay selected but do not participate in the move or resize gesture.
|
|
165
|
+
*/
|
|
166
|
+
private _getTransformObjects;
|
|
155
167
|
private _moving;
|
|
156
168
|
private _moveBufferBlocker;
|
|
157
169
|
private _anchorMoving;
|
|
@@ -200,6 +212,14 @@ export declare class Transformer extends Disposable implements ITransformerConfi
|
|
|
200
212
|
clearControlByIds(ids: string[]): void;
|
|
201
213
|
private _clearControlMap;
|
|
202
214
|
private _createControl;
|
|
215
|
+
private _createResizeControls;
|
|
216
|
+
private _createRotationControls;
|
|
217
|
+
private _updateRotationControls;
|
|
218
|
+
private _getRotationViewport;
|
|
219
|
+
private _getRotationObstacles;
|
|
220
|
+
private _updateRotationControl;
|
|
221
|
+
private _hideRotationControls;
|
|
222
|
+
private _positionRotationControls;
|
|
203
223
|
private _getTopScene;
|
|
204
224
|
activeAnObject(applyObject: BaseObject): void;
|
|
205
225
|
private _updateActiveObjectList;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { RGBColorType } from '@univerjs/core';
|
|
17
17
|
import { Disposable, ThemeService } from '@univerjs/core';
|
|
18
|
-
export declare const ICanvasColorService: import("@
|
|
18
|
+
export declare const ICanvasColorService: import("@univerjs/core").IdentifierDecorator<ICanvasColorService>;
|
|
19
19
|
/**
|
|
20
20
|
* This service maps a color or a theme-token to a color for rendering. Univer supports themes for rendering
|
|
21
21
|
* and dark mode. This services is responsible for abstract this complexity for rendering components.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import { Vector2 } from '../basics/vector2';
|
|
17
17
|
import { Rect } from './rect';
|
|
18
|
+
export declare const CONTROL_TOUCH_HIT_RADIUS = 22;
|
|
18
19
|
/** A precise mouse handle with a zoom-independent touch target. */
|
|
19
20
|
export declare class Control extends Rect {
|
|
20
21
|
getTouchHitDistance(coord: Vector2): number;
|
|
@@ -19,11 +19,11 @@ export * from './control';
|
|
|
19
19
|
export * from './dashedrect';
|
|
20
20
|
export * from './drawing';
|
|
21
21
|
export * from './image';
|
|
22
|
-
export {
|
|
22
|
+
export type { ILineProps } from './line';
|
|
23
|
+
export { Line } from './line';
|
|
23
24
|
export * from './path';
|
|
24
25
|
export * from './rect';
|
|
25
26
|
export * from './regular-polygon';
|
|
26
|
-
export * from './rich-text';
|
|
27
27
|
export * from './scroll-bar';
|
|
28
28
|
export * from './shape';
|
|
29
29
|
export * from './text';
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Nullable } from '@univerjs/core';
|
|
17
|
+
import { Disposable } from '@univerjs/core';
|
|
17
18
|
import type { Vector2 } from '../basics/vector2';
|
|
18
19
|
import type { UniverRenderingContext } from '../context';
|
|
19
20
|
import type { Scene } from '../scene';
|
|
20
21
|
import type { Viewport } from '../viewport';
|
|
21
|
-
import { Disposable } from '@univerjs/core';
|
|
22
22
|
import { Rect } from './rect';
|
|
23
23
|
export interface IScrollBarProps {
|
|
24
24
|
mainScene?: Scene;
|
|
@@ -162,7 +162,7 @@ export declare class ScrollBar extends Disposable {
|
|
|
162
162
|
* @param contentHeight
|
|
163
163
|
*/
|
|
164
164
|
resize(viewportWidth?: number, viewportHeight?: number, contentWidth?: number, contentHeight?: number): void;
|
|
165
|
-
makeDirty(state: boolean): void;
|
|
165
|
+
makeDirty(state: boolean, viewportScroll?: boolean): void;
|
|
166
166
|
makeViewDirty(state: boolean): void;
|
|
167
167
|
pick(coord: Vector2): Rect<import("./rect").IRectProps> | null;
|
|
168
168
|
private _initialScrollRect;
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Nullable } from '@univerjs/core';
|
|
17
|
+
import { CellValueType, HorizontalAlign, TextDecoration, VerticalAlign } from '@univerjs/core';
|
|
17
18
|
import type { UniverRenderingContext } from '../context';
|
|
18
19
|
import type { IShapeProps } from './shape';
|
|
19
|
-
import { CellValueType, HorizontalAlign, TextDecoration, VerticalAlign } from '@univerjs/core';
|
|
20
20
|
import { DocSimpleSkeleton } from '../components/docs/layout/doc-simple-skeleton';
|
|
21
21
|
import { Shape } from './shape';
|
|
22
22
|
export interface ITextProps extends IShapeProps {
|
|
@@ -48,6 +48,11 @@ export declare class Text extends Shape<ITextProps> {
|
|
|
48
48
|
constructor(key: string, props: ITextProps);
|
|
49
49
|
static drawWith(ctx: UniverRenderingContext, props: ITextProps, _skeleton?: DocSimpleSkeleton): number;
|
|
50
50
|
static drawPlainWith(ctx: UniverRenderingContext, props: ITextProps): number;
|
|
51
|
+
/** Ink bounds of the same uncropped layout used by drawPlainWith, before any canvas transform. */
|
|
52
|
+
static getPlainTextVerticalBounds(props: Pick<ITextProps, 'text' | 'fontStyle' | 'height' | 'top' | 'vAlign'>): {
|
|
53
|
+
top: number;
|
|
54
|
+
bottom: number;
|
|
55
|
+
};
|
|
51
56
|
private static _getCachedLayout;
|
|
52
57
|
/**
|
|
53
58
|
* Draw text decoration lines (underline, strikethrough, etc.)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Co., Ltd.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import type { IBoundRectNoAngle, IPoint } from './basics/vector2';
|
|
17
|
+
export interface IRotationHandleCandidate {
|
|
18
|
+
center: IPoint;
|
|
19
|
+
attachment: IPoint;
|
|
20
|
+
side: 'top' | 'bottom';
|
|
21
|
+
}
|
|
22
|
+
export interface IRotationHandlePlacement {
|
|
23
|
+
center: IPoint;
|
|
24
|
+
attachment: IPoint;
|
|
25
|
+
side: 'top' | 'bottom' | 'inset';
|
|
26
|
+
adjusted: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface IRotationHandleObstacle extends IPoint {
|
|
29
|
+
radius: number;
|
|
30
|
+
}
|
|
31
|
+
export interface IRotationHandleLayout {
|
|
32
|
+
bounds: IBoundRectNoAngle;
|
|
33
|
+
radius: number;
|
|
34
|
+
artworkRadius: number;
|
|
35
|
+
preferred: IRotationHandleCandidate;
|
|
36
|
+
opposite: IRotationHandleCandidate;
|
|
37
|
+
corners: IPoint[];
|
|
38
|
+
obstacles: IRotationHandleObstacle[];
|
|
39
|
+
previousSide?: IRotationHandlePlacement['side'];
|
|
40
|
+
}
|
|
41
|
+
/** Keep the complete interaction target inside the viewport; all distances are screen pixels. */
|
|
42
|
+
export declare function placeRotationHandle(layout: IRotationHandleLayout): IRotationHandlePlacement | undefined;
|
package/lib/types/viewport.d.ts
CHANGED
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { EventState, IPosition, Nullable } from '@univerjs/core';
|
|
17
|
+
import { EventSubject } from '@univerjs/core';
|
|
18
|
+
import { Subject } from 'rxjs';
|
|
17
19
|
import type { BaseObject } from './base-object';
|
|
18
20
|
import type { IWheelEvent } from './basics/i-events';
|
|
19
21
|
import type { IBoundRectNoAngle, IViewportInfo } from './basics/vector2';
|
|
20
22
|
import type { UniverRenderingContext } from './context';
|
|
21
23
|
import type { Scene } from './scene';
|
|
22
24
|
import type { ScrollBar } from './shape/scroll-bar';
|
|
23
|
-
import { EventSubject } from '@univerjs/core';
|
|
24
|
-
import { Subject } from 'rxjs';
|
|
25
25
|
import { Transform } from './basics/transform';
|
|
26
26
|
import { Vector2 } from './basics/vector2';
|
|
27
27
|
import { Canvas as UniverCanvas } from './canvas';
|
|
@@ -345,6 +345,7 @@ export declare class Viewport {
|
|
|
345
345
|
* @param isMaxLayer
|
|
346
346
|
*/
|
|
347
347
|
render(parentCtx?: UniverRenderingContext, objects?: BaseObject[], isMaxLayer?: boolean, viewportInfo?: IViewportInfo): void;
|
|
348
|
+
reuseCachedRender(objects: BaseObject[], viewportInfo?: IViewportInfo): void;
|
|
348
349
|
private _makeDefaultViewport;
|
|
349
350
|
calcViewportInfo(): IViewportInfo;
|
|
350
351
|
/**
|
|
@@ -13,4 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
export {
|
|
16
|
+
export { setDocsCustomBlockRenderViewportProvider } from './components/docs/custom-block-render-viewport';
|
|
17
|
+
export { FontCache } from './components/docs/layout/shaping-engine/font-cache';
|
|
18
|
+
export { DocumentLayoutSession } from './worker-layout';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/components/docs/layout/hyphenation/patterns/uk.ts
|
|
2
2
|
/**
|
|
3
3
|
* Copyright 2023-present DreamNum Co., Ltd.
|
|
4
4
|
*
|
|
@@ -20,5 +20,4 @@ const Uk = [
|
|
|
20
20
|
[]
|
|
21
21
|
];
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
exports.Uk = Uk;
|
|
23
|
+
export { Uk };
|