@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
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IViewportBound, Vector2 } from './basics/vector2';
|
|
3
|
-
import { Transform } from './basics/transform';
|
|
4
|
-
import { IObjectFullState, ITransformChangeState } from './basics/interfaces';
|
|
5
|
-
import { IMouseEvent, IPointerEvent, IWheelEvent } from './basics/i-events';
|
|
1
|
+
import { EventState, IKeyValue, Nullable, Observer, Disposable, Observable } from '@univerjs/core';
|
|
6
2
|
import { EVENT_TYPE, CURSOR_TYPE, RENDER_CLASS_TYPE } from './basics/const';
|
|
7
|
-
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';
|
|
8
9
|
|
|
9
10
|
export declare const BASE_OBJECT_ARRAY: string[];
|
|
10
|
-
export declare abstract class BaseObject {
|
|
11
|
+
export declare abstract class BaseObject extends Disposable {
|
|
11
12
|
groupKey?: string;
|
|
12
13
|
isInGroup: boolean;
|
|
13
14
|
onTransformChangeObservable: Observable<ITransformChangeState>;
|
|
@@ -80,7 +81,7 @@ export declare abstract class BaseObject {
|
|
|
80
81
|
get debounceParentDirty(): boolean;
|
|
81
82
|
get isTransformer(): boolean;
|
|
82
83
|
get cursor(): CURSOR_TYPE;
|
|
83
|
-
get layer():
|
|
84
|
+
get layer(): Nullable<Layer>;
|
|
84
85
|
set transform(trans: Transform);
|
|
85
86
|
set zIndex(index: number);
|
|
86
87
|
set parent(o: any);
|
|
@@ -88,7 +89,7 @@ export declare abstract class BaseObject {
|
|
|
88
89
|
set debounceParentDirty(state: boolean);
|
|
89
90
|
set isTransformer(state: boolean);
|
|
90
91
|
set cursor(val: CURSOR_TYPE);
|
|
91
|
-
set layer(layer:
|
|
92
|
+
set layer(layer: Layer);
|
|
92
93
|
protected set top(num: number | string);
|
|
93
94
|
protected set left(num: number | string);
|
|
94
95
|
protected set width(num: number | string);
|
|
@@ -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 {
|
|
@@ -131,6 +133,7 @@ export interface IDocumentSkeletonGlyph {
|
|
|
131
133
|
parent?: IDocumentSkeletonDivide;
|
|
132
134
|
url?: string;
|
|
133
135
|
featureId?: string;
|
|
136
|
+
objectId?: string;
|
|
134
137
|
}
|
|
135
138
|
export interface IDocumentSkeletonBullet extends IIndentStart {
|
|
136
139
|
listId: string;
|
|
@@ -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;
|
|
@@ -63,6 +63,7 @@ export interface ISectionBreakConfig extends IDocStyleBase, ISectionBreakBase, I
|
|
|
63
63
|
export interface IParagraphConfig {
|
|
64
64
|
paragraphIndex: number;
|
|
65
65
|
paragraphAffectSkeDrawings?: Map<string, IDocumentSkeletonDrawing>;
|
|
66
|
+
paragraphInlineSkeDrawings?: Map<string, IDocumentSkeletonDrawing>;
|
|
66
67
|
bulletSkeleton?: IDocumentSkeletonBullet;
|
|
67
68
|
paragraphStyle?: IParagraphStyle;
|
|
68
69
|
skeHeaders: Map<string, Map<number, IDocumentSkeletonHeader>>;
|
|
@@ -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;
|
|
@@ -11,4 +11,5 @@ export declare class RenderComponent<T, U, V> extends BaseObject {
|
|
|
11
11
|
getExtensionsByOrder(): ComponentExtension<T, U, V>[];
|
|
12
12
|
getExtensionByKey(uKey: string): ComponentExtension<T, U, V> | undefined;
|
|
13
13
|
draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
|
|
14
|
+
dispose(): void;
|
|
14
15
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
|
|
6
|
+
export declare class DocBackground extends DocComponent {
|
|
7
|
+
private _drawLiquid;
|
|
8
|
+
constructor(oKey: string, documentSkeleton?: DocumentSkeleton, config?: IDocumentsConfig);
|
|
9
|
+
static create(oKey: string, documentSkeleton?: DocumentSkeleton, config?: IDocumentsConfig): DocBackground;
|
|
10
|
+
draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
|
|
11
|
+
changeSkeleton(newSkeleton: DocumentSkeleton): this;
|
|
12
|
+
protected _draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
|
|
13
|
+
}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DOCS_EXTENSION_TYPE } from './doc-extension';
|
|
3
|
-
import { RenderComponent } from '../component';
|
|
4
|
-
import { UniverRenderingContext } from '../../context';
|
|
1
|
+
import { IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage, PageLayoutType } from '../../basics/i-document-skeleton-cached';
|
|
5
2
|
import { IBoundRectNoAngle, IViewportBound } from '../../basics/vector2';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
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
|
-
export
|
|
8
|
+
export interface IPageMarginLayout {
|
|
9
|
+
pageMarginLeft: number;
|
|
10
|
+
pageMarginTop: number;
|
|
11
|
+
pageLayoutType?: PageLayoutType;
|
|
12
|
+
}
|
|
13
|
+
export interface IDocumentsConfig extends IPageMarginLayout {
|
|
14
|
+
hasEditor?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare abstract class DocComponent extends RenderComponent<IDocumentSkeletonGlyph | IDocumentSkeletonLine, DOCS_EXTENSION_TYPE, IBoundRectNoAngle[]> {
|
|
11
17
|
private _skeleton?;
|
|
12
18
|
pageMarginLeft: number;
|
|
13
19
|
pageMarginTop: number;
|
|
14
20
|
pageLayoutType: PageLayoutType;
|
|
15
|
-
constructor(oKey: string, _skeleton?: DocumentSkeleton | undefined);
|
|
21
|
+
constructor(oKey: string, _skeleton?: DocumentSkeleton | undefined, config?: IDocumentsConfig);
|
|
16
22
|
getSkeleton(): DocumentSkeleton | undefined;
|
|
17
23
|
setSkeleton(skeleton: DocumentSkeleton): void;
|
|
24
|
+
private _setConfig;
|
|
18
25
|
render(mainCtx: UniverRenderingContext, bounds?: IViewportBound): this | undefined;
|
|
19
26
|
getParentScale(): {
|
|
20
27
|
scaleX: any;
|
|
21
28
|
scaleY: any;
|
|
22
29
|
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
remainActiveSelection(): void;
|
|
26
|
-
findNodeByCoord(offsetX: number, offsetY: number): Nullable<INodeInfo>;
|
|
27
|
-
findCoordByNode(glyph: IDocumentSkeletonGlyph): void;
|
|
28
|
-
protected _getBounding(bounds?: IViewportBound): void;
|
|
29
|
-
protected _draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
|
|
30
|
+
isSkipByDiffBounds(page: IDocumentSkeletonPage, pageTop: number, pageLeft: number, bounds?: IViewportBound): boolean;
|
|
31
|
+
protected abstract _draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
|
|
30
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,20 +1,12 @@
|
|
|
1
|
-
import { DocumentSkeleton } from './layout/doc-skeleton';
|
|
2
|
-
import { 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, PageLayoutType } 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
|
-
interface IPageMarginLayout {
|
|
11
|
-
pageMarginLeft: number;
|
|
12
|
-
pageMarginTop: number;
|
|
13
|
-
pageLayoutType?: PageLayoutType;
|
|
14
|
-
}
|
|
15
|
-
export interface IDocumentsConfig extends IPageMarginLayout {
|
|
16
|
-
hasEditor?: boolean;
|
|
17
|
-
}
|
|
18
10
|
export interface IPageRenderConfig {
|
|
19
11
|
page: IDocumentSkeletonPage;
|
|
20
12
|
pageLeft: number;
|
|
@@ -35,7 +27,7 @@ export declare class Documents extends DocComponent {
|
|
|
35
27
|
private _skeletonObserver;
|
|
36
28
|
constructor(oKey: string, documentSkeleton?: DocumentSkeleton, config?: IDocumentsConfig);
|
|
37
29
|
static create(oKey: string, documentSkeleton?: DocumentSkeleton, config?: IDocumentsConfig): Documents;
|
|
38
|
-
|
|
30
|
+
dispose(): void;
|
|
39
31
|
getOffsetConfig(): IDocumentOffsetConfig;
|
|
40
32
|
getEngine(): Nullable<import('../..').ThinEngine<Scene>>;
|
|
41
33
|
draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
|
|
@@ -46,6 +38,4 @@ export declare class Documents extends DocComponent {
|
|
|
46
38
|
private _startRotation;
|
|
47
39
|
private _resetRotation;
|
|
48
40
|
private _initialDefaultExtension;
|
|
49
|
-
private _isSkipByDiffBounds;
|
|
50
41
|
}
|
|
51
|
-
export {};
|
|
@@ -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,4 +1,6 @@
|
|
|
1
|
-
import { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
2
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';
|
|
3
5
|
|
|
4
|
-
export declare function layoutParagraph(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,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
1
|
+
import { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
|
|
3
2
|
import { ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
4
|
-
import {
|
|
3
|
+
import { ILayoutContext } from '../../tools';
|
|
4
|
+
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
5
|
+
import { DocumentViewModel } from '../../../view-model/document-view-model';
|
|
5
6
|
|
|
6
|
-
export declare function dealWidthParagraph(
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import { DocumentViewModel } from '../../../view-model/document-view-model';
|
|
1
|
+
import { IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
|
|
2
|
+
import { ILayoutContext } from '../../tools';
|
|
4
3
|
import { DataStreamTreeNode } from '../../../view-model/data-stream-tree-node';
|
|
5
|
-
import {
|
|
4
|
+
import { ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
5
|
+
import { IShapedText } from './shaping';
|
|
6
6
|
|
|
7
|
-
export declare function lineBreaking(shapedTextList: IShapedText[], curPage: IDocumentSkeletonPage,
|
|
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,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Nullable } from '@univerjs/core';
|
|
2
|
+
import { IDocumentSkeletonPage } from '../../../../basics/i-document-skeleton-cached';
|
|
3
3
|
import { ISectionBreakConfig } from '../../../../basics/interfaces';
|
|
4
|
-
import {
|
|
4
|
+
import { DataStreamTreeNode } from '../../view-model/data-stream-tree-node';
|
|
5
|
+
import { DocumentViewModel } from '../../view-model/document-view-model';
|
|
6
|
+
import { ILayoutContext } from '../tools';
|
|
5
7
|
|
|
6
|
-
export declare function
|
|
8
|
+
export declare function dealWithSection(ctx: ILayoutContext, viewModel: DocumentViewModel, sectionNode: DataStreamTreeNode, curPage: IDocumentSkeletonPage, sectionBreakConfig: ISectionBreakConfig, layoutAnchor: Nullable<number>): {
|
|
7
9
|
pages: IDocumentSkeletonPage[];
|
|
8
10
|
renderedBlockIdMap: Map<string, boolean>;
|
|
9
11
|
};
|
|
10
|
-
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",
|
|
@@ -14,10 +14,13 @@ export declare enum DocumentSkeletonState {
|
|
|
14
14
|
export declare class DocumentSkeleton extends Skeleton {
|
|
15
15
|
private _docViewModel;
|
|
16
16
|
private _skeletonData;
|
|
17
|
-
private _renderedBlockIdMap;
|
|
18
17
|
private _findLiquid;
|
|
18
|
+
private _hyphen;
|
|
19
|
+
private _languageDetector;
|
|
20
|
+
private _iteratorCount;
|
|
19
21
|
constructor(_docViewModel: DocumentViewModel, localeService: LocaleService);
|
|
20
22
|
static create(docViewModel: DocumentViewModel, localeService: LocaleService): DocumentSkeleton;
|
|
23
|
+
dispose(): void;
|
|
21
24
|
getViewModel(): DocumentViewModel;
|
|
22
25
|
calculate(bounds?: IViewportBound): void;
|
|
23
26
|
getSkeletonData(): Nullable<IDocumentSkeletonCached>;
|
|
@@ -35,6 +38,7 @@ export declare class DocumentSkeleton extends Skeleton {
|
|
|
35
38
|
private _getNearestNode;
|
|
36
39
|
private _getPageBoundingBox;
|
|
37
40
|
private _translatePage;
|
|
41
|
+
private _prepareLayoutContext;
|
|
38
42
|
/**
|
|
39
43
|
* \v COLUMN_BREAK
|
|
40
44
|
* \f PAGE_BREAK
|
|
@@ -63,8 +67,6 @@ export declare class DocumentSkeleton extends Skeleton {
|
|
|
63
67
|
* @returns view model: skeleton
|
|
64
68
|
*/
|
|
65
69
|
private _createSkeleton;
|
|
66
|
-
private _setPageParent;
|
|
67
70
|
private _addNewSectionByContinuous;
|
|
68
|
-
private _getNullSke;
|
|
69
71
|
private _findNodeIterator;
|
|
70
72
|
}
|
|
@@ -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[])[];
|