@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,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ecma Office Open XML Part 1 - Fundamentals And Markup Language Reference
|
|
3
|
+
* 18.3.1.66 pane (View Pane)
|
|
4
|
+
*/
|
|
5
|
+
export interface IFreeze {
|
|
6
|
+
xSplit: number;
|
|
7
|
+
ySplit: number;
|
|
8
|
+
startRow: number;
|
|
9
|
+
startColumn: number;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=i-freeze.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-freeze.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-freeze.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,OAAO;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Properties of Image
|
|
3
|
+
*/
|
|
4
|
+
export interface IImageProperties {
|
|
5
|
+
contentUrl: string;
|
|
6
|
+
sourceUrl?: string;
|
|
7
|
+
brightness?: number;
|
|
8
|
+
contrast?: number;
|
|
9
|
+
transparency?: number;
|
|
10
|
+
cropProperties?: ICropProperties;
|
|
11
|
+
angle?: number;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Properties of crop image
|
|
15
|
+
*/
|
|
16
|
+
export interface ICropProperties {
|
|
17
|
+
offsetLeft: number;
|
|
18
|
+
offsetRight: number;
|
|
19
|
+
offsetTop: number;
|
|
20
|
+
offsetBottom: number;
|
|
21
|
+
angle: number;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=i-image-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-image-properties.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-image-properties.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-placeholder.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-placeholder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAEjE,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;CAC1B"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
export declare enum RANGE_TYPE {
|
|
2
|
+
NORMAL = 0,
|
|
3
|
+
ROW = 1,
|
|
4
|
+
COLUMN = 2,
|
|
5
|
+
ALL = 3
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* none: A1
|
|
9
|
+
* row: A$1
|
|
10
|
+
* column: $A1
|
|
11
|
+
* all: $A$1
|
|
12
|
+
*/
|
|
13
|
+
export declare enum AbsoluteRefType {
|
|
14
|
+
NONE = 0,
|
|
15
|
+
ROW = 1,
|
|
16
|
+
COLUMN = 2,
|
|
17
|
+
ALL = 3
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Range data structure
|
|
21
|
+
*
|
|
22
|
+
* One of the range types,
|
|
23
|
+
*
|
|
24
|
+
* e.g.,
|
|
25
|
+
* {
|
|
26
|
+
* startRow:0 ,
|
|
27
|
+
* startColumn:0,
|
|
28
|
+
* endRow:1,
|
|
29
|
+
* endColumn:1,
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* means "A1:B2"
|
|
33
|
+
*/
|
|
34
|
+
export interface IRange {
|
|
35
|
+
/**
|
|
36
|
+
* The start row (inclusive) of the range
|
|
37
|
+
* startRow
|
|
38
|
+
*/
|
|
39
|
+
startRow: number;
|
|
40
|
+
/**
|
|
41
|
+
* The start column (inclusive) of the range
|
|
42
|
+
* startColumn
|
|
43
|
+
*/
|
|
44
|
+
startColumn: number;
|
|
45
|
+
/**
|
|
46
|
+
* The end row (exclusive) of the range
|
|
47
|
+
* endRow
|
|
48
|
+
*/
|
|
49
|
+
endRow: number;
|
|
50
|
+
/**
|
|
51
|
+
* The end column (exclusive) of the range
|
|
52
|
+
* endColumn
|
|
53
|
+
*/
|
|
54
|
+
endColumn: number;
|
|
55
|
+
rangeType?: RANGE_TYPE;
|
|
56
|
+
startAbsoluteRefType?: AbsoluteRefType;
|
|
57
|
+
endAbsoluteRefType?: AbsoluteRefType;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Transform an `IRange` object to an array.
|
|
61
|
+
* @param range
|
|
62
|
+
* @returns [rowStart, colStart, rowEnd, colEnd]
|
|
63
|
+
*/
|
|
64
|
+
export declare function selectionToArray(range: IRange): [number, number, number, number];
|
|
65
|
+
/**
|
|
66
|
+
* Range data of grid
|
|
67
|
+
*/
|
|
68
|
+
export interface IGridRange {
|
|
69
|
+
sheetId: string;
|
|
70
|
+
range: IRange;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Range data of Unit
|
|
74
|
+
*/
|
|
75
|
+
export interface IUnitRange extends IGridRange {
|
|
76
|
+
unitId: string;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* One of the range types,
|
|
80
|
+
*
|
|
81
|
+
* e.g.,"A1:B2","sheet1!A1:B2","A1","1:1","A:A","AA1:BB2"
|
|
82
|
+
*/
|
|
83
|
+
export type IRangeStringData = string;
|
|
84
|
+
/**
|
|
85
|
+
* Row data type
|
|
86
|
+
*/
|
|
87
|
+
export type IRowStartEndData = [startRow: number, endRow: number] | number[];
|
|
88
|
+
/**
|
|
89
|
+
* Column data type
|
|
90
|
+
*/
|
|
91
|
+
export type IColumnStartEndData = [startColumn: number, endColumn: number] | number[];
|
|
92
|
+
/**
|
|
93
|
+
* One of the range types,
|
|
94
|
+
*
|
|
95
|
+
* e.g.,
|
|
96
|
+
* {
|
|
97
|
+
* row:[0,1],
|
|
98
|
+
* column:[0,1]
|
|
99
|
+
* }
|
|
100
|
+
*todo
|
|
101
|
+
|
|
102
|
+
true false 枚举
|
|
103
|
+
* means "A1:B2"
|
|
104
|
+
*/
|
|
105
|
+
export interface IRangeArrayData {
|
|
106
|
+
/**
|
|
107
|
+
* row
|
|
108
|
+
*/
|
|
109
|
+
row: IRowStartEndData;
|
|
110
|
+
/**
|
|
111
|
+
* column
|
|
112
|
+
*/
|
|
113
|
+
column: IColumnStartEndData;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The row and column numbers represent a cell
|
|
117
|
+
*/
|
|
118
|
+
export interface IRangeCellData {
|
|
119
|
+
/**
|
|
120
|
+
* row
|
|
121
|
+
*/
|
|
122
|
+
row: number;
|
|
123
|
+
/**
|
|
124
|
+
* column
|
|
125
|
+
*/
|
|
126
|
+
column: number;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* range types
|
|
130
|
+
*
|
|
131
|
+
* Allow users to provide one of three formats, we need to convert to IRange to store
|
|
132
|
+
*/
|
|
133
|
+
export type IRangeType = IRange | IRangeStringData | IRangeArrayData | IRangeCellData;
|
|
134
|
+
/**
|
|
135
|
+
* Whether to clear only the contents. Whether to clear only the format; note that clearing format also clears data validation rules.
|
|
136
|
+
*/
|
|
137
|
+
export interface IOptionData {
|
|
138
|
+
/**
|
|
139
|
+
* 1. designates that only the format should be copied
|
|
140
|
+
*
|
|
141
|
+
* 2. Whether to clear only the format; note that clearing format also clears data validation rules.
|
|
142
|
+
*
|
|
143
|
+
* 3. worksheet Whether to clear the format.
|
|
144
|
+
*/
|
|
145
|
+
formatOnly?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* 1. designates that only the content should be copied
|
|
148
|
+
*
|
|
149
|
+
* 2. Whether to clear only the contents.
|
|
150
|
+
*
|
|
151
|
+
* 3. worksheet Whether to clear the content.
|
|
152
|
+
*
|
|
153
|
+
*/
|
|
154
|
+
contentsOnly?: boolean;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Option of copyTo function
|
|
158
|
+
*/
|
|
159
|
+
export interface ICopyToOptionsData extends IOptionData {
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=i-range.d.ts.map
|
|
@@ -0,0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,MAAM,CAAC,GAAG,MAAM,EAAE,CAAC;AAEtF;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,eAAe;IAC5B;;OAEG;IACH,GAAG,EAAE,gBAAgB,CAAC;IACtB;;OAEG;IACH,MAAM,EAAE,mBAAmB,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,gBAAgB,GAAG,eAAe,GAAG,cAAc,CAAC;AAmBtF;;GAEG;AACH,MAAM,WAAW,WAAW;IACxB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;;OAOG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CAI1B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,WAAW;CAAG"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { BooleanNumber } from '../enum';
|
|
2
|
+
/**
|
|
3
|
+
* Properties of row data
|
|
4
|
+
*/
|
|
5
|
+
export interface IRowData {
|
|
6
|
+
/**
|
|
7
|
+
* height in pixel
|
|
8
|
+
*/
|
|
9
|
+
h: number;
|
|
10
|
+
/**
|
|
11
|
+
* is current row self-adaptive to its content, use `ah` to set row height when true, else use `h`.
|
|
12
|
+
*/
|
|
13
|
+
isAutoHeight?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* auto height
|
|
16
|
+
*/
|
|
17
|
+
ah?: number;
|
|
18
|
+
/**
|
|
19
|
+
* hidden
|
|
20
|
+
*/
|
|
21
|
+
hd: BooleanNumber;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=i-row-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-row-data.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-row-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB;;OAEG;IACH,CAAC,EAAE,MAAM,CAAC;IACV;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,EAAE,EAAE,aAAa,CAAC;CACrB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { Nullable } from '../../shared/types';
|
|
2
|
+
import type { IRange } from './i-range';
|
|
3
|
+
/**
|
|
4
|
+
* Properties of selection data
|
|
5
|
+
*/
|
|
6
|
+
export interface IPosition {
|
|
7
|
+
startX: number;
|
|
8
|
+
startY: number;
|
|
9
|
+
endX: number;
|
|
10
|
+
endY: number;
|
|
11
|
+
}
|
|
12
|
+
export interface ISingleCell {
|
|
13
|
+
actualRow: number;
|
|
14
|
+
actualColumn: number;
|
|
15
|
+
isMerged: boolean;
|
|
16
|
+
isMergedMainCell: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface IRangeWithCoord extends IPosition, IRange {
|
|
19
|
+
}
|
|
20
|
+
export interface ISelectionCell extends IRange, ISingleCell {
|
|
21
|
+
}
|
|
22
|
+
export interface ISelectionCellWithCoord extends IPosition, ISingleCell {
|
|
23
|
+
mergeInfo: IRangeWithCoord;
|
|
24
|
+
}
|
|
25
|
+
export interface ISelection {
|
|
26
|
+
range: IRange;
|
|
27
|
+
primary: Nullable<ISelectionCell>;
|
|
28
|
+
}
|
|
29
|
+
export interface ISelectionWithCoord {
|
|
30
|
+
rangeWithCoord: IRangeWithCoord;
|
|
31
|
+
primaryWithCoord: Nullable<ISelectionCellWithCoord>;
|
|
32
|
+
}
|
|
33
|
+
export interface ITextRangeStart {
|
|
34
|
+
startOffset: number;
|
|
35
|
+
}
|
|
36
|
+
export interface ITextRange extends ITextRangeStart {
|
|
37
|
+
endOffset: number;
|
|
38
|
+
collapsed: boolean;
|
|
39
|
+
}
|
|
40
|
+
export interface ITextRangeParam extends ITextRange {
|
|
41
|
+
segmentId?: string;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=i-selection-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-selection-data.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-selection-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,eAAgB,SAAQ,SAAS,EAAE,MAAM;CAAG;AAE7D,MAAM,WAAW,cAAe,SAAQ,MAAM,EAAE,WAAW;CAAG;AAE9D,MAAM,WAAW,uBAAwB,SAAQ,SAAS,EAAE,WAAW;IACnE,SAAS,EAAE,eAAe,CAAC;CAC9B;AAED,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,mBAAmB;IAChC,cAAc,EAAE,eAAe,CAAC;IAChC,gBAAgB,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC;CACvD;AAED,MAAM,WAAW,eAAe;IAC5B,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,UAAW,SAAQ,eAAe;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,eAAgB,SAAQ,UAAU;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-service-data.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-service-data.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,YAAY;CAAG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { BorderStyleTypes } from '../enum/border-style-types';
|
|
2
|
+
import type { IColorStyle } from './i-style-data';
|
|
3
|
+
/**
|
|
4
|
+
* ShapeProperties
|
|
5
|
+
*/
|
|
6
|
+
export interface IShapeProperties {
|
|
7
|
+
shapeBackgroundFill: IColorStyle;
|
|
8
|
+
radius?: number;
|
|
9
|
+
outline?: IOutline;
|
|
10
|
+
}
|
|
11
|
+
export interface IOutline {
|
|
12
|
+
outlineFill: IColorStyle;
|
|
13
|
+
weight: number;
|
|
14
|
+
dashStyle?: BorderStyleTypes;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=i-shape-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-shape-properties.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-shape-properties.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,mBAAmB,EAAE,WAAW,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,QAAQ,CAAC;CAKtB;AAED,MAAM,WAAW,QAAQ;IACrB,WAAW,EAAE,WAAW,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAChC"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type { ISize, ITransformState } from '../../services/floating-object/floating-object-interfaces';
|
|
2
|
+
import type { IKeyType, Nullable } from '../../shared/types';
|
|
3
|
+
import type { LocaleType, ThemeColorType } from '../enum';
|
|
4
|
+
import type { ShapeType } from '../enum/shape-type';
|
|
5
|
+
import type { ICustomBlock, IDocumentData, ILists } from './i-document-data';
|
|
6
|
+
import type { IImageProperties } from './i-image-properties';
|
|
7
|
+
import type { IPlaceholder } from './i-placeholder';
|
|
8
|
+
import type { IShapeProperties } from './i-shape-properties';
|
|
9
|
+
import type { IColorStyle, IStyleBase, IStyleData } from './i-style-data';
|
|
10
|
+
import type { IWorksheetData } from './i-worksheet-data';
|
|
11
|
+
export interface ISlideData extends IReferenceSource {
|
|
12
|
+
id: string;
|
|
13
|
+
locale?: LocaleType;
|
|
14
|
+
title: string;
|
|
15
|
+
pageSize: ISize;
|
|
16
|
+
body?: ISlidePageBody;
|
|
17
|
+
}
|
|
18
|
+
interface IReferenceSource {
|
|
19
|
+
master?: {
|
|
20
|
+
[id: string]: ISlidePage;
|
|
21
|
+
};
|
|
22
|
+
handoutMaster?: {
|
|
23
|
+
[id: string]: ISlidePage;
|
|
24
|
+
};
|
|
25
|
+
notesMaster?: {
|
|
26
|
+
[id: string]: ISlidePage;
|
|
27
|
+
};
|
|
28
|
+
layouts?: {
|
|
29
|
+
[id: string]: ISlidePage;
|
|
30
|
+
};
|
|
31
|
+
lists?: ILists;
|
|
32
|
+
}
|
|
33
|
+
interface ISlidePageBody {
|
|
34
|
+
pages: {
|
|
35
|
+
[id: string]: ISlidePage;
|
|
36
|
+
};
|
|
37
|
+
pageOrder: string[];
|
|
38
|
+
}
|
|
39
|
+
export interface ISlidePage {
|
|
40
|
+
id: string;
|
|
41
|
+
pageType: PageType;
|
|
42
|
+
zIndex: number;
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
pageBackgroundFill: IColorStyle;
|
|
46
|
+
colorScheme?: ThemeColorType;
|
|
47
|
+
pageElements: {
|
|
48
|
+
[elementId: string]: IPageElement;
|
|
49
|
+
};
|
|
50
|
+
slideProperties?: ISlideProperties;
|
|
51
|
+
layoutProperties?: ILayoutProperties;
|
|
52
|
+
notesProperties?: INotesProperties;
|
|
53
|
+
handoutProperties?: IHandoutProperties;
|
|
54
|
+
masterProperties?: IMasterProperties;
|
|
55
|
+
}
|
|
56
|
+
interface ISlideProperties {
|
|
57
|
+
layoutObjectId: string;
|
|
58
|
+
masterObjectId: string;
|
|
59
|
+
isSkipped: boolean;
|
|
60
|
+
}
|
|
61
|
+
interface ILayoutProperties {
|
|
62
|
+
masterObjectId: string;
|
|
63
|
+
name: string;
|
|
64
|
+
}
|
|
65
|
+
interface INotesProperties {
|
|
66
|
+
name: string;
|
|
67
|
+
}
|
|
68
|
+
interface IHandoutProperties {
|
|
69
|
+
name: string;
|
|
70
|
+
}
|
|
71
|
+
interface IMasterProperties {
|
|
72
|
+
name: string;
|
|
73
|
+
}
|
|
74
|
+
export interface IRichTextProps extends ITransformState, IStyleBase {
|
|
75
|
+
text?: string;
|
|
76
|
+
rich?: IDocumentData;
|
|
77
|
+
}
|
|
78
|
+
export interface IPageElement {
|
|
79
|
+
id: string;
|
|
80
|
+
zIndex: number;
|
|
81
|
+
left?: number;
|
|
82
|
+
top?: number;
|
|
83
|
+
width?: number;
|
|
84
|
+
height?: number;
|
|
85
|
+
angle?: number;
|
|
86
|
+
scaleX?: number;
|
|
87
|
+
scaleY?: number;
|
|
88
|
+
skewX?: number;
|
|
89
|
+
skewY?: number;
|
|
90
|
+
flipX?: boolean;
|
|
91
|
+
flipY?: boolean;
|
|
92
|
+
title: string;
|
|
93
|
+
description: string;
|
|
94
|
+
type: PageElementType;
|
|
95
|
+
shape?: IShape;
|
|
96
|
+
image?: IImage;
|
|
97
|
+
richText?: IRichTextProps;
|
|
98
|
+
spreadsheet?: {
|
|
99
|
+
worksheet: IWorksheetData;
|
|
100
|
+
styles: IKeyType<Nullable<IStyleData>>;
|
|
101
|
+
};
|
|
102
|
+
document?: IDocumentData;
|
|
103
|
+
slide?: ISlideData;
|
|
104
|
+
customBlock?: ICustomBlock;
|
|
105
|
+
}
|
|
106
|
+
export declare enum PageType {
|
|
107
|
+
SLIDE = 0,// A slide page.
|
|
108
|
+
MASTER = 1,// A master slide page.
|
|
109
|
+
LAYOUT = 2,// A layout page.
|
|
110
|
+
HANDOUT_MASTER = 3,// A handout master page.
|
|
111
|
+
NOTES_MASTER = 4
|
|
112
|
+
}
|
|
113
|
+
export declare enum PageElementType {
|
|
114
|
+
SHAPE = 0,
|
|
115
|
+
IMAGE = 1,
|
|
116
|
+
TEXT = 2,
|
|
117
|
+
SPREADSHEET = 3,
|
|
118
|
+
DOCUMENT = 4,
|
|
119
|
+
SLIDE = 5
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* IShape
|
|
123
|
+
*/
|
|
124
|
+
export interface IShape {
|
|
125
|
+
shapeType: ShapeType;
|
|
126
|
+
text: string;
|
|
127
|
+
shapeProperties: IShapeProperties;
|
|
128
|
+
placeholder?: IPlaceholder;
|
|
129
|
+
link?: ILink;
|
|
130
|
+
}
|
|
131
|
+
export interface IImage {
|
|
132
|
+
imageProperties?: IImageProperties;
|
|
133
|
+
placeholder?: IPlaceholder;
|
|
134
|
+
link?: ILink;
|
|
135
|
+
}
|
|
136
|
+
interface ILink {
|
|
137
|
+
relativeLink: RelativeSlideLink;
|
|
138
|
+
pageId?: string;
|
|
139
|
+
slideIndex?: number;
|
|
140
|
+
}
|
|
141
|
+
export declare enum RelativeSlideLink {
|
|
142
|
+
RELATIVE_SLIDE_LINK_UNSPECIFIED = 0,// An unspecified relative slide link.
|
|
143
|
+
NEXT_SLIDE = 1,// A link to the next slide.
|
|
144
|
+
PREVIOUS_SLIDE = 2,// A link to the previous slide.
|
|
145
|
+
FIRST_SLIDE = 3,// A link to the first slide in the presentation.
|
|
146
|
+
LAST_SLIDE = 4
|
|
147
|
+
}
|
|
148
|
+
export {};
|
|
149
|
+
//# sourceMappingURL=i-slide-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-slide-data.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-slide-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AACxG,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC7E,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEzD,MAAM,WAAW,UAAW,SAAQ,gBAAgB;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC;IAChB,IAAI,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,UAAU,gBAAgB;IACtB,MAAM,CAAC,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,UAAU,CAAA;KAAE,CAAC;IACtC,aAAa,CAAC,EAAE;QAAE,CAA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zB,cAAc,IAAA,CAAE,yBAAyB;IACzC,YAAY,IAAA;CACf;AAED,oBAAY,eAAe;IACvB,KAAK,IAAA;IACL,KAAK,IAAA;IACL,IAAI,IAAA;IACJ,WAAW,IAAA;IACX,QAAQ,IAAA;IACR,KAAK,IAAA;CACR;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,gBAAgB,CAAC;IAClC,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC;CAChB;AAED,MAAM,WAAW,MAAM;IACnB,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,WAAW,CAAC,EAAE,YAAY,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC;CAChB;AAED,UAAU,KAAK;IACX,YAAY,EAAE,iBAAiB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,oBAAY,iBAAiB;IACzB,+BAA+B,IAAA,CAAE,sCAAsC;IACvE,UAAU,IAAA,CAAE,4BAA4B;IACxC,cAAc,IAAA,CAAE,gCAAgC;IAChD,WAAW,IAAA,CAAE,iDAAiD;IAC9D,UAAU,IAAA;CACb"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import type { Nullable } from '../../shared/types';
|
|
2
|
+
import type { BorderStyleTypes } from '../enum/border-style-types';
|
|
3
|
+
import type { BaselineOffset, BooleanNumber, HorizontalAlign, TextDecoration, TextDirection, VerticalAlign, WrapStrategy } from '../enum/text-style';
|
|
4
|
+
import type { ThemeColorType } from '../enum/theme-color-type';
|
|
5
|
+
/**
|
|
6
|
+
* Properties of text decoration
|
|
7
|
+
*/
|
|
8
|
+
export interface ITextDecoration {
|
|
9
|
+
s: BooleanNumber;
|
|
10
|
+
cl?: IColorStyle;
|
|
11
|
+
t?: TextDecoration;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* RGB color or theme color
|
|
15
|
+
*/
|
|
16
|
+
export interface IColorStyle {
|
|
17
|
+
rgb?: Nullable<string>;
|
|
18
|
+
th?: ThemeColorType;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Format of RBGA color
|
|
22
|
+
*/
|
|
23
|
+
export interface IColor {
|
|
24
|
+
r: number;
|
|
25
|
+
g: number;
|
|
26
|
+
b: number;
|
|
27
|
+
a?: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Style properties of border
|
|
31
|
+
*/
|
|
32
|
+
export interface IBorderStyleData {
|
|
33
|
+
s: BorderStyleTypes;
|
|
34
|
+
cl: IColorStyle;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Style properties of top, bottom, left and right border
|
|
38
|
+
*/
|
|
39
|
+
export interface IBorderData {
|
|
40
|
+
t?: Nullable<IBorderStyleData>;
|
|
41
|
+
r?: Nullable<IBorderStyleData>;
|
|
42
|
+
b?: Nullable<IBorderStyleData>;
|
|
43
|
+
l?: Nullable<IBorderStyleData>;
|
|
44
|
+
}
|
|
45
|
+
export interface ITextRotation {
|
|
46
|
+
/**
|
|
47
|
+
* angle
|
|
48
|
+
*/
|
|
49
|
+
a: number;
|
|
50
|
+
/**
|
|
51
|
+
* vertical
|
|
52
|
+
* true : 1
|
|
53
|
+
* false : 0
|
|
54
|
+
*/
|
|
55
|
+
v?: BooleanNumber;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Top,right,bottom,left padding
|
|
59
|
+
*/
|
|
60
|
+
export interface IPaddingData {
|
|
61
|
+
t?: number;
|
|
62
|
+
r?: number;
|
|
63
|
+
b?: number;
|
|
64
|
+
l?: number;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Basics properties of cell style
|
|
68
|
+
*/
|
|
69
|
+
export interface IStyleBase {
|
|
70
|
+
/**
|
|
71
|
+
* fontFamily
|
|
72
|
+
*/
|
|
73
|
+
ff?: Nullable<string>;
|
|
74
|
+
/**
|
|
75
|
+
* fontSize
|
|
76
|
+
*
|
|
77
|
+
* pt
|
|
78
|
+
*/
|
|
79
|
+
fs?: number;
|
|
80
|
+
/**
|
|
81
|
+
* italic
|
|
82
|
+
* 0: false
|
|
83
|
+
* 1: true
|
|
84
|
+
*/
|
|
85
|
+
it?: BooleanNumber;
|
|
86
|
+
/**
|
|
87
|
+
* bold
|
|
88
|
+
* 0: false
|
|
89
|
+
* 1: true
|
|
90
|
+
*/
|
|
91
|
+
bl?: BooleanNumber;
|
|
92
|
+
/**
|
|
93
|
+
* underline
|
|
94
|
+
*/
|
|
95
|
+
ul?: ITextDecoration;
|
|
96
|
+
/**
|
|
97
|
+
* strikethrough
|
|
98
|
+
*/
|
|
99
|
+
st?: ITextDecoration;
|
|
100
|
+
/**
|
|
101
|
+
* overline
|
|
102
|
+
*/
|
|
103
|
+
ol?: ITextDecoration;
|
|
104
|
+
/**
|
|
105
|
+
* background
|
|
106
|
+
*/
|
|
107
|
+
bg?: Nullable<IColorStyle>;
|
|
108
|
+
/**
|
|
109
|
+
* border
|
|
110
|
+
*/
|
|
111
|
+
bd?: Nullable<IBorderData>;
|
|
112
|
+
/**
|
|
113
|
+
* foreground
|
|
114
|
+
*/
|
|
115
|
+
cl?: Nullable<IColorStyle>;
|
|
116
|
+
/**
|
|
117
|
+
* (Subscript 下标 /Superscript上标 Text)
|
|
118
|
+
*/
|
|
119
|
+
va?: Nullable<BaselineOffset>;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Properties of cell style
|
|
123
|
+
*/
|
|
124
|
+
export interface IStyleData extends IStyleBase {
|
|
125
|
+
/**
|
|
126
|
+
* textRotation
|
|
127
|
+
*/
|
|
128
|
+
tr?: Nullable<ITextRotation>;
|
|
129
|
+
/** *
|
|
130
|
+
* textDirection
|
|
131
|
+
*/
|
|
132
|
+
td?: Nullable<TextDirection>;
|
|
133
|
+
/**
|
|
134
|
+
* horizontalAlignment
|
|
135
|
+
*/
|
|
136
|
+
ht?: Nullable<HorizontalAlign>;
|
|
137
|
+
/**
|
|
138
|
+
* verticalAlignment
|
|
139
|
+
*/
|
|
140
|
+
vt?: Nullable<VerticalAlign>;
|
|
141
|
+
/**
|
|
142
|
+
* wrapStrategy
|
|
143
|
+
*/
|
|
144
|
+
tb?: Nullable<WrapStrategy>;
|
|
145
|
+
/**
|
|
146
|
+
* padding
|
|
147
|
+
*/
|
|
148
|
+
pd?: Nullable<IPaddingData>;
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=i-style-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-style-data.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-style-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,EACR,cAAc,EACd,aAAa,EACb,eAAe,EACf,cAAc,EACd,aAAa,EACb,aAAa,EACb,YAAY,EACf,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,CAAC,EAAE,aAAa,CAAC;IACjB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,CAAC,CAAC,EAAE,cAAc,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAExB,GAAG,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACvB,EAAE,CAAC,EAAE,cAAc,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,MAAM;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,CAAC,EAAE,M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AC;IAE3B;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;IAE3B;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,WAAW,UAAW,SAAQ,UAAU;IAC1C;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC,eAAe,CAAC,CAAC;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC5B;;OAEG;IACH,EAAE,CAAC,EAAE,QAAQ,CAAC,YAAY,CAAC,CAAC;CAC/B"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IStyleSheet } from '../../services/theme/theme.service';
|
|
2
|
+
import type { ILocales } from '../../shared/locale';
|
|
3
|
+
import type { LocaleType } from '../enum';
|
|
4
|
+
export interface IUniverData {
|
|
5
|
+
theme: IStyleSheet;
|
|
6
|
+
locale: LocaleType;
|
|
7
|
+
locales: ILocales;
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Toolbar Observer generic interface, convenient for plug-ins to define their own types
|
|
12
|
+
*/
|
|
13
|
+
export interface UIObserver<T = string> {
|
|
14
|
+
/**
|
|
15
|
+
* fontSize, fontFamily,color...
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* fontSize:number, fontFamily:string ...
|
|
20
|
+
*/
|
|
21
|
+
value?: T;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=i-univer-data.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i-univer-data.d.ts","sourceRoot":"","sources":["../../../../src/types/interfaces/i-univer-data.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,QAAQ,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,UAAU,CAAC,CAAC,GAAG,MAAM;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,CAAC;CACb"}
|