@univerjs/engine-render 0.1.9 → 0.1.11
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/lib/af-7QQ0fr8U.mjs +194 -0
- package/lib/af-B8CRNkjo.js +1 -0
- package/lib/as-CjArMJFb.js +1 -0
- package/lib/as-Q56YT8ds.mjs +8 -0
- package/lib/be-D01Emmav.mjs +8 -0
- package/lib/be-D_7towMQ.js +1 -0
- package/lib/bg-BROkuUw0.mjs +8 -0
- package/lib/bg-CZclBlFV.js +1 -0
- package/lib/bn-BOqBYJXb.mjs +8 -0
- package/lib/bn-CzN_X48q.js +1 -0
- package/lib/ca-4AzMzC5n.js +1 -0
- package/lib/ca-DNCw15Om.mjs +35 -0
- package/lib/cjs/index.js +2 -2
- package/lib/cop-BEWZjlEN.js +1 -0
- package/lib/cop-Cg_9EzGl.mjs +8 -0
- package/lib/cs-CO3omPBc.mjs +14 -0
- package/lib/cs-DilIWlcM.js +1 -0
- package/lib/cu-BVXCZrRb.mjs +29 -0
- package/lib/cu-Dv6XbTRy.js +1 -0
- package/lib/cy-DdcmQdRU.mjs +8 -0
- package/lib/cy-FA5QTAU-.js +1 -0
- package/lib/da-B9Og8Jrv.js +1 -0
- package/lib/da-CDalw6_k.mjs +8 -0
- package/lib/de-1901-Bio6PX1D.mjs +8 -0
- package/lib/de-1901-zEkwrFOx.js +1 -0
- package/lib/de-1996-7qRQHbDz.js +1 -0
- package/lib/de-1996-D04zKy3t.mjs +8 -0
- package/lib/de-ch-1901-CRFO4pck.js +1 -0
- package/lib/de-ch-1901-DXmVppkP.mjs +8 -0
- package/lib/el-monoton-BCxophpw.mjs +8 -0
- package/lib/el-monoton-x4pPIDMS.js +1 -0
- package/lib/el-polyton-BmPHG29Z.js +1 -0
- package/lib/el-polyton-cc2dKcNi.mjs +8 -0
- package/lib/en-gb-CH5n2vc2.mjs +18 -0
- package/lib/en-gb-d0UnX3NQ.js +1 -0
- package/lib/es/index.js +12021 -11024
- package/lib/es-CM1w66HG.mjs +8 -0
- package/lib/es-CiNTJwZN.js +1 -0
- package/lib/et-1vv3Izyw.mjs +8 -0
- package/lib/et-BK1e_cVg.js +1 -0
- package/lib/eu-BGsqKnTM.mjs +8 -0
- package/lib/eu-BzxYxH10.js +1 -0
- package/lib/fi-BPikEZql.mjs +8 -0
- package/lib/fi-Bj3oNcU6.js +1 -0
- package/lib/fr-CVOiY7Hk.mjs +8 -0
- package/lib/fr-DTLd-5Zd.js +1 -0
- package/lib/fur-BfxkaO05.mjs +8 -0
- package/lib/fur-fogKIIFe.js +1 -0
- package/lib/ga-6eamJRA4.js +1 -0
- package/lib/ga-RgFbe6O4.mjs +55 -0
- package/lib/gl-C-k_Tfyb.mjs +8 -0
- package/lib/gl-CADHCwzT.js +1 -0
- package/lib/grc-DVfTDU-B.mjs +8 -0
- package/lib/grc-OmY_teO1.js +1 -0
- package/lib/gu-BY7u7h16.js +1 -0
- package/lib/gu-OnDkDFRR.mjs +8 -0
- package/lib/hi-C-5ieQXc.js +1 -0
- package/lib/hi-wZq2N712.mjs +8 -0
- package/lib/hr-BydruLWx.mjs +8 -0
- package/lib/hr-DJsWIgpy.js +1 -0
- package/lib/hsb-BG80pl_e.mjs +43 -0
- package/lib/hsb-B_sJZsNY.js +1 -0
- package/lib/hu-BDn_208e.mjs +8 -0
- package/lib/hu-yaDSgvAn.js +1 -0
- package/lib/hy-C4deAxX3.js +1 -0
- package/lib/hy-CwMqVcRs.mjs +8 -0
- package/lib/ia-BPpzCpVU.mjs +19 -0
- package/lib/ia-CjzS5si8.js +1 -0
- package/lib/id-CDLqpvHD.mjs +55 -0
- package/lib/id-DOctqhne.js +1 -0
- package/lib/is-CIYOndu4.mjs +8 -0
- package/lib/is-D47CXCCB.js +1 -0
- package/lib/it-C8yMXhVu.mjs +8 -0
- package/lib/it-CXFCeNV4.js +1 -0
- package/lib/ka-BdcqGePe.mjs +8 -0
- package/lib/ka-CgSJi2CU.js +1 -0
- package/lib/kmr-B0Ded4M9.js +1 -0
- package/lib/kmr-dNPUHbsW.mjs +8 -0
- package/lib/kn-CcH8nt5Q.js +1 -0
- package/lib/kn-DAOQBMT3.mjs +8 -0
- package/lib/la-B2sD59yr.mjs +8 -0
- package/lib/la-DWb6TMoE.js +1 -0
- package/lib/la-x-classic-CaVCyU_Q.mjs +8 -0
- package/lib/la-x-classic-DsHZBRDM.js +1 -0
- package/lib/la-x-liturgic-BUjsEOKb.mjs +8 -0
- package/lib/la-x-liturgic-C3OkOI_x.js +1 -0
- package/lib/lt-CbfOJm1r.mjs +8 -0
- package/lib/lt-CtvK-cL5.js +1 -0
- package/lib/lv-7jJet9iv.mjs +8 -0
- package/lib/lv-VSwy7KIF.js +1 -0
- package/lib/ml-BO_9pI9i.js +1 -0
- package/lib/ml-DCtpf5tH.mjs +8 -0
- package/lib/mn-cyrl-BBsXVZW8.mjs +8 -0
- package/lib/mn-cyrl-nBGEBxGh.js +1 -0
- package/lib/mn-cyrl-x-lmc-BVlv2lTY.mjs +8 -0
- package/lib/mn-cyrl-x-lmc-UJaI6njT.js +1 -0
- package/lib/mr-Bn6x2K8t.mjs +8 -0
- package/lib/mr-Dj3WJyra.js +1 -0
- package/lib/mul-ethi-BzcfASck.mjs +8 -0
- package/lib/mul-ethi-DlLhqlDf.js +1 -0
- package/lib/nb-B9uP_hJB.mjs +119 -0
- package/lib/nb-DpyDJynR.js +1 -0
- package/lib/nl-CeCra09K.js +1 -0
- package/lib/nl-DJ0c5Nwz.mjs +49 -0
- package/lib/nn-BSKjhM96.mjs +119 -0
- package/lib/nn-zBMUfwWO.js +1 -0
- package/lib/no-rNan2JXr.mjs +117 -0
- package/lib/no-rn8_SRru.js +1 -0
- package/lib/oc-CEAeI_Pn.mjs +8 -0
- package/lib/oc-CXZWE4qs.js +1 -0
- package/lib/or-BXsM2pbv.mjs +8 -0
- package/lib/or-jsnjw3Ub.js +1 -0
- package/lib/pa-CIQ5Y3X6.mjs +8 -0
- package/lib/pa-hPrNXZT3.js +1 -0
- package/lib/pi-BMimJqFv.js +1 -0
- package/lib/pi-D_nNqT17.mjs +8 -0
- package/lib/pl-Cw-Bhtot.js +1 -0
- package/lib/pl-DRrtuwd1.mjs +29 -0
- package/lib/pms-C-FumxE9.mjs +8 -0
- package/lib/pms-ePVMMGP-.js +1 -0
- package/lib/pt-Csy9T_gC.js +1 -0
- package/lib/pt-DkX8-WA3.mjs +8 -0
- package/lib/rm-DS5uuP_L.js +1 -0
- package/lib/rm-Djs6hoP6.mjs +8 -0
- package/lib/ro-BlUZ9Cqj.mjs +8 -0
- package/lib/ro-C3B47EH9.js +1 -0
- package/lib/ru-CT3O6fnD.mjs +193 -0
- package/lib/ru-CxgIVOvF.js +1 -0
- package/lib/sa-C3-ZGfmL.js +1 -0
- package/lib/sa-DwT18fhY.mjs +8 -0
- package/lib/sh-cyrl-CstO-G-Y.js +1 -0
- package/lib/sh-cyrl-vs7LrXMi.mjs +125 -0
- package/lib/sh-latn-BdtcwkQ7.js +1 -0
- package/lib/sh-latn-CjbXS8sT.mjs +125 -0
- package/lib/sk-BcST003l.js +1 -0
- package/lib/sk-C-BhbAaV.mjs +8 -0
- package/lib/sl-PkRf1aEq.mjs +8 -0
- package/lib/sl-WLFwiIjH.js +1 -0
- package/lib/sr-cyrl-BspApXN7.js +1 -0
- package/lib/sr-cyrl-cX7hxNkp.mjs +139 -0
- package/lib/sv-B5qT7wUY.mjs +8 -0
- package/lib/sv-BLAl9qmR.js +1 -0
- package/lib/ta-CFDeBwfd.mjs +8 -0
- package/lib/ta-CXbw1QC7.js +1 -0
- package/lib/te-B-G6LBfO.js +1 -0
- package/lib/te-BXwc4QG8.mjs +8 -0
- package/lib/th-BFfX9uLb.mjs +8 -0
- package/lib/th-YaLTc5g-.js +1 -0
- package/lib/tk-CUXETJVM.mjs +8 -0
- package/lib/tk-DbM2vAMc.js +1 -0
- package/lib/tr-BR64TmVY.mjs +8 -0
- package/lib/tr-Coi-iq3L.js +1 -0
- package/lib/types/base-object.d.ts +10 -9
- package/lib/types/basics/document-node-tools.d.ts +1 -1
- package/lib/types/basics/draw.d.ts +4 -4
- package/lib/types/basics/i-document-skeleton-cached.d.ts +3 -0
- package/lib/types/basics/interfaces.d.ts +4 -3
- package/lib/types/basics/path2.d.ts +1 -1
- package/lib/types/basics/position.d.ts +1 -1
- package/lib/types/basics/quick-event.d.ts +1 -1
- package/lib/types/basics/tools.d.ts +2 -2
- package/lib/types/basics/transform.d.ts +2 -2
- package/lib/types/components/component.d.ts +5 -4
- package/lib/types/components/docs/doc-background.d.ts +13 -0
- package/lib/types/components/docs/doc-component.d.ts +18 -16
- package/lib/types/components/docs/doc-extension.d.ts +2 -2
- package/lib/types/components/docs/document.d.ts +8 -18
- package/lib/types/components/docs/extensions/background.d.ts +3 -3
- package/lib/types/components/docs/extensions/border.d.ts +3 -3
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts +3 -3
- package/lib/types/components/docs/extensions/line.d.ts +3 -3
- package/lib/types/components/docs/layout/block/paragraph/bullet.d.ts +1 -1
- package/lib/types/components/docs/layout/block/paragraph/language-ruler.d.ts +3 -3
- package/lib/types/components/docs/layout/block/paragraph/layout-ruler.d.ts +4 -2
- package/lib/types/components/docs/layout/block/paragraph/layout.d.ts +5 -4
- package/lib/types/components/docs/layout/block/paragraph/line-adjustment.d.ts +4 -2
- package/lib/types/components/docs/layout/block/paragraph/linebreaking.d.ts +5 -5
- package/lib/types/components/docs/layout/block/paragraph/shaping.d.ts +7 -5
- package/lib/types/components/docs/layout/block/section.d.ts +6 -5
- package/lib/types/components/docs/layout/doc-skeleton.d.ts +10 -8
- package/lib/types/components/docs/layout/hyphenation/hyphen.d.ts +17 -0
- package/lib/types/components/docs/layout/hyphenation/lang.d.ts +96 -0
- package/lib/types/components/docs/layout/hyphenation/language-detector.d.ts +10 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/af.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/as.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/be.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/bg.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/bn.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/ca.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/cop.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/cs.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/cu.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/cy.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/da.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/de-1901.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/de-1996.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/de-ch-1901.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/el-monoton.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/el-polyton.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/en-gb.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/en-us.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/es.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/et.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/eu.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/fi.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/fr.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/fur.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/ga.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/gl.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/grc.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/gu.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/hi.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/hr.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/hsb.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/hu.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/hy.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/ia.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/id.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/is.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/it.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/ka.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/kmr.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/kn.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/la-x-classic.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/la-x-liturgic.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/la.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/lt.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/lv.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/ml.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/mn-cyrl-x-lmc.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/mn-cyrl.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/mr.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/mul-ethi.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/nb.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/nl.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/nn.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/no.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/oc.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/or.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/pa.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/pi.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/pl.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/pms.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/pt.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/rm.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/ro.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/ru.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/sa.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/sh-cyrl.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/sh-latn.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/sk.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/sl.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/sr-cyrl.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/sv.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/ta.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/te.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/th.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/tk.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/tr.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/uk.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/patterns/zh-latn-pinyin.d.ts +16 -0
- package/lib/types/components/docs/layout/hyphenation/tools.d.ts +24 -0
- package/lib/types/{shape/selection.d.ts → components/docs/layout/line-breaker/__tests__/linebreak.spec.d.ts} +1 -2
- package/lib/types/components/docs/layout/{linebreak → line-breaker}/break.d.ts +7 -2
- package/lib/types/components/docs/layout/line-breaker/enhancers/hyphen-enhancer.d.ts +22 -0
- package/lib/types/components/docs/layout/{linebreak → line-breaker}/extensions/tab-linebreak-extension.d.ts +1 -1
- package/lib/types/components/docs/layout/{linebreak → line-breaker}/index.d.ts +1 -1
- package/lib/types/components/docs/layout/{linebreak/linebreaker.d.ts → line-breaker/line-breaker.d.ts} +9 -5
- package/lib/types/components/docs/layout/model/column.d.ts +1 -1
- package/lib/types/components/docs/layout/model/glyph.d.ts +4 -2
- package/lib/types/components/docs/layout/model/line.d.ts +3 -3
- package/lib/types/components/docs/layout/model/page.d.ts +3 -2
- package/lib/types/components/docs/layout/model/section.d.ts +1 -1
- package/lib/types/components/docs/layout/shaping-engine/font-cache.d.ts +2 -2
- package/lib/types/components/docs/layout/shaping-engine/text-shaping.d.ts +2 -2
- package/lib/types/components/docs/layout/tools.d.ts +44 -6
- package/lib/types/components/docs/text-selection/convert-cursor.d.ts +4 -4
- package/lib/types/components/docs/text-selection/text-range.d.ts +9 -9
- package/lib/types/components/docs/text-selection/text-selection-render-manager.d.ts +10 -10
- package/lib/types/components/docs/view-model/document-view-model.d.ts +2 -2
- package/lib/types/components/extension.d.ts +4 -3
- package/lib/types/components/sheets/column-header.d.ts +18 -4
- package/lib/types/components/sheets/extensions/background.d.ts +3 -3
- package/lib/types/components/sheets/extensions/border.d.ts +3 -3
- package/lib/types/components/sheets/extensions/column-header-layout.d.ts +3 -3
- package/lib/types/components/sheets/extensions/custom.d.ts +3 -3
- package/lib/types/components/sheets/extensions/font.d.ts +3 -3
- package/lib/types/components/sheets/extensions/marker.d.ts +3 -3
- package/lib/types/components/sheets/extensions/row-header-layout.d.ts +3 -3
- package/lib/types/components/sheets/extensions/sheet-extension.d.ts +2 -2
- package/lib/types/components/sheets/interfaces.d.ts +2 -2
- package/lib/types/components/sheets/row-header.d.ts +18 -4
- package/lib/types/components/sheets/sheet-component.d.ts +15 -11
- package/lib/types/components/sheets/sheet-skeleton.d.ts +11 -7
- package/lib/types/components/sheets/spreadsheet.d.ts +11 -10
- package/lib/types/components/skeleton.d.ts +2 -1
- package/lib/types/components/slides/slide.d.ts +3 -3
- package/lib/types/custom/custom-object.d.ts +2 -2
- package/lib/types/engine.d.ts +4 -5
- package/lib/types/group.d.ts +4 -4
- package/lib/types/index.d.ts +1 -0
- package/lib/types/layer.d.ts +5 -3
- package/lib/types/render-engine.d.ts +2 -2
- package/lib/types/render-manager/render-manager.service.d.ts +13 -15
- package/lib/types/render-manager/render-unit.d.ts +10 -6
- package/lib/types/scene-viewer.d.ts +7 -7
- package/lib/types/scene.d.ts +12 -13
- package/lib/types/scene.input-manager.d.ts +6 -2
- package/lib/types/scene.transformer.d.ts +4 -4
- package/lib/types/scroll-timer.d.ts +2 -2
- package/lib/types/services/object-transform-manager.service.d.ts +1 -1
- package/lib/types/shape/base-scroll-bar.d.ts +8 -8
- package/lib/types/shape/checkbox.d.ts +1 -1
- package/lib/types/shape/circle.d.ts +1 -1
- package/lib/types/shape/dropdown-item.d.ts +1 -1
- package/lib/types/shape/index.d.ts +0 -1
- package/lib/types/shape/path.d.ts +1 -1
- package/lib/types/shape/picture.d.ts +2 -2
- package/lib/types/shape/rect.d.ts +1 -1
- package/lib/types/shape/regular-polygon.d.ts +3 -3
- package/lib/types/shape/rich-text.d.ts +3 -3
- package/lib/types/shape/scroll-bar.d.ts +4 -4
- package/lib/types/shape/shape.d.ts +4 -7
- package/lib/types/thin-engine.d.ts +6 -6
- package/lib/types/thin-scene.d.ts +31 -32
- package/lib/types/viewport.d.ts +7 -7
- package/lib/uk-CIt18LjH.mjs +8 -0
- package/lib/uk-DWrud5zx.js +1 -0
- package/lib/umd/index.js +2 -2
- package/lib/zh-latn-pinyin-C29el_eo.mjs +8 -0
- package/lib/zh-latn-pinyin-CDkfr_AT.js +1 -0
- package/package.json +9 -8
- package/lib/types/components/docs/layout/block/paragraph/inline-drawing.d.ts +0 -5
- /package/lib/types/components/docs/layout/{linebreak/__tests__/linebreak.spec.d.ts → hyphenation/__tests__/hypen.spec.d.ts} +0 -0
- /package/lib/types/components/docs/layout/{linebreak → line-breaker}/classes.d.ts +0 -0
- /package/lib/types/components/docs/layout/{linebreak → line-breaker}/pairs.d.ts +0 -0
- /package/lib/types/components/docs/layout/{linebreak → line-breaker}/rule.d.ts +0 -0
- /package/lib/types/components/docs/layout/{linebreak → line-breaker}/swap.d.ts +0 -0
- /package/lib/types/components/docs/layout/{linebreak → line-breaker}/tiny-inflate.d.ts +0 -0
- /package/lib/types/components/docs/layout/{linebreak → line-breaker}/trie-data.d.ts +0 -0
- /package/lib/types/components/docs/layout/{linebreak → line-breaker}/unicode-trie.d.ts +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
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 declare const Th: (string | never[])[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
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 declare const Tk: (string | never[])[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
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 declare const Tr: (string | never[])[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
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 declare const Uk: (string | never[])[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
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 declare const ZhLatnPinyin: (string | never[])[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2023-present DreamNum Inc.
|
|
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 type RawHyphenPattern = [string, string, string[]];
|
|
17
|
+
export interface IHyphenPattern {
|
|
18
|
+
levelsTable: string[];
|
|
19
|
+
pattern: any;
|
|
20
|
+
}
|
|
21
|
+
export declare function parsePattern(pattern: RawHyphenPattern): IHyphenPattern;
|
|
22
|
+
export declare function snackToPascal(snack: string): string;
|
|
23
|
+
export declare function createStringSlicer(str: string[]): [() => string[], () => boolean];
|
|
24
|
+
export declare function createCharIterator(str: string[]): [() => string, () => boolean];
|
|
@@ -13,8 +13,13 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
+
export declare enum BreakPointType {
|
|
17
|
+
Normal = "Normal",
|
|
18
|
+
Mandatory = "Mandatory",
|
|
19
|
+
Hyphen = "Hyphen"
|
|
20
|
+
}
|
|
16
21
|
export declare class Break {
|
|
17
22
|
position: number;
|
|
18
|
-
|
|
19
|
-
constructor(position: number,
|
|
23
|
+
type: BreakPointType;
|
|
24
|
+
constructor(position: number, type?: BreakPointType);
|
|
20
25
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Nullable } from '@univerjs/core';
|
|
2
|
+
import { Break } from '../break';
|
|
3
|
+
import { IBreakPoints, LineBreaker } from '../line-breaker';
|
|
4
|
+
import { Hyphen } from '../../hyphenation/hyphen';
|
|
5
|
+
import { Lang } from '../../hyphenation/lang';
|
|
6
|
+
|
|
7
|
+
export declare function isLetter(char: string): boolean;
|
|
8
|
+
export declare class LineBreakerHyphenEnhancer implements IBreakPoints {
|
|
9
|
+
private _lineBreaker;
|
|
10
|
+
private _hyphen;
|
|
11
|
+
private _lang;
|
|
12
|
+
private _doNotHyphenateCaps;
|
|
13
|
+
private _curBreak;
|
|
14
|
+
private _nextBreak;
|
|
15
|
+
private _isInWord;
|
|
16
|
+
private _word;
|
|
17
|
+
private _hyphenIndex;
|
|
18
|
+
private _hyphenSlice;
|
|
19
|
+
private _content;
|
|
20
|
+
constructor(_lineBreaker: LineBreaker, _hyphen: Hyphen, _lang: Lang, _doNotHyphenateCaps?: boolean);
|
|
21
|
+
nextBreakPoint(): Nullable<Break>;
|
|
22
|
+
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Nullable } from '@univerjs/core';
|
|
2
2
|
import { Break } from './break';
|
|
3
|
+
import { ILineBreakRule } from './rule';
|
|
3
4
|
|
|
4
5
|
interface ILineBreakExtension {
|
|
5
6
|
(breaker: LineBreaker): void;
|
|
6
7
|
}
|
|
7
|
-
export
|
|
8
|
-
|
|
8
|
+
export interface IBreakPoints {
|
|
9
|
+
nextBreakPoint(): Nullable<Break>;
|
|
10
|
+
}
|
|
11
|
+
export declare class LineBreaker implements IBreakPoints {
|
|
12
|
+
content: string;
|
|
9
13
|
private _pos;
|
|
10
14
|
private _lastPos;
|
|
11
15
|
private _curClass;
|
|
@@ -15,10 +19,10 @@ export declare class LineBreaker {
|
|
|
15
19
|
private _LB21a;
|
|
16
20
|
private _LB30a;
|
|
17
21
|
private _rule;
|
|
18
|
-
constructor(
|
|
22
|
+
constructor(content: string);
|
|
19
23
|
use(extension: ILineBreakExtension): this;
|
|
20
24
|
addRule(key: string, rule: ILineBreakRule): this;
|
|
21
|
-
|
|
25
|
+
nextBreakPoint(): Break | null;
|
|
22
26
|
private _getNextCodePoint;
|
|
23
27
|
private _nextCharClass;
|
|
24
28
|
private _getSimpleBreak;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDocumentSkeletonColumn } from '../../../../basics/i-document-skeleton-cached';
|
|
2
1
|
import { ISectionColumnProperties, ColumnSeparatorType } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonColumn } from '../../../../basics/i-document-skeleton-cached';
|
|
3
3
|
|
|
4
4
|
export declare function createSkeletonColumn(columnIndex: number | undefined, columnProperties: ISectionColumnProperties[], columnSeparatorType?: ColumnSeparatorType, pageWidth?: number): IDocumentSkeletonColumn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IOpenTypeGlyphInfo } from '../shaping-engine/text-shaping';
|
|
2
|
-
import { IFontCreateConfig } from '../../../../basics/interfaces';
|
|
3
1
|
import { IAdjustability, IDocumentSkeletonBullet, IDocumentSkeletonDivide, IDocumentSkeletonGlyph, GlyphType } from '../../../../basics/i-document-skeleton-cached';
|
|
2
|
+
import { IFontCreateConfig } from '../../../../basics/interfaces';
|
|
3
|
+
import { IOpenTypeGlyphInfo } from '../shaping-engine/text-shaping';
|
|
4
4
|
|
|
5
5
|
export declare function isSpace(char: string): boolean;
|
|
6
6
|
export declare function isJustifiable(content: string): boolean;
|
|
@@ -8,6 +8,8 @@ export declare function baseAdjustability(content: string, width: number): IAdju
|
|
|
8
8
|
export declare function createSkeletonWordGlyph(content: string, config: IFontCreateConfig, glyphWidth?: number): IDocumentSkeletonGlyph;
|
|
9
9
|
export declare function createSkeletonLetterGlyph(content: string, config: IFontCreateConfig, glyphWidth?: number, glyphInfo?: IOpenTypeGlyphInfo): IDocumentSkeletonGlyph;
|
|
10
10
|
export declare function createSkeletonTabGlyph(config: IFontCreateConfig, glyphWidth?: number): IDocumentSkeletonGlyph;
|
|
11
|
+
export declare function createHyphenDashGlyph(config: IFontCreateConfig): IDocumentSkeletonGlyph;
|
|
12
|
+
export declare function createSkeletonCustomBlockGlyph(config: IFontCreateConfig, glyphWidth?: number, glyphHeight?: number, objectId?: string): IDocumentSkeletonGlyph;
|
|
11
13
|
export declare function _createSkeletonWordOrLetter(glyphType: GlyphType, content: string, config: IFontCreateConfig, glyphWidth?: number, glyphInfo?: IOpenTypeGlyphInfo): IDocumentSkeletonGlyph;
|
|
12
14
|
export declare function createSkeletonBulletGlyph(glyph: IDocumentSkeletonGlyph, bulletSkeleton: IDocumentSkeletonBullet, charSpaceApply: number): IDocumentSkeletonGlyph;
|
|
13
15
|
export declare function setGlyphGroupLeft(glyphGroup: IDocumentSkeletonGlyph[], left?: number): void;
|
|
@@ -11,10 +11,10 @@ interface ILineBoundingBox {
|
|
|
11
11
|
marginTop?: number;
|
|
12
12
|
spaceBelowApply?: number;
|
|
13
13
|
}
|
|
14
|
-
export declare function createSkeletonLine(paragraphIndex: number, lineType: LineType, lineBoundingBox: ILineBoundingBox, columnWidth: number, lineIndex?: number, isParagraphStart?: boolean,
|
|
14
|
+
export declare function createSkeletonLine(paragraphIndex: number, lineType: LineType, lineBoundingBox: ILineBoundingBox, columnWidth: number, lineIndex?: number, isParagraphStart?: boolean, pageSkeDrawings?: Map<string, IDocumentSkeletonDrawing>, headersDrawings?: Map<string, IDocumentSkeletonDrawing>, footersDrawings?: Map<string, IDocumentSkeletonDrawing>): IDocumentSkeletonLine;
|
|
15
15
|
export declare function calculateLineTopByDrawings(lineHeight?: number, lineTop?: number, pageSkeDrawings?: Map<string, IDocumentSkeletonDrawing>, headersDrawings?: Map<string, IDocumentSkeletonDrawing>, footersDrawings?: Map<string, IDocumentSkeletonDrawing>): number;
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function updateDivideInfo(divide: IDocumentSkeletonDivide, states: Partial<IDocumentSkeletonDivide>): void;
|
|
17
17
|
export declare function setLineMarginBottom(line: IDocumentSkeletonLine, marginBottom: number): void;
|
|
18
|
-
export declare function
|
|
18
|
+
export declare function collisionDetection(drawing: IDocumentSkeletonDrawing, lineHeight: number, lineTop: number, columnWidth: number): boolean;
|
|
19
19
|
export declare function createAndUpdateBlockAnchor(paragraphIndex: number, line: IDocumentSkeletonLine, top: number, drawingAnchor?: Map<number, IDocumentSkeletonDrawingAnchor>): void;
|
|
20
20
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
2
1
|
import { IDocumentSkeletonPage, ISkeletonResourceReference, BreakType } from '../../../../basics/i-document-skeleton-cached';
|
|
2
|
+
import { ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
3
|
+
import { ILayoutContext } from '../tools';
|
|
3
4
|
|
|
4
|
-
export declare function createSkeletonPage(sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference, pageNumber?: number, breakType?: BreakType): IDocumentSkeletonPage;
|
|
5
|
+
export declare function createSkeletonPage(ctx: ILayoutContext, sectionBreakConfig: ISectionBreakConfig, skeletonResourceReference: ISkeletonResourceReference, pageNumber?: number, breakType?: BreakType): IDocumentSkeletonPage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDocumentSkeletonColumn, IDocumentSkeletonSection } from '../../../../basics/i-document-skeleton-cached';
|
|
2
1
|
import { ISectionColumnProperties, ColumnSeparatorType } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonColumn, IDocumentSkeletonSection } from '../../../../basics/i-document-skeleton-cached';
|
|
3
3
|
|
|
4
4
|
export declare function createSkeletonSection(columnProperties?: ISectionColumnProperties[], columnSeparatorType?: ColumnSeparatorType, top?: number, left?: number, sectionWidth?: number, sectionHeight?: number): IDocumentSkeletonSection;
|
|
5
5
|
export declare function setColumnFullState(column: IDocumentSkeletonColumn, state: boolean): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IOpenTypeGlyphInfo } from './text-shaping';
|
|
2
|
-
import { IDocumentSkeletonBoundingBox, IDocumentSkeletonFontStyle } from '../../../../basics/i-document-skeleton-cached';
|
|
3
1
|
import { Nullable } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonBoundingBox, IDocumentSkeletonFontStyle } from '../../../../basics/i-document-skeleton-cached';
|
|
3
|
+
import { IOpenTypeGlyphInfo } from './text-shaping';
|
|
4
4
|
|
|
5
5
|
export declare const DEFAULT_MEASURE_TEXT = "0";
|
|
6
6
|
export interface IMeasureTextCache {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Nullable } from 'vitest';
|
|
2
|
-
import { default as Opentype } from 'opentype.js';
|
|
3
1
|
import { IDocumentBody } from '@univerjs/core';
|
|
2
|
+
import { default as Opentype } from 'opentype.js';
|
|
3
|
+
import { Nullable } from 'vitest';
|
|
4
4
|
|
|
5
5
|
interface IBoundingBox {
|
|
6
6
|
x1: number;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DocumentDataModel, INumberUnit, IObjectPositionH, IObjectPositionV, IParagraphStyle, ITextStyle, Nullable, BooleanNumber, GridType, SpacingRule } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonCached, IDocumentSkeletonColumn, IDocumentSkeletonDivide, IDocumentSkeletonDrawing, IDocumentSkeletonFontStyle, IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage, ISkeletonResourceReference } from '../../../basics/i-document-skeleton-cached';
|
|
3
|
+
import { IDocsConfig, IParagraphConfig, ISectionBreakConfig } from '../../../basics/interfaces';
|
|
2
4
|
import { DataStreamTreeNode } from '../view-model/data-stream-tree-node';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
5
|
+
import { DocumentViewModel } from '../view-model/document-view-model';
|
|
6
|
+
import { Hyphen } from './hyphenation/hyphen';
|
|
7
|
+
import { LanguageDetector } from './hyphenation/language-detector';
|
|
6
8
|
|
|
7
9
|
export declare function getLastPage(pages: IDocumentSkeletonPage[]): IDocumentSkeletonPage;
|
|
8
10
|
export declare function getLastSection(page: IDocumentSkeletonPage): import('../../../basics/i-document-skeleton-cached').IDocumentSkeletonSection;
|
|
@@ -50,8 +52,8 @@ export declare function updateBlockIndex(pages: IDocumentSkeletonPage[], start?:
|
|
|
50
52
|
export declare function spanIterator(pages: IDocumentSkeletonPage[], iteratorFunction: (glyph: IDocumentSkeletonGlyph) => void): void;
|
|
51
53
|
export declare function lineIterator(pages: IDocumentSkeletonPage[], iteratorFunction: (line: IDocumentSkeletonLine) => void): void;
|
|
52
54
|
export declare function columnIterator(pages: IDocumentSkeletonPage[], iteratorFunction: (column: IDocumentSkeletonColumn) => void): void;
|
|
53
|
-
export declare function getPositionHorizon(positionH:
|
|
54
|
-
export declare function getPositionVertical(positionV:
|
|
55
|
+
export declare function getPositionHorizon(positionH: IObjectPositionH, column: IDocumentSkeletonColumn, page: IDocumentSkeletonPage, objectWidth: number, isPageBreak?: boolean): number | undefined;
|
|
56
|
+
export declare function getPositionVertical(positionV: IObjectPositionV, page: IDocumentSkeletonPage, lineTop: number, lineHeight: number, objectHeight: number, blockAnchorTop?: number, isPageBreak?: boolean): number | undefined;
|
|
55
57
|
export declare function getGlyphGroupWidth(divide: IDocumentSkeletonDivide): number;
|
|
56
58
|
interface IFontCreateConfig {
|
|
57
59
|
fontStyle: IDocumentSkeletonFontStyle;
|
|
@@ -62,5 +64,41 @@ interface IFontCreateConfig {
|
|
|
62
64
|
pageWidth: number;
|
|
63
65
|
}
|
|
64
66
|
export declare function clearFontCreateConfigCache(): void;
|
|
67
|
+
export declare function getFontConfigFromLastGlyph(glyph: IDocumentSkeletonGlyph, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): {
|
|
68
|
+
fontStyle: IDocumentSkeletonFontStyle;
|
|
69
|
+
textStyle: ITextStyle;
|
|
70
|
+
charSpace: number;
|
|
71
|
+
gridType: GridType;
|
|
72
|
+
snapToGrid: BooleanNumber;
|
|
73
|
+
pageWidth: number;
|
|
74
|
+
};
|
|
65
75
|
export declare function getFontCreateConfig(index: number, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): IFontCreateConfig;
|
|
76
|
+
export declare function getNullSkeleton(): IDocumentSkeletonCached;
|
|
77
|
+
export declare function setPageParent(pages: IDocumentSkeletonPage[], parent: IDocumentSkeletonCached): void;
|
|
78
|
+
export interface ILayoutContext {
|
|
79
|
+
viewModel: DocumentViewModel;
|
|
80
|
+
dataModel: DocumentDataModel;
|
|
81
|
+
docsConfig: IDocsConfig;
|
|
82
|
+
skeleton: IDocumentSkeletonCached;
|
|
83
|
+
layoutStartPointer: {
|
|
84
|
+
paragraphIndex: Nullable<number>;
|
|
85
|
+
};
|
|
86
|
+
isDirty: boolean;
|
|
87
|
+
skeletonResourceReference: ISkeletonResourceReference;
|
|
88
|
+
drawingsCache: Map<string, {
|
|
89
|
+
count: number;
|
|
90
|
+
page: IDocumentSkeletonPage;
|
|
91
|
+
drawing: IDocumentSkeletonDrawing;
|
|
92
|
+
}>;
|
|
93
|
+
paragraphConfigCache: Map<number, IParagraphConfig>;
|
|
94
|
+
sectionBreakConfigCache: Map<number, ISectionBreakConfig>;
|
|
95
|
+
paragraphsOpenNewPage: Set<number>;
|
|
96
|
+
hyphen: Hyphen;
|
|
97
|
+
languageDetector: LanguageDetector;
|
|
98
|
+
}
|
|
99
|
+
export declare const DEFAULT_PAGE_SIZE: {
|
|
100
|
+
width: number;
|
|
101
|
+
height: number;
|
|
102
|
+
};
|
|
103
|
+
export declare function prepareSectionBreakConfig(ctx: ILayoutContext, nodeIndex: number): ISectionBreakConfig;
|
|
66
104
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IDocumentOffsetConfig } from '../document';
|
|
2
|
-
import { DocumentSkeleton } from '../layout/doc-skeleton';
|
|
3
|
-
import { IPoint } from '../../../basics/vector2';
|
|
4
|
-
import { INodePosition } from '../../../basics/interfaces';
|
|
5
1
|
import { ITextRange, Nullable } from '@univerjs/core';
|
|
2
|
+
import { INodePosition } from '../../../basics/interfaces';
|
|
3
|
+
import { IPoint } from '../../../basics/vector2';
|
|
4
|
+
import { DocumentSkeleton } from '../layout/doc-skeleton';
|
|
5
|
+
import { IDocumentOffsetConfig } from '../document';
|
|
6
6
|
|
|
7
7
|
export declare enum NodePositionStateType {
|
|
8
8
|
NORMAL = 0,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Documents } from '../document';
|
|
2
|
-
import { DocumentSkeleton } from '../layout/doc-skeleton';
|
|
3
|
-
import { ThinScene } from '../../../thin-scene';
|
|
4
|
-
import { Rect } from '../../../shape/rect';
|
|
5
|
-
import { Scene } from '../../../scene';
|
|
6
|
-
import { IPoint } from '../../../basics/vector2';
|
|
7
|
-
import { ISuccinctTextRangeParam, ITextSelectionStyle, RANGE_DIRECTION } from '../../../basics/range';
|
|
8
|
-
import { INodePosition } from '../../../basics/interfaces';
|
|
9
1
|
import { Nullable } from '@univerjs/core';
|
|
2
|
+
import { INodePosition } from '../../../basics/interfaces';
|
|
3
|
+
import { ISuccinctTextRangeParam, ITextSelectionStyle, RANGE_DIRECTION } from '../../../basics/range';
|
|
4
|
+
import { IPoint } from '../../../basics/vector2';
|
|
5
|
+
import { Scene } from '../../../scene';
|
|
6
|
+
import { Rect } from '../../../shape/rect';
|
|
7
|
+
import { ThinScene } from '../../../thin-scene';
|
|
8
|
+
import { DocumentSkeleton } from '../layout/doc-skeleton';
|
|
9
|
+
import { Documents } from '../document';
|
|
10
10
|
|
|
11
|
-
export declare const TEXT_RANGE_LAYER_INDEX =
|
|
11
|
+
export declare const TEXT_RANGE_LAYER_INDEX = 3;
|
|
12
12
|
export declare function cursorConvertToTextRange(scene: Scene, range: ISuccinctTextRangeParam, docSkeleton: DocumentSkeleton, document: Documents): Nullable<TextRange>;
|
|
13
13
|
export declare function getAnchorBounding(pointsGroup: IPoint[][]): {
|
|
14
14
|
left: number;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { TextRange } from './text-range';
|
|
2
|
-
import { Documents } from '../document';
|
|
3
|
-
import { DocumentSkeleton } from '../layout/doc-skeleton';
|
|
4
|
-
import { Viewport } from '../../../viewport';
|
|
5
|
-
import { Scene } from '../../../scene';
|
|
6
|
-
import { Engine } from '../../../engine';
|
|
7
|
-
import { ISuccinctTextRangeParam, ITextRangeWithStyle, ITextSelectionStyle, RANGE_DIRECTION } from '../../../basics/range';
|
|
8
|
-
import { INodePosition } from '../../../basics/interfaces';
|
|
9
|
-
import { IMouseEvent, IPointerEvent } from '../../../basics/i-events';
|
|
10
|
-
import { Observable } from 'rxjs';
|
|
11
1
|
import { Nullable, ILogService, RxDisposable } from '@univerjs/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IMouseEvent, IPointerEvent } from '../../../basics/i-events';
|
|
4
|
+
import { INodePosition } from '../../../basics/interfaces';
|
|
5
|
+
import { ISuccinctTextRangeParam, ITextRangeWithStyle, ITextSelectionStyle, RANGE_DIRECTION } from '../../../basics/range';
|
|
6
|
+
import { Engine } from '../../../engine';
|
|
7
|
+
import { Scene } from '../../../scene';
|
|
8
|
+
import { Viewport } from '../../../viewport';
|
|
9
|
+
import { DocumentSkeleton } from '../layout/doc-skeleton';
|
|
10
|
+
import { Documents } from '../document';
|
|
11
|
+
import { TextRange } from './text-range';
|
|
12
12
|
|
|
13
13
|
export declare function getCanvasOffsetByEngine(engine: Nullable<Engine>): {
|
|
14
14
|
left: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DataStreamTreeNode } from './data-stream-tree-node';
|
|
2
|
-
import { IDisposable } from '@wendellhu/redi';
|
|
3
1
|
import { IDocumentBody, ITextRun, DocumentDataModel } from '@univerjs/core';
|
|
2
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
3
|
+
import { DataStreamTreeNode } from './data-stream-tree-node';
|
|
4
4
|
|
|
5
5
|
export declare class DocumentViewModel implements IDisposable {
|
|
6
6
|
private _documentDataModel;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UniverRenderingContext } from '../context';
|
|
2
|
-
import { Vector2 } from '../basics/vector2';
|
|
3
|
-
import { BaseObject } from '../base-object';
|
|
4
1
|
import { IDocumentRenderConfig, IScale, Nullable, Registry } from '@univerjs/core';
|
|
2
|
+
import { BaseObject } from '../base-object';
|
|
3
|
+
import { Vector2 } from '../basics/vector2';
|
|
4
|
+
import { UniverRenderingContext } from '../context';
|
|
5
5
|
|
|
6
6
|
export interface IExtensionConfig {
|
|
7
7
|
originTranslate?: Vector2;
|
|
@@ -23,6 +23,7 @@ export declare class ComponentExtension<T, U, V> {
|
|
|
23
23
|
draw(ctx: UniverRenderingContext, parentScale: IScale, skeleton: T, diffBounds?: V): void;
|
|
24
24
|
clearCache(): void;
|
|
25
25
|
protected _getScale(parentScale: IScale): number;
|
|
26
|
+
dispose(): void;
|
|
26
27
|
}
|
|
27
28
|
export declare const SpreadsheetExtensionRegistry: Registry<any>;
|
|
28
29
|
export declare const SheetRowHeaderExtensionRegistry: Registry<any>;
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SpreadsheetHeader } from './sheet-component';
|
|
3
|
-
import { ColumnHeaderLayout } from './extensions/column-header-layout';
|
|
4
|
-
import { UniverRenderingContext } from '../../context';
|
|
1
|
+
import { Nullable } from '@univerjs/core';
|
|
5
2
|
import { IViewportBound, Vector2 } from '../../basics/vector2';
|
|
3
|
+
import { UniverRenderingContext } from '../../context';
|
|
4
|
+
import { ColumnHeaderLayout } from './extensions/column-header-layout';
|
|
5
|
+
import { SpreadsheetHeader } from './sheet-component';
|
|
6
|
+
import { SpreadsheetSkeleton } from './sheet-skeleton';
|
|
6
7
|
|
|
7
8
|
export declare class SpreadsheetColumnHeader extends SpreadsheetHeader {
|
|
9
|
+
getDocuments(): void;
|
|
10
|
+
getNoMergeCellPositionByIndex(rowIndex: number, columnIndex: number): Nullable<{
|
|
11
|
+
startY: number;
|
|
12
|
+
startX: number;
|
|
13
|
+
endX: number;
|
|
14
|
+
endY: number;
|
|
15
|
+
}>;
|
|
16
|
+
getSelectionBounding(startRow: number, startColumn: number, endRow: number, endColumn: number): Nullable<{
|
|
17
|
+
startRow: number;
|
|
18
|
+
startColumn: number;
|
|
19
|
+
endRow: number;
|
|
20
|
+
endColumn: number;
|
|
21
|
+
}>;
|
|
8
22
|
private _columnHeaderLayoutExtension;
|
|
9
23
|
constructor(oKey: string, spreadsheetSkeleton?: SpreadsheetSkeleton);
|
|
10
24
|
get columnHeaderLayoutExtension(): ColumnHeaderLayout;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SheetExtension } from './sheet-extension';
|
|
2
|
-
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
-
import { UniverRenderingContext } from '../../../context';
|
|
4
1
|
import { IRange, IScale } from '@univerjs/core';
|
|
2
|
+
import { UniverRenderingContext } from '../../../context';
|
|
3
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
4
|
+
import { SheetExtension } from './sheet-extension';
|
|
5
5
|
|
|
6
6
|
export declare class Background extends SheetExtension {
|
|
7
7
|
uKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SheetExtension } from './sheet-extension';
|
|
2
|
-
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
-
import { UniverRenderingContext } from '../../../context';
|
|
4
1
|
import { IRange, IScale } from '@univerjs/core';
|
|
2
|
+
import { UniverRenderingContext } from '../../../context';
|
|
3
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
4
|
+
import { SheetExtension } from './sheet-extension';
|
|
5
5
|
|
|
6
6
|
export declare class Border extends SheetExtension {
|
|
7
7
|
uKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SheetExtension } from './sheet-extension';
|
|
2
|
-
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
-
import { UniverRenderingContext } from '../../../context';
|
|
4
1
|
import { IScale } from '@univerjs/core';
|
|
2
|
+
import { UniverRenderingContext } from '../../../context';
|
|
3
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
4
|
+
import { SheetExtension } from './sheet-extension';
|
|
5
5
|
|
|
6
6
|
export declare class ColumnHeaderLayout extends SheetExtension {
|
|
7
7
|
uKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SheetExtension } from './sheet-extension';
|
|
2
|
-
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
-
import { UniverRenderingContext } from '../../../context';
|
|
4
1
|
import { IRange, IScale } from '@univerjs/core';
|
|
2
|
+
import { UniverRenderingContext } from '../../../context';
|
|
3
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
4
|
+
import { SheetExtension } from './sheet-extension';
|
|
5
5
|
|
|
6
6
|
export declare class Custom extends SheetExtension {
|
|
7
7
|
protected Z_INDEX: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SheetExtension } from './sheet-extension';
|
|
2
|
-
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
-
import { UniverRenderingContext } from '../../../context';
|
|
4
1
|
import { IRange, IScale } from '@univerjs/core';
|
|
2
|
+
import { UniverRenderingContext } from '../../../context';
|
|
3
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
4
|
+
import { SheetExtension } from './sheet-extension';
|
|
5
5
|
|
|
6
6
|
export interface ISheetFontRenderExtension {
|
|
7
7
|
fontRenderExtension?: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SheetExtension } from './sheet-extension';
|
|
2
|
-
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
-
import { UniverRenderingContext } from '../../../context';
|
|
4
1
|
import { IRange, IScale } from '@univerjs/core';
|
|
2
|
+
import { UniverRenderingContext } from '../../../context';
|
|
3
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
4
|
+
import { SheetExtension } from './sheet-extension';
|
|
5
5
|
|
|
6
6
|
export declare class Marker extends SheetExtension {
|
|
7
7
|
protected Z_INDEX: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SheetExtension } from './sheet-extension';
|
|
2
|
-
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
-
import { UniverRenderingContext } from '../../../context';
|
|
4
1
|
import { IScale } from '@univerjs/core';
|
|
2
|
+
import { UniverRenderingContext } from '../../../context';
|
|
3
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
4
|
+
import { SheetExtension } from './sheet-extension';
|
|
5
5
|
|
|
6
6
|
export declare class RowHeaderLayout extends SheetExtension {
|
|
7
7
|
uKey: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
2
|
-
import { ComponentExtension } from '../../extension';
|
|
3
1
|
import { IRange } from '@univerjs/core';
|
|
2
|
+
import { ComponentExtension } from '../../extension';
|
|
3
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
4
4
|
|
|
5
5
|
export declare enum SHEET_EXTENSION_TYPE {
|
|
6
6
|
GRID = 0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DocumentSkeleton } from '../docs/layout/doc-skeleton';
|
|
2
|
-
import { BORDER_TYPE } from '../../basics/const';
|
|
3
1
|
import { BorderStyleTypes, HorizontalAlign, ISelectionCellWithCoord, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
2
|
+
import { BORDER_TYPE } from '../../basics/const';
|
|
3
|
+
import { DocumentSkeleton } from '../docs/layout/doc-skeleton';
|
|
4
4
|
|
|
5
5
|
export interface BorderCache {
|
|
6
6
|
[key: string]: BorderCacheItem | {};
|
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SpreadsheetHeader } from './sheet-component';
|
|
3
|
-
import { RowHeaderLayout } from './extensions/row-header-layout';
|
|
4
|
-
import { UniverRenderingContext } from '../../context';
|
|
1
|
+
import { Nullable } from '@univerjs/core';
|
|
5
2
|
import { IViewportBound, Vector2 } from '../../basics/vector2';
|
|
3
|
+
import { UniverRenderingContext } from '../../context';
|
|
4
|
+
import { RowHeaderLayout } from './extensions/row-header-layout';
|
|
5
|
+
import { SpreadsheetHeader } from './sheet-component';
|
|
6
|
+
import { SpreadsheetSkeleton } from './sheet-skeleton';
|
|
6
7
|
|
|
7
8
|
export declare class SpreadsheetRowHeader extends SpreadsheetHeader {
|
|
9
|
+
getDocuments(): void;
|
|
10
|
+
getNoMergeCellPositionByIndex(rowIndex: number, columnIndex: number): Nullable<{
|
|
11
|
+
startY: number;
|
|
12
|
+
startX: number;
|
|
13
|
+
endX: number;
|
|
14
|
+
endY: number;
|
|
15
|
+
}>;
|
|
16
|
+
getSelectionBounding(startRow: number, startColumn: number, endRow: number, endColumn: number): Nullable<{
|
|
17
|
+
startRow: number;
|
|
18
|
+
startColumn: number;
|
|
19
|
+
endRow: number;
|
|
20
|
+
endColumn: number;
|
|
21
|
+
}>;
|
|
8
22
|
private _rowHeaderLayoutExtension;
|
|
9
23
|
constructor(oKey: string, spreadsheetSkeleton?: SpreadsheetSkeleton);
|
|
10
24
|
get rowHeaderLayoutExtension(): RowHeaderLayout;
|