@univerjs/engine-render 0.1.10 → 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 +12028 -11426
- 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 +8 -8
- 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 +2 -0
- package/lib/types/basics/interfaces.d.ts +3 -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 +4 -4
- package/lib/types/components/docs/doc-background.d.ts +3 -3
- package/lib/types/components/docs/doc-component.d.ts +7 -15
- package/lib/types/components/docs/doc-extension.d.ts +2 -2
- package/lib/types/components/docs/document.d.ts +7 -7
- 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 -3
- package/lib/types/components/docs/layout/block/paragraph/layout.d.ts +4 -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 +4 -4
- package/lib/types/components/docs/layout/block/paragraph/shaping.d.ts +7 -5
- package/lib/types/components/docs/layout/block/section.d.ts +5 -6
- package/lib/types/components/docs/layout/doc-skeleton.d.ts +7 -5
- 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/components/docs/layout/{linebreak/index.d.ts → line-breaker/__tests__/linebreak.spec.d.ts} +1 -1
- 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/line-breaker/index.d.ts +16 -0
- 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 +3 -2
- package/lib/types/components/docs/layout/model/line.d.ts +1 -2
- package/lib/types/components/docs/layout/model/page.d.ts +2 -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 +16 -4
- 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 +3 -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 +11 -11
- package/lib/types/components/sheets/sheet-skeleton.d.ts +7 -7
- package/lib/types/components/sheets/spreadsheet.d.ts +7 -7
- package/lib/types/components/skeleton.d.ts +1 -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 -4
- package/lib/types/group.d.ts +3 -4
- package/lib/types/layer.d.ts +3 -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 +6 -6
- package/lib/types/scene.d.ts +12 -13
- package/lib/types/scene.input-manager.d.ts +2 -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/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/{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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UniverRenderingContext } from './context';
|
|
3
|
-
import { IViewportBound, Vector2 } from './basics/vector2';
|
|
4
|
-
import { Transform } from './basics/transform';
|
|
5
|
-
import { IObjectFullState, ITransformChangeState } from './basics/interfaces';
|
|
6
|
-
import { IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events';
|
|
1
|
+
import { EventState, IKeyValue, Nullable, Observer, Disposable, Observable } from '@univerjs/core';
|
|
7
2
|
import { EVENT_TYPE, CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const';
|
|
8
|
-
import {
|
|
3
|
+
import { IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events';
|
|
4
|
+
import { IObjectFullState, ITransformChangeState } from './basics/interfaces';
|
|
5
|
+
import { Transform } from './basics/transform';
|
|
6
|
+
import { IViewportBound, Vector2 } from './basics/vector2';
|
|
7
|
+
import { UniverRenderingContext } from './context';
|
|
8
|
+
import { Layer } from './layer';
|
|
9
9
|
|
|
10
10
|
export declare const BASE_OBJECT_ARRAY: string[];
|
|
11
|
-
export declare abstract class BaseObject {
|
|
11
|
+
export declare abstract class BaseObject extends Disposable {
|
|
12
12
|
groupKey?: string;
|
|
13
13
|
isInGroup: boolean;
|
|
14
14
|
onTransformChangeObservable: Observable<ITransformChangeState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDocumentSkeletonGlyph } from './i-document-skeleton-cached';
|
|
2
1
|
import { IDocumentBody, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonGlyph } from './i-document-skeleton-cached';
|
|
3
3
|
|
|
4
4
|
export declare function hasListGlyph(glyph: Nullable<IDocumentSkeletonGlyph>): boolean;
|
|
5
5
|
export declare function isIndentByGlyph(glyph: Nullable<IDocumentSkeletonGlyph>, body?: IDocumentBody): boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Vector2 } from './vector2';
|
|
2
|
-
import { IDocumentSkeletonLine } from './i-document-skeleton-cached';
|
|
3
|
-
import { BORDER_TYPE, ORIENTATION_TYPE } from './const';
|
|
4
|
-
import { UniverRenderingContext } from '../context';
|
|
5
1
|
import { IPosition, BorderStyleTypes } from '@univerjs/core';
|
|
2
|
+
import { UniverRenderingContext } from '../context';
|
|
3
|
+
import { BORDER_TYPE, ORIENTATION_TYPE } from './const';
|
|
4
|
+
import { IDocumentSkeletonLine } from './i-document-skeleton-cached';
|
|
5
|
+
import { Vector2 } from './vector2';
|
|
6
6
|
|
|
7
7
|
export interface IContext2D extends CanvasRenderingContext2D {
|
|
8
8
|
webkitBackingStorePixelRatio: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType, IDocumentRenderConfig, IDrawing, IIndentStart, INestingLevel, ITextStyle, PageOrientType } from '@univerjs/core';
|
|
2
|
+
import { BreakPointType } from '../components/docs/layout/line-breaker/break';
|
|
2
3
|
|
|
3
4
|
export interface IDocumentSkeletonCached extends ISkeletonResourceReference {
|
|
4
5
|
pages: IDocumentSkeletonPage[];
|
|
@@ -108,6 +109,7 @@ export interface IDocumentSkeletonDivide {
|
|
|
108
109
|
isFull: boolean;
|
|
109
110
|
st: number;
|
|
110
111
|
ed: number;
|
|
112
|
+
breakType?: BreakPointType;
|
|
111
113
|
parent?: IDocumentSkeletonLine;
|
|
112
114
|
}
|
|
113
115
|
export interface IAdjustability {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Vector2 } from './vector2';
|
|
2
|
-
import { IDocumentSkeletonBullet, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonFontStyle, IDocumentSkeletonFooter, IDocumentSkeletonGlyph, IDocumentSkeletonHeader } from './i-document-skeleton-cached';
|
|
3
|
-
import { DocumentViewModel } from '../components/docs/view-model/document-view-model';
|
|
4
1
|
import { BooleanNumber, GridType, IDocStyleBase, IDocumentLayout, IOffset, IParagraphStyle, IReferenceSource, IScale, ISectionBreakBase, ISize, ITextStyle, ITransformState, LocaleService } from '@univerjs/core';
|
|
2
|
+
import { DocumentViewModel } from '../components/docs/view-model/document-view-model';
|
|
3
|
+
import { IDocumentSkeletonBullet, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonFontStyle, IDocumentSkeletonFooter, IDocumentSkeletonGlyph, IDocumentSkeletonHeader } from './i-document-skeleton-cached';
|
|
4
|
+
import { Vector2 } from './vector2';
|
|
5
5
|
|
|
6
6
|
export interface IObjectFullState extends ITransformState {
|
|
7
7
|
strokeWidth?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IMouseEvent, IPointerEvent } from './i-events';
|
|
2
1
|
import { BaseObject } from '../base-object';
|
|
2
|
+
import { IMouseEvent, IPointerEvent } from './i-events';
|
|
3
3
|
|
|
4
4
|
export declare function attachObjectHover(o: BaseObject, hoverIn: (o: any, evt: IPointerEvent | IMouseEvent) => void, hoverOut: (o: any, evt: IPointerEvent | IMouseEvent) => void): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IDocumentSkeletonFontStyle } from './i-document-skeleton-cached';
|
|
2
|
-
import { IBoundRectNoAngle } from './vector2';
|
|
3
1
|
import { IRange, IRangeWithCoord, IScale, ISelectionCell, ISelectionCellWithCoord, IStyleBase, LocaleService, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IBoundRectNoAngle } from './vector2';
|
|
3
|
+
import { IDocumentSkeletonFontStyle } from './i-document-skeleton-cached';
|
|
4
4
|
|
|
5
5
|
export declare const getColor: (RgbArray: number[], opacity?: number) => string;
|
|
6
6
|
export declare const toPx: (num: number | string, ReferenceValue: Nullable<number>) => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Vector2 } from './vector2';
|
|
2
|
-
import { IRect } from './interfaces';
|
|
3
1
|
import { ITransformState } from '@univerjs/core';
|
|
2
|
+
import { IRect } from './interfaces';
|
|
3
|
+
import { Vector2 } from './vector2';
|
|
4
4
|
|
|
5
5
|
export declare const INITIAL_MATRIX: number[];
|
|
6
6
|
export declare class Transform {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentExtension } from './extension';
|
|
2
|
-
import { UniverRenderingContext } from '../context';
|
|
3
|
-
import { IViewportBound } from '../basics/vector2';
|
|
4
|
-
import { BaseObject } from '../base-object';
|
|
5
1
|
import { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import { BaseObject } from '../base-object';
|
|
3
|
+
import { IViewportBound } from '../basics/vector2';
|
|
4
|
+
import { UniverRenderingContext } from '../context';
|
|
5
|
+
import { ComponentExtension } from './extension';
|
|
6
6
|
|
|
7
7
|
export declare class RenderComponent<T, U, V> extends BaseObject {
|
|
8
8
|
private _extensions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DocumentSkeleton } from './layout/doc-skeleton';
|
|
2
|
-
import { IDocumentsConfig, DocComponent } from './doc-component';
|
|
3
|
-
import { UniverRenderingContext } from '../../context';
|
|
4
1
|
import { IViewportBound } from '../../basics/vector2';
|
|
2
|
+
import { UniverRenderingContext } from '../../context';
|
|
3
|
+
import { IDocumentsConfig, DocComponent } from './doc-component';
|
|
4
|
+
import { DocumentSkeleton } from './layout/doc-skeleton';
|
|
5
5
|
|
|
6
6
|
export declare class DocBackground extends DocComponent {
|
|
7
7
|
private _drawLiquid;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { DocumentSkeleton } from './layout/doc-skeleton';
|
|
2
|
-
import { DOCS_EXTENSION_TYPE } from './doc-extension';
|
|
3
|
-
import { RenderComponent } from '../component';
|
|
4
|
-
import { UniverRenderingContext } from '../../context';
|
|
5
|
-
import { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2';
|
|
6
|
-
import { INodeInfo } from '../../basics/interfaces';
|
|
7
1
|
import { IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage, PageLayoutType } from '../../basics/i-document-skeleton-cached';
|
|
8
|
-
import {
|
|
2
|
+
import { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2';
|
|
3
|
+
import { UniverRenderingContext } from '../../context';
|
|
4
|
+
import { RenderComponent } from '../component';
|
|
5
|
+
import { DOCS_EXTENSION_TYPE } from './doc-extension';
|
|
6
|
+
import { DocumentSkeleton } from './layout/doc-skeleton';
|
|
9
7
|
|
|
10
8
|
export interface IPageMarginLayout {
|
|
11
9
|
pageMarginLeft: number;
|
|
@@ -15,7 +13,7 @@ export interface IPageMarginLayout {
|
|
|
15
13
|
export interface IDocumentsConfig extends IPageMarginLayout {
|
|
16
14
|
hasEditor?: boolean;
|
|
17
15
|
}
|
|
18
|
-
export declare class DocComponent extends RenderComponent<IDocumentSkeletonGlyph | IDocumentSkeletonLine, DOCS_EXTENSION_TYPE, IBoundRectNoAngle[]> {
|
|
16
|
+
export declare abstract class DocComponent extends RenderComponent<IDocumentSkeletonGlyph | IDocumentSkeletonLine, DOCS_EXTENSION_TYPE, IBoundRectNoAngle[]> {
|
|
19
17
|
private _skeleton?;
|
|
20
18
|
pageMarginLeft: number;
|
|
21
19
|
pageMarginTop: number;
|
|
@@ -30,11 +28,5 @@ export declare class DocComponent extends RenderComponent<IDocumentSkeletonGlyph
|
|
|
30
28
|
scaleY: any;
|
|
31
29
|
};
|
|
32
30
|
isSkipByDiffBounds(page: IDocumentSkeletonPage, pageTop: number, pageLeft: number, bounds?: IViewportBound): boolean;
|
|
33
|
-
|
|
34
|
-
syncSelection(): void;
|
|
35
|
-
remainActiveSelection(): void;
|
|
36
|
-
findNodeByCoord(offsetX: number, offsetY: number): Nullable<INodeInfo>;
|
|
37
|
-
findCoordByNode(glyph: IDocumentSkeletonGlyph): void;
|
|
38
|
-
protected _getBounding(bounds?: IViewportBound): void;
|
|
39
|
-
protected _draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
|
|
31
|
+
protected abstract _draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
|
|
40
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComponentExtension } from '../extension';
|
|
2
|
-
import { IBoundRectNoAngle } from '../../basics/vector2';
|
|
3
1
|
import { IDocumentSkeletonGlyph, IDocumentSkeletonLine } from '../../basics/i-document-skeleton-cached';
|
|
2
|
+
import { IBoundRectNoAngle } from '../../basics/vector2';
|
|
3
|
+
import { ComponentExtension } from '../extension';
|
|
4
4
|
|
|
5
5
|
export declare enum DOCS_EXTENSION_TYPE {
|
|
6
6
|
SPAN = 0,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DocumentSkeleton } from './layout/doc-skeleton';
|
|
2
|
-
import { IDocumentsConfig, IPageMarginLayout, DocComponent } from './doc-component';
|
|
3
|
-
import { Scene } from '../../scene';
|
|
4
|
-
import { UniverRenderingContext } from '../../context';
|
|
5
|
-
import { IViewportBound } from '../../basics/vector2';
|
|
6
|
-
import { Transform } from '../../basics/transform';
|
|
7
|
-
import { IDocumentSkeletonPage } from '../../basics/i-document-skeleton-cached';
|
|
8
1
|
import { Nullable, Observable } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonPage } from '../../basics/i-document-skeleton-cached';
|
|
3
|
+
import { Transform } from '../../basics/transform';
|
|
4
|
+
import { IViewportBound } from '../../basics/vector2';
|
|
5
|
+
import { UniverRenderingContext } from '../../context';
|
|
6
|
+
import { Scene } from '../../scene';
|
|
7
|
+
import { IDocumentsConfig, IPageMarginLayout, DocComponent } from './doc-component';
|
|
8
|
+
import { DocumentSkeleton } from './layout/doc-skeleton';
|
|
9
9
|
|
|
10
10
|
export interface IPageRenderConfig {
|
|
11
11
|
page: IDocumentSkeletonPage;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { docExtension } from '../doc-extension';
|
|
2
|
-
import { UniverRenderingContext } from '../../../context';
|
|
3
|
-
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
|
|
4
1
|
import { IScale } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { docExtension } from '../doc-extension';
|
|
5
5
|
|
|
6
6
|
export declare class Background extends docExtension {
|
|
7
7
|
uKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { docExtension } from '../doc-extension';
|
|
2
|
-
import { UniverRenderingContext } from '../../../context';
|
|
3
|
-
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
|
|
4
1
|
import { IScale } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { docExtension } from '../doc-extension';
|
|
5
5
|
|
|
6
6
|
export declare class Border extends docExtension {
|
|
7
7
|
uKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { docExtension } from '../doc-extension';
|
|
2
|
-
import { UniverRenderingContext } from '../../../context';
|
|
3
|
-
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
|
|
4
1
|
import { IScale } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { docExtension } from '../doc-extension';
|
|
5
5
|
|
|
6
6
|
export declare class FontAndBaseLine extends docExtension {
|
|
7
7
|
uKey: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { docExtension } from '../doc-extension';
|
|
2
|
-
import { UniverRenderingContext } from '../../../context';
|
|
3
|
-
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
|
|
4
1
|
import { IScale } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonGlyph } from '../../../basics/i-document-skeleton-cached';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { docExtension } from '../doc-extension';
|
|
5
5
|
|
|
6
6
|
export declare class Line extends docExtension {
|
|
7
7
|
uKey: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IDocumentSkeletonBullet } from '../../../../../basics/i-document-skeleton-cached';
|
|
2
1
|
import { IBullet, ILists, LocaleService, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonBullet } from '../../../../../basics/i-document-skeleton-cached';
|
|
3
3
|
|
|
4
4
|
export declare function dealWithBullet(bullet?: IBullet, lists?: ILists, listLevelAncestors?: Array<Nullable<IDocumentSkeletonBullet>>, localeService?: LocaleService): IDocumentSkeletonBullet | undefined;
|
|
5
5
|
export declare function getDefaultBulletSke(listId: string, startIndex?: number): IDocumentSkeletonBullet;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DocumentViewModel } from '../../../view-model/document-view-model';
|
|
2
|
-
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
3
|
-
import { ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
4
1
|
import { IParagraphStyle } from '@univerjs/core';
|
|
2
|
+
import { ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
3
|
+
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
4
|
+
import { DocumentViewModel } from '../../../view-model/document-view-model';
|
|
5
5
|
|
|
6
6
|
export declare function otherHandler(index: number, charArray: string, bodyModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, paragraphStyle: IParagraphStyle): {
|
|
7
7
|
step: number;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ILayoutContext } from '../../tools';
|
|
2
|
-
import { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
3
1
|
import { IDocumentSkeletonGlyph, IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
|
|
2
|
+
import { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
3
|
+
import { ILayoutContext } from '../../tools';
|
|
4
|
+
import { BreakPointType } from '../../line-breaker/break';
|
|
4
5
|
|
|
5
|
-
export declare function layoutParagraph(ctx: ILayoutContext, glyphGroup: IDocumentSkeletonGlyph[], pages: IDocumentSkeletonPage[], sectionBreakConfig: ISectionBreakConfig, paragraphConfig: IParagraphConfig, paragraphStart?: boolean): IDocumentSkeletonPage[];
|
|
6
|
+
export declare function layoutParagraph(ctx: ILayoutContext, glyphGroup: IDocumentSkeletonGlyph[], pages: IDocumentSkeletonPage[], sectionBreakConfig: ISectionBreakConfig, paragraphConfig: IParagraphConfig, paragraphStart?: boolean, breakPointType?: BreakPointType): IDocumentSkeletonPage[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DocumentViewModel } from '../../../view-model/document-view-model';
|
|
2
|
-
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
3
|
-
import { ILayoutContext } from '../../tools';
|
|
4
|
-
import { ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
5
1
|
import { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
|
|
2
|
+
import { ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
3
|
+
import { ILayoutContext } from '../../tools';
|
|
4
|
+
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
5
|
+
import { DocumentViewModel } from '../../../view-model/document-view-model';
|
|
6
6
|
|
|
7
7
|
export declare function dealWidthParagraph(ctx: ILayoutContext, viewModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig): IDocumentSkeletonPage[];
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
|
|
2
|
-
import {
|
|
2
|
+
import { DocumentViewModel } from '../../../view-model/document-view-model';
|
|
3
|
+
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
4
|
+
import { ISectionBreakConfig } from '../../../../../basics';
|
|
3
5
|
|
|
4
|
-
export declare function lineAdjustment(pages: IDocumentSkeletonPage[],
|
|
6
|
+
export declare function lineAdjustment(pages: IDocumentSkeletonPage[], viewModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IShapedText } from './shaping';
|
|
2
|
-
import { ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
3
|
-
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
4
|
-
import { ILayoutContext } from '../../tools';
|
|
5
1
|
import { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
|
|
2
|
+
import { ILayoutContext } from '../../tools';
|
|
3
|
+
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
4
|
+
import { ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
5
|
+
import { IShapedText } from './shaping';
|
|
6
6
|
|
|
7
7
|
export declare function lineBreaking(ctx: ILayoutContext, shapedTextList: IShapedText[], curPage: IDocumentSkeletonPage, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig): IDocumentSkeletonPage[];
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
2
|
-
import { DocumentViewModel } from '../../../view-model/document-view-model';
|
|
3
|
-
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
4
1
|
import { IDocumentSkeletonGlyph } from '../../../../../basics/i-document-skeleton-cached';
|
|
5
|
-
import {
|
|
2
|
+
import { ILayoutContext } from '../../tools';
|
|
3
|
+
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
4
|
+
import { DocumentViewModel } from '../../../view-model/document-view-model';
|
|
5
|
+
import { ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
6
|
+
import { BreakPointType } from '../../line-breaker/break';
|
|
6
7
|
|
|
7
8
|
export interface IShapedText {
|
|
8
9
|
text: string;
|
|
9
10
|
glyphs: IDocumentSkeletonGlyph[];
|
|
11
|
+
breakPointType: BreakPointType;
|
|
10
12
|
}
|
|
11
|
-
export declare function shaping(content: string,
|
|
13
|
+
export declare function shaping(ctx: ILayoutContext, content: string, viewModel: DocumentViewModel, paragraphNode: DataStreamTreeNode, sectionBreakConfig: ISectionBreakConfig, useOpenType?: boolean): IShapedText[];
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { ILayoutContext } from '../tools';
|
|
2
|
-
import { DocumentViewModel } from '../../view-model/document-view-model';
|
|
3
|
-
import { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
|
|
4
|
-
import { ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
5
|
-
import { IDocumentSkeletonPage } from '../../../../basics/i-document-skeleton-cached';
|
|
6
1
|
import { Nullable } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonPage } from '../../../../basics/i-document-skeleton-cached';
|
|
3
|
+
import { ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
4
|
+
import { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
|
|
5
|
+
import { DocumentViewModel } from '../../view-model/document-view-model';
|
|
6
|
+
import { ILayoutContext } from '../tools';
|
|
7
7
|
|
|
8
8
|
export declare function dealWithSection(ctx: ILayoutContext, viewModel: DocumentViewModel, sectionNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, layoutAnchor: Nullable<number>): {
|
|
9
9
|
pages: IDocumentSkeletonPage[];
|
|
10
10
|
renderedBlockIdMap: Map<string, boolean>;
|
|
11
11
|
};
|
|
12
|
-
export declare function dealWidthBlocksByMultiColumnAndContinuous(): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { DocumentViewModel } from '../view-model/document-view-model';
|
|
2
|
-
import { Skeleton } from '../../skeleton';
|
|
3
|
-
import { IViewportBound, Vector2 } from '../../../basics/vector2';
|
|
4
|
-
import { INodeInfo, INodePosition, INodeSearch } from '../../../basics/interfaces';
|
|
5
|
-
import { IDocumentSkeletonCached, IDocumentSkeletonGlyph, PageLayoutType } from '../../../basics/i-document-skeleton-cached';
|
|
6
1
|
import { LocaleService, Nullable } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonCached, IDocumentSkeletonGlyph, PageLayoutType } from '../../../basics/i-document-skeleton-cached';
|
|
3
|
+
import { INodeInfo, INodePosition, INodeSearch } from '../../../basics/interfaces';
|
|
4
|
+
import { IViewportBound, Vector2 } from '../../../basics/vector2';
|
|
5
|
+
import { Skeleton } from '../../skeleton';
|
|
6
|
+
import { DocumentViewModel } from '../view-model/document-view-model';
|
|
7
7
|
|
|
8
8
|
export declare enum DocumentSkeletonState {
|
|
9
9
|
PENDING = "pending",
|
|
@@ -15,6 +15,8 @@ export declare class DocumentSkeleton extends Skeleton {
|
|
|
15
15
|
private _docViewModel;
|
|
16
16
|
private _skeletonData;
|
|
17
17
|
private _findLiquid;
|
|
18
|
+
private _hyphen;
|
|
19
|
+
private _languageDetector;
|
|
18
20
|
private _iteratorCount;
|
|
19
21
|
constructor(_docViewModel: DocumentViewModel, localeService: LocaleService);
|
|
20
22
|
static create(docViewModel: DocumentViewModel, localeService: LocaleService): DocumentSkeleton;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import { Lang } from './lang';
|
|
3
|
+
|
|
4
|
+
export declare class Hyphen implements IDisposable {
|
|
5
|
+
private _patterns;
|
|
6
|
+
private _hyphenCache;
|
|
7
|
+
private static _instance;
|
|
8
|
+
static getInstance(): Hyphen;
|
|
9
|
+
constructor();
|
|
10
|
+
private _preloadPatterns;
|
|
11
|
+
private _loadExceptionsToCache;
|
|
12
|
+
loadPattern(lang: Lang): Promise<void>;
|
|
13
|
+
fetchHyphenCache(lang: Lang): Map<string, string[]> | undefined;
|
|
14
|
+
hasPattern(lang: Lang): boolean;
|
|
15
|
+
hyphenate(word: string, lang: Lang): string[] | undefined;
|
|
16
|
+
dispose(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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 enum Lang {
|
|
17
|
+
Af = "af",
|
|
18
|
+
As = "as",
|
|
19
|
+
Be = "be",
|
|
20
|
+
Bg = "bg",
|
|
21
|
+
Bn = "bn",
|
|
22
|
+
Ca = "ca",
|
|
23
|
+
Cop = "cop",
|
|
24
|
+
Cs = "cs",
|
|
25
|
+
Cu = "cu",
|
|
26
|
+
Cy = "cy",
|
|
27
|
+
Da = "da",
|
|
28
|
+
De1901 = "de-1901",
|
|
29
|
+
De1996 = "de-1996",
|
|
30
|
+
DeCh1901 = "de-ch-1901",
|
|
31
|
+
ElMonoton = "el-monoton",
|
|
32
|
+
ElPolyton = "el-polyton",
|
|
33
|
+
EnGb = "en-gb",
|
|
34
|
+
EnUs = "en-us",
|
|
35
|
+
Es = "es",
|
|
36
|
+
Et = "et",
|
|
37
|
+
Eu = "eu",
|
|
38
|
+
Fi = "fi",
|
|
39
|
+
Fr = "fr",
|
|
40
|
+
Fur = "fur",
|
|
41
|
+
Ga = "ga",
|
|
42
|
+
Gl = "gl",
|
|
43
|
+
Grc = "grc",
|
|
44
|
+
Gu = "gu",
|
|
45
|
+
Hi = "hi",
|
|
46
|
+
Hr = "hr",
|
|
47
|
+
Hsb = "hsb",
|
|
48
|
+
Hu = "hu",
|
|
49
|
+
Hy = "hy",
|
|
50
|
+
Ia = "ia",
|
|
51
|
+
Id = "id",
|
|
52
|
+
Is = "is",
|
|
53
|
+
It = "it",
|
|
54
|
+
Ka = "ka",
|
|
55
|
+
Kmr = "kmr",
|
|
56
|
+
Kn = "kn",
|
|
57
|
+
LaXClassic = "la-x-classic",
|
|
58
|
+
LaXLiturgic = "la-x-liturgic",
|
|
59
|
+
La = "la",
|
|
60
|
+
Lt = "lt",
|
|
61
|
+
Lv = "lv",
|
|
62
|
+
Ml = "ml",
|
|
63
|
+
MnCyrlXLmc = "mn-cyrl-x-lmc",
|
|
64
|
+
MnCyrl = "mn-cyrl",
|
|
65
|
+
Mr = "mr",
|
|
66
|
+
MulEthi = "mul-ethi",
|
|
67
|
+
Nb = "nb",
|
|
68
|
+
Nl = "nl",
|
|
69
|
+
Nn = "nn",
|
|
70
|
+
No = "no",
|
|
71
|
+
Oc = "oc",
|
|
72
|
+
Or = "or",
|
|
73
|
+
Pa = "pa",
|
|
74
|
+
Pi = "pi",
|
|
75
|
+
Pl = "pl",
|
|
76
|
+
Pms = "pms",
|
|
77
|
+
Pt = "pt",
|
|
78
|
+
Rm = "rm",
|
|
79
|
+
Ro = "ro",
|
|
80
|
+
Ru = "ru",
|
|
81
|
+
Sa = "sa",
|
|
82
|
+
ShCyrl = "sh-cyrl",
|
|
83
|
+
ShLatn = "sh-latn",
|
|
84
|
+
Sk = "sk",
|
|
85
|
+
Sl = "sl",
|
|
86
|
+
SrCyrl = "sr-cyrl",
|
|
87
|
+
Sv = "sv",
|
|
88
|
+
Ta = "ta",
|
|
89
|
+
Te = "te",
|
|
90
|
+
Th = "th",
|
|
91
|
+
Tk = "tk",
|
|
92
|
+
Tr = "tr",
|
|
93
|
+
Uk = "uk",
|
|
94
|
+
ZhLatnPinyin = "zh-latn-pinyin",
|
|
95
|
+
UNKNOWN = "unknown"
|
|
96
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IDisposable } from '@wendellhu/redi';
|
|
2
|
+
import { Lang } from './lang';
|
|
3
|
+
|
|
4
|
+
export declare class LanguageDetector implements IDisposable {
|
|
5
|
+
private _detectCache;
|
|
6
|
+
private static _instance;
|
|
7
|
+
static getInstance(): LanguageDetector;
|
|
8
|
+
detect(text: string): Lang;
|
|
9
|
+
dispose(): void;
|
|
10
|
+
}
|
|
@@ -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 Af: (string | string[])[];
|
|
@@ -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 As: (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 Be: (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 Bg: (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 Bn: (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 Ca: (string | string[])[];
|