@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
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IPosition } from '@univerjs/core';
|
|
17
|
+
import { BorderStyleTypes } from '@univerjs/core';
|
|
17
18
|
import type { UniverRenderingContext } from '../context';
|
|
18
19
|
import type { IDocumentSkeletonLine } from './i-document-skeleton-cached';
|
|
19
|
-
import { BorderStyleTypes } from '@univerjs/core';
|
|
20
20
|
import { BORDER_TYPE, ORIENTATION_TYPE } from './const';
|
|
21
21
|
import { Vector2 } from './vector2';
|
|
22
22
|
export interface IContext2D extends CanvasRenderingContext2D {
|
|
@@ -127,6 +127,7 @@ export interface IParagraphConfig {
|
|
|
127
127
|
pDrawingAnchor?: Map<number, IDocumentSkeletonDrawingAnchor>;
|
|
128
128
|
}
|
|
129
129
|
export interface IFontCreateConfig {
|
|
130
|
+
stackedText?: boolean;
|
|
130
131
|
fontStyle: IDocumentSkeletonFontStyle;
|
|
131
132
|
textStyle: IDocumentLayoutTextStyle;
|
|
132
133
|
charSpace: number;
|
|
@@ -66,6 +66,7 @@ export declare function hasBasicLatin(text: string): boolean;
|
|
|
66
66
|
export declare function hasLatinOneSupplement(text: string): boolean;
|
|
67
67
|
export declare function hasLatinExtendedA(text: string): boolean;
|
|
68
68
|
export declare function hasLatinExtendedB(text: string): boolean;
|
|
69
|
+
export declare const graphemeSegmenter: Intl.Segmenter;
|
|
69
70
|
export declare function getFirstGrapheme(text: string): string | null;
|
|
70
71
|
export declare function isEmojiGrapheme(grapheme: string): boolean;
|
|
71
72
|
export declare function startWithEmoji(text: string): boolean;
|
|
@@ -84,19 +85,19 @@ export declare function pxToInch(px: number): number;
|
|
|
84
85
|
export declare function getScale(parentScale: IScale): number;
|
|
85
86
|
export declare function getCellPositionByIndex(row: number, column: number, rowHeightAccumulation: number[], columnWidthAccumulation: number[]): IPosition;
|
|
86
87
|
export declare function mergeInfoOffset(mergeInfo: IRangeWithCoord, offsetX: number, offsetY: number): {
|
|
87
|
-
startY: number;
|
|
88
|
-
endY: number;
|
|
89
|
-
startX: number;
|
|
90
|
-
endX: number;
|
|
91
|
-
rangeType?: import("@univerjs/core").RANGE_TYPE;
|
|
92
|
-
startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
93
|
-
endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
94
|
-
startRow: number;
|
|
95
|
-
endRow: number;
|
|
96
88
|
unitId?: string;
|
|
97
89
|
sheetId?: string;
|
|
90
|
+
startRow: number;
|
|
91
|
+
endRow: number;
|
|
98
92
|
startColumn: number;
|
|
99
93
|
endColumn: number;
|
|
94
|
+
rangeType?: import("@univerjs/core").RANGE_TYPE;
|
|
95
|
+
startAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
96
|
+
endAbsoluteRefType?: import("@univerjs/core").AbsoluteRefType;
|
|
97
|
+
startY: number;
|
|
98
|
+
endY: number;
|
|
99
|
+
startX: number;
|
|
100
|
+
endX: number;
|
|
100
101
|
};
|
|
101
102
|
export declare function isRectIntersect(rect1: IBoundRectNoAngle, rect2: IBoundRectNoAngle): boolean;
|
|
102
103
|
export declare function injectStyle(styles: string[]): void;
|
|
@@ -20,6 +20,7 @@ import type { ComponentExtension } from './extension';
|
|
|
20
20
|
import { BaseObject } from '../base-object';
|
|
21
21
|
export declare class RenderComponent<T, U, V> extends BaseObject {
|
|
22
22
|
private _extensions;
|
|
23
|
+
canReuseViewportCache(): boolean;
|
|
23
24
|
get extensions(): Map<string, ComponentExtension<T, U, V>>;
|
|
24
25
|
register(...extensions: Array<ComponentExtension<T, U, V>>): IDisposable;
|
|
25
26
|
getExtensionsByOrder(): ComponentExtension<T, U, V>[];
|
|
@@ -41,6 +41,7 @@ export interface IDocumentLayoutTextStyle extends ITextStyle {
|
|
|
41
41
|
ol?: IDocumentLayoutTextDecoration;
|
|
42
42
|
}
|
|
43
43
|
export interface IDocumentLayoutRenderConfig extends IDocumentRenderConfig {
|
|
44
|
+
stackedText?: boolean;
|
|
44
45
|
topAlignExactLineSpacing?: BooleanNumber;
|
|
45
46
|
useTextInkForHitTesting?: BooleanNumber;
|
|
46
47
|
preservePunctuationSpacing?: BooleanNumber;
|
|
@@ -49,9 +49,9 @@ export declare class DocumentFootnoteLayout {
|
|
|
49
49
|
getTableBodyLimit(page: IDocumentSkeletonPage, currentPages: IDocumentSkeletonPage[], config: ISectionBreakConfig, table: IDocumentSkeletonTable): number;
|
|
50
50
|
/** Measure table slices without publishing speculative notes on body pages. */
|
|
51
51
|
createTablePagination(page: IDocumentSkeletonPage, config: ISectionBreakConfig, availableHeight: number): {
|
|
52
|
-
renumberWholeRow: (table: IDocumentSkeletonTable, rows: IDocumentSkeletonTable[
|
|
53
|
-
measureRow: (table: IDocumentSkeletonTable, rows: IDocumentSkeletonTable[
|
|
54
|
-
append: (table: IDocumentSkeletonTable, row: IDocumentSkeletonTable[
|
|
52
|
+
renumberWholeRow: (table: IDocumentSkeletonTable, rows: IDocumentSkeletonTable['rows'], remainingHeight: number) => boolean;
|
|
53
|
+
measureRow: (table: IDocumentSkeletonTable, rows: IDocumentSkeletonTable['rows'], previousHeights?: readonly number[]) => number[] | undefined;
|
|
54
|
+
append: (table: IDocumentSkeletonTable, row: IDocumentSkeletonTable['rows'][number]) => number | undefined;
|
|
55
55
|
hasContinuation: () => boolean;
|
|
56
56
|
nextPage: () => void;
|
|
57
57
|
} | undefined;
|
package/lib/types/components/{index.d.ts → docs/layout/line-breaker/document-line-breaker.d.ts}
RENAMED
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export
|
|
19
|
-
export { RENDER_RAW_FORMULA_KEY } from './sheets/sheet.render-skeleton';
|
|
20
|
-
export * from './slides';
|
|
16
|
+
import type { IDocumentBody, IDocumentData, IParagraphStyle } from '@univerjs/core';
|
|
17
|
+
import { LineBreaker } from './line-breaker';
|
|
18
|
+
export declare function createDocumentLineBreaker(document: IDocumentData, paragraphStyle: IParagraphStyle, content: string, start: number, body?: IDocumentBody | undefined): LineBreaker;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { Nullable } from '@univerjs/core';
|
|
17
|
+
import { BooleanNumber } from '@univerjs/core';
|
|
17
18
|
import type { ILineBreakRule } from './rule';
|
|
18
19
|
import { Break } from './break';
|
|
19
20
|
interface ILineBreakExtension {
|
|
@@ -25,23 +26,30 @@ export interface IBreakPoints {
|
|
|
25
26
|
}
|
|
26
27
|
export declare class LineBreaker implements IBreakPoints {
|
|
27
28
|
content: string;
|
|
28
|
-
|
|
29
|
+
protected _pos: number;
|
|
29
30
|
private _lastPos;
|
|
30
31
|
private _curClass;
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
protected _codePoint: Nullable<number>;
|
|
33
|
+
protected _lastCodePoint: Nullable<number>;
|
|
33
34
|
private _nextClass;
|
|
34
|
-
private
|
|
35
|
-
private
|
|
36
|
-
private
|
|
35
|
+
private _lb8a;
|
|
36
|
+
private _lb21a;
|
|
37
|
+
private _lb30a;
|
|
37
38
|
private _rule;
|
|
38
39
|
constructor(content: string);
|
|
39
40
|
use(extension: ILineBreakExtension): this;
|
|
40
41
|
addRule(key: string, rule: ILineBreakRule): this;
|
|
41
42
|
nextBreakPoint(): Break | null;
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
protected _getNextCodePoint(): number;
|
|
44
|
+
protected _nextCharClass(): number;
|
|
44
45
|
private _getSimpleBreak;
|
|
45
46
|
private _getPairTableBreak;
|
|
46
47
|
}
|
|
48
|
+
export declare class DocumentLineBreaker extends LineBreaker {
|
|
49
|
+
private readonly _wordWrap;
|
|
50
|
+
private readonly _languageAt?;
|
|
51
|
+
private readonly _inferKorean;
|
|
52
|
+
constructor(content: string, _wordWrap: BooleanNumber, _languageAt?: ((offset: number) => string | undefined) | undefined, _inferKorean?: boolean);
|
|
53
|
+
protected _nextCharClass(): number;
|
|
54
|
+
}
|
|
47
55
|
export {};
|
|
@@ -31,6 +31,8 @@ export declare class FontCache {
|
|
|
31
31
|
private static _context;
|
|
32
32
|
private static _fontDataMap;
|
|
33
33
|
private static _globalFontMeasureCache;
|
|
34
|
+
private static _metricsRevision;
|
|
35
|
+
static get metricsRevision(): number;
|
|
34
36
|
static get globalFontMeasureCache(): Map<string, Map<string, IMeasureTextCache>>;
|
|
35
37
|
static invalidateMetrics(matches: (fontStyle: string) => boolean): boolean;
|
|
36
38
|
static setFontMeasureCache(fontStyle: string, content: string, tm: IMeasureTextCache): void;
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { DocumentDataModel, ICustomRangeForInterceptor, IDocDrawingBase, INumberUnit, IObjectPositionH, IObjectPositionV, Nullable, PositionedObjectLayoutType } from '@univerjs/core';
|
|
17
|
+
import { BooleanNumber, GridType, SpacingRule } from '@univerjs/core';
|
|
17
18
|
import type { IDocumentSkeletonCached, IDocumentSkeletonColumn, IDocumentSkeletonDivide, IDocumentSkeletonFontStyle, IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage, IDocumentSkeletonParagraphBorders, IDocumentSkeletonRow, IDocumentSkeletonSection, IDocumentSkeletonTable, ISkeletonResourceReference } from '../../../basics/i-document-skeleton-cached';
|
|
18
19
|
import type { IDocsConfig, IParagraphConfig, ISectionBreakConfig } from '../../../basics/interfaces';
|
|
19
20
|
import type { IBoundRectNoAngle } from '../../../basics/vector2';
|
|
@@ -26,7 +27,6 @@ import type { DocumentFootnoteLayout } from './footnote-layout';
|
|
|
26
27
|
import type { Hyphen } from './hyphenation/hyphen';
|
|
27
28
|
import type { LanguageDetector } from './hyphenation/language-detector';
|
|
28
29
|
import type { INoteReferenceLayout } from './note-numbering';
|
|
29
|
-
import { BooleanNumber, GridType, SpacingRule } from '@univerjs/core';
|
|
30
30
|
export declare function getLastPage(pages: IDocumentSkeletonPage[]): IDocumentSkeletonPage;
|
|
31
31
|
export declare function getLastSection(page: IDocumentSkeletonPage): IDocumentSkeletonSection;
|
|
32
32
|
export declare function getLastColumn(page: IDocumentSkeletonPage): IDocumentSkeletonColumn;
|
|
@@ -164,6 +164,7 @@ export declare function getPositionHorizon(positionH: IObjectPositionH, column:
|
|
|
164
164
|
export declare function getPositionVertical(positionV: IObjectPositionV, page: IDocumentSkeletonPage, lineTop: number, lineHeight: number, objectHeight: number, blockAnchorTop?: number, isPageBreak?: boolean): number | undefined;
|
|
165
165
|
export declare function getGlyphGroupWidth(divide: IDocumentSkeletonDivide, excludeTrailingSpaces?: boolean): number;
|
|
166
166
|
interface IFontCreateConfig {
|
|
167
|
+
stackedText?: boolean;
|
|
167
168
|
documentCompatibilityPolicy?: IDocumentCompatibilityPolicy;
|
|
168
169
|
fontStyle: IDocumentSkeletonFontStyle;
|
|
169
170
|
textStyle: IDocumentLayoutTextStyle;
|
|
@@ -176,6 +177,7 @@ interface IFontCreateConfig {
|
|
|
176
177
|
export declare function clearFontCreateConfigCache(): void;
|
|
177
178
|
export declare function getFontConfigFromLastGlyph(glyph: IDocumentSkeletonGlyph, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IDocumentLayoutParagraphStyle): {
|
|
178
179
|
documentCompatibilityPolicy: IDocumentCompatibilityPolicy;
|
|
180
|
+
stackedText: boolean | undefined;
|
|
179
181
|
fontStyle: IDocumentSkeletonFontStyle;
|
|
180
182
|
textStyle: IDocumentLayoutTextStyle;
|
|
181
183
|
balanceSingleByteDoubleByteWidth: BooleanNumber | undefined;
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { DocumentDataModel, ICustomBlock, ICustomDecorationForInterceptor, ICustomRangeForInterceptor, ICustomTable, IDisposable, ITable, JSONXActions, Nullable } from '@univerjs/core';
|
|
17
|
-
import
|
|
16
|
+
import type { DocumentDataModel, ICustomBlock, ICustomDecorationForInterceptor, ICustomRangeForInterceptor, ICustomTable, IDisposable, IParagraphStyle, ITable, JSONXActions, Nullable } from '@univerjs/core';
|
|
17
|
+
import { BooleanNumber } from '@univerjs/core';
|
|
18
|
+
import type { IDocumentLayoutBody, IDocumentLayoutColumnGroup, IDocumentLayoutCustomColumnGroup, IDocumentLayoutParagraph, IDocumentLayoutRenderConfig, IDocumentLayoutSectionBreak, IDocumentLayoutSnapshot, IDocumentLayoutTextRun } from '../document-layout-presentation';
|
|
18
19
|
import type { IHeadingSection } from './heading-sections';
|
|
19
20
|
import { DataStreamTreeNode } from './data-stream-tree-node';
|
|
20
21
|
interface ITableNodeCache {
|
|
@@ -90,6 +91,9 @@ export declare class DocumentViewModel implements IDisposable {
|
|
|
90
91
|
getCollapsedHeadingAtOffset(offset: number): IHeadingSection | undefined;
|
|
91
92
|
getBody(): IDocumentLayoutBody | undefined;
|
|
92
93
|
getSnapshot(): IDocumentLayoutSnapshot;
|
|
94
|
+
getParagraphWordWrap(paragraphStyle: IParagraphStyle): BooleanNumber | undefined;
|
|
95
|
+
getLayoutRenderConfig(config: IDocumentLayoutRenderConfig): IDocumentLayoutRenderConfig;
|
|
96
|
+
createLineBreaker(content: string, paragraphStyle: IParagraphStyle, start: number): import("../layout/line-breaker/line-breaker").LineBreaker;
|
|
93
97
|
getDataModel(): DocumentDataModel;
|
|
94
98
|
getSelfOrHeaderFooterViewModel(segmentId?: string): DocumentViewModel;
|
|
95
99
|
reset(documentDataModel: DocumentDataModel): void;
|
|
@@ -119,6 +123,7 @@ export declare class DocumentViewModel implements IDisposable {
|
|
|
119
123
|
private _buildTableCache;
|
|
120
124
|
private _buildColumnGroupCache;
|
|
121
125
|
private _buildTextRunsCache;
|
|
126
|
+
protected _createChildViewModel(model: DocumentDataModel, tableSource?: Record<string, ITable>): DocumentViewModel;
|
|
122
127
|
private _buildHeaderFooterViewModel;
|
|
123
128
|
}
|
|
124
129
|
export {};
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IRange, IScale, Nullable } from '@univerjs/core';
|
|
17
|
+
import { Registry } from '@univerjs/core';
|
|
17
18
|
import type { BaseObject } from '../base-object';
|
|
18
19
|
import type { IBoundRectNoAngle, Vector2 } from '../basics/vector2';
|
|
19
20
|
import type { UniverRenderingContext } from '../context';
|
|
20
21
|
import type { IDocumentLayoutRenderConfig } from './docs/document-layout-presentation';
|
|
21
|
-
import { Registry } from '@univerjs/core';
|
|
22
22
|
export interface IExtensionConfig {
|
|
23
23
|
originTranslate?: Vector2;
|
|
24
24
|
spanStartPoint?: Vector2;
|
|
@@ -34,9 +34,12 @@ export interface IDrawInfo {
|
|
|
34
34
|
fontRenderRanges?: IRange[];
|
|
35
35
|
hasMergeData?: boolean;
|
|
36
36
|
viewBound?: IBoundRectNoAngle;
|
|
37
|
+
/** Physical-pixel damage clip, before any extension-specific clipping. */
|
|
38
|
+
textClipBound?: IBoundRectNoAngle;
|
|
37
39
|
}
|
|
38
40
|
export declare class ComponentExtension<T, U, V> {
|
|
39
41
|
uKey: string;
|
|
42
|
+
viewportCacheReusable: boolean;
|
|
40
43
|
type: U;
|
|
41
44
|
protected Z_INDEX: number;
|
|
42
45
|
parent: Nullable<BaseObject>;
|
|
@@ -44,6 +47,7 @@ export declare class ComponentExtension<T, U, V> {
|
|
|
44
47
|
translateY: number;
|
|
45
48
|
extensionOffset: IExtensionConfig;
|
|
46
49
|
get zIndex(): number;
|
|
50
|
+
canReuseViewportCache(): boolean;
|
|
47
51
|
draw(_ctx: UniverRenderingContext, _parentScale: IScale, _skeleton: T, _diff?: V, _more?: IDrawInfo): void;
|
|
48
52
|
clearCache(): void;
|
|
49
53
|
protected _getScale(parentScale: IScale): number;
|
|
@@ -18,6 +18,8 @@ export declare const BORDER_Z_INDEX = 50;
|
|
|
18
18
|
export declare const FONT_EXTENSION_Z_INDEX = 45;
|
|
19
19
|
export declare const BG_Z_INDEX = 21;
|
|
20
20
|
export declare const PRINTING_BG_Z_INDEX = 21;
|
|
21
|
+
export declare const UNIVER_WATERMARK_LAYER_INDEX = 10;
|
|
22
|
+
export declare const UNIVER_WATERMARK_STORAGE_KEY = "UNIVER_WATERMARK_STORAGE_KEY";
|
|
21
23
|
export declare const EXPAND_SIZE_FOR_RENDER_OVERFLOW = 20;
|
|
22
24
|
export declare const MIN_TEXT_RENDER_HEIGHT_IN_SCREEN_PX = 4;
|
|
23
25
|
export declare function shouldRenderRowText(rowHeight: number, scaleY?: number): boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { IRange } from '@univerjs/core';
|
|
17
|
+
import { Disposable } from '@univerjs/core';
|
|
18
|
+
import type { SpreadsheetSkeleton } from '../sheet.render-skeleton';
|
|
19
|
+
import { UniverRenderingContext } from '../../../context';
|
|
20
|
+
/** Reuse native edge blits, preserving their order and individual alpha/clip composition. */
|
|
21
|
+
export declare class BorderRowCache extends Disposable {
|
|
22
|
+
private readonly _rows;
|
|
23
|
+
private _commands;
|
|
24
|
+
draw(ctx: UniverRenderingContext, skeleton: SpreadsheetSkeleton, row: number, range: IRange, resolveColor: (color: string) => string, paint: (target: UniverRenderingContext) => void): boolean;
|
|
25
|
+
clear(): void;
|
|
26
|
+
dispose(): void;
|
|
27
|
+
}
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { IRange, IScale, ObjectMatrix } from '@univerjs/core';
|
|
17
|
+
import { BorderStyleTypes } from '@univerjs/core';
|
|
17
18
|
import type { UniverRenderingContext } from '../../../context';
|
|
18
19
|
import type { IDrawInfo } from '../../extension';
|
|
19
20
|
import type { IBorderCache } from '../interfaces';
|
|
20
21
|
import type { SpreadsheetSkeleton } from '../sheet.render-skeleton';
|
|
21
|
-
import { BorderStyleTypes } from '@univerjs/core';
|
|
22
22
|
import { SheetExtension } from './sheet-extension';
|
|
23
23
|
interface IRenderBorderContext {
|
|
24
24
|
ctx: UniverRenderingContext;
|
|
@@ -27,12 +27,20 @@ interface IRenderBorderContext {
|
|
|
27
27
|
spreadsheetSkeleton: SpreadsheetSkeleton;
|
|
28
28
|
diffRanges: IRange[];
|
|
29
29
|
viewRanges: IRange[];
|
|
30
|
+
lineStyle?: BorderStyleTypes;
|
|
31
|
+
lineWidth?: number;
|
|
32
|
+
lineColor?: string;
|
|
30
33
|
}
|
|
31
34
|
export declare class Border extends SheetExtension {
|
|
35
|
+
readonly viewportCacheReusable: boolean;
|
|
32
36
|
uKey: string;
|
|
33
37
|
Z_INDEX: number;
|
|
34
38
|
preStyle: BorderStyleTypes;
|
|
35
39
|
preColor: string;
|
|
40
|
+
private readonly _strokeCache;
|
|
41
|
+
private readonly _rowCache;
|
|
42
|
+
clearCache(): void;
|
|
43
|
+
dispose(): void;
|
|
36
44
|
draw(ctx: UniverRenderingContext, _parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton, diffRanges: IRange[], { viewRanges }: IDrawInfo): void;
|
|
37
45
|
renderBorderByCell(renderBorderContext: IRenderBorderContext, row: number, col: number, borderCacheItem: IBorderCache): true | undefined;
|
|
38
46
|
private _getOverflowExclusion;
|
|
@@ -26,6 +26,7 @@ export interface IColumnsHeaderCfgParam {
|
|
|
26
26
|
* Column Header Bar, include a lot of columns header
|
|
27
27
|
*/
|
|
28
28
|
export declare class ColumnHeaderLayout extends SheetExtension {
|
|
29
|
+
readonly viewportCacheReusable: boolean;
|
|
29
30
|
uKey: string;
|
|
30
31
|
Z_INDEX: number;
|
|
31
32
|
columnsCfg: Record<number, IAColumnCfg>;
|
|
@@ -18,6 +18,7 @@ import type { UniverRenderingContext } from '../../../context';
|
|
|
18
18
|
import type { SpreadsheetSkeleton } from '../sheet.render-skeleton';
|
|
19
19
|
import { SheetExtension } from './sheet-extension';
|
|
20
20
|
export declare class Custom extends SheetExtension {
|
|
21
|
+
viewportCacheReusable: boolean;
|
|
21
22
|
protected Z_INDEX: number;
|
|
22
23
|
uKey: string;
|
|
23
24
|
draw(ctx: UniverRenderingContext, _parentScale: IScale, skeleton: SpreadsheetSkeleton, diffRanges: IRange[] | undefined): void;
|
|
@@ -52,11 +52,16 @@ interface IRenderFontContext {
|
|
|
52
52
|
cellInfo: ICellWithCoord;
|
|
53
53
|
}
|
|
54
54
|
export declare class Font extends SheetExtension {
|
|
55
|
+
readonly viewportCacheReusable: boolean;
|
|
55
56
|
uKey: string;
|
|
56
57
|
Z_INDEX: number;
|
|
57
58
|
private _imageFallback;
|
|
59
|
+
private readonly _primitiveCache;
|
|
60
|
+
clearCache(): void;
|
|
61
|
+
dispose(): void;
|
|
58
62
|
constructor();
|
|
59
63
|
getDocuments(): any;
|
|
64
|
+
getNativeTextClipRepairRanges(skeleton: SpreadsheetSkeleton): IRange[];
|
|
60
65
|
/**
|
|
61
66
|
* Safely draw fallback image, checking if it's fully loaded first.
|
|
62
67
|
* If not loaded, draw a simple gray rectangle as placeholder.
|
|
@@ -64,6 +69,7 @@ export declare class Font extends SheetExtension {
|
|
|
64
69
|
private _drawFallbackImage;
|
|
65
70
|
draw(ctx: UniverRenderingContext, parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton, diffRanges: IRange[], moreBoundsInfo: IDrawInfo): void;
|
|
66
71
|
_renderFontEachCell(renderFontCtx: IRenderFontContext, row: number, col: number, fontMatrix: ObjectMatrix<IFontCacheItem>, cacheValue?: IFontCacheItem): boolean;
|
|
72
|
+
private _canRenderPlainTextWithoutClip;
|
|
67
73
|
private _renderPlainTextWithoutClip;
|
|
68
74
|
private _renderImages;
|
|
69
75
|
/**
|
|
@@ -18,6 +18,7 @@ import type { UniverRenderingContext } from '../../../context';
|
|
|
18
18
|
import type { SpreadsheetSkeleton } from '../sheet.render-skeleton';
|
|
19
19
|
import { SheetExtension } from './sheet-extension';
|
|
20
20
|
export declare class Marker extends SheetExtension {
|
|
21
|
+
readonly viewportCacheReusable: boolean;
|
|
21
22
|
protected Z_INDEX: number;
|
|
22
23
|
uKey: string;
|
|
23
24
|
draw(ctx: UniverRenderingContext, parentScale: IScale, skeleton: SpreadsheetSkeleton, diffRanges: IRange[]): void;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { Disposable } from '@univerjs/core';
|
|
17
|
+
import type { IBoundRectNoAngle } from '../../../basics/vector2';
|
|
18
|
+
import type { UniverRenderingContext } from '../../../context';
|
|
19
|
+
/** Rasterize at a stable local origin, retaining the native physical resolution and antialiasing. */
|
|
20
|
+
export declare class RenderPrimitiveCache extends Disposable {
|
|
21
|
+
private readonly _maxEntries;
|
|
22
|
+
private readonly _bitmaps;
|
|
23
|
+
private _contexts;
|
|
24
|
+
private _pixels;
|
|
25
|
+
private _fontRevision;
|
|
26
|
+
private _fonts?;
|
|
27
|
+
private _textClipBound?;
|
|
28
|
+
private _textClipRepairCanvas?;
|
|
29
|
+
constructor(_maxEntries?: number);
|
|
30
|
+
draw(ctx: UniverRenderingContext, draw: () => void, textClipBound?: IBoundRectNoAngle): void;
|
|
31
|
+
clear(): void;
|
|
32
|
+
dispose(): void;
|
|
33
|
+
private _getContext;
|
|
34
|
+
private _stroke;
|
|
35
|
+
private _fillText;
|
|
36
|
+
private _trim;
|
|
37
|
+
}
|
|
@@ -23,6 +23,7 @@ export interface IRowsHeaderCfgParam {
|
|
|
23
23
|
rowsCfg?: Record<number, IARowCfg>;
|
|
24
24
|
}
|
|
25
25
|
export declare class RowHeaderLayout extends SheetExtension {
|
|
26
|
+
readonly viewportCacheReusable: boolean;
|
|
26
27
|
uKey: string;
|
|
27
28
|
Z_INDEX: number;
|
|
28
29
|
rowsCfg: Record<number, IARowCfg>;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { DocumentDataModel, ITable } from '@univerjs/core';
|
|
17
|
+
import type { IDocumentLayoutRenderConfig } from '../docs/document-layout-presentation';
|
|
18
|
+
import { LineBreaker } from '../docs/layout/line-breaker/line-breaker';
|
|
19
|
+
import { DocumentViewModel } from '../docs/view-model/document-view-model';
|
|
20
|
+
export declare class SheetCellDocumentViewModel extends DocumentViewModel {
|
|
21
|
+
getLayoutRenderConfig(config: IDocumentLayoutRenderConfig): IDocumentLayoutRenderConfig;
|
|
22
|
+
getParagraphWordWrap(): undefined;
|
|
23
|
+
createLineBreaker(content: string): LineBreaker;
|
|
24
|
+
protected _createChildViewModel(model: DocumentDataModel, tableSource?: Record<string, ITable>): SheetCellDocumentViewModel;
|
|
25
|
+
}
|
|
@@ -22,6 +22,9 @@ import { RenderComponent } from '../component';
|
|
|
22
22
|
export declare abstract class SheetComponent extends RenderComponent<SpreadsheetSkeleton, SHEET_EXTENSION_TYPE, IRange[]> {
|
|
23
23
|
private _skeleton?;
|
|
24
24
|
constructor(oKey: string, _skeleton?: SpreadsheetSkeleton | undefined);
|
|
25
|
+
protected _viewportCacheFontRevision: number;
|
|
26
|
+
canReuseViewportCache(): boolean;
|
|
27
|
+
onViewportCacheReuse(viewportInfo: IViewportInfo): void;
|
|
25
28
|
getSkeleton(): SpreadsheetSkeleton | undefined;
|
|
26
29
|
updateSkeleton(spreadsheetSkeleton: SpreadsheetSkeleton): void;
|
|
27
30
|
render(mainCtx: UniverRenderingContext, bounds?: IViewportInfo): this | undefined;
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { ICellDataForSheetInterceptor, ICellInfo, IColAutoWidthInfo, IColumnRange, IDocumentData, IPaddingData, IRange, IRowAutoHeightInfo, IRowRange, ISize, IStyleData, ITextRotation, Nullable, Styles, Worksheet } from '@univerjs/core';
|
|
17
|
+
import { BooleanNumber, DocumentDataModel, HorizontalAlign, IConfigService, IContextService, Injector, LocaleService, ObjectMatrix, SheetSkeleton, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
17
18
|
import type { IBoundRectNoAngle, IPoint, IViewportInfo } from '../../basics/vector2';
|
|
18
19
|
import type { Scene } from '../../scene';
|
|
19
20
|
import type { IFontCacheItem, IStylesCache } from './interfaces';
|
|
20
|
-
import { BooleanNumber, DocumentDataModel, HorizontalAlign, IConfigService, IContextService, Injector, LocaleService, ObjectMatrix, SheetSkeleton, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
21
21
|
import { DocumentSkeleton } from '../docs/layout/doc-skeleton';
|
|
22
22
|
import { SHEET_VIEWPORT_KEY } from './interfaces';
|
|
23
23
|
interface IRowColumnRange extends IRowRange, IColumnRange {
|
|
@@ -77,11 +77,16 @@ export declare class SpreadsheetSkeleton extends SheetSkeleton {
|
|
|
77
77
|
private _visibleRangeMap;
|
|
78
78
|
private _overflowCache;
|
|
79
79
|
private _incrementalFontRenderRanges;
|
|
80
|
+
private _preparedStyleRanges;
|
|
81
|
+
private _preparedMergeStyleRanges;
|
|
80
82
|
private _stylesCache;
|
|
81
83
|
private _clearTaskId;
|
|
82
84
|
/** A matrix to store if a (row, column) position has render cache. */
|
|
83
85
|
private _handleBgMatrix;
|
|
84
86
|
private _handleBorderMatrix;
|
|
87
|
+
private _emptyFontCache;
|
|
88
|
+
private readonly _nativeTextClipCache;
|
|
89
|
+
private readonly _plainTextVerticalOverflowByRow;
|
|
85
90
|
private _showGridlines;
|
|
86
91
|
private _gridlinesColor;
|
|
87
92
|
private _defaultGridlinesColor;
|
|
@@ -104,11 +109,15 @@ export declare class SpreadsheetSkeleton extends SheetSkeleton {
|
|
|
104
109
|
get stylesCache(): IStylesCache;
|
|
105
110
|
get overflowCache(): ObjectMatrix<IRange>;
|
|
106
111
|
get incrementalFontRenderRanges(): IRange[];
|
|
112
|
+
get nativeTextClipCache(): ObjectMatrix<boolean>;
|
|
113
|
+
/** Bound source-row checks by the current cache, without scanning retained font entries. */
|
|
114
|
+
getPlainTextVerticalOverflow(bound?: IBoundRectNoAngle): number;
|
|
107
115
|
get showGridlines(): BooleanNumber;
|
|
108
116
|
get gridlinesColor(): string | undefined;
|
|
109
117
|
get defaultGridlinesColor(): string;
|
|
110
118
|
dispose(): void;
|
|
111
119
|
setOverflowCache(value: ObjectMatrix<IRange>): void;
|
|
120
|
+
private _refreshPlainTextVerticalOverflow;
|
|
112
121
|
getFont(rowIndex: number, columnIndex: number): Nullable<IFontCacheItem>;
|
|
113
122
|
/**
|
|
114
123
|
* Get range in visible area (range in view bounds) and set into this._rowColumnSegment.
|
|
@@ -25,9 +25,18 @@ import type { SpreadsheetSkeleton } from './sheet.render-skeleton';
|
|
|
25
25
|
import { Canvas } from '../../canvas';
|
|
26
26
|
import { Documents } from '../docs/document';
|
|
27
27
|
import { SheetComponent } from './sheet-component';
|
|
28
|
+
interface IRepaintBound {
|
|
29
|
+
bound: IBoundRectNoAngle;
|
|
30
|
+
repairsMerge: boolean;
|
|
31
|
+
repairsNativeText?: boolean;
|
|
32
|
+
}
|
|
28
33
|
export declare class Spreadsheet extends SheetComponent {
|
|
29
34
|
private _allowCache;
|
|
35
|
+
viewportCacheReusable: boolean;
|
|
36
|
+
onViewportCacheReuse(viewportInfo: IViewportInfo): void;
|
|
30
37
|
private _scrollBufferCanvases;
|
|
38
|
+
private _scrollCacheStates;
|
|
39
|
+
private readonly _gridlineCache;
|
|
31
40
|
private _backgroundExtension;
|
|
32
41
|
private _borderExtension;
|
|
33
42
|
private _fontExtension;
|
|
@@ -49,7 +58,8 @@ export declare class Spreadsheet extends SheetComponent {
|
|
|
49
58
|
* @param ctx
|
|
50
59
|
* @param viewportInfo
|
|
51
60
|
*/
|
|
52
|
-
draw(ctx: UniverRenderingContext2D, viewportInfo: IViewportInfo, isMergeRepair?: boolean): void;
|
|
61
|
+
draw(ctx: UniverRenderingContext2D, viewportInfo: IViewportInfo, isMergeRepair?: boolean, textClipBound?: IBoundRectNoAngle): void;
|
|
62
|
+
private _getBorderRenderRanges;
|
|
53
63
|
addRenderFrameTimeMetricToScene(timeKey: string, val: number, scene: Scene): void;
|
|
54
64
|
addRenderTagToScene(renderKey: string, val: any, scene?: Scene): void;
|
|
55
65
|
/**
|
|
@@ -77,10 +87,19 @@ export declare class Spreadsheet extends SheetComponent {
|
|
|
77
87
|
*/
|
|
78
88
|
makeDirty(state?: boolean): this;
|
|
79
89
|
setDirtyArea(dirtyBounds: IBoundRectNoAngle[]): void;
|
|
80
|
-
renderByViewports(mainCtx: UniverRenderingContext2D,
|
|
90
|
+
renderByViewports(mainCtx: UniverRenderingContext2D, inputViewportInfo: IViewportInfo, spreadsheetSkeleton: SpreadsheetSkeleton): void;
|
|
81
91
|
private _getMergeRepairBounds;
|
|
82
92
|
private _getRepaintBounds;
|
|
83
|
-
|
|
93
|
+
private _addNativeTextClipRepairBounds;
|
|
94
|
+
private _requiresNativeFrozenEdgeRepaint;
|
|
95
|
+
private _requiresGapStripeRepaint;
|
|
96
|
+
private _requiresNativeGridlineRepaint;
|
|
97
|
+
private _requiresHorizontalResampling;
|
|
98
|
+
private _hasFractionalViewportPixels;
|
|
99
|
+
private _getScrollCacheState;
|
|
100
|
+
private _getReusableScrollCacheState;
|
|
101
|
+
private _canPaintHorizontalScrollIncrementally;
|
|
102
|
+
paintNewAreaForScrolling(viewportInfo: IViewportInfo, param: IPaintForScrolling, mergeRepairBounds?: IBoundRectNoAngle[], repaintBounds?: IRepaintBound[]): Canvas;
|
|
84
103
|
private _copyCacheForScrolling;
|
|
85
104
|
private _getScrollBufferCanvas;
|
|
86
105
|
/**
|
|
@@ -88,6 +107,7 @@ export declare class Spreadsheet extends SheetComponent {
|
|
|
88
107
|
*/
|
|
89
108
|
refreshCacheCanvas(viewportInfo: IViewportInfo, param: IPaintForRefresh): void;
|
|
90
109
|
render(mainCtx: UniverRenderingContext2D, viewportInfo: IViewportInfo): this | undefined;
|
|
110
|
+
private _canReuseStyleCache;
|
|
91
111
|
/**
|
|
92
112
|
* applyCache from cache canvas
|
|
93
113
|
* @param cacheCanvas Source Image
|
|
@@ -115,6 +135,7 @@ export declare class Spreadsheet extends SheetComponent {
|
|
|
115
135
|
* Clear the guide lines within a range in the table, to make room for merged cells and overflow.
|
|
116
136
|
*/
|
|
117
137
|
private _clearRectangle;
|
|
138
|
+
private _repairGridlineStroke;
|
|
118
139
|
/**
|
|
119
140
|
* Draw gap areas for row and column gaps.
|
|
120
141
|
* Clears gridlines in gap regions and fills with gap style.
|
|
@@ -127,3 +148,4 @@ export declare class Spreadsheet extends SheetComponent {
|
|
|
127
148
|
testShowRuler(cacheCtx: UniverRenderingContext2D, viewportInfo: IViewportInfo): void;
|
|
128
149
|
testGetRandomLightColor(): string;
|
|
129
150
|
}
|
|
151
|
+
export {};
|
package/lib/types/context.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface IUniverRenderingContextOptions {
|
|
|
21
21
|
export declare class UniverRenderingContext2D implements CanvasRenderingContext2D {
|
|
22
22
|
__mode: string;
|
|
23
23
|
private _transformCache;
|
|
24
|
+
private _cacheScale;
|
|
24
25
|
private _bitmapMutationId;
|
|
25
26
|
private _bitmapMutationTrackingDepth;
|
|
26
27
|
readonly canvas: HTMLCanvasElement;
|
|
@@ -71,6 +72,8 @@ export declare class UniverRenderingContext2D implements CanvasRenderingContext2
|
|
|
71
72
|
set shadowOffsetY(val: number);
|
|
72
73
|
get direction(): CanvasDirection;
|
|
73
74
|
set direction(val: CanvasDirection);
|
|
75
|
+
get lang(): string;
|
|
76
|
+
set lang(val: string);
|
|
74
77
|
get font(): string;
|
|
75
78
|
_normalizedCachedFont: string;
|
|
76
79
|
set font(val: string);
|
|
@@ -102,6 +105,8 @@ export declare class UniverRenderingContext2D implements CanvasRenderingContext2
|
|
|
102
105
|
scaleX: number;
|
|
103
106
|
scaleY: number;
|
|
104
107
|
};
|
|
108
|
+
/** Reuse scale queries during drawing; transform methods still invalidate the cached matrix. */
|
|
109
|
+
withCachedScale(draw: () => void): void;
|
|
105
110
|
getContextAttributes(): CanvasRenderingContext2DSettings;
|
|
106
111
|
isPointInStroke(x: number, y: number): boolean;
|
|
107
112
|
isPointInStroke(path: Path2D, x: number, y: number): boolean;
|