@univerjs/core 0.1.0-alpha.1
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/LICENSE +21 -0
- package/README.md +16 -0
- package/lib/cjs/index.js +15323 -0
- package/lib/esm/index.js +14601 -0
- package/lib/types/basics/index.d.ts +6 -0
- package/lib/types/basics/index.d.ts.map +1 -0
- package/lib/types/basics/registry.d.ts +27 -0
- package/lib/types/basics/registry.d.ts.map +1 -0
- package/lib/types/basics/univer-doc.d.ts +20 -0
- package/lib/types/basics/univer-doc.d.ts.map +1 -0
- package/lib/types/basics/univer-sheet.d.ts +31 -0
- package/lib/types/basics/univer-sheet.d.ts.map +1 -0
- package/lib/types/basics/univer-slide.d.ts +29 -0
- package/lib/types/basics/univer-slide.d.ts.map +1 -0
- package/lib/types/basics/univer.d.ts +41 -0
- package/lib/types/basics/univer.d.ts.map +1 -0
- package/lib/types/common/array.d.ts +15 -0
- package/lib/types/common/array.d.ts.map +1 -0
- package/lib/types/common/color/color-builder.d.ts +1 -0
- package/lib/types/common/color/color-builder.d.ts.map +1 -0
- package/lib/types/common/const.d.ts +4 -0
- package/lib/types/common/const.d.ts.map +1 -0
- package/lib/types/common/interceptor.d.ts +21 -0
- package/lib/types/common/interceptor.d.ts.map +1 -0
- package/lib/types/common/memory-cursor.d.ts +6 -0
- package/lib/types/common/memory-cursor.d.ts.map +1 -0
- package/lib/types/common/sequence.d.ts +18 -0
- package/lib/types/common/sequence.d.ts.map +1 -0
- package/lib/types/common/type-utils.d.ts +5 -0
- package/lib/types/common/type-utils.d.ts.map +1 -0
- package/lib/types/docs/data-model/__tests__/apply-utils.spec.d.ts +2 -0
- package/lib/types/docs/data-model/__tests__/apply-utils.spec.d.ts.map +1 -0
- package/lib/types/docs/data-model/apply-utils/common.d.ts +30 -0
- package/lib/types/docs/data-model/apply-utils/common.d.ts.map +1 -0
- package/lib/types/docs/data-model/apply-utils/delete-apply.d.ts +3 -0
- package/lib/types/docs/data-model/apply-utils/delete-apply.d.ts.map +1 -0
- package/lib/types/docs/data-model/apply-utils/insert-apply.d.ts +3 -0
- package/lib/types/docs/data-model/apply-utils/insert-apply.d.ts.map +1 -0
- package/lib/types/docs/data-model/apply-utils/update-apply.d.ts +5 -0
- package/lib/types/docs/data-model/apply-utils/update-apply.d.ts.map +1 -0
- package/lib/types/docs/data-model/document-data-model.d.ts +57 -0
- package/lib/types/docs/data-model/document-data-model.d.ts.map +1 -0
- package/lib/types/docs/data-model/index.d.ts +3 -0
- package/lib/types/docs/data-model/index.d.ts.map +1 -0
- package/lib/types/docs/data-model/mutation-types.d.ts +33 -0
- package/lib/types/docs/data-model/mutation-types.d.ts.map +1 -0
- package/lib/types/docs/data-model/types.d.ts +27 -0
- package/lib/types/docs/data-model/types.d.ts.map +1 -0
- package/lib/types/docs/index.d.ts +2 -0
- package/lib/types/docs/index.d.ts.map +1 -0
- package/lib/types/index.d.ts +42 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/observer/index.d.ts +3 -0
- package/lib/types/observer/index.d.ts.map +1 -0
- package/lib/types/observer/observable-hooks.d.ts +19 -0
- package/lib/types/observer/observable-hooks.d.ts.map +1 -0
- package/lib/types/observer/observable.d.ts +170 -0
- package/lib/types/observer/observable.d.ts.map +1 -0
- package/lib/types/plugin/plugin.d.ts +49 -0
- package/lib/types/plugin/plugin.d.ts.map +1 -0
- package/lib/types/services/auth/auth.service.d.ts +3 -0
- package/lib/types/services/auth/auth.service.d.ts.map +1 -0
- package/lib/types/services/command/command.service.d.ts +117 -0
- package/lib/types/services/command/command.service.d.ts.map +1 -0
- package/lib/types/services/command/command.service.spec.d.ts +2 -0
- package/lib/types/services/command/command.service.spec.d.ts.map +1 -0
- package/lib/types/services/config/config.service.d.ts +18 -0
- package/lib/types/services/config/config.service.d.ts.map +1 -0
- package/lib/types/services/context/context.d.ts +8 -0
- package/lib/types/services/context/context.d.ts.map +1 -0
- package/lib/types/services/context/context.service.d.ts +17 -0
- package/lib/types/services/context/context.service.d.ts.map +1 -0
- package/lib/types/services/error/error.service.d.ts +11 -0
- package/lib/types/services/error/error.service.d.ts.map +1 -0
- package/lib/types/services/floating-object/floating-object-interfaces.d.ts +20 -0
- package/lib/types/services/floating-object/floating-object-interfaces.d.ts.map +1 -0
- package/lib/types/services/floating-object/floating-object-manager.service.d.ts +82 -0
- package/lib/types/services/floating-object/floating-object-manager.service.d.ts.map +1 -0
- package/lib/types/services/instance/instance.service.d.ts +113 -0
- package/lib/types/services/instance/instance.service.d.ts.map +1 -0
- package/lib/types/services/lifecycle/lifecycle.d.ts +36 -0
- package/lib/types/services/lifecycle/lifecycle.d.ts.map +1 -0
- package/lib/types/services/lifecycle/lifecycle.service.d.ts +23 -0
- package/lib/types/services/lifecycle/lifecycle.service.d.ts.map +1 -0
- package/lib/types/services/local-storage/local-storage.service.d.ts +12 -0
- package/lib/types/services/local-storage/local-storage.service.d.ts.map +1 -0
- package/lib/types/services/locale/locale.service.d.ts +26 -0
- package/lib/types/services/locale/locale.service.d.ts.map +1 -0
- package/lib/types/services/log/log.service.d.ts +18 -0
- package/lib/types/services/log/log.service.d.ts.map +1 -0
- package/lib/types/services/permission/index.d.ts +4 -0
- package/lib/types/services/permission/index.d.ts.map +1 -0
- package/lib/types/services/permission/permission-point.d.ts +9 -0
- package/lib/types/services/permission/permission-point.d.ts.map +1 -0
- package/lib/types/services/permission/permission.service.d.ts +31 -0
- package/lib/types/services/permission/permission.service.d.ts.map +1 -0
- package/lib/types/services/permission/univer.permission.service.d.ts +12 -0
- package/lib/types/services/permission/univer.permission.service.d.ts.map +1 -0
- package/lib/types/services/resource-manager/resource-manager.service.d.ts +25 -0
- package/lib/types/services/resource-manager/resource-manager.service.d.ts.map +1 -0
- package/lib/types/services/resource-manager/type.d.ts +23 -0
- package/lib/types/services/resource-manager/type.d.ts.map +1 -0
- package/lib/types/services/theme/theme.service.d.ts +14 -0
- package/lib/types/services/theme/theme.service.d.ts.map +1 -0
- package/lib/types/services/undoredo/undoredo.service.d.ts +79 -0
- package/lib/types/services/undoredo/undoredo.service.d.ts.map +1 -0
- package/lib/types/shared/__test__/object-matrix.spec.d.ts +2 -0
- package/lib/types/shared/__test__/object-matrix.spec.d.ts.map +1 -0
- package/lib/types/shared/__test__/ref-alias.spec.d.ts +2 -0
- package/lib/types/shared/__test__/ref-alias.spec.d.ts.map +1 -0
- package/lib/types/shared/array-search.d.ts +4 -0
- package/lib/types/shared/array-search.d.ts.map +1 -0
- package/lib/types/shared/color/color-builder.d.ts +21 -0
- package/lib/types/shared/color/color-builder.d.ts.map +1 -0
- package/lib/types/shared/color/color.d.ts +65 -0
- package/lib/types/shared/color/color.d.ts.map +1 -0
- package/lib/types/shared/color-builder.d.ts +1 -0
- package/lib/types/shared/color-builder.d.ts.map +1 -0
- package/lib/types/shared/command-enum.d.ts +6 -0
- package/lib/types/shared/command-enum.d.ts.map +1 -0
- package/lib/types/shared/common.d.ts +29 -0
- package/lib/types/shared/common.d.ts.map +1 -0
- package/lib/types/shared/compare.d.ts +8 -0
- package/lib/types/shared/compare.d.ts.map +1 -0
- package/lib/types/shared/date-time.d.ts +6 -0
- package/lib/types/shared/date-time.d.ts.map +1 -0
- package/lib/types/shared/doc-tool.d.ts +8 -0
- package/lib/types/shared/doc-tool.d.ts.map +1 -0
- package/lib/types/shared/drop-cell.d.ts +1 -0
- package/lib/types/shared/drop-cell.d.ts.map +1 -0
- package/lib/types/shared/excel-date-time.d.ts +6 -0
- package/lib/types/shared/excel-date-time.d.ts.map +1 -0
- package/lib/types/shared/gen-name.d.ts +9 -0
- package/lib/types/shared/gen-name.d.ts.map +1 -0
- package/lib/types/shared/generate.d.ts +7 -0
- package/lib/types/shared/generate.d.ts.map +1 -0
- package/lib/types/shared/group-model.d.ts +4 -0
- package/lib/types/shared/group-model.d.ts.map +1 -0
- package/lib/types/shared/hash-algorithm.d.ts +2 -0
- package/lib/types/shared/hash-algorithm.d.ts.map +1 -0
- package/lib/types/shared/index.d.ts +35 -0
- package/lib/types/shared/index.d.ts.map +1 -0
- package/lib/types/shared/io-http.d.ts +84 -0
- package/lib/types/shared/io-http.d.ts.map +1 -0
- package/lib/types/shared/io-socket.d.ts +48 -0
- package/lib/types/shared/io-socket.d.ts.map +1 -0
- package/lib/types/shared/lifecycle.d.ts +28 -0
- package/lib/types/shared/lifecycle.d.ts.map +1 -0
- package/lib/types/shared/locale.d.ts +10 -0
- package/lib/types/shared/locale.d.ts.map +1 -0
- package/lib/types/shared/logger.d.ts +12 -0
- package/lib/types/shared/logger.d.ts.map +1 -0
- package/lib/types/shared/lru/index.d.ts +3 -0
- package/lib/types/shared/lru/index.d.ts.map +1 -0
- package/lib/types/shared/lru/lru-helper.d.ts +8 -0
- package/lib/types/shared/lru/lru-helper.d.ts.map +1 -0
- package/lib/types/shared/lru/lru-map.d.ts +66 -0
- package/lib/types/shared/lru/lru-map.d.ts.map +1 -0
- package/lib/types/shared/migrate/border.d.ts +3 -0
- package/lib/types/shared/migrate/border.d.ts.map +1 -0
- package/lib/types/shared/migrate/index.d.ts +2 -0
- package/lib/types/shared/migrate/index.d.ts.map +1 -0
- package/lib/types/shared/migrate/migrate.d.ts +3 -0
- package/lib/types/shared/migrate/migrate.d.ts.map +1 -0
- package/lib/types/shared/object-array.d.ts +96 -0
- package/lib/types/shared/object-array.d.ts.map +1 -0
- package/lib/types/shared/object-matrix.d.ts +67 -0
- package/lib/types/shared/object-matrix.d.ts.map +1 -0
- package/lib/types/shared/permission/index.d.ts +13 -0
- package/lib/types/shared/permission/index.d.ts.map +1 -0
- package/lib/types/shared/props-from.d.ts +6 -0
- package/lib/types/shared/props-from.d.ts.map +1 -0
- package/lib/types/shared/random.d.ts +7 -0
- package/lib/types/shared/random.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/border-tree.d.ts +30 -0
- package/lib/types/shared/rect-tree/border-tree.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/es-rect-tree.d.ts +9 -0
- package/lib/types/shared/rect-tree/es-rect-tree.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/merge-tree.d.ts +1 -0
- package/lib/types/shared/rect-tree/merge-tree.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/quick-select.d.ts +3 -0
- package/lib/types/shared/rect-tree/quick-select.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/rect-tree.d.ts +60 -0
- package/lib/types/shared/rect-tree/rect-tree.d.ts.map +1 -0
- package/lib/types/shared/rect-tree/styles-tree.d.ts +1 -0
- package/lib/types/shared/rect-tree/styles-tree.d.ts.map +1 -0
- package/lib/types/shared/rectangle.d.ts +20 -0
- package/lib/types/shared/rectangle.d.ts.map +1 -0
- package/lib/types/shared/ref-alias.d.ts +26 -0
- package/lib/types/shared/ref-alias.d.ts.map +1 -0
- package/lib/types/shared/row-col-iter.d.ts +5 -0
- package/lib/types/shared/row-col-iter.d.ts.map +1 -0
- package/lib/types/shared/sequence.d.ts +27 -0
- package/lib/types/shared/sequence.d.ts.map +1 -0
- package/lib/types/shared/serialize/index.d.ts +5 -0
- package/lib/types/shared/serialize/index.d.ts.map +1 -0
- package/lib/types/shared/serialize/sequence.d.ts +4 -0
- package/lib/types/shared/serialize/sequence.d.ts.map +1 -0
- package/lib/types/shared/serialize/serialize-manager.d.ts +17 -0
- package/lib/types/shared/serialize/serialize-manager.d.ts.map +1 -0
- package/lib/types/shared/serialize/serialize.d.ts +8 -0
- package/lib/types/shared/serialize/serialize.d.ts.map +1 -0
- package/lib/types/shared/serialize/serializer.d.ts +14 -0
- package/lib/types/shared/serialize/serializer.d.ts.map +1 -0
- package/lib/types/shared/sort-rules.d.ts +10 -0
- package/lib/types/shared/sort-rules.d.ts.map +1 -0
- package/lib/types/shared/tools.d.ts +103 -0
- package/lib/types/shared/tools.d.ts.map +1 -0
- package/lib/types/shared/tuples.d.ts +12 -0
- package/lib/types/shared/tuples.d.ts.map +1 -0
- package/lib/types/shared/type-store.d.ts +10 -0
- package/lib/types/shared/type-store.d.ts.map +1 -0
- package/lib/types/shared/types.d.ts +30 -0
- package/lib/types/shared/types.d.ts.map +1 -0
- package/lib/types/sheets/__tests__/create-core-test-bed.d.ts +16 -0
- package/lib/types/sheets/__tests__/create-core-test-bed.d.ts.map +1 -0
- package/lib/types/sheets/__tests__/styles.spec.d.ts +2 -0
- package/lib/types/sheets/__tests__/styles.spec.d.ts.map +1 -0
- package/lib/types/sheets/column-manager.d.ts +51 -0
- package/lib/types/sheets/column-manager.d.ts.map +1 -0
- package/lib/types/sheets/range.d.ts +312 -0
- package/lib/types/sheets/range.d.ts.map +1 -0
- package/lib/types/sheets/reference.d.ts +46 -0
- package/lib/types/sheets/reference.d.ts.map +1 -0
- package/lib/types/sheets/row-manager.d.ts +41 -0
- package/lib/types/sheets/row-manager.d.ts.map +1 -0
- package/lib/types/sheets/styles.d.ts +23 -0
- package/lib/types/sheets/styles.d.ts.map +1 -0
- package/lib/types/sheets/view-model.d.ts +36 -0
- package/lib/types/sheets/view-model.d.ts.map +1 -0
- package/lib/types/sheets/workbook.d.ts +130 -0
- package/lib/types/sheets/workbook.d.ts.map +1 -0
- package/lib/types/sheets/worksheet.d.ts +180 -0
- package/lib/types/sheets/worksheet.d.ts.map +1 -0
- package/lib/types/slides/domain/index.d.ts +2 -0
- package/lib/types/slides/domain/index.d.ts.map +1 -0
- package/lib/types/slides/domain/slide-model.d.ts +20 -0
- package/lib/types/slides/domain/slide-model.d.ts.map +1 -0
- package/lib/types/types/const/action-names.d.ts +51 -0
- package/lib/types/types/const/action-names.d.ts.map +1 -0
- package/lib/types/types/const/const.d.ts +153 -0
- package/lib/types/types/const/const.d.ts.map +1 -0
- package/lib/types/types/const/doc-action-names.d.ts +7 -0
- package/lib/types/types/const/doc-action-names.d.ts.map +1 -0
- package/lib/types/types/const/extension-names.d.ts +8 -0
- package/lib/types/types/const/extension-names.d.ts.map +1 -0
- package/lib/types/types/const/index.d.ts +5 -0
- package/lib/types/types/const/index.d.ts.map +1 -0
- package/lib/types/types/const/theme-color-map.d.ts +8 -0
- package/lib/types/types/const/theme-color-map.d.ts.map +1 -0
- package/lib/types/types/enum/auto-fill-series.d.ts +19 -0
- package/lib/types/types/enum/auto-fill-series.d.ts.map +1 -0
- package/lib/types/types/enum/border-style-types.d.ts +32 -0
- package/lib/types/types/enum/border-style-types.d.ts.map +1 -0
- package/lib/types/types/enum/color-type.d.ts +10 -0
- package/lib/types/types/enum/color-type.d.ts.map +1 -0
- package/lib/types/types/enum/common-hide-types.d.ts +8 -0
- package/lib/types/types/enum/common-hide-types.d.ts.map +1 -0
- package/lib/types/types/enum/condition-type.d.ts +38 -0
- package/lib/types/types/enum/condition-type.d.ts.map +1 -0
- package/lib/types/types/enum/copy-paste-type.d.ts +17 -0
- package/lib/types/types/enum/copy-paste-type.d.ts.map +1 -0
- package/lib/types/types/enum/developer-metadata-visibility.d.ts +8 -0
- package/lib/types/types/enum/developer-metadata-visibility.d.ts.map +1 -0
- package/lib/types/types/enum/dimension.d.ts +16 -0
- package/lib/types/types/enum/dimension.d.ts.map +1 -0
- package/lib/types/types/enum/direction.d.ts +8 -0
- package/lib/types/types/enum/direction.d.ts.map +1 -0
- package/lib/types/types/enum/format-type.d.ts +15 -0
- package/lib/types/types/enum/format-type.d.ts.map +1 -0
- package/lib/types/types/enum/group-control-toggle-position.d.ts +8 -0
- package/lib/types/types/enum/group-control-toggle-position.d.ts.map +1 -0
- package/lib/types/types/enum/index.d.ts +19 -0
- package/lib/types/types/enum/index.d.ts.map +1 -0
- package/lib/types/types/enum/interpolation-point-type.d.ts +12 -0
- package/lib/types/types/enum/interpolation-point-type.d.ts.map +1 -0
- package/lib/types/types/enum/locale-type.d.ts +11 -0
- package/lib/types/types/enum/locale-type.d.ts.map +1 -0
- package/lib/types/types/enum/place-holder-type.d.ts +20 -0
- package/lib/types/types/enum/place-holder-type.d.ts.map +1 -0
- package/lib/types/types/enum/protection-type.d.ts +8 -0
- package/lib/types/types/enum/protection-type.d.ts.map +1 -0
- package/lib/types/types/enum/relative-date.d.ts +13 -0
- package/lib/types/types/enum/relative-date.d.ts.map +1 -0
- package/lib/types/types/enum/shape-type.d.ts +146 -0
- package/lib/types/types/enum/shape-type.d.ts.map +1 -0
- package/lib/types/types/enum/sheet-types.d.ts +9 -0
- package/lib/types/types/enum/sheet-types.d.ts.map +1 -0
- package/lib/types/types/enum/text-style.d.ts +119 -0
- package/lib/types/types/enum/text-style.d.ts.map +1 -0
- package/lib/types/types/enum/theme-color-type.d.ts +72 -0
- package/lib/types/types/enum/theme-color-type.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-cell-data.d.ts +33 -0
- package/lib/types/types/interfaces/i-cell-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-column-data.d.ts +15 -0
- package/lib/types/types/interfaces/i-column-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-document-data.d.ts +666 -0
- package/lib/types/types/interfaces/i-document-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-extra-model-data.d.ts +19 -0
- package/lib/types/types/interfaces/i-extra-model-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-freeze.d.ts +11 -0
- package/lib/types/types/interfaces/i-freeze.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-image-properties.d.ts +23 -0
- package/lib/types/types/interfaces/i-image-properties.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-placeholder.d.ts +7 -0
- package/lib/types/types/interfaces/i-placeholder.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-range.d.ts +161 -0
- package/lib/types/types/interfaces/i-range.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-row-data.d.ts +23 -0
- package/lib/types/types/interfaces/i-row-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-selection-data.d.ts +43 -0
- package/lib/types/types/interfaces/i-selection-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-service-data.d.ts +6 -0
- package/lib/types/types/interfaces/i-service-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-shape-properties.d.ts +16 -0
- package/lib/types/types/interfaces/i-shape-properties.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-slide-data.d.ts +149 -0
- package/lib/types/types/interfaces/i-slide-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-style-data.d.ts +150 -0
- package/lib/types/types/interfaces/i-style-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-univer-data.d.ts +23 -0
- package/lib/types/types/interfaces/i-univer-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-workbook-data.d.ts +30 -0
- package/lib/types/types/interfaces/i-workbook-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-worksheet-data.d.ts +62 -0
- package/lib/types/types/interfaces/i-worksheet-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/i-worksheet-order-data.d.ts +6 -0
- package/lib/types/types/interfaces/i-worksheet-order-data.d.ts.map +1 -0
- package/lib/types/types/interfaces/index.d.ts +18 -0
- package/lib/types/types/interfaces/index.d.ts.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
import type { ISize } from '../../services/floating-object/floating-object-interfaces';
|
|
2
|
+
import type { BooleanNumber, HorizontalAlign, LocaleType, TextDirection, VerticalAlign, WrapStrategy } from '../enum';
|
|
3
|
+
import type { IExtraModelData } from './i-extra-model-data';
|
|
4
|
+
import type { IColorStyle, IStyleBase } from './i-style-data';
|
|
5
|
+
/**
|
|
6
|
+
* Properties of document
|
|
7
|
+
*/
|
|
8
|
+
export interface IDocumentData extends IReferenceSource, IExtraModelData {
|
|
9
|
+
/** unit ID */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Revision of this document. Would be used in collaborated editing. Starts with zero. */
|
|
12
|
+
rev?: number;
|
|
13
|
+
locale?: LocaleType;
|
|
14
|
+
title?: string;
|
|
15
|
+
body?: IDocumentBody;
|
|
16
|
+
documentStyle: IDocumentStyle;
|
|
17
|
+
settings?: IDocumentSettings;
|
|
18
|
+
}
|
|
19
|
+
export interface IReferenceSource {
|
|
20
|
+
footers?: IFooters;
|
|
21
|
+
headers?: IHeaders;
|
|
22
|
+
lists?: ILists;
|
|
23
|
+
drawings?: IDrawings;
|
|
24
|
+
}
|
|
25
|
+
export interface IDocumentSettings {
|
|
26
|
+
zoomRatio?: number;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Set of headers
|
|
30
|
+
*/
|
|
31
|
+
export interface IHeaders {
|
|
32
|
+
[headerId: string]: IHeaderData;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Set of footer
|
|
36
|
+
*/
|
|
37
|
+
export interface IFooters {
|
|
38
|
+
[footerId: string]: IFooterData;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Set of lists
|
|
42
|
+
*/
|
|
43
|
+
export interface ILists {
|
|
44
|
+
[listId: string]: IListData;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Set of Drawings
|
|
48
|
+
*/
|
|
49
|
+
export interface IDrawings {
|
|
50
|
+
[objectId: string]: IDrawing;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Set of IStyles
|
|
54
|
+
*/
|
|
55
|
+
export interface IDocStyles {
|
|
56
|
+
[styleId: string]: IDocStyle;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Properties of document body
|
|
60
|
+
* 三种更新类型,范围叠加、范围互斥、占位符
|
|
61
|
+
* \v COLUMN_BREAK
|
|
62
|
+
* \f PAGE_BREAK
|
|
63
|
+
* \0 DOCS_END
|
|
64
|
+
* \t TAB
|
|
65
|
+
*
|
|
66
|
+
* Needs to be changed:
|
|
67
|
+
* \r PARAGRAPH
|
|
68
|
+
* \n SECTION_BREAK
|
|
69
|
+
*
|
|
70
|
+
* \b customBlock: Scenarios where customBlock, images, mentions, etc. do not participate in the document flow.
|
|
71
|
+
*
|
|
72
|
+
* Table
|
|
73
|
+
* \x1A table start
|
|
74
|
+
* \x1B table row start
|
|
75
|
+
* \x1C table cell start
|
|
76
|
+
* \x1D table cell end
|
|
77
|
+
* \x1E table row end
|
|
78
|
+
* \x1F table end
|
|
79
|
+
*
|
|
80
|
+
* Special ranges within the document flow::hyperlinks,field,structured document tags, bookmark,comment
|
|
81
|
+
* \x1F customRange start
|
|
82
|
+
* \x1E customRange end
|
|
83
|
+
*/
|
|
84
|
+
export interface IDocumentBody {
|
|
85
|
+
dataStream: string;
|
|
86
|
+
textRuns?: ITextRun[];
|
|
87
|
+
paragraphs?: IParagraph[];
|
|
88
|
+
sectionBreaks?: ISectionBreak[];
|
|
89
|
+
customBlocks?: ICustomBlock[];
|
|
90
|
+
tables?: ITable[];
|
|
91
|
+
customRanges?: ICustomRange[];
|
|
92
|
+
}
|
|
93
|
+
export interface IDocStyle {
|
|
94
|
+
name: string;
|
|
95
|
+
basedOn: string;
|
|
96
|
+
link: string;
|
|
97
|
+
type: DocStyleType;
|
|
98
|
+
textStyle: ITextStyle;
|
|
99
|
+
}
|
|
100
|
+
export declare enum DocStyleType {
|
|
101
|
+
character = 0,
|
|
102
|
+
paragraph = 1,
|
|
103
|
+
table = 2,
|
|
104
|
+
numbering = 3
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Properties of doc footer
|
|
108
|
+
*/
|
|
109
|
+
export interface IFooterData {
|
|
110
|
+
footerId: string;
|
|
111
|
+
body: IDocumentBody;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Properties of doc header
|
|
115
|
+
*/
|
|
116
|
+
export interface IHeaderData {
|
|
117
|
+
headerId: string;
|
|
118
|
+
body: IDocumentBody;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* The properties of a list which describe the look and feel of bullets belonging to paragraphs associated with a list.
|
|
122
|
+
*/
|
|
123
|
+
export interface IListData {
|
|
124
|
+
listId: string;
|
|
125
|
+
nestingLevel: INestingLevel[];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Contains properties describing the look and feel of a list bullet at a given level of nesting.
|
|
129
|
+
*/
|
|
130
|
+
export interface INestingLevel extends IIndentStart {
|
|
131
|
+
bulletAlignment: BulletAlignment;
|
|
132
|
+
glyphFormat: string;
|
|
133
|
+
textStyle: ITextStyle;
|
|
134
|
+
startNumber: number;
|
|
135
|
+
glyphType?: GlyphType | string;
|
|
136
|
+
glyphSymbol?: string;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Follow the space after the list
|
|
140
|
+
*/
|
|
141
|
+
export declare enum FollowNumberWithType {
|
|
142
|
+
TAB = 0,
|
|
143
|
+
SPACE = 1,
|
|
144
|
+
NOTHING = 2
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* An enumeration of the supported glyph types.
|
|
148
|
+
*/
|
|
149
|
+
export declare enum GlyphType {
|
|
150
|
+
GLYPH_TYPE_UNSPECIFIED = 0,// The glyph type is unspecified or unsupported.
|
|
151
|
+
NONE = 1,// An empty string.
|
|
152
|
+
DECIMAL = 2,// A number, like 1, 2, or 3.
|
|
153
|
+
ZERO_DECIMAL = 3,// A number where single digit numbers are prefixed with a zero, like 01, 02, or 03. Numbers with more than one digit are not prefixed with a zero.
|
|
154
|
+
UPPER_ALPHA = 4,// An uppercase letter, like A, B, or C.
|
|
155
|
+
ALPHA = 5,// A lowercase letter, like a, b, or c.
|
|
156
|
+
UPPER_ROMAN = 6,// An uppercase Roman numeral, like I, II, or III.
|
|
157
|
+
ROMAN = 7
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* The types of alignment for a bullet.
|
|
161
|
+
*/
|
|
162
|
+
export declare enum BulletAlignment {
|
|
163
|
+
BULLET_ALIGNMENT_UNSPECIFIED = 0,// The bullet alignment is unspecified.
|
|
164
|
+
START = 1,// The bullet is aligned to the start of the space allotted for rendering the bullet. Left-aligned for LTR text, right-aligned otherwise.
|
|
165
|
+
CENTER = 2,// The bullet is aligned to the center of the space allotted for rendering the bullet.
|
|
166
|
+
END = 3
|
|
167
|
+
}
|
|
168
|
+
export interface IMargin {
|
|
169
|
+
marginTop?: number;
|
|
170
|
+
marginBottom?: number;
|
|
171
|
+
marginRight?: number;
|
|
172
|
+
marginLeft?: number;
|
|
173
|
+
}
|
|
174
|
+
export interface ITableOfContent {
|
|
175
|
+
}
|
|
176
|
+
export interface IHyperlink {
|
|
177
|
+
url?: string;
|
|
178
|
+
bookmarkId?: string;
|
|
179
|
+
headingId?: string;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* A ParagraphElement that represents a run of text that all has the same styling.
|
|
183
|
+
*/
|
|
184
|
+
export interface ITextRun {
|
|
185
|
+
st: number;
|
|
186
|
+
ed: number;
|
|
187
|
+
sId?: string;
|
|
188
|
+
ts?: ITextStyle;
|
|
189
|
+
}
|
|
190
|
+
export interface ICustomRange {
|
|
191
|
+
startIndex: number;
|
|
192
|
+
endIndex: number;
|
|
193
|
+
rangeId: string;
|
|
194
|
+
rangeType: CustomRangeType;
|
|
195
|
+
}
|
|
196
|
+
export declare enum CustomRangeType {
|
|
197
|
+
HYPERLINK = 0,
|
|
198
|
+
FIELD = 1,// 17.16 Fields and Hyperlinks
|
|
199
|
+
SDT = 2,// 17.5.2 Structured Document Tags
|
|
200
|
+
BOOKMARK = 3,
|
|
201
|
+
COMMENT = 4,
|
|
202
|
+
CUSTOM = 5
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Custom Block
|
|
206
|
+
*/
|
|
207
|
+
export interface ICustomBlock {
|
|
208
|
+
startIndex: number;
|
|
209
|
+
blockType?: BlockType;
|
|
210
|
+
blockId: string;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Type of block
|
|
214
|
+
*/
|
|
215
|
+
export declare enum BlockType {
|
|
216
|
+
DRAWING = 0,
|
|
217
|
+
CUSTOM = 1
|
|
218
|
+
}
|
|
219
|
+
export interface IHeaderAndFooterBase {
|
|
220
|
+
defaultHeaderId?: string;
|
|
221
|
+
defaultFooterId?: string;
|
|
222
|
+
evenPageHeaderId?: string;
|
|
223
|
+
evenPageFooterId?: string;
|
|
224
|
+
firstPageHeaderId?: string;
|
|
225
|
+
firstPageFooterId?: string;
|
|
226
|
+
useFirstPageHeaderFooter?: BooleanNumber;
|
|
227
|
+
useEvenPageHeaderFooter?: BooleanNumber;
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Basics properties of doc style
|
|
231
|
+
*/
|
|
232
|
+
export interface IDocStyleBase extends IMargin {
|
|
233
|
+
pageNumberStart?: number;
|
|
234
|
+
pageSize?: ISize;
|
|
235
|
+
pageOrient?: PageOrientType;
|
|
236
|
+
marginHeader?: number;
|
|
237
|
+
marginFooter?: number;
|
|
238
|
+
renderConfig?: IDocumentRenderConfig;
|
|
239
|
+
}
|
|
240
|
+
export interface IDocumentLayout {
|
|
241
|
+
charSpace?: number;
|
|
242
|
+
linePitch?: number;
|
|
243
|
+
gridType?: GridType;
|
|
244
|
+
defaultTabStop?: number;
|
|
245
|
+
characterSpacingControl?: characterSpacingControlType;
|
|
246
|
+
paragraphLineGapDefault?: number;
|
|
247
|
+
spaceWidthEastAsian?: BooleanNumber;
|
|
248
|
+
}
|
|
249
|
+
export declare enum GridType {
|
|
250
|
+
DEFAULT = 0,
|
|
251
|
+
LINES = 1,
|
|
252
|
+
LINES_AND_CHARS = 2,
|
|
253
|
+
SNAP_TO_CHARS = 3
|
|
254
|
+
}
|
|
255
|
+
export interface IDocumentStyle extends IDocStyleBase, IDocumentLayout, IHeaderAndFooterBase {
|
|
256
|
+
textStyle?: ITextStyle;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* the alignment mode is returned with respect to the offset of the sheet cell,
|
|
260
|
+
* because the document needs to render the layout for cells and
|
|
261
|
+
* support alignment across multiple cells (e.g., horizontal alignment of long text in overflow mode).
|
|
262
|
+
* The alignment mode of the document itself cannot meet this requirement,
|
|
263
|
+
* so an additional renderConfig needs to be added during the rendering of the document component.
|
|
264
|
+
* This means that there are two coexisting alignment modes.
|
|
265
|
+
* In certain cases, such as in an editor, conflicts may arise,
|
|
266
|
+
* requiring only one alignment mode to be retained.
|
|
267
|
+
* By removing the relevant configurations in renderConfig,
|
|
268
|
+
* the alignment mode of the sheet cell can be modified.
|
|
269
|
+
* The alternative alignment mode is applied to paragraphs within the document.
|
|
270
|
+
*/
|
|
271
|
+
export interface IDocumentRenderConfig {
|
|
272
|
+
verticalAlign?: VerticalAlign;
|
|
273
|
+
centerAngle?: number;
|
|
274
|
+
vertexAngle?: number;
|
|
275
|
+
horizontalAlign?: HorizontalAlign;
|
|
276
|
+
isRotateNonEastAsian?: BooleanNumber;
|
|
277
|
+
background?: IColorStyle;
|
|
278
|
+
wrapStrategy?: WrapStrategy;
|
|
279
|
+
}
|
|
280
|
+
export interface ISectionBreakBase {
|
|
281
|
+
columnProperties?: ISectionColumnProperties[];
|
|
282
|
+
columnSeparatorType?: ColumnSeparatorType;
|
|
283
|
+
contentDirection?: TextDirection;
|
|
284
|
+
sectionType?: SectionType;
|
|
285
|
+
sectionTypeNext?: SectionType;
|
|
286
|
+
textDirection?: TextDirectionType;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Properties of section break
|
|
290
|
+
*/
|
|
291
|
+
export interface ISectionBreak extends IDocStyleBase, ISectionBreakBase, IHeaderAndFooterBase {
|
|
292
|
+
startIndex: number;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Represents how the start of the current section is positioned relative to the previous section.
|
|
296
|
+
*/
|
|
297
|
+
export declare enum SectionType {
|
|
298
|
+
SECTION_TYPE_UNSPECIFIED = 0,// The section type is unspecified.
|
|
299
|
+
CONTINUOUS = 1,// The section starts immediately after the last paragraph of the previous section.
|
|
300
|
+
NEXT_PAGE = 2,// The section starts on the next page.
|
|
301
|
+
EVEN_PAGE = 3,// The section starts on the next page.
|
|
302
|
+
ODD_PAGE = 4
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* The style of column separators between columns.
|
|
306
|
+
*/
|
|
307
|
+
export declare enum ColumnSeparatorType {
|
|
308
|
+
COLUMN_SEPARATOR_STYLE_UNSPECIFIED = 0,// An unspecified column separator style.
|
|
309
|
+
NONE = 1,// No column separator lines between columns.
|
|
310
|
+
BETWEEN_EACH_COLUMN = 2
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Direction of text
|
|
314
|
+
*/
|
|
315
|
+
export declare enum TextDirectionType {
|
|
316
|
+
NORMAL = 0,// Horizontal
|
|
317
|
+
TBRL = 1,// Vertical
|
|
318
|
+
LRTBV = 2
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Properties of section column
|
|
322
|
+
*/
|
|
323
|
+
export interface ISectionColumnProperties {
|
|
324
|
+
width: number;
|
|
325
|
+
paddingEnd: number;
|
|
326
|
+
}
|
|
327
|
+
export interface IParagraph {
|
|
328
|
+
startIndex: number;
|
|
329
|
+
paragraphStyle?: IParagraphStyle;
|
|
330
|
+
bullet?: IBullet;
|
|
331
|
+
}
|
|
332
|
+
export declare enum ParagraphElementType {
|
|
333
|
+
TEXT_RUN = 0,
|
|
334
|
+
AUTO_TEXT = 1,
|
|
335
|
+
PAGE_BREAK = 2,
|
|
336
|
+
COLUMN_BREAK = 3,
|
|
337
|
+
FOOT_NOTE_REFERENCE = 4,
|
|
338
|
+
HORIZONTAL_RULE = 5,
|
|
339
|
+
EQUATION = 6,
|
|
340
|
+
DRAWING = 7,
|
|
341
|
+
PERSON = 8,
|
|
342
|
+
RICH_LINK = 9
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Properties of list
|
|
346
|
+
*/
|
|
347
|
+
export interface IBullet {
|
|
348
|
+
listId: string;
|
|
349
|
+
nestingLevel: number;
|
|
350
|
+
textStyle: ITextStyle;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Properties of Drawing
|
|
354
|
+
* 20.4.2.8 inline (Inline DrawingML Object)
|
|
355
|
+
* 20.4.2.15 wrapNone (No Text Wrapping)
|
|
356
|
+
* 20.4.2.16 wrapPolygon (Wrapping Polygon)
|
|
357
|
+
* 20.4.2.17 wrapSquare (Square Wrapping)
|
|
358
|
+
* 20.4.2.18 wrapThrough (Through Wrapping)
|
|
359
|
+
* 20.4.2.19 wrapTight (Tight Wrapping)
|
|
360
|
+
* 20.4.2.20 wrapTopAndBottom (Top and Bottom Wrapping)
|
|
361
|
+
*/
|
|
362
|
+
export interface IDrawing {
|
|
363
|
+
objectId: string;
|
|
364
|
+
title: string;
|
|
365
|
+
description: string;
|
|
366
|
+
objectTransform: IObjectTransform;
|
|
367
|
+
layoutType: PositionedObjectLayoutType;
|
|
368
|
+
behindDoc?: BooleanNumber;
|
|
369
|
+
start?: number[];
|
|
370
|
+
lineTo?: number[][];
|
|
371
|
+
wrapText?: WrapTextType;
|
|
372
|
+
distL?: number;
|
|
373
|
+
distR?: number;
|
|
374
|
+
distT?: number;
|
|
375
|
+
distB?: number;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Types of wrap text
|
|
379
|
+
*/
|
|
380
|
+
export declare enum WrapTextType {
|
|
381
|
+
BOTH_SIDES = 0,
|
|
382
|
+
LEFT = 1,
|
|
383
|
+
RIGHT = 2,
|
|
384
|
+
LARGEST = 3
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* The possible layouts of a [PositionedObject]
|
|
388
|
+
*/
|
|
389
|
+
export declare enum PositionedObjectLayoutType {
|
|
390
|
+
INLINE = 0,
|
|
391
|
+
WRAP_NONE = 1,
|
|
392
|
+
WRAP_POLYGON = 2,
|
|
393
|
+
WRAP_SQUARE = 3,
|
|
394
|
+
WRAP_THROUGH = 4,
|
|
395
|
+
WRAP_TIGHT = 5,
|
|
396
|
+
WRAP_TOP_AND_BOTTOM = 6
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Properties of a draw object
|
|
400
|
+
*/
|
|
401
|
+
export interface IObjectTransform {
|
|
402
|
+
size: ISize;
|
|
403
|
+
positionH: ObjectPositionH;
|
|
404
|
+
positionV: ObjectPositionV;
|
|
405
|
+
angle: number;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* ChartProperties
|
|
409
|
+
*/
|
|
410
|
+
export interface IChartProperties {
|
|
411
|
+
}
|
|
412
|
+
/**
|
|
413
|
+
* Properties of text style
|
|
414
|
+
*/
|
|
415
|
+
export interface ITextStyle extends IStyleBase {
|
|
416
|
+
sc?: number;
|
|
417
|
+
pos?: number;
|
|
418
|
+
sa?: number;
|
|
419
|
+
}
|
|
420
|
+
export interface IIndentStart {
|
|
421
|
+
indentFirstLine?: INumberUnit | number;
|
|
422
|
+
hanging?: INumberUnit | number;
|
|
423
|
+
indentStart?: INumberUnit | number;
|
|
424
|
+
tabStops?: ITabStop[];
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Properties of paragraph style
|
|
428
|
+
*/
|
|
429
|
+
export interface IParagraphStyle extends IIndentStart {
|
|
430
|
+
headingId?: string;
|
|
431
|
+
namedStyleType?: NamedStyleType;
|
|
432
|
+
horizontalAlign?: HorizontalAlign;
|
|
433
|
+
lineSpacing?: number;
|
|
434
|
+
direction?: TextDirection;
|
|
435
|
+
spacingRule?: SpacingRule;
|
|
436
|
+
snapToGrid?: BooleanNumber;
|
|
437
|
+
spaceAbove?: INumberUnit | number;
|
|
438
|
+
spaceBelow?: INumberUnit | number;
|
|
439
|
+
borderBetween?: IParagraphBorder;
|
|
440
|
+
borderTop?: IParagraphBorder;
|
|
441
|
+
borderBottom?: IParagraphBorder;
|
|
442
|
+
borderLeft?: IParagraphBorder;
|
|
443
|
+
borderRight?: IParagraphBorder;
|
|
444
|
+
indentEnd?: INumberUnit | number;
|
|
445
|
+
keepLines?: BooleanNumber;
|
|
446
|
+
keepNext?: BooleanNumber;
|
|
447
|
+
wordWrap?: BooleanNumber;
|
|
448
|
+
widowControl?: BooleanNumber;
|
|
449
|
+
shading?: IShading;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Types of name style
|
|
453
|
+
*/
|
|
454
|
+
export declare enum NamedStyleType {
|
|
455
|
+
NAMED_STYLE_TYPE_UNSPECIFIED = 0,// The type of named style is unspecified.
|
|
456
|
+
NORMAL_TEXT = 1,// Normal text.
|
|
457
|
+
TITLE = 2,// Title.
|
|
458
|
+
SUBTITLE = 3,// Subtitle.
|
|
459
|
+
HEADING_1 = 4,// Heading 1.
|
|
460
|
+
HEADING_2 = 5,// Heading 2.
|
|
461
|
+
HEADING_3 = 6,// Heading 3.
|
|
462
|
+
HEADING_4 = 7,// Heading 4.
|
|
463
|
+
HEADING_5 = 8,// Heading 5.
|
|
464
|
+
HEADING_6 = 9
|
|
465
|
+
}
|
|
466
|
+
export declare enum SpacingRule {
|
|
467
|
+
AUTO = 0,// Specifies that the line spacing of the parent object shall be automatically determined by the size of its contents, with no predetermined minimum or maximum size.
|
|
468
|
+
AT_LEAST = 1,// Specifies that the height of the line shall be at least the value specified, but might be expanded to fit its content as needed.
|
|
469
|
+
EXACT = 2
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Properties of doc border
|
|
473
|
+
*/
|
|
474
|
+
export interface IDocsBorder {
|
|
475
|
+
color: IColorStyle;
|
|
476
|
+
width: number;
|
|
477
|
+
dashStyle: DashStyleType;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Properties of paragraph border
|
|
481
|
+
*/
|
|
482
|
+
export interface IParagraphBorder extends IDocsBorder {
|
|
483
|
+
padding: number;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* The kinds of dashes with which linear geometry can be rendered.
|
|
487
|
+
*/
|
|
488
|
+
export declare enum DashStyleType {
|
|
489
|
+
DASH_STYLE_UNSPECIFIED = 0,// Unspecified dash style.
|
|
490
|
+
SOLID = 1,// Solid line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'solid'. This is the default dash style.
|
|
491
|
+
DOT = 2,// Dotted line. Corresponds to ECMA-376 ST_PresetLineDashVal value 'dot'.
|
|
492
|
+
DASH = 3
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* A tab stop within a paragraph.
|
|
496
|
+
*/
|
|
497
|
+
export interface ITabStop {
|
|
498
|
+
offset: number;
|
|
499
|
+
alignment: TabStopAlignment;
|
|
500
|
+
}
|
|
501
|
+
/**
|
|
502
|
+
* The alignment of the tab stop.
|
|
503
|
+
*/
|
|
504
|
+
export declare enum TabStopAlignment {
|
|
505
|
+
TAB_STOP_ALIGNMENT_UNSPECIFIED = 0,// The tab stop alignment is unspecified.
|
|
506
|
+
START = 1,// The tab stop is aligned to the start of the line. This is the default.
|
|
507
|
+
CENTER = 2,// The tab stop is aligned to the center of the line.
|
|
508
|
+
END = 3
|
|
509
|
+
}
|
|
510
|
+
/**
|
|
511
|
+
* Properties of shading
|
|
512
|
+
*/
|
|
513
|
+
export interface IShading {
|
|
514
|
+
backgroundColor: IColorStyle;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* Type of width
|
|
518
|
+
*/
|
|
519
|
+
export declare enum WidthType {
|
|
520
|
+
EVENLY_DISTRIBUTED = "0",
|
|
521
|
+
FIXED_WIDTH = "1"
|
|
522
|
+
}
|
|
523
|
+
/**
|
|
524
|
+
* Properties of table
|
|
525
|
+
*/
|
|
526
|
+
export interface ITable {
|
|
527
|
+
startIndex: number;
|
|
528
|
+
endIndex: number;
|
|
529
|
+
rows: number;
|
|
530
|
+
columns: number;
|
|
531
|
+
tableRows: ITableRow[];
|
|
532
|
+
tableStyle: WidthType;
|
|
533
|
+
width: number;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Properties of row of table
|
|
537
|
+
*/
|
|
538
|
+
export interface ITableRow {
|
|
539
|
+
st: number;
|
|
540
|
+
ed: number;
|
|
541
|
+
tableCells: ITableCell[];
|
|
542
|
+
tableRowStyle: ITableRowStyle;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Properties of style table row
|
|
546
|
+
*/
|
|
547
|
+
export interface ITableRowStyle {
|
|
548
|
+
minRowHeight: number;
|
|
549
|
+
}
|
|
550
|
+
/**
|
|
551
|
+
* Properties of table cell
|
|
552
|
+
*/
|
|
553
|
+
export interface ITableCell {
|
|
554
|
+
tableCellStyle: ITableCellStyle;
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* Properties of style of table cell
|
|
558
|
+
*/
|
|
559
|
+
export interface ITableCellStyle {
|
|
560
|
+
rowSpan: number;
|
|
561
|
+
columnSpan: number;
|
|
562
|
+
backgroundColor: IColorStyle;
|
|
563
|
+
borderLeft: ITableCellBorder;
|
|
564
|
+
borderRight: ITableCellBorder;
|
|
565
|
+
borderTop: ITableCellBorder;
|
|
566
|
+
borderBottom: ITableCellBorder;
|
|
567
|
+
paddingLeft: number;
|
|
568
|
+
paddingRight: number;
|
|
569
|
+
paddingTop: number;
|
|
570
|
+
paddingBottom: number;
|
|
571
|
+
contentAlignment: ContentAlignment;
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Properties of cell border
|
|
575
|
+
*/
|
|
576
|
+
export interface ITableCellBorder {
|
|
577
|
+
color: IColorStyle;
|
|
578
|
+
width: number;
|
|
579
|
+
dashStyle: DashStyleType;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* The content alignments for a Shape or TableCell. The supported alignments correspond to predefined text anchoring types from the ECMA-376 standard.
|
|
583
|
+
*/
|
|
584
|
+
export declare enum ContentAlignment {
|
|
585
|
+
CONTENT_ALIGNMENT_UNSPECIFIED = 0,// An unspecified content alignment. The content alignment is inherited from the parent if one exists.
|
|
586
|
+
CONTENT_ALIGNMENT_UNSUPPORTED = 1,// An unsupported content alignment.
|
|
587
|
+
TOP = 2,// An alignment that aligns the content to the top of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 't'.
|
|
588
|
+
MIDDLE = 3,// An alignment that aligns the content to the middle of the content holder. Corresponds to ECMA-376 ST_TextAnchoringType 'ctr'.
|
|
589
|
+
BOTTOM = 4
|
|
590
|
+
}
|
|
591
|
+
/**
|
|
592
|
+
* Types of font style
|
|
593
|
+
*/
|
|
594
|
+
export declare enum FontStyleType {
|
|
595
|
+
NORMAL = "normal",
|
|
596
|
+
BOLD = "bold",
|
|
597
|
+
ITALIC = "italic"
|
|
598
|
+
}
|
|
599
|
+
export interface INumberUnit {
|
|
600
|
+
v: number;
|
|
601
|
+
u: NumberUnitType;
|
|
602
|
+
}
|
|
603
|
+
export interface ObjectPositionH {
|
|
604
|
+
relativeFrom: ObjectRelativeFromH;
|
|
605
|
+
align?: AlignTypeH;
|
|
606
|
+
posOffset?: number;
|
|
607
|
+
percent?: number;
|
|
608
|
+
}
|
|
609
|
+
export interface ObjectPositionV {
|
|
610
|
+
relativeFrom: ObjectRelativeFromV;
|
|
611
|
+
align?: AlignTypeV;
|
|
612
|
+
posOffset?: number;
|
|
613
|
+
percent?: number;
|
|
614
|
+
}
|
|
615
|
+
export declare enum ObjectRelativeFromH {
|
|
616
|
+
CHARACTER = 0,
|
|
617
|
+
COLUMN = 1,
|
|
618
|
+
INSIDE_MARGIN = 2,
|
|
619
|
+
LEFT_MARGIN = 3,
|
|
620
|
+
MARGIN = 4,
|
|
621
|
+
OUTSIDE_MARGIN = 5,
|
|
622
|
+
PAGE = 6,
|
|
623
|
+
RIGHT_MARGIN = 7
|
|
624
|
+
}
|
|
625
|
+
export declare enum ObjectRelativeFromV {
|
|
626
|
+
BOTTOM_MARGIN = 0,
|
|
627
|
+
INSIDE_MARGIN = 1,
|
|
628
|
+
LINE = 2,
|
|
629
|
+
MARGIN = 3,
|
|
630
|
+
OUTSIDE_MARGIN = 4,
|
|
631
|
+
PAGE = 5,
|
|
632
|
+
PARAGRAPH = 6,
|
|
633
|
+
TOP_MARGIN = 7
|
|
634
|
+
}
|
|
635
|
+
export declare enum NumberUnitType {
|
|
636
|
+
POINT = 0,
|
|
637
|
+
LINE = 1,
|
|
638
|
+
CHARACTER = 2
|
|
639
|
+
}
|
|
640
|
+
export declare enum AlignTypeH {
|
|
641
|
+
CENTER = 0,
|
|
642
|
+
INSIDE = 1,
|
|
643
|
+
LEFT = 2,
|
|
644
|
+
OUTSIDE = 3,
|
|
645
|
+
RIGHT = 4
|
|
646
|
+
}
|
|
647
|
+
export declare enum AlignTypeV {
|
|
648
|
+
BOTTOM = 0,
|
|
649
|
+
CENTER = 1,
|
|
650
|
+
INSIDE = 2,
|
|
651
|
+
OUTSIDE = 3,
|
|
652
|
+
TOP = 4
|
|
653
|
+
}
|
|
654
|
+
export declare enum characterSpacingControlType {
|
|
655
|
+
compressPunctuation = 0,
|
|
656
|
+
compressPunctuationAndJapaneseKana = 1,
|
|
657
|
+
doNotCompress = 2
|
|
658
|
+
}
|
|
659
|
+
/**
|
|
660
|
+
* Paper orientation, whether it's portrait (vertical) or landscape (horizontal)
|
|
661
|
+
*/
|
|
662
|
+
export declare enum PageOrientType {
|
|
663
|
+
PORTRAIT = 0,
|
|
664
|
+
LANDSCAPE = 1
|
|
665
|
+
}
|
|
666
|
+
//# sourceMappingURL=i-document-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-document-data.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-document-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2DAA2D,CAAC;AACvF,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACtH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAG9D;;GAEG;AACH,MAAM,WAAW,aAAc,SAAQ,gBAAgB,EAAE,eAAe;IACpE,cAAc;IACd,EAAE,EAAE,MAAM,CAAC;IAEX,0FAA0F;IAC1F,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb,MAAM,CAAC,EAAE,UAAU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,IAAA;IACP,GAAG,IAAA;CACN;AAED,oBAAY,2BAA2B;IACnC,mBAAmB,IAAA;IACnB,kCAAkC,IAAA;IAClC,aAAa,IAAA;CAChB;AAED;;GAEG;AACH,oBAAY,cAAc;IACtB,QAAQ,IAAA;IACR,SAAS,IAAA;CACZ"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface IExtraModelData {
|
|
2
|
+
/**
|
|
3
|
+
* should start renderLoop Immediately
|
|
4
|
+
* default is true
|
|
5
|
+
*/
|
|
6
|
+
shouldStartRenderingImmediately?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* HTML selector
|
|
9
|
+
* default is null
|
|
10
|
+
*/
|
|
11
|
+
container?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Specify the unitID of the parent render. In this case, the scene will enter
|
|
14
|
+
* the sceneViewer and become a child application of the parent scene.
|
|
15
|
+
* default is null
|
|
16
|
+
*/
|
|
17
|
+
parentRenderUnitId?: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=i-extra-model-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-extra-model-data.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-extra-model-data.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC5B;;;OAGG;IACH,+BAA+B,CAAC,EAAE,OAAO,CAAC;IAG1C;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC/B"}
|