@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.
Files changed (293) hide show
  1. package/README.md +17 -5
  2. package/lib/{af-DK_CjRn6.js → af-CYmDZ4fF.js} +1 -2
  3. package/lib/{as-BPtSu6VN.js → as-Hwl1DGzz.js} +1 -2
  4. package/lib/{be-CrQ0smca.js → be-BgqsjH7X.js} +1 -2
  5. package/lib/{es/bg-CrQqGwni.js → bg-Dr9AqrKw.js} +1 -2
  6. package/lib/{bn-NCLZcWHi.js → bn-CSXZX5iN.js} +1 -2
  7. package/lib/{ca-SUf6Y2Om.js → ca-IXHA7IHe.js} +1 -2
  8. package/lib/cjs/{af-nci0ERu_.js → af-CqmqF0Xw.js} +1 -2
  9. package/lib/{es/as-BPtSu6VN.js → cjs/as-B87FsdSw.js} +2 -3
  10. package/lib/{es/be-CrQ0smca.js → cjs/be-CNhkUuRb.js} +2 -3
  11. package/lib/{bg-CrQqGwni.js → cjs/bg-CDisJl-p.js} +2 -3
  12. package/lib/{es/bn-NCLZcWHi.js → cjs/bn-Dqg1nQjF.js} +2 -3
  13. package/lib/{es/ca-SUf6Y2Om.js → cjs/ca-C2JWhM1T.js} +2 -3
  14. package/lib/{cop-C3sk0IUo.js → cjs/cop-DnGT3Wu0.js} +2 -3
  15. package/lib/{es/cs-CmAteokq.js → cjs/cs-Bcld5JGl.js} +2 -3
  16. package/lib/{es/cu-CBUlrW6Y.js → cjs/cu-BDRAFovc.js} +2 -3
  17. package/lib/{cy-BBPa6z2x.js → cjs/cy-CzqBJCby.js} +2 -3
  18. package/lib/{da-CCDXfXtG.js → cjs/da-B-OV-eRv.js} +2 -3
  19. package/lib/{es/de-1901-CWoAOigE.js → cjs/de-1901--cvwcIFw.js} +2 -3
  20. package/lib/{es/de-1996-BL6awyxG.js → cjs/de-1996-vXM7yufs.js} +2 -3
  21. package/lib/{es/de-ch-1901-hVThVHVb.js → cjs/de-ch-1901-BDvq3UYQ.js} +2 -3
  22. package/lib/cjs/doc-skeleton-xHfOLvcR.js +25054 -0
  23. package/lib/{el-monoton-D3aKqTz2.js → cjs/el-monoton-DwEKi7Jw.js} +2 -3
  24. package/lib/{el-polyton-ogVWcTzh.js → cjs/el-polyton-PS8gdtgu.js} +2 -3
  25. package/lib/{es/en-gb-B7Al27b_.js → cjs/en-gb-ClSGdac0.js} +2 -3
  26. package/lib/{es/es-DcaaHPU_.js → cjs/es-C4I4YZax.js} +2 -3
  27. package/lib/{es/et-B_spaleu.js → cjs/et-CLjO9-xw.js} +2 -3
  28. package/lib/{es/eu-Ctv_kq9Z.js → cjs/eu-B_kCozsW.js} +2 -3
  29. package/lib/{es/fi-RW5VB8Yp.js → cjs/fi-BJtl2WDQ.js} +2 -3
  30. package/lib/{es/fr-BC2onEz9.js → cjs/fr-BYuWkYn2.js} +2 -3
  31. package/lib/{fur-AC12wySk.js → cjs/fur-BdiBGCN8.js} +2 -3
  32. package/lib/{es/ga-Cn6LkudM.js → cjs/ga-n8qTR1-X.js} +2 -3
  33. package/lib/{gl-DZGc-K_G.js → cjs/gl-BqRCgOSg.js} +2 -3
  34. package/lib/{es/grc-DOlGgO8T.js → cjs/grc-D8O-iH37.js} +2 -3
  35. package/lib/{gu-Bjl0l-cf.js → cjs/gu-DygtD3li.js} +2 -3
  36. package/lib/{hi-DsAaTPCC.js → cjs/hi-DEC-InEV.js} +2 -3
  37. package/lib/{hr-DT1SBBes.js → cjs/hr-a7O_rBxx.js} +2 -3
  38. package/lib/{es/hsb-DC_ITc1e.js → cjs/hsb-Bfp3502p.js} +2 -3
  39. package/lib/cjs/{hu-CZLP-2fR.js → hu-D7cSusC6.js} +1 -2
  40. package/lib/{hy-e995ysyO.js → cjs/hy-B3kIFRzX.js} +2 -3
  41. package/lib/{es/ia-Cr4TJH0c.js → cjs/ia-CnD7r26i.js} +2 -3
  42. package/lib/{es/id-DifDyWg9.js → cjs/id-Bhq0C65a.js} +2 -3
  43. package/lib/cjs/index.js +11996 -34904
  44. package/lib/{is-BT8UVRze.js → cjs/is-Boso4Wtt.js} +2 -3
  45. package/lib/{es/it-Bt_Meacx.js → cjs/it-DLza1ntI.js} +2 -3
  46. package/lib/{es/ka-jyoLzyDE.js → cjs/ka-GcTuXZ9Z.js} +2 -3
  47. package/lib/{es/kmr-Cfwhwuff.js → cjs/kmr-BO40rTCu.js} +2 -3
  48. package/lib/{es/kn-C6Lov-DP.js → cjs/kn-Ddq64KCI.js} +2 -3
  49. package/lib/{es/la-DuvHjUWw.js → cjs/la-COWcxwux.js} +2 -3
  50. package/lib/{es/la-x-classic-yTyAOQEt.js → cjs/la-x-classic-0W7cnK_r.js} +2 -3
  51. package/lib/{es/la-x-liturgic-CXeQb4FY.js → cjs/la-x-liturgic-BdtQodH0.js} +2 -3
  52. package/lib/{lt-BBe8DlDF.js → cjs/lt-D0b8yQyY.js} +2 -3
  53. package/lib/{es/lv-Q2BBHnzp.js → cjs/lv-Ctlo0h9m.js} +2 -3
  54. package/lib/{es/ml-2xLVYkVY.js → cjs/ml-CbRB1eA2.js} +2 -3
  55. package/lib/{es/mn-cyrl-lHM4n0oC.js → cjs/mn-cyrl-SgbSKGlZ.js} +2 -3
  56. package/lib/{mn-cyrl-x-lmc-3aetruI8.js → cjs/mn-cyrl-x-lmc-B0BnNk_R.js} +2 -3
  57. package/lib/{mr-CjWJPVmH.js → cjs/mr-ak54QVek.js} +2 -3
  58. package/lib/{es/mul-ethi-D_CMSMEq.js → cjs/mul-ethi--mfKdN7U.js} +2 -3
  59. package/lib/{es/nb-DI8u59ch.js → cjs/nb-BnXKcr2P.js} +2 -3
  60. package/lib/{es/nl-BHQJ6Gvn.js → cjs/nl-Dge5vX8z.js} +2 -3
  61. package/lib/{es/nn-ntZvarUK.js → cjs/nn-CRTJwGhd.js} +2 -3
  62. package/lib/{es/no-B8ItS0F3.js → cjs/no-DEpHCmPt.js} +2 -3
  63. package/lib/{es/oc-P_i3-xLA.js → cjs/oc-CVPdcYGd.js} +2 -3
  64. package/lib/{or-50rxpoq4.js → cjs/or-C-yiXtmf.js} +2 -3
  65. package/lib/{pa-C54UG8eN.js → cjs/pa-LX-1ck9h.js} +2 -3
  66. package/lib/{es/pi-B9cgjyG1.js → cjs/pi-DAThicHl.js} +2 -3
  67. package/lib/{pl-9fg-ESVt.js → cjs/pl-DUiLinxp.js} +2 -3
  68. package/lib/{pms-BRGfm5gS.js → cjs/pms-LmryoS_2.js} +2 -3
  69. package/lib/{es/pt-Cum2_NUC.js → cjs/pt-B5qNCIx-.js} +2 -3
  70. package/lib/{es/rm-C0MIK9N4.js → cjs/rm-CH5skx47.js} +2 -3
  71. package/lib/{es/ro-0fmdH0HA.js → cjs/ro-NNZ0cAqO.js} +2 -3
  72. package/lib/{es/ru-v4l-ayaq.js → cjs/ru-wNSniMew.js} +2 -3
  73. package/lib/{es/sa-CKY9c_Vq.js → cjs/sa-L5rV6F9w.js} +2 -3
  74. package/lib/{sh-cyrl-BpCRFOmq.js → cjs/sh-cyrl-CGC8szSW.js} +2 -3
  75. package/lib/{es/sh-latn-sRy4Tuaj.js → cjs/sh-latn-BpdepEhC.js} +2 -3
  76. package/lib/{es/sk-_iOeDNrQ.js → cjs/sk-BErdPVV3.js} +2 -3
  77. package/lib/{sl-DpiklF-D.js → cjs/sl-C8287Lwt.js} +2 -3
  78. package/lib/{sr-cyrl-Dpzrbd0W.js → cjs/sr-cyrl-DCAx_hI2.js} +2 -3
  79. package/lib/{sv-CFm5y56M.js → cjs/sv-K7UxQYXS.js} +2 -3
  80. package/lib/{es/ta-BcghgTbD.js → cjs/ta-qft50Ghz.js} +2 -3
  81. package/lib/{es/te-B5Spl2Jk.js → cjs/te-UrPdXUCC.js} +2 -3
  82. package/lib/{th-DWX5iPSo.js → cjs/th-BcaEXLMD.js} +2 -3
  83. package/lib/{tk-BMbKB10q.js → cjs/tk-Cj--Pwwb.js} +2 -3
  84. package/lib/{es/tr-CIHIuzqc.js → cjs/tr-BaPKLwjo.js} +2 -3
  85. package/lib/{es/uk-Dir3oxLs.js → cjs/uk-Dn7dAWW6.js} +2 -3
  86. package/lib/cjs/worker.js +241 -0
  87. package/lib/{es/zh-latn-pinyin-BdYb-Ey_.js → cjs/zh-latn-pinyin-Cw62-680.js} +2 -3
  88. package/lib/{es/cop-C3sk0IUo.js → cop-B5tK6J-Z.js} +1 -2
  89. package/lib/{cs-CmAteokq.js → cs-5GDhZ_Ce.js} +1 -2
  90. package/lib/{cu-CBUlrW6Y.js → cu-BSm1hoGS.js} +1 -2
  91. package/lib/{es/cy-BBPa6z2x.js → cy-C9DIxPZF.js} +1 -2
  92. package/lib/{es/da-CCDXfXtG.js → da-BsG0TGcE.js} +1 -2
  93. package/lib/{de-1901-CWoAOigE.js → de-1901-qqf2iWLB.js} +1 -2
  94. package/lib/{de-1996-BL6awyxG.js → de-1996-LtGglqob.js} +1 -2
  95. package/lib/{de-ch-1901-hVThVHVb.js → de-ch-1901-COn1CKDv.js} +1 -2
  96. package/lib/doc-skeleton-h5WFPD-i.js +24029 -0
  97. package/lib/{es/el-monoton-D3aKqTz2.js → el-monoton-pORtlC9P.js} +1 -2
  98. package/lib/{es/el-polyton-ogVWcTzh.js → el-polyton-CDXn9JCY.js} +1 -2
  99. package/lib/{en-gb-B7Al27b_.js → en-gb-BGHhUzDC.js} +1 -2
  100. package/lib/es/{af-DK_CjRn6.js → af-CYmDZ4fF.js} +1 -2
  101. package/lib/{cjs/as-9-ZvOvbK.js → es/as-Hwl1DGzz.js} +2 -3
  102. package/lib/{cjs/be-CPDnc13A.js → es/be-BgqsjH7X.js} +2 -3
  103. package/lib/{cjs/bg-Tu2vvwIU.js → es/bg-Dr9AqrKw.js} +2 -3
  104. package/lib/{cjs/bn-CP4-u1Rh.js → es/bn-CSXZX5iN.js} +2 -3
  105. package/lib/{cjs/ca-9lX3QWYB.js → es/ca-IXHA7IHe.js} +2 -3
  106. package/lib/{cjs/cop-BpbDnfNH.js → es/cop-B5tK6J-Z.js} +2 -3
  107. package/lib/{cjs/cs-6wd1Lm8r.js → es/cs-5GDhZ_Ce.js} +2 -3
  108. package/lib/{cjs/cu-DoUwo0RX.js → es/cu-BSm1hoGS.js} +2 -3
  109. package/lib/{cjs/cy-uvacbUjY.js → es/cy-C9DIxPZF.js} +2 -3
  110. package/lib/{cjs/da-vuRoJfkB.js → es/da-BsG0TGcE.js} +2 -3
  111. package/lib/{cjs/de-1901-C-Rx0RIO.js → es/de-1901-qqf2iWLB.js} +2 -3
  112. package/lib/{cjs/de-1996-CqTjCS2g.js → es/de-1996-LtGglqob.js} +2 -3
  113. package/lib/{cjs/de-ch-1901-j-eB6ude.js → es/de-ch-1901-COn1CKDv.js} +2 -3
  114. package/lib/es/doc-skeleton-h5WFPD-i.js +24029 -0
  115. package/lib/{cjs/el-monoton-CdxEzdnL.js → es/el-monoton-pORtlC9P.js} +2 -3
  116. package/lib/{cjs/el-polyton-QS0KX3lc.js → es/el-polyton-CDXn9JCY.js} +2 -3
  117. package/lib/{cjs/en-gb-B4rmyRrO.js → es/en-gb-BGHhUzDC.js} +2 -3
  118. package/lib/{cjs/es-BA4drX0l.js → es/es-PSvYPNjB.js} +2 -3
  119. package/lib/{et-B_spaleu.js → es/et-CYUTaVWy.js} +1 -2
  120. package/lib/{eu-Ctv_kq9Z.js → es/eu-CRNA9JLT.js} +1 -2
  121. package/lib/{fi-RW5VB8Yp.js → es/fi-DNiE_U0X.js} +1 -2
  122. package/lib/{fr-BC2onEz9.js → es/fr-BIgh4Hkw.js} +1 -2
  123. package/lib/es/{fur-AC12wySk.js → fur-CoXvgQfx.js} +1 -2
  124. package/lib/{ga-Cn6LkudM.js → es/ga-D54K6YtG.js} +1 -2
  125. package/lib/es/{gl-DZGc-K_G.js → gl-Cx_3wrqA.js} +1 -2
  126. package/lib/{grc-DOlGgO8T.js → es/grc-gFF6GbE6.js} +1 -2
  127. package/lib/es/{gu-Bjl0l-cf.js → gu-9bPoO3RA.js} +1 -2
  128. package/lib/es/{hi-DsAaTPCC.js → hi-GilZHMjg.js} +1 -2
  129. package/lib/es/{hr-DT1SBBes.js → hr-DowcKODH.js} +1 -2
  130. package/lib/{hsb-DC_ITc1e.js → es/hsb-D_AuBPC_.js} +1 -2
  131. package/lib/es/{hu-DVk7Y_ka.js → hu-DghCDVxq.js} +1 -2
  132. package/lib/es/{hy-e995ysyO.js → hy-UUaeTG5g.js} +1 -2
  133. package/lib/{ia-Cr4TJH0c.js → es/ia-CvHYTdA2.js} +1 -2
  134. package/lib/{id-DifDyWg9.js → es/id-Dpxs7amD.js} +1 -2
  135. package/lib/es/index.js +11475 -34381
  136. package/lib/es/{is-BT8UVRze.js → is-CJ1vxS9j.js} +1 -2
  137. package/lib/{it-Bt_Meacx.js → es/it-CpWMQzhA.js} +1 -2
  138. package/lib/{ka-jyoLzyDE.js → es/ka-CCxCVfU6.js} +1 -2
  139. package/lib/{kmr-Cfwhwuff.js → es/kmr-dEjewOAw.js} +1 -2
  140. package/lib/{kn-C6Lov-DP.js → es/kn-Bjy8QS2v.js} +1 -2
  141. package/lib/{la-DuvHjUWw.js → es/la-AGdXyFmb.js} +1 -2
  142. package/lib/{la-x-classic-yTyAOQEt.js → es/la-x-classic-DcM9aTVI.js} +1 -2
  143. package/lib/{la-x-liturgic-CXeQb4FY.js → es/la-x-liturgic-DZCmbwFj.js} +1 -2
  144. package/lib/es/{lt-BBe8DlDF.js → lt-CN8ITi7t.js} +1 -2
  145. package/lib/{lv-Q2BBHnzp.js → es/lv-C-JuXj31.js} +1 -2
  146. package/lib/{ml-2xLVYkVY.js → es/ml-BM2UBzMU.js} +1 -2
  147. package/lib/{mn-cyrl-lHM4n0oC.js → es/mn-cyrl-CyRDZzA3.js} +1 -2
  148. package/lib/es/{mn-cyrl-x-lmc-3aetruI8.js → mn-cyrl-x-lmc-DbCWj2Po.js} +1 -2
  149. package/lib/es/{mr-CjWJPVmH.js → mr-BrkCTYf9.js} +1 -2
  150. package/lib/{mul-ethi-D_CMSMEq.js → es/mul-ethi-D9YZ9OXl.js} +1 -2
  151. package/lib/{nb-DI8u59ch.js → es/nb-DgKeJnSd.js} +1 -2
  152. package/lib/{cjs/nl-8OOgTtzV.js → es/nl-BIDJBXRA.js} +2 -3
  153. package/lib/{nn-ntZvarUK.js → es/nn-C4Gas4NI.js} +1 -2
  154. package/lib/{no-B8ItS0F3.js → es/no-CSP8-4c2.js} +1 -2
  155. package/lib/{oc-P_i3-xLA.js → es/oc-CyJ2Q9k9.js} +1 -2
  156. package/lib/es/{or-50rxpoq4.js → or-DUhKxVse.js} +1 -2
  157. package/lib/es/{pa-C54UG8eN.js → pa-NDvVySYt.js} +1 -2
  158. package/lib/{pi-B9cgjyG1.js → es/pi-znB0BT6g.js} +1 -2
  159. package/lib/es/{pl-9fg-ESVt.js → pl-CaFvP4tu.js} +1 -2
  160. package/lib/es/{pms-BRGfm5gS.js → pms-92V70vZ4.js} +1 -2
  161. package/lib/{pt-Cum2_NUC.js → es/pt-BKB_-X0N.js} +1 -2
  162. package/lib/{rm-C0MIK9N4.js → es/rm-C1letx81.js} +1 -2
  163. package/lib/{ro-0fmdH0HA.js → es/ro-BUzliR9z.js} +1 -2
  164. package/lib/{ru-v4l-ayaq.js → es/ru-B591x1qT.js} +1 -2
  165. package/lib/{sa-CKY9c_Vq.js → es/sa-JnsT9B1R.js} +1 -2
  166. package/lib/es/{sh-cyrl-BpCRFOmq.js → sh-cyrl-CLuomLGP.js} +1 -2
  167. package/lib/{sh-latn-sRy4Tuaj.js → es/sh-latn-DdZKFFaE.js} +1 -2
  168. package/lib/{sk-_iOeDNrQ.js → es/sk-A3STIA2C.js} +1 -2
  169. package/lib/es/{sl-DpiklF-D.js → sl-DjmW7S7C.js} +1 -2
  170. package/lib/es/{sr-cyrl-Dpzrbd0W.js → sr-cyrl-DzA2myNl.js} +1 -2
  171. package/lib/es/{sv-CFm5y56M.js → sv-B01JFt6B.js} +1 -2
  172. package/lib/{ta-BcghgTbD.js → es/ta-biPP5NX3.js} +1 -2
  173. package/lib/{te-B5Spl2Jk.js → es/te-DdPqCRaf.js} +1 -2
  174. package/lib/es/{th-DWX5iPSo.js → th-C4s1cxFT.js} +1 -2
  175. package/lib/es/{tk-BMbKB10q.js → tk-BfqDjfTh.js} +1 -2
  176. package/lib/{tr-CIHIuzqc.js → es/tr-C2sIij-w.js} +1 -2
  177. package/lib/{uk-Dir3oxLs.js → es/uk-DBx0redY.js} +1 -2
  178. package/lib/es/worker.js +238 -0
  179. package/lib/{zh-latn-pinyin-BdYb-Ey_.js → es/zh-latn-pinyin-CIit9tZA.js} +1 -2
  180. package/lib/{es-DcaaHPU_.js → es-PSvYPNjB.js} +1 -2
  181. package/lib/{cjs/et-C7DwwRsT.js → et-CYUTaVWy.js} +2 -3
  182. package/lib/{cjs/eu-ClKht9Pp.js → eu-CRNA9JLT.js} +2 -3
  183. package/lib/{cjs/fi-DuHvPYlK.js → fi-DNiE_U0X.js} +2 -3
  184. package/lib/{cjs/fr-B6k7oFRi.js → fr-BIgh4Hkw.js} +2 -3
  185. package/lib/{cjs/fur-BNKRNrN9.js → fur-CoXvgQfx.js} +2 -3
  186. package/lib/{cjs/ga-BZ0KaaVs.js → ga-D54K6YtG.js} +2 -3
  187. package/lib/{cjs/gl-CctrPjLD.js → gl-Cx_3wrqA.js} +2 -3
  188. package/lib/{cjs/grc-BE-oBfLv.js → grc-gFF6GbE6.js} +2 -3
  189. package/lib/{cjs/gu-Bv2fvk65.js → gu-9bPoO3RA.js} +2 -3
  190. package/lib/{cjs/hi-D9Q0HIae.js → hi-GilZHMjg.js} +2 -3
  191. package/lib/{cjs/hr-BWOyJbhV.js → hr-DowcKODH.js} +2 -3
  192. package/lib/{cjs/hsb-DbVr5Yti.js → hsb-D_AuBPC_.js} +2 -3
  193. package/lib/{hu-DVk7Y_ka.js → hu-DghCDVxq.js} +1 -2
  194. package/lib/{cjs/hy-ZPOiR2Pl.js → hy-UUaeTG5g.js} +2 -3
  195. package/lib/{cjs/ia-COSQW4z-.js → ia-CvHYTdA2.js} +2 -3
  196. package/lib/{cjs/id-5X-mf3_K.js → id-Dpxs7amD.js} +2 -3
  197. package/lib/index.js +11475 -34381
  198. package/lib/{cjs/is-B0v_L_rD.js → is-CJ1vxS9j.js} +2 -3
  199. package/lib/{cjs/it-BYUjiLCa.js → it-CpWMQzhA.js} +2 -3
  200. package/lib/{cjs/ka-CqhPSSIU.js → ka-CCxCVfU6.js} +2 -3
  201. package/lib/{cjs/kmr-BuxJ3UNX.js → kmr-dEjewOAw.js} +2 -3
  202. package/lib/{cjs/kn-CqFXlbev.js → kn-Bjy8QS2v.js} +2 -3
  203. package/lib/{cjs/la-BFXoayQr.js → la-AGdXyFmb.js} +2 -3
  204. package/lib/{cjs/la-x-classic-BYzNHSGU.js → la-x-classic-DcM9aTVI.js} +2 -3
  205. package/lib/{cjs/la-x-liturgic-vXxx2nLG.js → la-x-liturgic-DZCmbwFj.js} +2 -3
  206. package/lib/{cjs/lt-D2dXvF2J.js → lt-CN8ITi7t.js} +2 -3
  207. package/lib/{cjs/lv-bwpCf-Pe.js → lv-C-JuXj31.js} +2 -3
  208. package/lib/{cjs/ml-Cg8vxrAK.js → ml-BM2UBzMU.js} +2 -3
  209. package/lib/{cjs/mn-cyrl-B6DZDQQA.js → mn-cyrl-CyRDZzA3.js} +2 -3
  210. package/lib/{cjs/mn-cyrl-x-lmc-CXBgZUX1.js → mn-cyrl-x-lmc-DbCWj2Po.js} +2 -3
  211. package/lib/{cjs/mr-BBVGX8dy.js → mr-BrkCTYf9.js} +2 -3
  212. package/lib/{cjs/mul-ethi-CHBVIYMf.js → mul-ethi-D9YZ9OXl.js} +2 -3
  213. package/lib/{cjs/nb-BCuMJhLv.js → nb-DgKeJnSd.js} +2 -3
  214. package/lib/{nl-BHQJ6Gvn.js → nl-BIDJBXRA.js} +1 -2
  215. package/lib/{cjs/nn-XJlYZMaR.js → nn-C4Gas4NI.js} +2 -3
  216. package/lib/{cjs/no-BYOYolO_.js → no-CSP8-4c2.js} +2 -3
  217. package/lib/{cjs/oc-OPfeuk3n.js → oc-CyJ2Q9k9.js} +2 -3
  218. package/lib/{cjs/or-1B6R0ukY.js → or-DUhKxVse.js} +2 -3
  219. package/lib/{cjs/pa-D7Ec6DsZ.js → pa-NDvVySYt.js} +2 -3
  220. package/lib/{cjs/pi-CrindCzM.js → pi-znB0BT6g.js} +2 -3
  221. package/lib/{cjs/pl-Bhte1xma.js → pl-CaFvP4tu.js} +2 -3
  222. package/lib/{cjs/pms-B5-d2U_Z.js → pms-92V70vZ4.js} +2 -3
  223. package/lib/{cjs/pt-CtFPi0Il.js → pt-BKB_-X0N.js} +2 -3
  224. package/lib/{cjs/rm-fgO3AV82.js → rm-C1letx81.js} +2 -3
  225. package/lib/{cjs/ro-BUB-IxaH.js → ro-BUzliR9z.js} +2 -3
  226. package/lib/{cjs/ru-BYdNAMwp.js → ru-B591x1qT.js} +2 -3
  227. package/lib/{cjs/sa-BX4Bcw9p.js → sa-JnsT9B1R.js} +2 -3
  228. package/lib/{cjs/sh-cyrl-BMS20HU0.js → sh-cyrl-CLuomLGP.js} +2 -3
  229. package/lib/{cjs/sh-latn-B5r4ufen.js → sh-latn-DdZKFFaE.js} +2 -3
  230. package/lib/{cjs/sk-B2xqlAKO.js → sk-A3STIA2C.js} +2 -3
  231. package/lib/{cjs/sl-BQIVIls0.js → sl-DjmW7S7C.js} +2 -3
  232. package/lib/{cjs/sr-cyrl-DYfSvoxX.js → sr-cyrl-DzA2myNl.js} +2 -3
  233. package/lib/{cjs/sv-Dnaw_W7A.js → sv-B01JFt6B.js} +2 -3
  234. package/lib/{cjs/ta-UtrX1d-L.js → ta-biPP5NX3.js} +2 -3
  235. package/lib/{cjs/te-Cd9aOzWW.js → te-DdPqCRaf.js} +2 -3
  236. package/lib/{cjs/th-DMVAQILd.js → th-C4s1cxFT.js} +2 -3
  237. package/lib/{cjs/tk-CmEXyO1-.js → tk-BfqDjfTh.js} +2 -3
  238. package/lib/{cjs/tr--Z-rfClX.js → tr-C2sIij-w.js} +2 -3
  239. package/lib/types/base-object.d.ts +10 -6
  240. package/lib/types/basics/const.d.ts +2 -2
  241. package/lib/types/basics/document-node-tools.d.ts +2 -2
  242. package/lib/types/basics/draw.d.ts +1 -1
  243. package/lib/types/basics/interfaces.d.ts +1 -0
  244. package/lib/types/basics/tools.d.ts +10 -9
  245. package/lib/types/components/component.d.ts +1 -0
  246. package/lib/types/components/docs/document-layout-presentation.d.ts +1 -0
  247. package/lib/types/components/docs/layout/footnote-layout.d.ts +3 -3
  248. package/lib/types/components/{index.d.ts → docs/layout/line-breaker/document-line-breaker.d.ts} +3 -5
  249. package/lib/types/components/docs/layout/line-breaker/line-breaker.d.ts +16 -8
  250. package/lib/types/components/docs/layout/shaping-engine/font-cache.d.ts +2 -0
  251. package/lib/types/components/docs/layout/tools.d.ts +3 -1
  252. package/lib/types/components/docs/view-model/document-view-model.d.ts +7 -2
  253. package/lib/types/components/extension.d.ts +5 -1
  254. package/lib/types/components/sheets/constants.d.ts +2 -0
  255. package/lib/types/components/sheets/extensions/background.d.ts +1 -0
  256. package/lib/types/components/sheets/extensions/border-row-cache.d.ts +27 -0
  257. package/lib/types/components/sheets/extensions/border.d.ts +9 -1
  258. package/lib/types/components/sheets/extensions/column-header-layout.d.ts +1 -0
  259. package/lib/types/components/sheets/extensions/custom.d.ts +1 -0
  260. package/lib/types/components/sheets/extensions/font.d.ts +6 -0
  261. package/lib/types/components/sheets/extensions/marker.d.ts +1 -0
  262. package/lib/types/components/sheets/extensions/render-primitive-cache.d.ts +37 -0
  263. package/lib/types/components/sheets/extensions/row-header-layout.d.ts +1 -0
  264. package/lib/types/components/sheets/interfaces.d.ts +1 -0
  265. package/lib/types/components/sheets/sheet-cell-document-view-model.d.ts +25 -0
  266. package/lib/types/components/sheets/sheet-component.d.ts +3 -0
  267. package/lib/types/components/sheets/sheet.render-skeleton.d.ts +10 -1
  268. package/lib/types/components/sheets/spreadsheet.d.ts +25 -3
  269. package/lib/types/context.d.ts +5 -0
  270. package/lib/types/index.d.ts +24 -3
  271. package/lib/types/layer.d.ts +8 -1
  272. package/lib/types/render-manager/render-manager.service.d.ts +3 -4
  273. package/lib/types/scene.d.ts +13 -1
  274. package/lib/types/scene.transformer.d.ts +21 -1
  275. package/lib/types/services/canvas-color.service.d.ts +1 -1
  276. package/lib/types/shape/control.d.ts +1 -0
  277. package/lib/types/shape/index.d.ts +2 -2
  278. package/lib/types/shape/scroll-bar.d.ts +2 -2
  279. package/lib/types/shape/text.d.ts +6 -1
  280. package/lib/types/transformer-rotation.d.ts +42 -0
  281. package/lib/types/viewport.d.ts +3 -2
  282. package/lib/types/{components/docs/layout/line-breaker/index.d.ts → worker.d.ts} +3 -1
  283. package/lib/{cjs/uk-COcQB_vY.js → uk-DBx0redY.js} +2 -3
  284. package/lib/umd/index.js +5 -5
  285. package/lib/worker.js +238 -0
  286. package/lib/{cjs/zh-latn-pinyin-Cw5tH1Uh.js → zh-latn-pinyin-CIit9tZA.js} +2 -3
  287. package/package.json +13 -8
  288. package/lib/types/basics/quick-event.d.ts +0 -18
  289. package/lib/types/components/sheets/index.d.ts +0 -26
  290. package/lib/types/components/sheets/watermark/index.d.ts +0 -20
  291. package/lib/types/components/slides/index.d.ts +0 -16
  292. package/lib/types/components/slides/slide.d.ts +0 -47
  293. package/lib/types/shape/rich-text.d.ts +0 -117
package/lib/worker.js ADDED
@@ -0,0 +1,238 @@
1
+ import { Bn as FontCache, K as setDocsCustomBlockRenderViewportProvider, i as serializeDocumentSkeletonPage, lr as _defineProperty, n as hydrateDocumentSkeletonPage, o as DocumentViewModel, r as serializeDocumentSkeletonContinuousBlock, t as DocumentSkeleton } from "./doc-skeleton-h5WFPD-i.js";
2
+ import { Disposable } from "@univerjs/core";
3
+
4
+ // src/worker-layout.ts
5
+ const MAX_PAGES_PER_PUBLICATION = 4;
6
+ /**
7
+ * Worker-safe owner of the document view model and incremental layout state.
8
+ * Scheduling, transport, presentation and model revision ordering belong to callers.
9
+ */
10
+ var DocumentLayoutSession = class extends Disposable {
11
+ constructor(dataModel, localeService) {
12
+ super();
13
+ _defineProperty(this, "_viewModel", void 0);
14
+ _defineProperty(this, "_skeleton", void 0);
15
+ _defineProperty(this, "_lastPublishedPageCount", 0);
16
+ _defineProperty(this, "_paginationRevision", 0);
17
+ _defineProperty(this, "_layoutReason", "initial");
18
+ _defineProperty(this, "_didPublishEditAnchor", false);
19
+ _defineProperty(this, "_continuousPageSnapshot", null);
20
+ _defineProperty(this, "_continuousReplacementOffset", void 0);
21
+ _defineProperty(this, "_publishedHeaderPages", /* @__PURE__ */ new Map());
22
+ _defineProperty(this, "_publishedFooterPages", /* @__PURE__ */ new Map());
23
+ _defineProperty(this, "_resetPublishedResources", true);
24
+ _defineProperty(this, "_pendingPaginatedCompletion", null);
25
+ this._viewModel = new DocumentViewModel(dataModel);
26
+ this._skeleton = DocumentSkeleton.create(this._viewModel, localeService, { isolateIncrementalPublications: false });
27
+ }
28
+ start(options) {
29
+ var _options$invalidation;
30
+ this._lastPublishedPageCount = 0;
31
+ this._layoutReason = (options === null || options === void 0 ? void 0 : options.reason) ?? "initial";
32
+ this._paginationRevision = 0;
33
+ this._didPublishEditAnchor = false;
34
+ this._publishedHeaderPages.clear();
35
+ this._publishedFooterPages.clear();
36
+ this._resetPublishedResources = true;
37
+ this._pendingPaginatedCompletion = null;
38
+ if ((options === null || options === void 0 ? void 0 : options.reason) !== "edit") this._continuousPageSnapshot = null;
39
+ this._continuousReplacementOffset = (options === null || options === void 0 ? void 0 : options.reason) === "edit" ? ((_options$invalidation = options.invalidation) === null || _options$invalidation === void 0 ? void 0 : _options$invalidation.oldStart) ?? options.anchor : void 0;
40
+ const generation = this._skeleton.startIncrementalLayout({
41
+ ...options,
42
+ reuseUnaffectedTail: true
43
+ });
44
+ const progress = this._skeleton.getLayoutProgress();
45
+ this._lastPublishedPageCount = (progress === null || progress === void 0 ? void 0 : progress.mode) === "paginated" ? progress.publishedPageCount : 0;
46
+ return generation;
47
+ }
48
+ step(generation, budgetMs = 8, maxWorkUnits = Number.POSITIVE_INFINITY) {
49
+ var _this$_pendingPaginat;
50
+ if (((_this$_pendingPaginat = this._pendingPaginatedCompletion) === null || _this$_pendingPaginat === void 0 ? void 0 : _this$_pendingPaginat.generation) === generation) return this._publishPaginatedCompletionBacklog();
51
+ return this._collectPublications(this._skeleton.stepIncrementalLayout(generation, budgetMs, maxWorkUnits));
52
+ }
53
+ publishBacklog(generation) {
54
+ var _this$_pendingPaginat2;
55
+ if (((_this$_pendingPaginat2 = this._pendingPaginatedCompletion) === null || _this$_pendingPaginat2 === void 0 ? void 0 : _this$_pendingPaginat2.generation) === generation) return this._publishPaginatedCompletionBacklog();
56
+ return this._collectPublications(this._skeleton.publishIncrementalLayoutBacklog(generation));
57
+ }
58
+ getPage(pageIndex) {
59
+ var _this$_skeleton$getSk;
60
+ const page = (_this$_skeleton$getSk = this._skeleton.getSkeletonData()) === null || _this$_skeleton$getSk === void 0 ? void 0 : _this$_skeleton$getSk.pages[pageIndex];
61
+ if (page == null || page.isLayoutPlaceholder) return null;
62
+ return {
63
+ pageIndex,
64
+ page: serializeDocumentSkeletonPage(page, true)
65
+ };
66
+ }
67
+ resolvePageByOffset(offset) {
68
+ var _this$_skeleton$getSk2;
69
+ const pages = (_this$_skeleton$getSk2 = this._skeleton.getSkeletonData()) === null || _this$_skeleton$getSk2 === void 0 ? void 0 : _this$_skeleton$getSk2.pages;
70
+ if (pages == null || offset < 0) return null;
71
+ let low = 0;
72
+ let high = pages.length - 1;
73
+ while (low <= high) {
74
+ const pageIndex = Math.floor((low + high) / 2);
75
+ const page = pages[pageIndex];
76
+ if (offset < page.st) high = pageIndex - 1;
77
+ else if (offset > page.ed) low = pageIndex + 1;
78
+ else if (!page.isLayoutPlaceholder) return {
79
+ pageIndex,
80
+ pageNumber: page.pageNumber,
81
+ startOffset: page.st,
82
+ endOffset: page.ed
83
+ };
84
+ else return null;
85
+ }
86
+ return null;
87
+ }
88
+ cancel(generation) {
89
+ var _this$_pendingPaginat3;
90
+ if (generation == null || ((_this$_pendingPaginat3 = this._pendingPaginatedCompletion) === null || _this$_pendingPaginat3 === void 0 ? void 0 : _this$_pendingPaginat3.generation) === generation) this._pendingPaginatedCompletion = null;
91
+ this._skeleton.cancelIncrementalLayout(generation);
92
+ }
93
+ resetDataModel(dataModel) {
94
+ this.cancel();
95
+ this._viewModel.reset(dataModel);
96
+ this._skeleton.makeDirty(true);
97
+ this._lastPublishedPageCount = 0;
98
+ this._continuousReplacementOffset = void 0;
99
+ this._pendingPaginatedCompletion = null;
100
+ }
101
+ getProgress() {
102
+ return this._skeleton.getLayoutProgress();
103
+ }
104
+ static hydratePage(publication, snapshot) {
105
+ return hydrateDocumentSkeletonPage(publication.page, void 0, snapshot);
106
+ }
107
+ dispose() {
108
+ this._skeleton.dispose();
109
+ super.dispose();
110
+ }
111
+ _collectPublications(initialProgress) {
112
+ let progress = initialProgress;
113
+ if ((progress.paginationRevision ?? 0) !== this._paginationRevision) {
114
+ this._paginationRevision = progress.paginationRevision ?? 0;
115
+ this._lastPublishedPageCount = 0;
116
+ this._didPublishEditAnchor = false;
117
+ }
118
+ if (!progress.didPublish) return {
119
+ progress,
120
+ publication: null
121
+ };
122
+ while (progress.mode === "paginated" && !progress.complete && !progress.didPublishAnchor && progress.publishedPageCount < Math.min(this._lastPublishedPageCount + MAX_PAGES_PER_PUBLICATION, progress.pageCount - 1)) {
123
+ const next = this._skeleton.publishIncrementalLayoutBacklog(progress.generation);
124
+ if (!next.didPublish || next.cancelled) break;
125
+ const previousPageCount = progress.publishedPageCount;
126
+ progress = next;
127
+ if (progress.publishedPageCount <= previousPageCount) break;
128
+ }
129
+ if (progress.complete && progress.mode === "paginated" && progress.publishedPageCount > this._lastPublishedPageCount + 1) {
130
+ this._pendingPaginatedCompletion = progress;
131
+ return this._publishPaginatedCompletionBacklog();
132
+ }
133
+ return this._collectPublication(progress);
134
+ }
135
+ _publishPaginatedCompletionBacklog() {
136
+ const completion = this._pendingPaginatedCompletion;
137
+ if (completion == null) throw new Error("Document layout has no paginated completion backlog.");
138
+ const publishedPageCount = Math.min(completion.publishedPageCount, this._lastPublishedPageCount + (completion.didPublishAnchor && !this._didPublishEditAnchor ? 1 : MAX_PAGES_PER_PUBLICATION));
139
+ const complete = publishedPageCount === completion.publishedPageCount;
140
+ const progress = {
141
+ ...completion,
142
+ publicationRevision: completion.publicationRevision + publishedPageCount,
143
+ didPublish: true,
144
+ didPublishAnchor: completion.didPublishAnchor && !this._didPublishEditAnchor,
145
+ publishedPageCount,
146
+ complete
147
+ };
148
+ if (complete) this._pendingPaginatedCompletion = null;
149
+ return this._collectPublication(progress);
150
+ }
151
+ _collectPublication(progress) {
152
+ const skeletonData = this._skeleton.getSkeletonData();
153
+ if (skeletonData == null) throw new Error("Document layout reported a publication without skeleton data.");
154
+ const resources = this._collectResourcePublication(skeletonData, progress.complete);
155
+ if (progress.mode === "continuous") {
156
+ const page = skeletonData.pages[0];
157
+ if (page == null) throw new Error("Continuous document layout reported a publication without a logical page.");
158
+ const { block, snapshot } = serializeDocumentSkeletonContinuousBlock(page, this._continuousPageSnapshot, this._continuousReplacementOffset, true);
159
+ this._continuousPageSnapshot = snapshot;
160
+ this._continuousReplacementOffset = void 0;
161
+ return {
162
+ progress,
163
+ publication: {
164
+ kind: "block",
165
+ left: skeletonData.left,
166
+ top: skeletonData.top,
167
+ st: skeletonData.st,
168
+ ...skeletonData.ed == null ? {} : { ed: skeletonData.ed },
169
+ block,
170
+ resources
171
+ }
172
+ };
173
+ }
174
+ const endPageIndex = progress.publishedPageCount;
175
+ const publishEditAnchor = this._layoutReason === "edit" && progress.didPublishAnchor && !this._didPublishEditAnchor;
176
+ const startPageIndex = publishEditAnchor ? Math.min(this._lastPublishedPageCount, Math.max(0, endPageIndex - 1)) : this._lastPublishedPageCount;
177
+ const pages = skeletonData.pages.slice(startPageIndex, endPageIndex).map((page, offset) => ({
178
+ pageIndex: startPageIndex + offset,
179
+ page: serializeDocumentSkeletonPage(page, true)
180
+ }));
181
+ this._lastPublishedPageCount = Math.max(this._lastPublishedPageCount, endPageIndex);
182
+ this._didPublishEditAnchor ||= publishEditAnchor;
183
+ return {
184
+ progress,
185
+ publication: {
186
+ kind: "page",
187
+ left: skeletonData.left,
188
+ top: skeletonData.top,
189
+ st: skeletonData.st,
190
+ ...skeletonData.ed == null ? {} : { ed: skeletonData.ed },
191
+ pages,
192
+ resources
193
+ }
194
+ };
195
+ }
196
+ _collectResourcePublication(skeletonData, complete) {
197
+ if (complete) {
198
+ this._publishedHeaderPages.clear();
199
+ this._publishedFooterPages.clear();
200
+ }
201
+ const collect = (source, published) => {
202
+ const patches = [];
203
+ for (const [segmentId, pagesByWidth] of source) {
204
+ let publishedPagesByWidth = published.get(segmentId);
205
+ if (publishedPagesByWidth == null) {
206
+ publishedPagesByWidth = /* @__PURE__ */ new Map();
207
+ published.set(segmentId, publishedPagesByWidth);
208
+ }
209
+ const pagePatches = [];
210
+ for (const [width, page] of pagesByWidth) {
211
+ if (publishedPagesByWidth.get(width) === page) continue;
212
+ publishedPagesByWidth.set(width, page);
213
+ pagePatches.push([width, serializeDocumentSkeletonPage(page, true)]);
214
+ }
215
+ if (pagePatches.length > 0) patches.push([segmentId, pagePatches]);
216
+ }
217
+ return patches;
218
+ };
219
+ const reset = this._resetPublishedResources || complete;
220
+ this._resetPublishedResources = false;
221
+ return {
222
+ reset,
223
+ skeHeaders: collect(skeletonData.skeHeaders, this._publishedHeaderPages),
224
+ skeFooters: collect(skeletonData.skeFooters, this._publishedFooterPages),
225
+ skeListLevel: complete ? [...skeletonData.skeListLevel ?? []].map(([listId, levels]) => [listId, Array.from(levels, (level) => (level ?? []).map(({ bullet, paragraph }) => ({
226
+ bullet,
227
+ paragraph
228
+ })))]) : null,
229
+ drawingAnchor: complete ? [...skeletonData.drawingAnchor ?? []].map(([segmentId, anchors]) => [segmentId, [...anchors].map(([paragraphIndex, anchor]) => [paragraphIndex, {
230
+ paragraphIndex: anchor.paragraphIndex,
231
+ top: anchor.top,
232
+ ...anchor.left == null ? {} : { left: anchor.left }
233
+ }])]) : null
234
+ };
235
+ }
236
+ };
237
+
238
+ export { DocumentLayoutSession, FontCache, setDocsCustomBlockRenderViewportProvider };
@@ -1,4 +1,4 @@
1
- //#region src/components/docs/layout/hyphenation/patterns/zh-latn-pinyin.ts
1
+ // src/components/docs/layout/hyphenation/patterns/zh-latn-pinyin.ts
2
2
  /**
3
3
  * Copyright 2023-present DreamNum Co., Ltd.
4
4
  *
@@ -20,5 +20,4 @@ const ZhLatnPinyin = [
20
20
  []
21
21
  ];
22
22
 
23
- //#endregion
24
- exports.ZhLatnPinyin = ZhLatnPinyin;
23
+ export { ZhLatnPinyin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs/engine-render",
3
- "version": "1.3.1",
3
+ "version": "1.5.0",
4
4
  "private": false,
5
5
  "description": "Canvas rendering engine for Univer documents, sheets, and slides.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -35,6 +35,11 @@
35
35
  "require": "./lib/cjs/*",
36
36
  "types": "./lib/types/index.d.ts"
37
37
  },
38
+ "./worker": {
39
+ "import": "./lib/es/worker.js",
40
+ "require": "./lib/cjs/worker.js",
41
+ "types": "./lib/types/worker.d.ts"
42
+ },
38
43
  "./lib/*": "./lib/*"
39
44
  },
40
45
  "main": "./lib/es/index.js",
@@ -54,25 +59,25 @@
54
59
  "dependencies": {
55
60
  "@floating-ui/dom": "^1.8.0",
56
61
  "@floating-ui/utils": "^0.2.12",
57
- "@univerjs/core": "1.3.1",
62
+ "@univerjs/core": "1.5.0",
58
63
  "franc-min": "^6.2.0"
59
64
  },
60
65
  "devDependencies": {
61
- "@univerjs-infra/shared": "1.3.1",
66
+ "@univerjs-infra/shared": "1.5.0",
62
67
  "jest-canvas-mock": "^2.5.8",
63
68
  "rollup-plugin-polyfill-node": "^0.13.0",
64
69
  "rxjs": "7.8.2",
65
- "tsdown": "^0.23.1",
66
- "typescript": "^6.0.3",
67
- "vitest": "^5.0.4"
70
+ "tsdown": "^0.23.7",
71
+ "tsrs": "0.23.0-ts7.1.0-beta",
72
+ "vitest": "^5.1.0"
68
73
  },
69
74
  "scripts": {
70
75
  "test": "vitest run",
71
76
  "test:watch": "vitest",
72
77
  "coverage": "vitest run --coverage",
73
- "typecheck": "tsc --noEmit",
78
+ "typecheck": "tsrs --noEmit",
74
79
  "build:bundle": "univer-cli build --config tsdown.override.mts",
75
- "build:types": "tsc -p tsconfig.node.json",
80
+ "build:types": "tsrs -p tsconfig.node.json",
76
81
  "build": "pnpm run build:bundle && pnpm run build:types"
77
82
  },
78
83
  "module": "./lib/es/index.js"
@@ -1,18 +0,0 @@
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 { BaseObject } from '../base-object';
17
- import type { IMouseEvent, IPointerEvent } from './i-events';
18
- export declare function attachObjectHover(o: BaseObject, hoverIn: (o: any, evt: IPointerEvent | IMouseEvent) => void, hoverOut: (o: any, evt: IPointerEvent | IMouseEvent) => void): void;
@@ -1,26 +0,0 @@
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
- export * from './column-header';
17
- export * from './constants';
18
- export * from './extensions';
19
- export * from './interfaces';
20
- export * from './row-header';
21
- export * from './sheet-component';
22
- export * from './sheet.render-skeleton';
23
- export * from './spreadsheet';
24
- export { calculateCellImageRect } from './util';
25
- export type { ICellImageRectConfig } from './util';
26
- export * from './watermark';
@@ -1,20 +0,0 @@
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
- export * from './type';
17
- export * from './util';
18
- export * from './watermark-layer';
19
- export declare const UNIVER_WATERMARK_STORAGE_KEY = "UNIVER_WATERMARK_STORAGE_KEY";
20
- export declare const UNIVER_WATERMARK_LAYER_INDEX = 10;
@@ -1,16 +0,0 @@
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
- export * from './slide';
@@ -1,47 +0,0 @@
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 { Nullable } from '@univerjs/core';
17
- import type { UniverRenderingContext } from '../../context';
18
- import type { Scene } from '../../scene';
19
- import { EventSubject } from '@univerjs/core';
20
- import { SceneViewer } from '../../scene-viewer';
21
- export declare enum SLIDE_NAVIGATION_KEY {
22
- LEFT = "__slideNavigationLeft__",
23
- RIGHT = "__slideNavigationRight__"
24
- }
25
- export declare class Slide extends SceneViewer {
26
- slideChangePageByNavigation$: EventSubject<Nullable<string>>;
27
- subSceneChanged$: EventSubject<Scene>;
28
- private _navigationEnabled;
29
- activeFirstPage(): void;
30
- /**
31
- * add pageScene to this._subScenes
32
- * @param pageScene
33
- */
34
- addPageScene(pageScene: Scene): void;
35
- changePage(id?: string): void;
36
- hasPage(key: string): Scene | undefined;
37
- addNavigation(): void;
38
- removeNavigation(): void;
39
- enableNav(): void;
40
- disableNav(): void;
41
- hiddenNav(): void;
42
- showNav(): void;
43
- renderToThumb(mainCtx: UniverRenderingContext, pageId: string, scaleX?: number, scaleY?: number): void;
44
- private _getSubScenesIndex;
45
- private _addNavTrigger;
46
- private _getArrowColor;
47
- }
@@ -1,117 +0,0 @@
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 { IDocumentData, IStyleBase, ITransformState, LocaleService } from '@univerjs/core';
17
- import type { BASE_OBJECT_ARRAY } from '../base-object';
18
- import type { IViewportInfo } from '../basics/vector2';
19
- import type { UniverRenderingContext } from '../context';
20
- import { DocumentDataModel } from '@univerjs/core';
21
- import { BaseObject, ObjectType } from '../base-object';
22
- export interface IRichTextProps extends ITransformState, IStyleBase {
23
- text?: string;
24
- richText?: IDocumentData;
25
- zIndex: number;
26
- forceRender?: boolean;
27
- }
28
- export type RichtextObjectJSONType = {
29
- [key in typeof BASE_OBJECT_ARRAY[number]]: number;
30
- } & {
31
- text: string;
32
- fs: number;
33
- richText?: unknown;
34
- };
35
- export declare const RICHTEXT_OBJECT_ARRAY: string[];
36
- export declare class RichText extends BaseObject {
37
- private _localeService;
38
- private _documentData;
39
- private _documentSkeleton;
40
- private _documents;
41
- documentModel: DocumentDataModel;
42
- /**
43
- * fontFamily
44
- */
45
- private _ff?;
46
- /**
47
- * fontSize
48
- * pt
49
- */
50
- private _fs?;
51
- /**
52
- * italic
53
- * 0: false
54
- * 1: true
55
- */
56
- private _it?;
57
- /**
58
- * bold
59
- * 0: false
60
- * 1: true
61
- */
62
- private _bl?;
63
- /**
64
- * underline
65
- */
66
- private _ul?;
67
- /**
68
- * strikethrough
69
- */
70
- private _st?;
71
- /**
72
- * overline
73
- */
74
- private _ol?;
75
- /**
76
- * background
77
- */
78
- private _bg?;
79
- /**
80
- * border
81
- */
82
- private _bd?;
83
- /**
84
- * foreground
85
- */
86
- private _cl?;
87
- objectType: ObjectType;
88
- constructor(_localeService: LocaleService, key?: string, props?: IRichTextProps);
89
- get fs(): number;
90
- get text(): string;
91
- get documentData(): IDocumentData;
92
- /**
93
- * get last page size
94
- */
95
- getDocsSkeletonPageSize(): {
96
- width: number;
97
- height: number;
98
- } | undefined;
99
- /**
100
- * this[`_${key}`] = props[key];
101
- * @param props
102
- */
103
- setProps(props?: IRichTextProps): this | undefined;
104
- render(mainCtx: UniverRenderingContext, bounds?: IViewportInfo): this;
105
- toJson(): RichtextObjectJSONType;
106
- protected _draw(ctx: UniverRenderingContext): void;
107
- private _convertToDocumentData;
108
- private _initialProps;
109
- /**
110
- * After changing editor size & end of editing, update skeleton of doc.
111
- */
112
- refreshDocumentByDocData(): void;
113
- /**
114
- * invoked when end editing.
115
- */
116
- resizeToContentSize(): void;
117
- }