ooxml-core 1.30.1 → 1.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PptxHandler-KKLAYUGQ.mjs → PptxHandler-QY5VL3CY.mjs} +2 -2
- package/dist/PptxHandler-SJ5ZUIUX.mjs +4 -0
- package/dist/{PptxHandler-DHQPVTUI.cjs → PptxHandler-TESZUH66.cjs} +3 -3
- package/dist/{PresentationBuilder-YYZYCKTZ.mjs → PresentationBuilder-3CH5TR4W.mjs} +2 -2
- package/dist/{PresentationBuilder-JORMF5CP.cjs → PresentationBuilder-5NFBUP7Y.cjs} +5 -5
- package/dist/{PresentationBuilder-Q2Z33LLM.mjs → PresentationBuilder-S6HXHKEJ.mjs} +2 -2
- package/dist/automation/index.cjs +6446 -3410
- package/dist/automation/index.mjs +6446 -3410
- package/dist/automation/node.cjs +2 -1
- package/dist/automation/node.d.ts.map +1 -1
- package/dist/automation/node.mjs +2 -1
- package/dist/automation/tools/define.d.ts +2 -0
- package/dist/automation/tools/define.d.ts.map +1 -1
- package/dist/automation/tools/types.d.ts +6 -0
- package/dist/automation/tools/types.d.ts.map +1 -1
- package/dist/{chunk-GJDFCP2T.mjs → chunk-3H5UAJB3.mjs} +258 -155
- package/dist/{chunk-MKDONWNO.mjs → chunk-4R65YYAD.mjs} +32 -14
- package/dist/{chunk-KWJYMAEF.mjs → chunk-IOTGRLJH.mjs} +255 -152
- package/dist/{chunk-6FXOAMNL.mjs → chunk-N6424WKA.mjs} +1 -1
- package/dist/{chunk-WZJ25K7P.mjs → chunk-NAWLWKOJ.mjs} +1 -1
- package/dist/{chunk-DJ3CDTMX.mjs → chunk-O7SVHLD7.mjs} +23 -5
- package/dist/{chunk-CZXM4ZJH.cjs → chunk-Q6NM64J2.cjs} +23 -4
- package/dist/{chunk-FFJBOR2Y.mjs → chunk-UYMSFJQZ.mjs} +76 -4
- package/dist/{chunk-B4LXDHBX.cjs → chunk-X6VNUBES.cjs} +1419 -1316
- package/dist/collab/index.cjs +35 -4
- package/dist/collab/index.mjs +35 -4
- package/dist/collab/websocket-transport.d.ts +9 -1
- package/dist/collab/websocket-transport.d.ts.map +1 -1
- package/dist/diagram/index.cjs +8 -4
- package/dist/diagram/index.mjs +8 -4
- package/dist/docx/data-binding.d.ts +9 -0
- package/dist/docx/data-binding.d.ts.map +1 -0
- package/dist/docx/document-parts.d.ts +1 -0
- package/dist/docx/document-parts.d.ts.map +1 -1
- package/dist/docx/drawing.d.ts.map +1 -1
- package/dist/docx/embedded.cjs +1391 -613
- package/dist/docx/embedded.mjs +1391 -613
- package/dist/docx/index.cjs +1402 -622
- package/dist/docx/index.mjs +1402 -622
- package/dist/docx/inline-model.d.ts +2 -0
- package/dist/docx/inline-model.d.ts.map +1 -1
- package/dist/docx/layout/adapt-floats.d.ts.map +1 -1
- package/dist/docx/layout/adapt-table.d.ts.map +1 -1
- package/dist/docx/layout/adapter.d.ts.map +1 -1
- package/dist/docx/layout/equation-object.d.ts +1 -1
- package/dist/docx/layout/equation-object.d.ts.map +1 -1
- package/dist/docx/layout/floats.d.ts +1 -1
- package/dist/docx/layout/floats.d.ts.map +1 -1
- package/dist/docx/layout/flow-paragraph.d.ts +4 -0
- package/dist/docx/layout/flow-paragraph.d.ts.map +1 -1
- package/dist/docx/layout/flow-table.d.ts.map +1 -1
- package/dist/docx/layout/index.cjs +460 -207
- package/dist/docx/layout/index.mjs +460 -207
- package/dist/docx/layout/input.d.ts +12 -0
- package/dist/docx/layout/input.d.ts.map +1 -1
- package/dist/docx/layout/nested-frame-profile.d.ts +3 -1
- package/dist/docx/layout/nested-frame-profile.d.ts.map +1 -1
- package/dist/docx/layout/page-cursor.d.ts +11 -2
- package/dist/docx/layout/page-cursor.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-fragments.d.ts.map +1 -1
- package/dist/docx/layout/paragraph-layout.d.ts +5 -0
- package/dist/docx/layout/paragraph-layout.d.ts.map +1 -1
- package/dist/docx/layout/result.d.ts +4 -0
- package/dist/docx/layout/result.d.ts.map +1 -1
- package/dist/docx/layout/section-flow.d.ts +2 -0
- package/dist/docx/layout/section-flow.d.ts.map +1 -1
- package/dist/docx/layout/table-layout.d.ts +4 -14
- package/dist/docx/layout/table-layout.d.ts.map +1 -1
- package/dist/docx/layout/table-merged-rows.d.ts +21 -0
- package/dist/docx/layout/table-merged-rows.d.ts.map +1 -0
- package/dist/docx/layout/table-row-split.d.ts +16 -0
- package/dist/docx/layout/table-row-split.d.ts.map +1 -0
- package/dist/docx/layout/wrap.d.ts +2 -0
- package/dist/docx/layout/wrap.d.ts.map +1 -1
- package/dist/docx/load/index.cjs +1405 -627
- package/dist/docx/load/index.mjs +1405 -627
- package/dist/docx/model-paragraph.d.ts +4 -1
- package/dist/docx/model-paragraph.d.ts.map +1 -1
- package/dist/docx/model.d.ts +24 -1
- package/dist/docx/model.d.ts.map +1 -1
- package/dist/docx/paragraph-properties.d.ts.map +1 -1
- package/dist/docx/paragraph-styles.d.ts.map +1 -1
- package/dist/docx/parse-table.d.ts.map +1 -1
- package/dist/docx/parse.d.ts.map +1 -1
- package/dist/docx/run-segmentation.d.ts.map +1 -1
- package/dist/docx/save-modified.d.ts +4 -0
- package/dist/docx/save-modified.d.ts.map +1 -0
- package/dist/docx/save.d.ts +2 -2
- package/dist/docx/save.d.ts.map +1 -1
- package/dist/docx/style-formatting-package.d.ts +9 -0
- package/dist/docx/style-formatting-package.d.ts.map +1 -0
- package/dist/docx/style-numbering-package.d.ts +4 -1
- package/dist/docx/style-numbering-package.d.ts.map +1 -1
- package/dist/docx/table-grid.d.ts +35 -0
- package/dist/docx/table-grid.d.ts.map +1 -0
- package/dist/docx/table-structure-cells.d.ts +19 -0
- package/dist/docx/table-structure-cells.d.ts.map +1 -0
- package/dist/docx/table-structure-check.d.ts +12 -0
- package/dist/docx/table-structure-check.d.ts.map +1 -0
- package/dist/docx/table-structure-merge.d.ts +28 -0
- package/dist/docx/table-structure-merge.d.ts.map +1 -0
- package/dist/docx/table-structure.d.ts +30 -0
- package/dist/docx/table-structure.d.ts.map +1 -0
- package/dist/docx/ui/index.cjs +725 -260
- package/dist/docx/ui/index.d.ts +4 -0
- package/dist/docx/ui/index.d.ts.map +1 -1
- package/dist/docx/ui/index.mjs +711 -261
- package/dist/docx/ui/ribbon-action-ids.d.ts +1 -1
- package/dist/docx/ui/ribbon-action-ids.d.ts.map +1 -1
- package/dist/docx/ui/table-structure-guard.d.ts +2 -0
- package/dist/docx/ui/table-structure-guard.d.ts.map +1 -1
- package/dist/docx/word-content-control-docs.d.ts +5 -0
- package/dist/docx/word-content-control-docs.d.ts.map +1 -0
- package/dist/docx/word-corpus-gaps.d.ts +10 -0
- package/dist/docx/word-corpus-gaps.d.ts.map +1 -0
- package/dist/docx/word-measurer.d.ts +6 -0
- package/dist/docx/word-measurer.d.ts.map +1 -0
- package/dist/docx/word-spacing-docs.d.ts +12 -0
- package/dist/docx/word-spacing-docs.d.ts.map +1 -0
- package/dist/docx/word-table-docs.d.ts +9 -0
- package/dist/docx/word-table-docs.d.ts.map +1 -0
- package/dist/docx/write-drawing.d.ts.map +1 -1
- package/dist/docx/write-fallback.d.ts +5 -0
- package/dist/docx/write-fallback.d.ts.map +1 -0
- package/dist/docx/write-table-properties.d.ts +1 -0
- package/dist/docx/write-table-properties.d.ts.map +1 -1
- package/dist/docx/write-table-structure.d.ts +14 -0
- package/dist/docx/write-table-structure.d.ts.map +1 -0
- package/dist/docx/write-table.d.ts +3 -4
- package/dist/docx/write-table.d.ts.map +1 -1
- package/dist/geometry/index.cjs +16 -12
- package/dist/geometry/index.mjs +16 -12
- package/dist/geometry/preset-shape-definitions-table.d.ts.map +1 -1
- package/dist/index.cjs +38 -34
- package/dist/index.mjs +38 -34
- package/dist/math/index.cjs +22 -22
- package/dist/math/index.mjs +22 -22
- package/dist/math/omml-box-grouped.d.ts.map +1 -1
- package/dist/math/omml-box-layout.d.ts +3 -1
- package/dist/math/omml-box-layout.d.ts.map +1 -1
- package/dist/math/omml-box-structures.d.ts.map +1 -1
- package/dist/math/omml-box.d.ts +2 -0
- package/dist/math/omml-box.d.ts.map +1 -1
- package/dist/math/omml-svg.d.ts +6 -2
- package/dist/math/omml-svg.d.ts.map +1 -1
- package/dist/pptx/automation/index.cjs +295 -157
- package/dist/pptx/automation/index.d.ts +9 -3
- package/dist/pptx/automation/index.d.ts.map +1 -1
- package/dist/pptx/automation/index.mjs +6 -5
- package/dist/pptx/chunks/{index-PdM5zpmu.d.ts → index-D-FdgqrP.d.ts} +102 -3
- package/dist/pptx/chunks/index-D-FdgqrP.d.ts.map +1 -0
- package/dist/pptx/chunks/{index-BQDcu_0a.d.ts → index-DKybuHPT.d.ts} +51 -3
- package/dist/pptx/chunks/{index-BQDcu_0a.d.ts.map → index-DKybuHPT.d.ts.map} +1 -1
- package/dist/pptx/chunks/{index-CBV1oHN7.d.ts → index-DnWlmYCy.d.ts} +2 -2
- package/dist/pptx/chunks/{index-CBV1oHN7.d.ts.map → index-DnWlmYCy.d.ts.map} +1 -1
- package/dist/pptx/cli/index.cjs +294 -157
- package/dist/pptx/cli/index.mjs +4 -4
- package/dist/pptx/converter/index.cjs +8 -4
- package/dist/pptx/converter/index.d.ts +1 -1
- package/dist/pptx/converter/index.mjs +2 -2
- package/dist/pptx/editor/render/find-replace.cjs +14 -14
- package/dist/pptx/editor/render/find-replace.d.ts +1 -1
- package/dist/pptx/editor/render/find-replace.mjs +1 -1
- package/dist/pptx/editor/render/slide-operations.cjs +8 -8
- package/dist/pptx/editor/render/slide-operations.mjs +2 -2
- package/dist/pptx/index.cjs +380 -171
- package/dist/pptx/index.d.ts +4 -4
- package/dist/pptx/index.mjs +5 -5
- package/dist/pptx/node/index.d.ts +1 -1
- package/dist/teams/chat-rooms.d.ts.map +1 -1
- package/dist/teams/chat-view.d.ts +10 -1
- package/dist/teams/chat-view.d.ts.map +1 -1
- package/dist/teams/chat.d.ts +7 -0
- package/dist/teams/chat.d.ts.map +1 -1
- package/dist/teams/files.d.ts +1 -1
- package/dist/teams/files.d.ts.map +1 -1
- package/dist/teams/index.cjs +3471 -1223
- package/dist/teams/index.d.ts +4 -0
- package/dist/teams/index.d.ts.map +1 -1
- package/dist/teams/index.mjs +3435 -1223
- package/dist/teams/message-transfer.d.ts +1 -1
- package/dist/teams/message-transfer.d.ts.map +1 -1
- package/dist/teams/presence-controller.d.ts +18 -3
- package/dist/teams/presence-controller.d.ts.map +1 -1
- package/dist/teams/presence-meetings.d.ts +21 -0
- package/dist/teams/presence-meetings.d.ts.map +1 -0
- package/dist/teams/presence.d.ts +40 -2
- package/dist/teams/presence.d.ts.map +1 -1
- package/dist/teams/protocol.d.ts +30 -0
- package/dist/teams/protocol.d.ts.map +1 -0
- package/dist/teams/schema.d.ts +59 -0
- package/dist/teams/schema.d.ts.map +1 -0
- package/dist/teams/server-config.d.ts +19 -2
- package/dist/teams/server-config.d.ts.map +1 -1
- package/dist/teams/server-file-storage.d.ts +11 -1
- package/dist/teams/server-file-storage.d.ts.map +1 -1
- package/dist/teams/server-session.d.ts +2 -0
- package/dist/teams/server-session.d.ts.map +1 -1
- package/dist/teams/signaling.d.ts +2 -0
- package/dist/teams/signaling.d.ts.map +1 -1
- package/dist/teams/store.d.ts +14 -0
- package/dist/teams/store.d.ts.map +1 -1
- package/dist/teams/stored-file.d.ts +1 -1
- package/dist/teams/stored-file.d.ts.map +1 -1
- package/dist/teams/sync-transport.d.ts.map +1 -1
- package/dist/teams/validate-members.d.ts +28 -0
- package/dist/teams/validate-members.d.ts.map +1 -0
- package/dist/teams/validate-owned.d.ts +20 -0
- package/dist/teams/validate-owned.d.ts.map +1 -0
- package/dist/teams/validate-update.d.ts +70 -0
- package/dist/teams/validate-update.d.ts.map +1 -0
- package/dist/teams/view.d.ts +5 -0
- package/dist/teams/view.d.ts.map +1 -1
- package/dist/teams/workspace.d.ts +17 -2
- package/dist/teams/workspace.d.ts.map +1 -1
- package/dist/visio/connector-route-walk.d.ts +2 -0
- package/dist/visio/connector-route-walk.d.ts.map +1 -1
- package/dist/visio/edit-connector-reroute.d.ts.map +1 -1
- package/dist/visio/edit-connector.d.ts +2 -0
- package/dist/visio/edit-connector.d.ts.map +1 -1
- package/dist/visio/edit-delete.d.ts.map +1 -1
- package/dist/visio/edit-duplicate-line.d.ts +40 -0
- package/dist/visio/edit-duplicate-line.d.ts.map +1 -0
- package/dist/visio/edit-duplicate.d.ts.map +1 -1
- package/dist/visio/edit-formatting-scope.d.ts +5 -1
- package/dist/visio/edit-formatting-scope.d.ts.map +1 -1
- package/dist/visio/edit-geometry.d.ts.map +1 -1
- package/dist/visio/edit-instance-duplicate.d.ts +2 -1
- package/dist/visio/edit-instance-duplicate.d.ts.map +1 -1
- package/dist/visio/edit-master-move.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-index.d.ts +23 -0
- package/dist/visio/edit-recalculate-index.d.ts.map +1 -1
- package/dist/visio/edit-recalculate-text.d.ts +12 -0
- package/dist/visio/edit-recalculate-text.d.ts.map +1 -0
- package/dist/visio/edit-recalculate-values.d.ts.map +1 -1
- package/dist/visio/edit-recalculate.d.ts +15 -3
- package/dist/visio/edit-recalculate.d.ts.map +1 -1
- package/dist/visio/edit-resize-anchor.d.ts.map +1 -1
- package/dist/visio/edit-stencil-connector-layout.d.ts +1 -1
- package/dist/visio/edit-stencil-connector-layout.d.ts.map +1 -1
- package/dist/visio/edit-text-scope.d.ts +4 -1
- package/dist/visio/edit-text-scope.d.ts.map +1 -1
- package/dist/visio/formula-analyze.d.ts +18 -0
- package/dist/visio/formula-analyze.d.ts.map +1 -0
- package/dist/visio/formula-bound.d.ts +4 -0
- package/dist/visio/formula-bound.d.ts.map +1 -0
- package/dist/visio/formula-evaluate.d.ts +2 -9
- package/dist/visio/formula-evaluate.d.ts.map +1 -1
- package/dist/visio/formula-extra-functions.d.ts +23 -0
- package/dist/visio/formula-extra-functions.d.ts.map +1 -0
- package/dist/visio/formula-indirect.d.ts +6 -0
- package/dist/visio/formula-indirect.d.ts.map +1 -0
- package/dist/visio/formula-master.d.ts +1 -0
- package/dist/visio/formula-master.d.ts.map +1 -1
- package/dist/visio/formula-operators.d.ts +6 -0
- package/dist/visio/formula-operators.d.ts.map +1 -0
- package/dist/visio/formula-text-functions.d.ts +5 -1
- package/dist/visio/formula-text-functions.d.ts.map +1 -1
- package/dist/visio/formula.d.ts +12 -0
- package/dist/visio/formula.d.ts.map +1 -1
- package/dist/visio/index.cjs +1359 -396
- package/dist/visio/index.mjs +1359 -396
- package/dist/visio/ui/index.cjs +1346 -383
- package/dist/visio/ui/index.mjs +1346 -383
- package/dist/xlsx/collab/apply.d.ts.map +1 -1
- package/dist/xlsx/collab/codec.d.ts +2 -0
- package/dist/xlsx/collab/codec.d.ts.map +1 -1
- package/dist/xlsx/collab/dirty.d.ts +4 -1
- package/dist/xlsx/collab/dirty.d.ts.map +1 -1
- package/dist/xlsx/collab/index.cjs +551 -106
- package/dist/xlsx/collab/index.mjs +551 -106
- package/dist/xlsx/collab/keyed.d.ts +36 -0
- package/dist/xlsx/collab/keyed.d.ts.map +1 -0
- package/dist/xlsx/collab/names.d.ts +2 -0
- package/dist/xlsx/collab/names.d.ts.map +1 -1
- package/dist/xlsx/collab/part-specs.d.ts +13 -0
- package/dist/xlsx/collab/part-specs.d.ts.map +1 -0
- package/dist/xlsx/collab/schema.d.ts +8 -0
- package/dist/xlsx/collab/schema.d.ts.map +1 -1
- package/dist/xlsx/collab/sheet-parts.d.ts +19 -0
- package/dist/xlsx/collab/sheet-parts.d.ts.map +1 -0
- package/dist/xlsx/collab/sheets.d.ts +6 -0
- package/dist/xlsx/collab/sheets.d.ts.map +1 -1
- package/dist/xlsx/collab/write.d.ts +3 -0
- package/dist/xlsx/collab/write.d.ts.map +1 -1
- package/dist/xlsx/edit/clipboard-areas.d.ts +17 -0
- package/dist/xlsx/edit/clipboard-areas.d.ts.map +1 -0
- package/dist/xlsx/edit/custom-views.d.ts +21 -0
- package/dist/xlsx/edit/custom-views.d.ts.map +1 -0
- package/dist/xlsx/edit/data-table.d.ts.map +1 -1
- package/dist/xlsx/edit/history.d.ts +1 -1
- package/dist/xlsx/edit/history.d.ts.map +1 -1
- package/dist/xlsx/edit/index.d.ts +2 -0
- package/dist/xlsx/edit/index.d.ts.map +1 -1
- package/dist/xlsx/edit/paste-selection.d.ts.map +1 -1
- package/dist/xlsx/edit/scenario-merge.d.ts +7 -0
- package/dist/xlsx/edit/scenario-merge.d.ts.map +1 -0
- package/dist/xlsx/edit/session.d.ts.map +1 -1
- package/dist/xlsx/edit/shift-data-tables.d.ts +7 -0
- package/dist/xlsx/edit/shift-data-tables.d.ts.map +1 -0
- package/dist/xlsx/edit/shift-scenarios.d.ts +7 -0
- package/dist/xlsx/edit/shift-scenarios.d.ts.map +1 -0
- package/dist/xlsx/edit/shift-sheet.d.ts.map +1 -1
- package/dist/xlsx/edit/sparkline-grouping.d.ts +10 -0
- package/dist/xlsx/edit/sparkline-grouping.d.ts.map +1 -0
- package/dist/xlsx/edit/types.d.ts +21 -0
- package/dist/xlsx/edit/types.d.ts.map +1 -1
- package/dist/xlsx/formula/ets-drift-compare.d.ts +19 -0
- package/dist/xlsx/formula/ets-drift-compare.d.ts.map +1 -0
- package/dist/xlsx/formula/ets-excel-compare.d.ts +36 -0
- package/dist/xlsx/formula/ets-excel-compare.d.ts.map +1 -0
- package/dist/xlsx/formula/ets-init-compare.d.ts +24 -0
- package/dist/xlsx/formula/ets-init-compare.d.ts.map +1 -0
- package/dist/xlsx/formula/ets-init-maps.d.ts +21 -0
- package/dist/xlsx/formula/ets-init-maps.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-core.d.ts +36 -0
- package/dist/xlsx/formula/functions/ets-core.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-grid.d.ts +15 -0
- package/dist/xlsx/formula/functions/ets-grid.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-chain.d.ts +11 -0
- package/dist/xlsx/formula/functions/ets-init-chain.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-four.d.ts +3 -0
- package/dist/xlsx/formula/functions/ets-init-four.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-short.d.ts +17 -0
- package/dist/xlsx/formula/functions/ets-init-short.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-states.d.ts +5 -0
- package/dist/xlsx/formula/functions/ets-init-states.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-three.d.ts +23 -0
- package/dist/xlsx/formula/functions/ets-init-three.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init-threeplus.d.ts +13 -0
- package/dist/xlsx/formula/functions/ets-init-threeplus.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-init.d.ts +33 -0
- package/dist/xlsx/formula/functions/ets-init.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-input.d.ts +13 -0
- package/dist/xlsx/formula/functions/ets-input.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-search-map.d.ts +24 -0
- package/dist/xlsx/formula/functions/ets-search-map.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-search.d.ts +17 -0
- package/dist/xlsx/formula/functions/ets-search.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-season.d.ts +6 -0
- package/dist/xlsx/formula/functions/ets-season.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/ets-validate.d.ts +16 -0
- package/dist/xlsx/formula/functions/ets-validate.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/forecast-ets.d.ts +3 -0
- package/dist/xlsx/formula/functions/forecast-ets.d.ts.map +1 -0
- package/dist/xlsx/formula/functions/statistical.d.ts.map +1 -1
- package/dist/xlsx/index.cjs +5118 -2648
- package/dist/xlsx/index.mjs +5097 -2649
- package/dist/xlsx/layout/form-control-link.d.ts +20 -0
- package/dist/xlsx/layout/form-control-link.d.ts.map +1 -0
- package/dist/xlsx/layout/form-control-state.d.ts +49 -0
- package/dist/xlsx/layout/form-control-state.d.ts.map +1 -0
- package/dist/xlsx/layout/form-control-view.d.ts +11 -0
- package/dist/xlsx/layout/form-control-view.d.ts.map +1 -0
- package/dist/xlsx/layout/header-footer-edit.d.ts +4 -2
- package/dist/xlsx/layout/header-footer-edit.d.ts.map +1 -1
- package/dist/xlsx/layout/header-footer.d.ts +16 -0
- package/dist/xlsx/layout/header-footer.d.ts.map +1 -1
- package/dist/xlsx/layout/index.d.ts +5 -0
- package/dist/xlsx/layout/index.d.ts.map +1 -1
- package/dist/xlsx/layout/ref-evaluator.d.ts +6 -0
- package/dist/xlsx/layout/ref-evaluator.d.ts.map +1 -1
- package/dist/xlsx/layout/shape-paint.d.ts +25 -0
- package/dist/xlsx/layout/shape-paint.d.ts.map +1 -0
- package/dist/xlsx/layout/shape-view.d.ts +15 -0
- package/dist/xlsx/layout/shape-view.d.ts.map +1 -0
- package/dist/xlsx/load/index.cjs +2667 -1163
- package/dist/xlsx/load/index.mjs +2667 -1163
- package/dist/xlsx/model-custom-views.d.ts +33 -0
- package/dist/xlsx/model-custom-views.d.ts.map +1 -0
- package/dist/xlsx/model-shapes.d.ts +78 -0
- package/dist/xlsx/model-shapes.d.ts.map +1 -0
- package/dist/xlsx/model.d.ts +38 -1
- package/dist/xlsx/model.d.ts.map +1 -1
- package/dist/xlsx/read/custom-views.d.ts +5 -0
- package/dist/xlsx/read/custom-views.d.ts.map +1 -0
- package/dist/xlsx/read/drawing.d.ts.map +1 -1
- package/dist/xlsx/read/form-control.d.ts +14 -0
- package/dist/xlsx/read/form-control.d.ts.map +1 -0
- package/dist/xlsx/read/header-footer-images.d.ts +5 -0
- package/dist/xlsx/read/header-footer-images.d.ts.map +1 -0
- package/dist/xlsx/read/load.d.ts.map +1 -1
- package/dist/xlsx/read/shape.d.ts +5 -0
- package/dist/xlsx/read/shape.d.ts.map +1 -0
- package/dist/xlsx/read/sheet-data.d.ts.map +1 -1
- package/dist/xlsx/read/workbook-part.d.ts +5 -1
- package/dist/xlsx/read/workbook-part.d.ts.map +1 -1
- package/dist/xlsx/read/worksheet-children.d.ts +3 -0
- package/dist/xlsx/read/worksheet-children.d.ts.map +1 -0
- package/dist/xlsx/read/worksheet.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/sparklines.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/i18n/what-if.d.ts.map +1 -1
- package/dist/xlsx/ui/commands/what-if.d.ts +0 -1
- package/dist/xlsx/ui/commands/what-if.d.ts.map +1 -1
- package/dist/xlsx/ui/dialogs/forecast-sheet.d.ts +51 -0
- package/dist/xlsx/ui/dialogs/forecast-sheet.d.ts.map +1 -0
- package/dist/xlsx/ui/dialogs/scenario-summary.d.ts +15 -0
- package/dist/xlsx/ui/dialogs/scenario-summary.d.ts.map +1 -0
- package/dist/xlsx/ui/index.cjs +5088 -2399
- package/dist/xlsx/ui/index.d.ts +2 -0
- package/dist/xlsx/ui/index.d.ts.map +1 -1
- package/dist/xlsx/ui/index.mjs +5081 -2398
- package/dist/xlsx/ui/locales/de/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/en/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/es/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/fr/grid.d.ts.map +1 -1
- package/dist/xlsx/ui/locales/zh-CN/grid.d.ts.map +1 -1
- package/dist/xlsx/write/custom-views.d.ts +4 -0
- package/dist/xlsx/write/custom-views.d.ts.map +1 -0
- package/dist/xlsx/write/drawing.d.ts.map +1 -1
- package/dist/xlsx/write/form-control.d.ts +4 -0
- package/dist/xlsx/write/form-control.d.ts.map +1 -0
- package/dist/xlsx/write/sheet-data.d.ts.map +1 -1
- package/dist/xlsx/write/workbook-part.d.ts.map +1 -1
- package/dist/xlsx/write/worksheet.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/PptxHandler-E4DDV3FQ.mjs +0 -4
- package/dist/pptx/chunks/index-PdM5zpmu.d.ts.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -29450,7 +29450,8 @@ var pie = {
|
|
|
29450
29450
|
gd16("stAng", "pin 0 adj1 21599999"),
|
|
29451
29451
|
gd16("endAng", "pin 0 adj2 21599999"),
|
|
29452
29452
|
gd16("swAng", "+- endAng 0 stAng"),
|
|
29453
|
-
gd16("
|
|
29453
|
+
gd16("swAngWrap", "+- swAng 21600000 0"),
|
|
29454
|
+
gd16("swAng2", "?: swAng swAng swAngWrap"),
|
|
29454
29455
|
gd16("stx", "cos wd2 stAng"),
|
|
29455
29456
|
gd16("sty", "sin hd2 stAng"),
|
|
29456
29457
|
gd16("x1", "+- hc stx 0"),
|
|
@@ -29495,7 +29496,8 @@ var chord = {
|
|
|
29495
29496
|
gd16("stAng", "pin 0 adj1 21599999"),
|
|
29496
29497
|
gd16("endAng", "pin 0 adj2 21599999"),
|
|
29497
29498
|
gd16("swAng", "+- endAng 0 stAng"),
|
|
29498
|
-
gd16("
|
|
29499
|
+
gd16("swAngWrap", "+- swAng 21600000 0"),
|
|
29500
|
+
gd16("swAng2", "?: swAng swAng swAngWrap"),
|
|
29499
29501
|
gd16("stx", "cos wd2 stAng"),
|
|
29500
29502
|
gd16("sty", "sin hd2 stAng"),
|
|
29501
29503
|
gd16("x1", "+- hc stx 0"),
|
|
@@ -29519,7 +29521,8 @@ var arc = {
|
|
|
29519
29521
|
gd16("stAng", "pin 0 adj1 21599999"),
|
|
29520
29522
|
gd16("endAng", "pin 0 adj2 21599999"),
|
|
29521
29523
|
gd16("swAng", "+- endAng 0 stAng"),
|
|
29522
|
-
gd16("
|
|
29524
|
+
gd16("swAngWrap", "+- swAng 21600000 0"),
|
|
29525
|
+
gd16("swAng2", "?: swAng swAng swAngWrap"),
|
|
29523
29526
|
gd16("stx", "cos wd2 stAng"),
|
|
29524
29527
|
gd16("sty", "sin hd2 stAng"),
|
|
29525
29528
|
gd16("x1", "+- hc stx 0"),
|
|
@@ -29614,7 +29617,8 @@ var blockArc = {
|
|
|
29614
29617
|
gd16("iwd2", "+- wd2 0 thw"),
|
|
29615
29618
|
gd16("ihd2", "+- hd2 0 thh2"),
|
|
29616
29619
|
gd16("swAng", "+- endAng 0 stAng"),
|
|
29617
|
-
gd16("
|
|
29620
|
+
gd16("swAngWrap", "+- swAng 21600000 0"),
|
|
29621
|
+
gd16("swAng2", "?: swAng swAng swAngWrap"),
|
|
29618
29622
|
gd16("mswAng", "+- 0 0 swAng2"),
|
|
29619
29623
|
gd16("stx", "cos wd2 stAng"),
|
|
29620
29624
|
gd16("sty", "sin hd2 stAng"),
|
|
@@ -53801,8 +53805,8 @@ var CIRCULAR_ARROW_CONNECTION_SITES = {
|
|
|
53801
53805
|
gd17("yG", "+- yH dyG 0"),
|
|
53802
53806
|
gd17("dxB", "cos thh ptAng"),
|
|
53803
53807
|
gd17("dyB", "sin thh ptAng"),
|
|
53804
|
-
gd17("xB", "+- xH 0 dxB
|
|
53805
|
-
gd17("yB", "+- yH 0 dyB
|
|
53808
|
+
gd17("xB", "+- xH 0 dxB"),
|
|
53809
|
+
gd17("yB", "+- yH 0 dyB"),
|
|
53806
53810
|
gd17("sx1", "+- xB 0 hc"),
|
|
53807
53811
|
gd17("sy1", "+- yB 0 vc"),
|
|
53808
53812
|
gd17("sx2", "+- xG 0 hc"),
|
|
@@ -54337,8 +54341,8 @@ var LEFT_CIRCULAR_ARROW_CONNECTION_SITES = {
|
|
|
54337
54341
|
gd17("yG", "+- yH dyG 0"),
|
|
54338
54342
|
gd17("dxB", "cos thh ptAng"),
|
|
54339
54343
|
gd17("dyB", "sin thh ptAng"),
|
|
54340
|
-
gd17("xB", "+- xH 0 dxB
|
|
54341
|
-
gd17("yB", "+- yH 0 dyB
|
|
54344
|
+
gd17("xB", "+- xH 0 dxB"),
|
|
54345
|
+
gd17("yB", "+- yH 0 dyB"),
|
|
54342
54346
|
gd17("sx1", "+- xB 0 hc"),
|
|
54343
54347
|
gd17("sy1", "+- yB 0 vc"),
|
|
54344
54348
|
gd17("sx2", "+- xG 0 hc"),
|
|
@@ -54517,8 +54521,8 @@ var LEFT_RIGHT_CIRCULAR_ARROW_CONNECTION_SITES = {
|
|
|
54517
54521
|
gd17("yG", "+- yH dyG 0"),
|
|
54518
54522
|
gd17("dxB", "cos thh ptAng"),
|
|
54519
54523
|
gd17("dyB", "sin thh ptAng"),
|
|
54520
|
-
gd17("xB", "+- xH 0 dxB
|
|
54521
|
-
gd17("yB", "+- yH 0 dyB
|
|
54524
|
+
gd17("xB", "+- xH 0 dxB"),
|
|
54525
|
+
gd17("yB", "+- yH 0 dyB"),
|
|
54522
54526
|
gd17("sx1", "+- xB 0 hc"),
|
|
54523
54527
|
gd17("sy1", "+- yB 0 vc"),
|
|
54524
54528
|
gd17("sx2", "+- xG 0 hc"),
|
|
@@ -54629,8 +54633,8 @@ var LEFT_RIGHT_CIRCULAR_ARROW_CONNECTION_SITES = {
|
|
|
54629
54633
|
gd17("yK", "+- yI dyK 0"),
|
|
54630
54634
|
gd17("dxJ", "cos thh lptAng"),
|
|
54631
54635
|
gd17("dyJ", "sin thh lptAng"),
|
|
54632
|
-
gd17("xJ", "+- xI 0 dxJ
|
|
54633
|
-
gd17("yJ", "+- yI 0 dyJ
|
|
54636
|
+
gd17("xJ", "+- xI 0 dxJ"),
|
|
54637
|
+
gd17("yJ", "+- yI 0 dyJ"),
|
|
54634
54638
|
gd17("p1", "+- xF 0 xC"),
|
|
54635
54639
|
gd17("p2", "+- yF 0 yC"),
|
|
54636
54640
|
gd17("p3", "mod p1 p2 0"),
|
|
@@ -60212,17 +60216,17 @@ function glyph(text3, size, stretch = 1) {
|
|
|
60212
60216
|
return box;
|
|
60213
60217
|
}
|
|
60214
60218
|
function scripts(base, sub, sup, style) {
|
|
60215
|
-
const raise = Math.max(style.size * 0.
|
|
60216
|
-
const drop = Math.max(style.size * 0.
|
|
60219
|
+
const raise = Math.max(style.size * 0.36, base.ascent - style.size * 0.42);
|
|
60220
|
+
const drop = Math.max(style.size * 0.15, base.descent - style.size * 0.07);
|
|
60217
60221
|
const parts = [{ box: base, x: 0, y: 0 }];
|
|
60218
60222
|
let width = base.width;
|
|
60219
60223
|
if (sup) {
|
|
60220
|
-
const y = -Math.max(raise, sup.descent + style.size * 0.
|
|
60224
|
+
const y = -Math.max(raise, sup.descent + style.size * 0.2);
|
|
60221
60225
|
parts.push({ box: sup, x: base.width + 1, y });
|
|
60222
60226
|
width = Math.max(width, base.width + 1 + sup.width);
|
|
60223
60227
|
}
|
|
60224
60228
|
if (sub) {
|
|
60225
|
-
const y = Math.max(drop, sub.ascent - style.size * 0.
|
|
60229
|
+
const y = Math.max(drop, sub.ascent - style.size * 0.4);
|
|
60226
60230
|
parts.push({ box: sub, x: base.width + 1, y });
|
|
60227
60231
|
width = Math.max(width, base.width + 1 + sub.width);
|
|
60228
60232
|
}
|
|
@@ -60238,8 +60242,8 @@ function nary(node, style, ctx) {
|
|
|
60238
60242
|
const chr = val(child5(pr, "m:chr")) || "\u222B";
|
|
60239
60243
|
const big = NARY.has(chr) ? 1.4 : 1.6;
|
|
60240
60244
|
const op2 = glyph(chr, style.size * big);
|
|
60241
|
-
op2.ascent = style.size *
|
|
60242
|
-
op2.descent = style.size * (big > 1.5 ? 0.55 : 0.
|
|
60245
|
+
op2.ascent = style.size * (big > 1.5 ? 1.17 : 1.15);
|
|
60246
|
+
op2.descent = style.size * (big > 1.5 ? 0.55 : 0.6);
|
|
60243
60247
|
const limits = (val(child5(pr, "m:limLoc")) || (NARY.has(chr) ? "undOvr" : "subSup")) === "undOvr";
|
|
60244
60248
|
const sub = isOn2(val(child5(pr, "m:subHide"))) ? void 0 : ctx.layout(child5(node, "m:sub"), ctx.script(style));
|
|
60245
60249
|
const sup = isOn2(val(child5(pr, "m:supHide"))) ? void 0 : ctx.layout(child5(node, "m:sup"), ctx.script(style));
|
|
@@ -60253,13 +60257,13 @@ function nary(node, style, ctx) {
|
|
|
60253
60257
|
parts.push({
|
|
60254
60258
|
box: sup,
|
|
60255
60259
|
x: (width - sup.width) / 2,
|
|
60256
|
-
y: -(op2.ascent + sup.descent + style.size * 0.
|
|
60260
|
+
y: -(op2.ascent + sup.descent + style.size * 0.075)
|
|
60257
60261
|
});
|
|
60258
60262
|
if (hasSub)
|
|
60259
60263
|
parts.push({
|
|
60260
60264
|
box: sub,
|
|
60261
60265
|
x: (width - sub.width) / 2,
|
|
60262
|
-
y: op2.descent + sub.ascent + style.size * 0.
|
|
60266
|
+
y: op2.descent + sub.ascent + style.size * 0.075
|
|
60263
60267
|
});
|
|
60264
60268
|
head = overlay(parts);
|
|
60265
60269
|
head.width = width;
|
|
@@ -60305,7 +60309,7 @@ function matrix(node, style, ctx) {
|
|
|
60305
60309
|
(_, c2) => Math.max(0, ...rows2.map((cells) => cells[c2]?.width ?? 0))
|
|
60306
60310
|
);
|
|
60307
60311
|
const gapX = style.size * 0.8;
|
|
60308
|
-
const gapY =
|
|
60312
|
+
const gapY = 0;
|
|
60309
60313
|
const result = emptyBox();
|
|
60310
60314
|
let y = 0;
|
|
60311
60315
|
const heights = rows2.map((cells) => ({
|
|
@@ -60355,15 +60359,15 @@ function below(base, mark, style) {
|
|
|
60355
60359
|
// math/omml-box-structures.ts
|
|
60356
60360
|
function fraction(node, style, ctx) {
|
|
60357
60361
|
const type = val(child5(child5(node, "m:fPr"), "m:type"));
|
|
60358
|
-
const inner = ctx.script({ ...style, level: Math.min(style.level, 0) });
|
|
60359
|
-
const small = style.level === 0 ? { ...style,
|
|
60362
|
+
const inner = ctx.script({ ...style, level: Math.min(style.level, 0), display: false });
|
|
60363
|
+
const small = style.level === 0 && style.display ? { ...style, display: false } : inner;
|
|
60360
60364
|
const num2 = ctx.layout(child5(node, "m:num"), small);
|
|
60361
60365
|
const den = ctx.layout(child5(node, "m:den"), small);
|
|
60362
60366
|
if (type === "lin") {
|
|
60363
60367
|
const slash = glyph("/", style.size);
|
|
60364
60368
|
return row([num2, slash, den]);
|
|
60365
60369
|
}
|
|
60366
|
-
const gap = style.size * 0.
|
|
60370
|
+
const gap = style.size * 0.15;
|
|
60367
60371
|
const axis = style.size * AXIS3;
|
|
60368
60372
|
const width = Math.max(num2.width, den.width) + style.size * 0.2;
|
|
60369
60373
|
const bar = type === "noBar" ? [] : [
|
|
@@ -60388,9 +60392,9 @@ function radical(node, style, ctx) {
|
|
|
60388
60392
|
const content2 = ctx.layout(child5(node, "m:e"), style);
|
|
60389
60393
|
const hide = isOn2(val(child5(child5(node, "m:radPr"), "m:degHide")));
|
|
60390
60394
|
const degree = hide ? void 0 : ctx.layout(child5(node, "m:deg"), { ...ctx.script(ctx.script(style)) });
|
|
60391
|
-
const gap = style.size * 0.
|
|
60395
|
+
const gap = style.size * 0.2;
|
|
60392
60396
|
const top = -(content2.ascent + gap);
|
|
60393
|
-
const bottom = content2.descent + style.size * 0.
|
|
60397
|
+
const bottom = content2.descent + style.size * 0.15;
|
|
60394
60398
|
const height = bottom - top;
|
|
60395
60399
|
const sign = style.size * 0.55;
|
|
60396
60400
|
const lead = degree && degree.width ? Math.max(0, degree.width - sign * 0.4) : 0;
|
|
@@ -60591,11 +60595,11 @@ function layoutElement(tag, node, style, atStart) {
|
|
|
60591
60595
|
if (/Pr$/.test(tag) || tag === "m:ctrlPr") return emptyBox();
|
|
60592
60596
|
return layoutStructure(tag, node, style, { layout: layoutChildren, script: scriptStyle });
|
|
60593
60597
|
}
|
|
60594
|
-
function layoutEquation(root, sizePx) {
|
|
60595
|
-
const box = layoutChildren(root, { level: 0, size: sizePx });
|
|
60598
|
+
function layoutEquation(root, sizePx, options2 = {}) {
|
|
60599
|
+
const box = layoutChildren(root, { level: 0, size: sizePx, display: Boolean(options2.display) });
|
|
60596
60600
|
const pad3 = 1;
|
|
60597
|
-
const ascent = Math.max(box.ascent, sizePx * 0.
|
|
60598
|
-
const descent = Math.max(box.descent, sizePx * 0.
|
|
60601
|
+
const ascent = Math.max(box.ascent, sizePx * 0.9);
|
|
60602
|
+
const descent = Math.max(box.descent, sizePx * 0.24);
|
|
60599
60603
|
return {
|
|
60600
60604
|
box: { ...box, prims: shifted(box.prims, pad3, 0), ascent, descent },
|
|
60601
60605
|
widthPx: round2(Math.max(box.width, sizePx * 0.5) + pad3 * 2),
|
|
@@ -60654,17 +60658,17 @@ function primMarkup(prim) {
|
|
|
60654
60658
|
return `<path d="${prim.d}" fill="none" stroke="currentColor" stroke-width="${round2(prim.width)}" stroke-linejoin="round"/>`;
|
|
60655
60659
|
}
|
|
60656
60660
|
}
|
|
60657
|
-
function drawOmmlTree(root, sizePx, label = "") {
|
|
60658
|
-
const { box, widthPx, heightPx, descentPx } = layoutEquation(root, sizePx);
|
|
60661
|
+
function drawOmmlTree(root, sizePx, label = "", options2 = {}) {
|
|
60662
|
+
const { box, widthPx, heightPx, descentPx } = layoutEquation(root, sizePx, options2);
|
|
60659
60663
|
if (!box.prims.length) return void 0;
|
|
60660
60664
|
const body = box.prims.map(primMarkup).join("");
|
|
60661
60665
|
const aria = label ? ` aria-label="${escapeXml(label).replace(/"/g, """)}"` : "";
|
|
60662
60666
|
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${widthPx}" height="${heightPx}" viewBox="0 0 ${widthPx} ${heightPx}" role="img"${aria}><g font-family="${FONT_FAMILY}" fill="currentColor" transform="translate(0 ${round2(box.ascent)})">${body}</g></svg>`;
|
|
60663
60667
|
return { svg, widthPx, heightPx, descentPx };
|
|
60664
60668
|
}
|
|
60665
|
-
function drawEquation(omml, sizePx, label = "") {
|
|
60669
|
+
function drawEquation(omml, sizePx, label = "", options2 = {}) {
|
|
60666
60670
|
try {
|
|
60667
|
-
return drawOmmlTree(parseOmml(omml), sizePx, label);
|
|
60671
|
+
return drawOmmlTree(parseOmml(omml), sizePx, label, options2);
|
|
60668
60672
|
} catch {
|
|
60669
60673
|
return void 0;
|
|
60670
60674
|
}
|
package/dist/math/index.cjs
CHANGED
|
@@ -1727,17 +1727,17 @@ function glyph(text, size, stretch = 1) {
|
|
|
1727
1727
|
return box;
|
|
1728
1728
|
}
|
|
1729
1729
|
function scripts(base, sub, sup, style) {
|
|
1730
|
-
const raise = Math.max(style.size * 0.
|
|
1731
|
-
const drop = Math.max(style.size * 0.
|
|
1730
|
+
const raise = Math.max(style.size * 0.36, base.ascent - style.size * 0.42);
|
|
1731
|
+
const drop = Math.max(style.size * 0.15, base.descent - style.size * 0.07);
|
|
1732
1732
|
const parts = [{ box: base, x: 0, y: 0 }];
|
|
1733
1733
|
let width = base.width;
|
|
1734
1734
|
if (sup) {
|
|
1735
|
-
const y = -Math.max(raise, sup.descent + style.size * 0.
|
|
1735
|
+
const y = -Math.max(raise, sup.descent + style.size * 0.2);
|
|
1736
1736
|
parts.push({ box: sup, x: base.width + 1, y });
|
|
1737
1737
|
width = Math.max(width, base.width + 1 + sup.width);
|
|
1738
1738
|
}
|
|
1739
1739
|
if (sub) {
|
|
1740
|
-
const y = Math.max(drop, sub.ascent - style.size * 0.
|
|
1740
|
+
const y = Math.max(drop, sub.ascent - style.size * 0.4);
|
|
1741
1741
|
parts.push({ box: sub, x: base.width + 1, y });
|
|
1742
1742
|
width = Math.max(width, base.width + 1 + sub.width);
|
|
1743
1743
|
}
|
|
@@ -1753,8 +1753,8 @@ function nary(node, style, ctx) {
|
|
|
1753
1753
|
const chr = val(child(pr, "m:chr")) || "\u222B";
|
|
1754
1754
|
const big = NARY.has(chr) ? 1.4 : 1.6;
|
|
1755
1755
|
const op = glyph(chr, style.size * big);
|
|
1756
|
-
op.ascent = style.size *
|
|
1757
|
-
op.descent = style.size * (big > 1.5 ? 0.55 : 0.
|
|
1756
|
+
op.ascent = style.size * (big > 1.5 ? 1.17 : 1.15);
|
|
1757
|
+
op.descent = style.size * (big > 1.5 ? 0.55 : 0.6);
|
|
1758
1758
|
const limits = (val(child(pr, "m:limLoc")) || (NARY.has(chr) ? "undOvr" : "subSup")) === "undOvr";
|
|
1759
1759
|
const sub = isOn2(val(child(pr, "m:subHide"))) ? void 0 : ctx.layout(child(node, "m:sub"), ctx.script(style));
|
|
1760
1760
|
const sup = isOn2(val(child(pr, "m:supHide"))) ? void 0 : ctx.layout(child(node, "m:sup"), ctx.script(style));
|
|
@@ -1768,13 +1768,13 @@ function nary(node, style, ctx) {
|
|
|
1768
1768
|
parts.push({
|
|
1769
1769
|
box: sup,
|
|
1770
1770
|
x: (width - sup.width) / 2,
|
|
1771
|
-
y: -(op.ascent + sup.descent + style.size * 0.
|
|
1771
|
+
y: -(op.ascent + sup.descent + style.size * 0.075)
|
|
1772
1772
|
});
|
|
1773
1773
|
if (hasSub)
|
|
1774
1774
|
parts.push({
|
|
1775
1775
|
box: sub,
|
|
1776
1776
|
x: (width - sub.width) / 2,
|
|
1777
|
-
y: op.descent + sub.ascent + style.size * 0.
|
|
1777
|
+
y: op.descent + sub.ascent + style.size * 0.075
|
|
1778
1778
|
});
|
|
1779
1779
|
head = overlay(parts);
|
|
1780
1780
|
head.width = width;
|
|
@@ -1820,7 +1820,7 @@ function matrix(node, style, ctx) {
|
|
|
1820
1820
|
(_, c) => Math.max(0, ...rows.map((cells) => cells[c]?.width ?? 0))
|
|
1821
1821
|
);
|
|
1822
1822
|
const gapX = style.size * 0.8;
|
|
1823
|
-
const gapY =
|
|
1823
|
+
const gapY = 0;
|
|
1824
1824
|
const result = emptyBox();
|
|
1825
1825
|
let y = 0;
|
|
1826
1826
|
const heights = rows.map((cells) => ({
|
|
@@ -1870,15 +1870,15 @@ function below(base, mark, style) {
|
|
|
1870
1870
|
// math/omml-box-structures.ts
|
|
1871
1871
|
function fraction(node, style, ctx) {
|
|
1872
1872
|
const type = val(child(child(node, "m:fPr"), "m:type"));
|
|
1873
|
-
const inner = ctx.script({ ...style, level: Math.min(style.level, 0) });
|
|
1874
|
-
const small = style.level === 0 ? { ...style,
|
|
1873
|
+
const inner = ctx.script({ ...style, level: Math.min(style.level, 0), display: false });
|
|
1874
|
+
const small = style.level === 0 && style.display ? { ...style, display: false } : inner;
|
|
1875
1875
|
const num = ctx.layout(child(node, "m:num"), small);
|
|
1876
1876
|
const den = ctx.layout(child(node, "m:den"), small);
|
|
1877
1877
|
if (type === "lin") {
|
|
1878
1878
|
const slash = glyph("/", style.size);
|
|
1879
1879
|
return row([num, slash, den]);
|
|
1880
1880
|
}
|
|
1881
|
-
const gap = style.size * 0.
|
|
1881
|
+
const gap = style.size * 0.15;
|
|
1882
1882
|
const axis = style.size * AXIS;
|
|
1883
1883
|
const width = Math.max(num.width, den.width) + style.size * 0.2;
|
|
1884
1884
|
const bar = type === "noBar" ? [] : [
|
|
@@ -1903,9 +1903,9 @@ function radical(node, style, ctx) {
|
|
|
1903
1903
|
const content = ctx.layout(child(node, "m:e"), style);
|
|
1904
1904
|
const hide = isOn2(val(child(child(node, "m:radPr"), "m:degHide")));
|
|
1905
1905
|
const degree = hide ? void 0 : ctx.layout(child(node, "m:deg"), { ...ctx.script(ctx.script(style)) });
|
|
1906
|
-
const gap = style.size * 0.
|
|
1906
|
+
const gap = style.size * 0.2;
|
|
1907
1907
|
const top = -(content.ascent + gap);
|
|
1908
|
-
const bottom = content.descent + style.size * 0.
|
|
1908
|
+
const bottom = content.descent + style.size * 0.15;
|
|
1909
1909
|
const height = bottom - top;
|
|
1910
1910
|
const sign = style.size * 0.55;
|
|
1911
1911
|
const lead = degree && degree.width ? Math.max(0, degree.width - sign * 0.4) : 0;
|
|
@@ -2106,11 +2106,11 @@ function layoutElement(tag, node, style, atStart) {
|
|
|
2106
2106
|
if (/Pr$/.test(tag) || tag === "m:ctrlPr") return emptyBox();
|
|
2107
2107
|
return layoutStructure(tag, node, style, { layout: layoutChildren, script: scriptStyle });
|
|
2108
2108
|
}
|
|
2109
|
-
function layoutEquation(root, sizePx) {
|
|
2110
|
-
const box = layoutChildren(root, { level: 0, size: sizePx });
|
|
2109
|
+
function layoutEquation(root, sizePx, options = {}) {
|
|
2110
|
+
const box = layoutChildren(root, { level: 0, size: sizePx, display: Boolean(options.display) });
|
|
2111
2111
|
const pad = 1;
|
|
2112
|
-
const ascent = Math.max(box.ascent, sizePx * 0.
|
|
2113
|
-
const descent = Math.max(box.descent, sizePx * 0.
|
|
2112
|
+
const ascent = Math.max(box.ascent, sizePx * 0.9);
|
|
2113
|
+
const descent = Math.max(box.descent, sizePx * 0.24);
|
|
2114
2114
|
return {
|
|
2115
2115
|
box: { ...box, prims: shifted(box.prims, pad, 0), ascent, descent },
|
|
2116
2116
|
widthPx: round(Math.max(box.width, sizePx * 0.5) + pad * 2),
|
|
@@ -2261,17 +2261,17 @@ function primMarkup(prim) {
|
|
|
2261
2261
|
return `<path d="${prim.d}" fill="none" stroke="currentColor" stroke-width="${round(prim.width)}" stroke-linejoin="round"/>`;
|
|
2262
2262
|
}
|
|
2263
2263
|
}
|
|
2264
|
-
function drawOmmlTree(root, sizePx, label = "") {
|
|
2265
|
-
const { box, widthPx, heightPx, descentPx } = layoutEquation(root, sizePx);
|
|
2264
|
+
function drawOmmlTree(root, sizePx, label = "", options = {}) {
|
|
2265
|
+
const { box, widthPx, heightPx, descentPx } = layoutEquation(root, sizePx, options);
|
|
2266
2266
|
if (!box.prims.length) return void 0;
|
|
2267
2267
|
const body = box.prims.map(primMarkup).join("");
|
|
2268
2268
|
const aria = label ? ` aria-label="${escapeXml(label).replace(/"/g, """)}"` : "";
|
|
2269
2269
|
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${widthPx}" height="${heightPx}" viewBox="0 0 ${widthPx} ${heightPx}" role="img"${aria}><g font-family="${FONT_FAMILY}" fill="currentColor" transform="translate(0 ${round(box.ascent)})">${body}</g></svg>`;
|
|
2270
2270
|
return { svg, widthPx, heightPx, descentPx };
|
|
2271
2271
|
}
|
|
2272
|
-
function drawEquation(omml, sizePx, label = "") {
|
|
2272
|
+
function drawEquation(omml, sizePx, label = "", options = {}) {
|
|
2273
2273
|
try {
|
|
2274
|
-
return drawOmmlTree(parseOmml(omml), sizePx, label);
|
|
2274
|
+
return drawOmmlTree(parseOmml(omml), sizePx, label, options);
|
|
2275
2275
|
} catch {
|
|
2276
2276
|
return void 0;
|
|
2277
2277
|
}
|
package/dist/math/index.mjs
CHANGED
|
@@ -1725,17 +1725,17 @@ function glyph(text, size, stretch = 1) {
|
|
|
1725
1725
|
return box;
|
|
1726
1726
|
}
|
|
1727
1727
|
function scripts(base, sub, sup, style) {
|
|
1728
|
-
const raise = Math.max(style.size * 0.
|
|
1729
|
-
const drop = Math.max(style.size * 0.
|
|
1728
|
+
const raise = Math.max(style.size * 0.36, base.ascent - style.size * 0.42);
|
|
1729
|
+
const drop = Math.max(style.size * 0.15, base.descent - style.size * 0.07);
|
|
1730
1730
|
const parts = [{ box: base, x: 0, y: 0 }];
|
|
1731
1731
|
let width = base.width;
|
|
1732
1732
|
if (sup) {
|
|
1733
|
-
const y = -Math.max(raise, sup.descent + style.size * 0.
|
|
1733
|
+
const y = -Math.max(raise, sup.descent + style.size * 0.2);
|
|
1734
1734
|
parts.push({ box: sup, x: base.width + 1, y });
|
|
1735
1735
|
width = Math.max(width, base.width + 1 + sup.width);
|
|
1736
1736
|
}
|
|
1737
1737
|
if (sub) {
|
|
1738
|
-
const y = Math.max(drop, sub.ascent - style.size * 0.
|
|
1738
|
+
const y = Math.max(drop, sub.ascent - style.size * 0.4);
|
|
1739
1739
|
parts.push({ box: sub, x: base.width + 1, y });
|
|
1740
1740
|
width = Math.max(width, base.width + 1 + sub.width);
|
|
1741
1741
|
}
|
|
@@ -1751,8 +1751,8 @@ function nary(node, style, ctx) {
|
|
|
1751
1751
|
const chr = val(child(pr, "m:chr")) || "\u222B";
|
|
1752
1752
|
const big = NARY.has(chr) ? 1.4 : 1.6;
|
|
1753
1753
|
const op = glyph(chr, style.size * big);
|
|
1754
|
-
op.ascent = style.size *
|
|
1755
|
-
op.descent = style.size * (big > 1.5 ? 0.55 : 0.
|
|
1754
|
+
op.ascent = style.size * (big > 1.5 ? 1.17 : 1.15);
|
|
1755
|
+
op.descent = style.size * (big > 1.5 ? 0.55 : 0.6);
|
|
1756
1756
|
const limits = (val(child(pr, "m:limLoc")) || (NARY.has(chr) ? "undOvr" : "subSup")) === "undOvr";
|
|
1757
1757
|
const sub = isOn2(val(child(pr, "m:subHide"))) ? void 0 : ctx.layout(child(node, "m:sub"), ctx.script(style));
|
|
1758
1758
|
const sup = isOn2(val(child(pr, "m:supHide"))) ? void 0 : ctx.layout(child(node, "m:sup"), ctx.script(style));
|
|
@@ -1766,13 +1766,13 @@ function nary(node, style, ctx) {
|
|
|
1766
1766
|
parts.push({
|
|
1767
1767
|
box: sup,
|
|
1768
1768
|
x: (width - sup.width) / 2,
|
|
1769
|
-
y: -(op.ascent + sup.descent + style.size * 0.
|
|
1769
|
+
y: -(op.ascent + sup.descent + style.size * 0.075)
|
|
1770
1770
|
});
|
|
1771
1771
|
if (hasSub)
|
|
1772
1772
|
parts.push({
|
|
1773
1773
|
box: sub,
|
|
1774
1774
|
x: (width - sub.width) / 2,
|
|
1775
|
-
y: op.descent + sub.ascent + style.size * 0.
|
|
1775
|
+
y: op.descent + sub.ascent + style.size * 0.075
|
|
1776
1776
|
});
|
|
1777
1777
|
head = overlay(parts);
|
|
1778
1778
|
head.width = width;
|
|
@@ -1818,7 +1818,7 @@ function matrix(node, style, ctx) {
|
|
|
1818
1818
|
(_, c) => Math.max(0, ...rows.map((cells) => cells[c]?.width ?? 0))
|
|
1819
1819
|
);
|
|
1820
1820
|
const gapX = style.size * 0.8;
|
|
1821
|
-
const gapY =
|
|
1821
|
+
const gapY = 0;
|
|
1822
1822
|
const result = emptyBox();
|
|
1823
1823
|
let y = 0;
|
|
1824
1824
|
const heights = rows.map((cells) => ({
|
|
@@ -1868,15 +1868,15 @@ function below(base, mark, style) {
|
|
|
1868
1868
|
// math/omml-box-structures.ts
|
|
1869
1869
|
function fraction(node, style, ctx) {
|
|
1870
1870
|
const type = val(child(child(node, "m:fPr"), "m:type"));
|
|
1871
|
-
const inner = ctx.script({ ...style, level: Math.min(style.level, 0) });
|
|
1872
|
-
const small = style.level === 0 ? { ...style,
|
|
1871
|
+
const inner = ctx.script({ ...style, level: Math.min(style.level, 0), display: false });
|
|
1872
|
+
const small = style.level === 0 && style.display ? { ...style, display: false } : inner;
|
|
1873
1873
|
const num = ctx.layout(child(node, "m:num"), small);
|
|
1874
1874
|
const den = ctx.layout(child(node, "m:den"), small);
|
|
1875
1875
|
if (type === "lin") {
|
|
1876
1876
|
const slash = glyph("/", style.size);
|
|
1877
1877
|
return row([num, slash, den]);
|
|
1878
1878
|
}
|
|
1879
|
-
const gap = style.size * 0.
|
|
1879
|
+
const gap = style.size * 0.15;
|
|
1880
1880
|
const axis = style.size * AXIS;
|
|
1881
1881
|
const width = Math.max(num.width, den.width) + style.size * 0.2;
|
|
1882
1882
|
const bar = type === "noBar" ? [] : [
|
|
@@ -1901,9 +1901,9 @@ function radical(node, style, ctx) {
|
|
|
1901
1901
|
const content = ctx.layout(child(node, "m:e"), style);
|
|
1902
1902
|
const hide = isOn2(val(child(child(node, "m:radPr"), "m:degHide")));
|
|
1903
1903
|
const degree = hide ? void 0 : ctx.layout(child(node, "m:deg"), { ...ctx.script(ctx.script(style)) });
|
|
1904
|
-
const gap = style.size * 0.
|
|
1904
|
+
const gap = style.size * 0.2;
|
|
1905
1905
|
const top = -(content.ascent + gap);
|
|
1906
|
-
const bottom = content.descent + style.size * 0.
|
|
1906
|
+
const bottom = content.descent + style.size * 0.15;
|
|
1907
1907
|
const height = bottom - top;
|
|
1908
1908
|
const sign = style.size * 0.55;
|
|
1909
1909
|
const lead = degree && degree.width ? Math.max(0, degree.width - sign * 0.4) : 0;
|
|
@@ -2104,11 +2104,11 @@ function layoutElement(tag, node, style, atStart) {
|
|
|
2104
2104
|
if (/Pr$/.test(tag) || tag === "m:ctrlPr") return emptyBox();
|
|
2105
2105
|
return layoutStructure(tag, node, style, { layout: layoutChildren, script: scriptStyle });
|
|
2106
2106
|
}
|
|
2107
|
-
function layoutEquation(root, sizePx) {
|
|
2108
|
-
const box = layoutChildren(root, { level: 0, size: sizePx });
|
|
2107
|
+
function layoutEquation(root, sizePx, options = {}) {
|
|
2108
|
+
const box = layoutChildren(root, { level: 0, size: sizePx, display: Boolean(options.display) });
|
|
2109
2109
|
const pad = 1;
|
|
2110
|
-
const ascent = Math.max(box.ascent, sizePx * 0.
|
|
2111
|
-
const descent = Math.max(box.descent, sizePx * 0.
|
|
2110
|
+
const ascent = Math.max(box.ascent, sizePx * 0.9);
|
|
2111
|
+
const descent = Math.max(box.descent, sizePx * 0.24);
|
|
2112
2112
|
return {
|
|
2113
2113
|
box: { ...box, prims: shifted(box.prims, pad, 0), ascent, descent },
|
|
2114
2114
|
widthPx: round(Math.max(box.width, sizePx * 0.5) + pad * 2),
|
|
@@ -2259,17 +2259,17 @@ function primMarkup(prim) {
|
|
|
2259
2259
|
return `<path d="${prim.d}" fill="none" stroke="currentColor" stroke-width="${round(prim.width)}" stroke-linejoin="round"/>`;
|
|
2260
2260
|
}
|
|
2261
2261
|
}
|
|
2262
|
-
function drawOmmlTree(root, sizePx, label = "") {
|
|
2263
|
-
const { box, widthPx, heightPx, descentPx } = layoutEquation(root, sizePx);
|
|
2262
|
+
function drawOmmlTree(root, sizePx, label = "", options = {}) {
|
|
2263
|
+
const { box, widthPx, heightPx, descentPx } = layoutEquation(root, sizePx, options);
|
|
2264
2264
|
if (!box.prims.length) return void 0;
|
|
2265
2265
|
const body = box.prims.map(primMarkup).join("");
|
|
2266
2266
|
const aria = label ? ` aria-label="${escapeXml(label).replace(/"/g, """)}"` : "";
|
|
2267
2267
|
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${widthPx}" height="${heightPx}" viewBox="0 0 ${widthPx} ${heightPx}" role="img"${aria}><g font-family="${FONT_FAMILY}" fill="currentColor" transform="translate(0 ${round(box.ascent)})">${body}</g></svg>`;
|
|
2268
2268
|
return { svg, widthPx, heightPx, descentPx };
|
|
2269
2269
|
}
|
|
2270
|
-
function drawEquation(omml, sizePx, label = "") {
|
|
2270
|
+
function drawEquation(omml, sizePx, label = "", options = {}) {
|
|
2271
2271
|
try {
|
|
2272
|
-
return drawOmmlTree(parseOmml(omml), sizePx, label);
|
|
2272
|
+
return drawOmmlTree(parseOmml(omml), sizePx, label, options);
|
|
2273
2273
|
} catch {
|
|
2274
2274
|
return void 0;
|
|
2275
2275
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omml-box-grouped.d.ts","sourceRoot":"","sources":["../../math/omml-box-grouped.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,OAAO,EASN,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,wBAAgB,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,aAAa,GAAG,GAAG,
|
|
1
|
+
{"version":3,"file":"omml-box-grouped.d.ts","sourceRoot":"","sources":["../../math/omml-box-grouped.ts"],"names":[],"mappings":"AAAA,uGAAuG;AACvG,OAAO,EASN,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,wBAAgB,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,aAAa,GAAG,GAAG,CAsC9E;AAaD,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,aAAa,GAAG,GAAG,CAiBnF;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,aAAa,GAAG,GAAG,CAiChF;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,GAAG,GAAG,CAYjE;AACD,wBAAgB,KAAK,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,GAAG,GAAG,CAQjE"}
|
|
@@ -11,5 +11,7 @@ export interface EquationMetrics {
|
|
|
11
11
|
descentPx: number;
|
|
12
12
|
}
|
|
13
13
|
/** Lays out an `m:oMath` / `m:oMathPara` tree at `sizePx`. */
|
|
14
|
-
export declare function layoutEquation(root: OmmlNode, sizePx: number
|
|
14
|
+
export declare function layoutEquation(root: OmmlNode, sizePx: number, options?: {
|
|
15
|
+
display?: boolean;
|
|
16
|
+
}): EquationMetrics;
|
|
15
17
|
//# sourceMappingURL=omml-box-layout.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omml-box-layout.d.ts","sourceRoot":"","sources":["../../math/omml-box-layout.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,OAAO,EASN,KAAK,GAAG,EACR,KAAK,SAAS,EACd,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAkF5C,qEAAqE;AACrE,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,GAAG,GAAG,CAapE;AASD,yFAAyF;AACzF,MAAM,WAAW,eAAe;IAC/B,GAAG,EAAE,GAAG,CAAC;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,8DAA8D;AAC9D,wBAAgB,cAAc,
|
|
1
|
+
{"version":3,"file":"omml-box-layout.d.ts","sourceRoot":"","sources":["../../math/omml-box-layout.ts"],"names":[],"mappings":"AAAA,oGAAoG;AACpG,OAAO,EASN,KAAK,GAAG,EACR,KAAK,SAAS,EACd,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAkF5C,qEAAqE;AACrE,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,GAAG,GAAG,CAapE;AASD,yFAAyF;AACzF,MAAM,WAAW,eAAe;IAC/B,GAAG,EAAE,GAAG,CAAC;IACT,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,8DAA8D;AAC9D,wBAAgB,cAAc,CAC7B,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,MAAM,EACd,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GACjC,eAAe,CAajB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omml-box-structures.d.ts","sourceRoot":"","sources":["../../math/omml-box-structures.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,OAAO,EAWN,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"omml-box-structures.d.ts","sourceRoot":"","sources":["../../math/omml-box-structures.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,OAAO,EAWN,KAAK,GAAG,EACR,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AA8DhD,oFAAoF;AACpF,wBAAgB,eAAe,CAC9B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,SAAS,EAChB,GAAG,EAAE,aAAa,GAChB,GAAG,CA6GL"}
|
package/dist/math/omml-box.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ export interface MathStyle {
|
|
|
49
49
|
size: number;
|
|
50
50
|
/** 0 text, 1 script, 2+ script of script. */
|
|
51
51
|
level: number;
|
|
52
|
+
/** Display style (a display equation at the top level): fractions keep their full size. */
|
|
53
|
+
display?: boolean;
|
|
52
54
|
plain?: boolean;
|
|
53
55
|
bold?: boolean;
|
|
54
56
|
italic?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omml-box.d.ts","sourceRoot":"","sources":["../../math/omml-box.ts"],"names":[],"mappings":"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
|
|
1
|
+
{"version":3,"file":"omml-box.d.ts","sourceRoot":"","sources":["../../math/omml-box.ts"],"names":[],"mappings":"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"}
|
package/dist/math/omml-svg.d.ts
CHANGED
|
@@ -8,7 +8,11 @@ export interface EquationDrawing {
|
|
|
8
8
|
descentPx: number;
|
|
9
9
|
}
|
|
10
10
|
/** Draws an already parsed OMML tree at `sizePx`. Returns undefined when it holds no content. */
|
|
11
|
-
export declare function drawOmmlTree(root: OmmlNode, sizePx: number, label?: string
|
|
11
|
+
export declare function drawOmmlTree(root: OmmlNode, sizePx: number, label?: string, options?: {
|
|
12
|
+
display?: boolean;
|
|
13
|
+
}): EquationDrawing | undefined;
|
|
12
14
|
/** Draws OMML markup (`m:oMath` or `m:oMathPara`); undefined when it cannot be read or is empty. */
|
|
13
|
-
export declare function drawEquation(omml: string, sizePx: number, label?: string
|
|
15
|
+
export declare function drawEquation(omml: string, sizePx: number, label?: string, options?: {
|
|
16
|
+
display?: boolean;
|
|
17
|
+
}): EquationDrawing | undefined;
|
|
14
18
|
//# sourceMappingURL=omml-svg.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omml-svg.d.ts","sourceRoot":"","sources":["../../math/omml-svg.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,MAAM,WAAW,eAAe;IAC/B,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;CAClB;AA2BD,iGAAiG;AACjG,wBAAgB,YAAY,CAC3B,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,MAAM,EACd,KAAK,SAAK,
|
|
1
|
+
{"version":3,"file":"omml-svg.d.ts","sourceRoot":"","sources":["../../math/omml-svg.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,MAAM,WAAW,eAAe;IAC/B,2DAA2D;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,oFAAoF;IACpF,SAAS,EAAE,MAAM,CAAC;CAClB;AA2BD,iGAAiG;AACjG,wBAAgB,YAAY,CAC3B,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,MAAM,EACd,KAAK,SAAK,EACV,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GACjC,eAAe,GAAG,SAAS,CAS7B;AAED,oGAAoG;AACpG,wBAAgB,YAAY,CAC3B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,EACd,KAAK,SAAK,EACV,OAAO,GAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAO,GACjC,eAAe,GAAG,SAAS,CAM7B"}
|