@trebco/treb 37.0.0 → 37.1.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/build/package.json +119 -0
- package/build/treb-base-types/src/api_types.d.ts +11 -0
- package/build/treb-base-types/src/api_types.js +22 -0
- package/build/treb-base-types/src/api_types.js.map +1 -0
- package/build/treb-base-types/src/area-utils.d.ts +9 -0
- package/build/treb-base-types/src/area-utils.js +50 -0
- package/build/treb-base-types/src/area-utils.js.map +1 -0
- package/build/treb-base-types/src/area.d.ts +182 -0
- package/build/treb-base-types/src/area.js +715 -0
- package/build/treb-base-types/src/area.js.map +1 -0
- package/build/treb-base-types/src/basic_types.d.ts +20 -0
- package/build/treb-base-types/src/basic_types.js +22 -0
- package/build/treb-base-types/src/basic_types.js.map +1 -0
- package/build/treb-base-types/src/cell.d.ts +167 -0
- package/build/treb-base-types/src/cell.js +432 -0
- package/build/treb-base-types/src/cell.js.map +1 -0
- package/build/treb-base-types/src/cells.d.ts +251 -0
- package/build/treb-base-types/src/cells.js +1136 -0
- package/build/treb-base-types/src/cells.js.map +1 -0
- package/build/treb-base-types/src/color.d.ts +35 -0
- package/build/treb-base-types/src/color.js +162 -0
- package/build/treb-base-types/src/color.js.map +1 -0
- package/build/treb-base-types/src/dom-utilities.d.ts +70 -0
- package/build/treb-base-types/src/dom-utilities.js +144 -0
- package/build/treb-base-types/src/dom-utilities.js.map +1 -0
- package/build/treb-base-types/src/evaluate-options.d.ts +35 -0
- package/build/treb-base-types/src/evaluate-options.js +22 -0
- package/build/treb-base-types/src/evaluate-options.js.map +1 -0
- package/build/treb-base-types/src/font-stack.d.ts +37 -0
- package/build/treb-base-types/src/font-stack.js +93 -0
- package/build/treb-base-types/src/font-stack.js.map +1 -0
- package/build/treb-base-types/src/gradient.d.ts +18 -0
- package/build/treb-base-types/src/gradient.js +86 -0
- package/build/treb-base-types/src/gradient.js.map +1 -0
- package/build/treb-base-types/src/import.d.ts +48 -0
- package/build/treb-base-types/src/import.js +22 -0
- package/build/treb-base-types/src/import.js.map +1 -0
- package/build/treb-base-types/src/index-standalone.d.ts +6 -0
- package/build/treb-base-types/src/index-standalone.js +27 -0
- package/build/treb-base-types/src/index-standalone.js.map +1 -0
- package/build/treb-base-types/src/index.d.ts +22 -0
- package/build/treb-base-types/src/index.js +45 -0
- package/build/treb-base-types/src/index.js.map +1 -0
- package/build/treb-base-types/src/layout.d.ts +22 -0
- package/build/treb-base-types/src/layout.js +22 -0
- package/build/treb-base-types/src/layout.js.map +1 -0
- package/build/treb-base-types/src/localization.d.ts +37 -0
- package/build/treb-base-types/src/localization.js +157 -0
- package/build/treb-base-types/src/localization.js.map +1 -0
- package/build/treb-base-types/src/rectangle.d.ts +51 -0
- package/build/treb-base-types/src/rectangle.js +123 -0
- package/build/treb-base-types/src/rectangle.js.map +1 -0
- package/build/treb-base-types/src/render_text.d.ts +34 -0
- package/build/treb-base-types/src/render_text.js +22 -0
- package/build/treb-base-types/src/render_text.js.map +1 -0
- package/build/treb-base-types/src/style.d.ts +214 -0
- package/build/treb-base-types/src/style.js +373 -0
- package/build/treb-base-types/src/style.js.map +1 -0
- package/build/treb-base-types/src/table.d.ts +58 -0
- package/build/treb-base-types/src/table.js +27 -0
- package/build/treb-base-types/src/table.js.map +1 -0
- package/build/treb-base-types/src/text_part.d.ts +26 -0
- package/build/treb-base-types/src/text_part.js +47 -0
- package/build/treb-base-types/src/text_part.js.map +1 -0
- package/build/treb-base-types/src/theme.d.ts +120 -0
- package/build/treb-base-types/src/theme.js +460 -0
- package/build/treb-base-types/src/theme.js.map +1 -0
- package/build/treb-base-types/src/union.d.ts +73 -0
- package/build/treb-base-types/src/union.js +61 -0
- package/build/treb-base-types/src/union.js.map +1 -0
- package/build/treb-base-types/src/value-type.d.ts +86 -0
- package/build/treb-base-types/src/value-type.js +168 -0
- package/build/treb-base-types/src/value-type.js.map +1 -0
- package/build/treb-base-types/src/worker-proxy.d.ts +95 -0
- package/build/treb-base-types/src/worker-proxy.js +221 -0
- package/build/treb-base-types/src/worker-proxy.js.map +1 -0
- package/build/treb-calculator/src/calculator.d.ts +249 -0
- package/build/treb-calculator/src/calculator.js +2755 -0
- package/build/treb-calculator/src/calculator.js.map +1 -0
- package/build/treb-calculator/src/complex-math.d.ts +75 -0
- package/build/treb-calculator/src/complex-math.js +559 -0
- package/build/treb-calculator/src/complex-math.js.map +1 -0
- package/build/treb-calculator/src/dag/array-vertex.d.ts +71 -0
- package/build/treb-calculator/src/dag/array-vertex.js +156 -0
- package/build/treb-calculator/src/dag/array-vertex.js.map +1 -0
- package/build/treb-calculator/src/dag/calculation_leaf_vertex.d.ts +48 -0
- package/build/treb-calculator/src/dag/calculation_leaf_vertex.js +84 -0
- package/build/treb-calculator/src/dag/calculation_leaf_vertex.js.map +1 -0
- package/build/treb-calculator/src/dag/graph.d.ts +134 -0
- package/build/treb-calculator/src/dag/graph.js +842 -0
- package/build/treb-calculator/src/dag/graph.js.map +1 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex.d.ts +58 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex.js +232 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex.js.map +1 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex_base.d.ts +20 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex_base.js +25 -0
- package/build/treb-calculator/src/dag/spreadsheet_vertex_base.js.map +1 -0
- package/build/treb-calculator/src/dag/state_leaf_vertex.d.ts +43 -0
- package/build/treb-calculator/src/dag/state_leaf_vertex.js +81 -0
- package/build/treb-calculator/src/dag/state_leaf_vertex.js.map +1 -0
- package/build/treb-calculator/src/dag/vertex.d.ts +71 -0
- package/build/treb-calculator/src/dag/vertex.js +274 -0
- package/build/treb-calculator/src/dag/vertex.js.map +1 -0
- package/build/treb-calculator/src/descriptors.d.ts +189 -0
- package/build/treb-calculator/src/descriptors.js +22 -0
- package/build/treb-calculator/src/descriptors.js.map +1 -0
- package/build/treb-calculator/src/expression-calculator.d.ts +127 -0
- package/build/treb-calculator/src/expression-calculator.js +1033 -0
- package/build/treb-calculator/src/expression-calculator.js.map +1 -0
- package/build/treb-calculator/src/function-error.d.ts +35 -0
- package/build/treb-calculator/src/function-error.js +85 -0
- package/build/treb-calculator/src/function-error.js.map +1 -0
- package/build/treb-calculator/src/function-library.d.ts +22 -0
- package/build/treb-calculator/src/function-library.js +96 -0
- package/build/treb-calculator/src/function-library.js.map +1 -0
- package/build/treb-calculator/src/functions/base-functions.d.ts +7 -0
- package/build/treb-calculator/src/functions/base-functions.js +2611 -0
- package/build/treb-calculator/src/functions/base-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/beta.d.ts +17 -0
- package/build/treb-calculator/src/functions/beta.js +201 -0
- package/build/treb-calculator/src/functions/beta.js.map +1 -0
- package/build/treb-calculator/src/functions/checkbox.d.ts +3 -0
- package/build/treb-calculator/src/functions/checkbox.js +128 -0
- package/build/treb-calculator/src/functions/checkbox.js.map +1 -0
- package/build/treb-calculator/src/functions/complex-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/complex-functions.js +217 -0
- package/build/treb-calculator/src/functions/complex-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/date-utils.d.ts +3 -0
- package/build/treb-calculator/src/functions/date-utils.js +59 -0
- package/build/treb-calculator/src/functions/date-utils.js.map +1 -0
- package/build/treb-calculator/src/functions/finance-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/finance-functions.js +547 -0
- package/build/treb-calculator/src/functions/finance-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/fp.d.ts +2 -0
- package/build/treb-calculator/src/functions/fp.js +463 -0
- package/build/treb-calculator/src/functions/fp.js.map +1 -0
- package/build/treb-calculator/src/functions/function-utilities.d.ts +2 -0
- package/build/treb-calculator/src/functions/function-utilities.js +36 -0
- package/build/treb-calculator/src/functions/function-utilities.js.map +1 -0
- package/build/treb-calculator/src/functions/gamma.d.ts +20 -0
- package/build/treb-calculator/src/functions/gamma.js +142 -0
- package/build/treb-calculator/src/functions/gamma.js.map +1 -0
- package/build/treb-calculator/src/functions/information-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/information-functions.js +71 -0
- package/build/treb-calculator/src/functions/information-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/lambda-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/lambda-functions.js +85 -0
- package/build/treb-calculator/src/functions/lambda-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/matrix-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/matrix-functions.js +144 -0
- package/build/treb-calculator/src/functions/matrix-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/normal.d.ts +2 -0
- package/build/treb-calculator/src/functions/normal.js +32 -0
- package/build/treb-calculator/src/functions/normal.js.map +1 -0
- package/build/treb-calculator/src/functions/regex-functions.d.ts +2 -0
- package/build/treb-calculator/src/functions/regex-functions.js +188 -0
- package/build/treb-calculator/src/functions/regex-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/sparkline.d.ts +37 -0
- package/build/treb-calculator/src/functions/sparkline.js +264 -0
- package/build/treb-calculator/src/functions/sparkline.js.map +1 -0
- package/build/treb-calculator/src/functions/statistics-functions.d.ts +6 -0
- package/build/treb-calculator/src/functions/statistics-functions.js +989 -0
- package/build/treb-calculator/src/functions/statistics-functions.js.map +1 -0
- package/build/treb-calculator/src/functions/students-t.d.ts +3 -0
- package/build/treb-calculator/src/functions/students-t.js +64 -0
- package/build/treb-calculator/src/functions/students-t.js.map +1 -0
- package/build/treb-calculator/src/functions/text-functions.d.ts +3 -0
- package/build/treb-calculator/src/functions/text-functions.js +320 -0
- package/build/treb-calculator/src/functions/text-functions.js.map +1 -0
- package/build/treb-calculator/src/index.d.ts +2 -0
- package/build/treb-calculator/src/index.js +22 -0
- package/build/treb-calculator/src/index.js.map +1 -0
- package/build/treb-calculator/src/notifier-types.d.ts +26 -0
- package/build/treb-calculator/src/notifier-types.js +22 -0
- package/build/treb-calculator/src/notifier-types.js.map +1 -0
- package/build/treb-calculator/src/primitives.d.ts +15 -0
- package/build/treb-calculator/src/primitives.js +398 -0
- package/build/treb-calculator/src/primitives.js.map +1 -0
- package/build/treb-calculator/src/utilities.d.ts +68 -0
- package/build/treb-calculator/src/utilities.js +324 -0
- package/build/treb-calculator/src/utilities.js.map +1 -0
- package/build/treb-charts/src/chart-functions.d.ts +8 -0
- package/build/treb-charts/src/chart-functions.js +209 -0
- package/build/treb-charts/src/chart-functions.js.map +1 -0
- package/build/treb-charts/src/chart-types.d.ts +233 -0
- package/build/treb-charts/src/chart-types.js +57 -0
- package/build/treb-charts/src/chart-types.js.map +1 -0
- package/build/treb-charts/src/chart-utils.d.ts +106 -0
- package/build/treb-charts/src/chart-utils.js +1060 -0
- package/build/treb-charts/src/chart-utils.js.map +1 -0
- package/build/treb-charts/src/chart.d.ts +23 -0
- package/build/treb-charts/src/chart.js +94 -0
- package/build/treb-charts/src/chart.js.map +1 -0
- package/build/treb-charts/src/default-chart-renderer.d.ts +16 -0
- package/build/treb-charts/src/default-chart-renderer.js +533 -0
- package/build/treb-charts/src/default-chart-renderer.js.map +1 -0
- package/build/treb-charts/src/index.d.ts +5 -0
- package/build/treb-charts/src/index.js +24 -0
- package/build/treb-charts/src/index.js.map +1 -0
- package/build/treb-charts/src/main.d.ts +1 -0
- package/build/treb-charts/src/main.js +34 -0
- package/build/treb-charts/src/main.js.map +1 -0
- package/build/treb-charts/src/quicksort.d.ts +1 -0
- package/build/treb-charts/src/quicksort.js +49 -0
- package/build/treb-charts/src/quicksort.js.map +1 -0
- package/build/treb-charts/src/rectangle.d.ts +18 -0
- package/build/treb-charts/src/rectangle.js +41 -0
- package/build/treb-charts/src/rectangle.js.map +1 -0
- package/build/treb-charts/src/renderer-type.d.ts +24 -0
- package/build/treb-charts/src/renderer-type.js +22 -0
- package/build/treb-charts/src/renderer-type.js.map +1 -0
- package/build/treb-charts/src/renderer.d.ts +127 -0
- package/build/treb-charts/src/renderer.js +1518 -0
- package/build/treb-charts/src/renderer.js.map +1 -0
- package/build/treb-charts/src/util.d.ts +18 -0
- package/build/treb-charts/src/util.js +71 -0
- package/build/treb-charts/src/util.js.map +1 -0
- package/build/treb-data-model/src/annotation.d.ts +167 -0
- package/build/treb-data-model/src/annotation.js +120 -0
- package/build/treb-data-model/src/annotation.js.map +1 -0
- package/build/treb-data-model/src/conditional_format.d.ts +155 -0
- package/build/treb-data-model/src/conditional_format.js +62 -0
- package/build/treb-data-model/src/conditional_format.js.map +1 -0
- package/build/treb-data-model/src/data-validation.d.ts +28 -0
- package/build/treb-data-model/src/data-validation.js +22 -0
- package/build/treb-data-model/src/data-validation.js.map +1 -0
- package/build/treb-data-model/src/data_model.d.ts +173 -0
- package/build/treb-data-model/src/data_model.js +637 -0
- package/build/treb-data-model/src/data_model.js.map +1 -0
- package/build/treb-data-model/src/index.d.ts +13 -0
- package/build/treb-data-model/src/index.js +28 -0
- package/build/treb-data-model/src/index.js.map +1 -0
- package/build/treb-data-model/src/language-model.d.ts +22 -0
- package/build/treb-data-model/src/language-model.js +22 -0
- package/build/treb-data-model/src/language-model.js.map +1 -0
- package/build/treb-data-model/src/named.d.ts +124 -0
- package/build/treb-data-model/src/named.js +372 -0
- package/build/treb-data-model/src/named.js.map +1 -0
- package/build/treb-data-model/src/serialize_options.d.ts +49 -0
- package/build/treb-data-model/src/serialize_options.js +22 -0
- package/build/treb-data-model/src/serialize_options.js.map +1 -0
- package/build/treb-data-model/src/sheet.d.ts +499 -0
- package/build/treb-data-model/src/sheet.js +2904 -0
- package/build/treb-data-model/src/sheet.js.map +1 -0
- package/build/treb-data-model/src/sheet_collection.d.ts +58 -0
- package/build/treb-data-model/src/sheet_collection.js +112 -0
- package/build/treb-data-model/src/sheet_collection.js.map +1 -0
- package/build/treb-data-model/src/sheet_selection.d.ts +42 -0
- package/build/treb-data-model/src/sheet_selection.js +39 -0
- package/build/treb-data-model/src/sheet_selection.js.map +1 -0
- package/build/treb-data-model/src/sheet_types.d.ts +104 -0
- package/build/treb-data-model/src/sheet_types.js +22 -0
- package/build/treb-data-model/src/sheet_types.js.map +1 -0
- package/build/treb-data-model/src/types.d.ts +59 -0
- package/build/treb-data-model/src/types.js +22 -0
- package/build/treb-data-model/src/types.js.map +1 -0
- package/build/treb-embed/src/custom-element/spreadsheet-constructor.d.ts +75 -0
- package/build/treb-embed/src/custom-element/spreadsheet-constructor.js +1144 -0
- package/build/treb-embed/src/custom-element/spreadsheet-constructor.js.map +1 -0
- package/build/treb-embed/src/custom-element/treb-global.d.ts +36 -0
- package/build/treb-embed/src/custom-element/treb-global.js +64 -0
- package/build/treb-embed/src/custom-element/treb-global.js.map +1 -0
- package/build/treb-embed/src/custom-element/treb-spreadsheet-element.d.ts +1 -0
- package/build/treb-embed/src/custom-element/treb-spreadsheet-element.js +61 -0
- package/build/treb-embed/src/custom-element/treb-spreadsheet-element.js.map +1 -0
- package/build/treb-embed/src/embedded-spreadsheet.d.ts +1358 -0
- package/build/treb-embed/src/embedded-spreadsheet.js +5205 -0
- package/build/treb-embed/src/embedded-spreadsheet.js.map +1 -0
- package/build/treb-embed/src/index.d.ts +12 -0
- package/build/treb-embed/src/index.js +34 -0
- package/build/treb-embed/src/index.js.map +1 -0
- package/build/treb-embed/src/options.d.ts +266 -0
- package/build/treb-embed/src/options.js +56 -0
- package/build/treb-embed/src/options.js.map +1 -0
- package/build/treb-embed/src/plugin.d.ts +9 -0
- package/build/treb-embed/src/plugin.js +22 -0
- package/build/treb-embed/src/plugin.js.map +1 -0
- package/build/treb-embed/src/progress-dialog.d.ts +49 -0
- package/build/treb-embed/src/progress-dialog.js +178 -0
- package/build/treb-embed/src/progress-dialog.js.map +1 -0
- package/build/treb-embed/src/selection-state.d.ts +15 -0
- package/build/treb-embed/src/selection-state.js +22 -0
- package/build/treb-embed/src/selection-state.js.map +1 -0
- package/build/treb-embed/src/spinner.d.ts +8 -0
- package/build/treb-embed/src/spinner.js +40 -0
- package/build/treb-embed/src/spinner.js.map +1 -0
- package/build/treb-embed/src/toolbar-message.d.ts +72 -0
- package/build/treb-embed/src/toolbar-message.js +22 -0
- package/build/treb-embed/src/toolbar-message.js.map +1 -0
- package/build/treb-embed/src/types.d.ts +185 -0
- package/build/treb-embed/src/types.js +45 -0
- package/build/treb-embed/src/types.js.map +1 -0
- package/build/treb-embed/tsconfig.tsbuildinfo +1 -0
- package/build/treb-export/src/address-type.d.ts +34 -0
- package/build/treb-export/src/address-type.js +53 -0
- package/build/treb-export/src/address-type.js.map +1 -0
- package/build/treb-export/src/base-template.d.ts +1 -0
- package/build/treb-export/src/base-template.js +22 -0
- package/build/treb-export/src/base-template.js.map +1 -0
- package/build/treb-export/src/column-width.d.ts +2 -0
- package/build/treb-export/src/column-width.js +80 -0
- package/build/treb-export/src/column-width.js.map +1 -0
- package/build/treb-export/src/drawing/bubble-chart-template.d.ts +514 -0
- package/build/treb-export/src/drawing/bubble-chart-template.js +544 -0
- package/build/treb-export/src/drawing/bubble-chart-template.js.map +1 -0
- package/build/treb-export/src/drawing/chart-template-components2.d.ts +365 -0
- package/build/treb-export/src/drawing/chart-template-components2.js +386 -0
- package/build/treb-export/src/drawing/chart-template-components2.js.map +1 -0
- package/build/treb-export/src/drawing/chart.d.ts +26 -0
- package/build/treb-export/src/drawing/chart.js +247 -0
- package/build/treb-export/src/drawing/chart.js.map +1 -0
- package/build/treb-export/src/drawing/column-chart-template2.d.ts +490 -0
- package/build/treb-export/src/drawing/column-chart-template2.js +518 -0
- package/build/treb-export/src/drawing/column-chart-template2.js.map +1 -0
- package/build/treb-export/src/drawing/donut-chart-template2.d.ts +272 -0
- package/build/treb-export/src/drawing/donut-chart-template2.js +293 -0
- package/build/treb-export/src/drawing/donut-chart-template2.js.map +1 -0
- package/build/treb-export/src/drawing/drawing.d.ts +49 -0
- package/build/treb-export/src/drawing/drawing.js +193 -0
- package/build/treb-export/src/drawing/drawing.js.map +1 -0
- package/build/treb-export/src/drawing/embedded-image.d.ts +12 -0
- package/build/treb-export/src/drawing/embedded-image.js +54 -0
- package/build/treb-export/src/drawing/embedded-image.js.map +1 -0
- package/build/treb-export/src/drawing/scatter-chart-template2.d.ts +520 -0
- package/build/treb-export/src/drawing/scatter-chart-template2.js +551 -0
- package/build/treb-export/src/drawing/scatter-chart-template2.js.map +1 -0
- package/build/treb-export/src/export.d.ts +72 -0
- package/build/treb-export/src/export.js +2039 -0
- package/build/treb-export/src/export.js.map +1 -0
- package/build/treb-export/src/import-export-messages.d.ts +31 -0
- package/build/treb-export/src/import-export-messages.js +22 -0
- package/build/treb-export/src/import-export-messages.js.map +1 -0
- package/build/treb-export/src/import.d.ts +33 -0
- package/build/treb-export/src/import.js +1258 -0
- package/build/treb-export/src/import.js.map +1 -0
- package/build/treb-export/src/index.worker.d.ts +1 -0
- package/build/treb-export/src/index.worker.js +93 -0
- package/build/treb-export/src/index.worker.js.map +1 -0
- package/build/treb-export/src/metadata.d.ts +51 -0
- package/build/treb-export/src/metadata.js +153 -0
- package/build/treb-export/src/metadata.js.map +1 -0
- package/build/treb-export/src/ooxml.d.ts +7 -0
- package/build/treb-export/src/ooxml.js +41 -0
- package/build/treb-export/src/ooxml.js.map +1 -0
- package/build/treb-export/src/relationship.d.ts +8 -0
- package/build/treb-export/src/relationship.js +27 -0
- package/build/treb-export/src/relationship.js.map +1 -0
- package/build/treb-export/src/shared-strings.d.ts +11 -0
- package/build/treb-export/src/shared-strings.js +105 -0
- package/build/treb-export/src/shared-strings.js.map +1 -0
- package/build/treb-export/src/template-2.d.ts +1 -0
- package/build/treb-export/src/template-2.js +22 -0
- package/build/treb-export/src/template-2.js.map +1 -0
- package/build/treb-export/src/unescape_xml.d.ts +1 -0
- package/build/treb-export/src/unescape_xml.js +61 -0
- package/build/treb-export/src/unescape_xml.js.map +1 -0
- package/build/treb-export/src/workbook-sheet.d.ts +75 -0
- package/build/treb-export/src/workbook-sheet.js +128 -0
- package/build/treb-export/src/workbook-sheet.js.map +1 -0
- package/build/treb-export/src/workbook-style.d.ts +110 -0
- package/build/treb-export/src/workbook-style.js +1134 -0
- package/build/treb-export/src/workbook-style.js.map +1 -0
- package/build/treb-export/src/workbook-theme.d.ts +13 -0
- package/build/treb-export/src/workbook-theme.js +85 -0
- package/build/treb-export/src/workbook-theme.js.map +1 -0
- package/build/treb-export/src/workbook.d.ts +123 -0
- package/build/treb-export/src/workbook.js +644 -0
- package/build/treb-export/src/workbook.js.map +1 -0
- package/build/treb-export/src/xml-test.d.ts +9 -0
- package/build/treb-export/src/xml-test.js +52 -0
- package/build/treb-export/src/xml-test.js.map +1 -0
- package/build/treb-export/src/xml-utils.d.ts +76 -0
- package/build/treb-export/src/xml-utils.js +223 -0
- package/build/treb-export/src/xml-utils.js.map +1 -0
- package/build/treb-export/src/zip-wrapper.d.ts +22 -0
- package/build/treb-export/src/zip-wrapper.js +93 -0
- package/build/treb-export/src/zip-wrapper.js.map +1 -0
- package/build/treb-format/src/format.d.ts +130 -0
- package/build/treb-format/src/format.js +805 -0
- package/build/treb-format/src/format.js.map +1 -0
- package/build/treb-format/src/format_cache.d.ts +55 -0
- package/build/treb-format/src/format_cache.js +166 -0
- package/build/treb-format/src/format_cache.js.map +1 -0
- package/build/treb-format/src/format_parser.d.ts +70 -0
- package/build/treb-format/src/format_parser.js +618 -0
- package/build/treb-format/src/format_parser.js.map +1 -0
- package/build/treb-format/src/index.d.ts +4 -0
- package/build/treb-format/src/index.js +25 -0
- package/build/treb-format/src/index.js.map +1 -0
- package/build/treb-format/src/number_format_section.d.ts +58 -0
- package/build/treb-format/src/number_format_section.js +78 -0
- package/build/treb-format/src/number_format_section.js.map +1 -0
- package/build/treb-format/src/value_parser.d.ts +48 -0
- package/build/treb-format/src/value_parser.js +244 -0
- package/build/treb-format/src/value_parser.js.map +1 -0
- package/build/treb-grid/src/editors/autocomplete.d.ts +39 -0
- package/build/treb-grid/src/editors/autocomplete.js +316 -0
- package/build/treb-grid/src/editors/autocomplete.js.map +1 -0
- package/build/treb-grid/src/editors/autocomplete_matcher.d.ts +74 -0
- package/build/treb-grid/src/editors/autocomplete_matcher.js +212 -0
- package/build/treb-grid/src/editors/autocomplete_matcher.js.map +1 -0
- package/build/treb-grid/src/editors/editor.d.ts +214 -0
- package/build/treb-grid/src/editors/editor.js +879 -0
- package/build/treb-grid/src/editors/editor.js.map +1 -0
- package/build/treb-grid/src/editors/external_editor.d.ts +11 -0
- package/build/treb-grid/src/editors/external_editor.js +118 -0
- package/build/treb-grid/src/editors/external_editor.js.map +1 -0
- package/build/treb-grid/src/editors/formula_bar.d.ts +85 -0
- package/build/treb-grid/src/editors/formula_bar.js +444 -0
- package/build/treb-grid/src/editors/formula_bar.js.map +1 -0
- package/build/treb-grid/src/editors/overlay_editor.d.ts +85 -0
- package/build/treb-grid/src/editors/overlay_editor.js +353 -0
- package/build/treb-grid/src/editors/overlay_editor.js.map +1 -0
- package/build/treb-grid/src/index.d.ts +12 -0
- package/build/treb-grid/src/index.js +28 -0
- package/build/treb-grid/src/index.js.map +1 -0
- package/build/treb-grid/src/layout/base_layout.d.ts +346 -0
- package/build/treb-grid/src/layout/base_layout.js +2050 -0
- package/build/treb-grid/src/layout/base_layout.js.map +1 -0
- package/build/treb-grid/src/layout/grid_layout.d.ts +19 -0
- package/build/treb-grid/src/layout/grid_layout.js +235 -0
- package/build/treb-grid/src/layout/grid_layout.js.map +1 -0
- package/build/treb-grid/src/layout/mock-layout.d.ts +10 -0
- package/build/treb-grid/src/layout/mock-layout.js +37 -0
- package/build/treb-grid/src/layout/mock-layout.js.map +1 -0
- package/build/treb-grid/src/render/selection-renderer.d.ts +97 -0
- package/build/treb-grid/src/render/selection-renderer.js +315 -0
- package/build/treb-grid/src/render/selection-renderer.js.map +1 -0
- package/build/treb-grid/src/render/svg_header_overlay.d.ts +20 -0
- package/build/treb-grid/src/render/svg_header_overlay.js +76 -0
- package/build/treb-grid/src/render/svg_header_overlay.js.map +1 -0
- package/build/treb-grid/src/render/svg_selection_block.d.ts +27 -0
- package/build/treb-grid/src/render/svg_selection_block.js +106 -0
- package/build/treb-grid/src/render/svg_selection_block.js.map +1 -0
- package/build/treb-grid/src/render/tile_renderer.d.ts +121 -0
- package/build/treb-grid/src/render/tile_renderer.js +1609 -0
- package/build/treb-grid/src/render/tile_renderer.js.map +1 -0
- package/build/treb-grid/src/types/border_constants.d.ts +9 -0
- package/build/treb-grid/src/types/border_constants.js +34 -0
- package/build/treb-grid/src/types/border_constants.js.map +1 -0
- package/build/treb-grid/src/types/clipboard_data.d.ts +11 -0
- package/build/treb-grid/src/types/clipboard_data.js +22 -0
- package/build/treb-grid/src/types/clipboard_data.js.map +1 -0
- package/build/treb-grid/src/types/clipboard_data2.d.ts +46 -0
- package/build/treb-grid/src/types/clipboard_data2.js +22 -0
- package/build/treb-grid/src/types/clipboard_data2.js.map +1 -0
- package/build/treb-grid/src/types/drag_mask.d.ts +10 -0
- package/build/treb-grid/src/types/drag_mask.js +78 -0
- package/build/treb-grid/src/types/drag_mask.js.map +1 -0
- package/build/treb-grid/src/types/external_editor_config.d.ts +33 -0
- package/build/treb-grid/src/types/external_editor_config.js +22 -0
- package/build/treb-grid/src/types/external_editor_config.js.map +1 -0
- package/build/treb-grid/src/types/grid.d.ts +806 -0
- package/build/treb-grid/src/types/grid.js +6410 -0
- package/build/treb-grid/src/types/grid.js.map +1 -0
- package/build/treb-grid/src/types/grid_base.d.ts +442 -0
- package/build/treb-grid/src/types/grid_base.js +3523 -0
- package/build/treb-grid/src/types/grid_base.js.map +1 -0
- package/build/treb-grid/src/types/grid_command.d.ts +408 -0
- package/build/treb-grid/src/types/grid_command.js +75 -0
- package/build/treb-grid/src/types/grid_command.js.map +1 -0
- package/build/treb-grid/src/types/grid_events.d.ts +93 -0
- package/build/treb-grid/src/types/grid_events.js +36 -0
- package/build/treb-grid/src/types/grid_events.js.map +1 -0
- package/build/treb-grid/src/types/grid_options.d.ts +50 -0
- package/build/treb-grid/src/types/grid_options.js +34 -0
- package/build/treb-grid/src/types/grid_options.js.map +1 -0
- package/build/treb-grid/src/types/scale-control.d.ts +21 -0
- package/build/treb-grid/src/types/scale-control.js +148 -0
- package/build/treb-grid/src/types/scale-control.js.map +1 -0
- package/build/treb-grid/src/types/set_range_options.d.ts +24 -0
- package/build/treb-grid/src/types/set_range_options.js +22 -0
- package/build/treb-grid/src/types/set_range_options.js.map +1 -0
- package/build/treb-grid/src/types/tab_bar.d.ts +84 -0
- package/build/treb-grid/src/types/tab_bar.js +426 -0
- package/build/treb-grid/src/types/tab_bar.js.map +1 -0
- package/build/treb-grid/src/types/tile.d.ts +29 -0
- package/build/treb-grid/src/types/tile.js +22 -0
- package/build/treb-grid/src/types/tile.js.map +1 -0
- package/build/treb-grid/src/types/update_flags.d.ts +48 -0
- package/build/treb-grid/src/types/update_flags.js +22 -0
- package/build/treb-grid/src/types/update_flags.js.map +1 -0
- package/build/treb-grid/src/util/fontmetrics.d.ts +21 -0
- package/build/treb-grid/src/util/fontmetrics.js +82 -0
- package/build/treb-grid/src/util/fontmetrics.js.map +1 -0
- package/build/treb-grid/src/util/ua.d.ts +33 -0
- package/build/treb-grid/src/util/ua.js +86 -0
- package/build/treb-grid/src/util/ua.js.map +1 -0
- package/build/treb-parser/src/csv-parser.d.ts +13 -0
- package/build/treb-parser/src/csv-parser.js +107 -0
- package/build/treb-parser/src/csv-parser.js.map +1 -0
- package/build/treb-parser/src/index.d.ts +4 -0
- package/build/treb-parser/src/index.js +25 -0
- package/build/treb-parser/src/index.js.map +1 -0
- package/build/treb-parser/src/md-parser.d.ts +97 -0
- package/build/treb-parser/src/md-parser.js +403 -0
- package/build/treb-parser/src/md-parser.js.map +1 -0
- package/build/treb-parser/src/parser-types.d.ts +345 -0
- package/build/treb-parser/src/parser-types.js +53 -0
- package/build/treb-parser/src/parser-types.js.map +1 -0
- package/build/treb-parser/src/parser.d.ts +422 -0
- package/build/treb-parser/src/parser.js +2418 -0
- package/build/treb-parser/src/parser.js.map +1 -0
- package/build/treb-utils/src/event_source.d.ts +34 -0
- package/build/treb-utils/src/event_source.js +110 -0
- package/build/treb-utils/src/event_source.js.map +1 -0
- package/build/treb-utils/src/ievent_source.d.ts +9 -0
- package/build/treb-utils/src/ievent_source.js +22 -0
- package/build/treb-utils/src/ievent_source.js.map +1 -0
- package/build/treb-utils/src/index.d.ts +6 -0
- package/build/treb-utils/src/index.js +30 -0
- package/build/treb-utils/src/index.js.map +1 -0
- package/build/treb-utils/src/measurement.d.ts +42 -0
- package/build/treb-utils/src/measurement.js +145 -0
- package/build/treb-utils/src/measurement.js.map +1 -0
- package/build/treb-utils/src/scale.d.ts +16 -0
- package/build/treb-utils/src/scale.js +106 -0
- package/build/treb-utils/src/scale.js.map +1 -0
- package/build/treb-utils/src/serialize_html.d.ts +5 -0
- package/build/treb-utils/src/serialize_html.js +128 -0
- package/build/treb-utils/src/serialize_html.js.map +1 -0
- package/build/treb-utils/src/validate_uri.d.ts +20 -0
- package/build/treb-utils/src/validate_uri.js +55 -0
- package/build/treb-utils/src/validate_uri.js.map +1 -0
- package/dist/{chunk-XD5PEZBZ.mjs → chunk-A2NJA5VB.mjs} +1 -1
- package/dist/treb-export-worker.mjs +2 -2
- package/dist/treb-spreadsheet.mjs +4 -4
- package/dist/treb.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import { DOMContext } from 'treb-base-types';
|
|
2
|
+
import type { DataModel, ViewModel, Annotation } from 'treb-data-model';
|
|
3
|
+
import type { Tile } from '../types/tile';
|
|
4
|
+
import type { Theme, Point, Extent, Size, Position, ICellAddress, Table, IArea } from 'treb-base-types';
|
|
5
|
+
import { Area, Rectangle } from 'treb-base-types';
|
|
6
|
+
import type { GridEvent } from '../types/grid_events';
|
|
7
|
+
import type { CellValue, AnnotationLayout, Corner } from 'treb-base-types';
|
|
8
|
+
import { Area as TileRange } from 'treb-base-types';
|
|
9
|
+
export { Area as TileRange } from 'treb-base-types';
|
|
10
|
+
export interface TooltipOptions {
|
|
11
|
+
up?: true;
|
|
12
|
+
left?: true;
|
|
13
|
+
text?: string;
|
|
14
|
+
x?: number;
|
|
15
|
+
y?: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* layout structure and management functions
|
|
19
|
+
*/
|
|
20
|
+
export declare abstract class BaseLayout {
|
|
21
|
+
protected model: DataModel;
|
|
22
|
+
protected view: ViewModel;
|
|
23
|
+
DOM: DOMContext;
|
|
24
|
+
column_header: HTMLDivElement;
|
|
25
|
+
row_header: HTMLDivElement;
|
|
26
|
+
contents: HTMLDivElement;
|
|
27
|
+
buffer_canvas: HTMLCanvasElement;
|
|
28
|
+
corner: HTMLDivElement;
|
|
29
|
+
corner_canvas: HTMLCanvasElement;
|
|
30
|
+
grid_selection: SVGElement;
|
|
31
|
+
grid_cover: HTMLDivElement;
|
|
32
|
+
column_header_cover: HTMLDivElement;
|
|
33
|
+
row_header_cover: HTMLDivElement;
|
|
34
|
+
annotation_container: HTMLDivElement;
|
|
35
|
+
mask: HTMLDivElement;
|
|
36
|
+
mock_selection: HTMLDivElement;
|
|
37
|
+
container?: HTMLElement;
|
|
38
|
+
grid_tiles: Tile[][];
|
|
39
|
+
column_header_tiles: Tile[];
|
|
40
|
+
row_header_tiles: Tile[];
|
|
41
|
+
corner_selection: SVGElement;
|
|
42
|
+
row_header_selection: SVGElement;
|
|
43
|
+
column_header_selection: SVGElement;
|
|
44
|
+
corner_annotations: HTMLDivElement;
|
|
45
|
+
row_header_annotations: HTMLDivElement;
|
|
46
|
+
column_header_annotations: HTMLDivElement;
|
|
47
|
+
frozen_row_tiles: Tile[];
|
|
48
|
+
frozen_column_tiles: Tile[];
|
|
49
|
+
header_size: Size;
|
|
50
|
+
applied_theme_colors: string[];
|
|
51
|
+
/**
|
|
52
|
+
* last rendered column. this is used to calculate the limits of
|
|
53
|
+
* cell overflows, which may exceed actual data in the sheet.
|
|
54
|
+
*/
|
|
55
|
+
last_column: number;
|
|
56
|
+
total_height: number;
|
|
57
|
+
total_width: number;
|
|
58
|
+
default_row_height: number;
|
|
59
|
+
default_column_width: number;
|
|
60
|
+
header_offset: {
|
|
61
|
+
x: number;
|
|
62
|
+
y: number;
|
|
63
|
+
};
|
|
64
|
+
/** freeze rows/columns */
|
|
65
|
+
/**
|
|
66
|
+
* NOTE: dpr can probably change, on zoom; but I'm not sure there's
|
|
67
|
+
* an event we can trap for that. it might be necessary to test this
|
|
68
|
+
* periodically.
|
|
69
|
+
*/
|
|
70
|
+
dpr: number;
|
|
71
|
+
/** separate scale, user-controlled (testing...) */
|
|
72
|
+
scale: number;
|
|
73
|
+
/**
|
|
74
|
+
* this is a reference to the node that handles scrolling. it needs
|
|
75
|
+
* to be different for legacy renderer.
|
|
76
|
+
*/
|
|
77
|
+
scroll_reference_node: HTMLElement;
|
|
78
|
+
get scroll_offset(): {
|
|
79
|
+
x: number;
|
|
80
|
+
y: number;
|
|
81
|
+
};
|
|
82
|
+
set scroll_offset(offset: {
|
|
83
|
+
x: number;
|
|
84
|
+
y: number;
|
|
85
|
+
});
|
|
86
|
+
protected dropdown_caret: SVGSVGElement;
|
|
87
|
+
protected spill_border: SVGSVGElement;
|
|
88
|
+
/** we have to disable mock selection for IE or it breaks key handling */
|
|
89
|
+
private trident;
|
|
90
|
+
private default_tile_size;
|
|
91
|
+
private tooltip_state?;
|
|
92
|
+
private tooltip;
|
|
93
|
+
private dropdown_list;
|
|
94
|
+
private dropdown_caret_visible;
|
|
95
|
+
private dropdown_callback?;
|
|
96
|
+
private dropdown_selected?;
|
|
97
|
+
private note_node;
|
|
98
|
+
private sort_button;
|
|
99
|
+
private title_node;
|
|
100
|
+
private row_cache;
|
|
101
|
+
private column_cache;
|
|
102
|
+
/**
|
|
103
|
+
* flag so we don't try to paint before we have tiles
|
|
104
|
+
*/
|
|
105
|
+
private initialized;
|
|
106
|
+
constructor(model: DataModel, view: ViewModel, mock?: boolean, DOM?: DOMContext);
|
|
107
|
+
FocusInLayout(target?: EventTarget): boolean;
|
|
108
|
+
/**
|
|
109
|
+
* if the DPR has changed, update it and return true. otherwise return
|
|
110
|
+
* false. this is used on resize events: if the scale has changed, we
|
|
111
|
+
* probably want to repaint (and we need to update scale).
|
|
112
|
+
*/
|
|
113
|
+
UpdateDPR(): boolean;
|
|
114
|
+
/** wrapper around sheet method, incorporating scale */
|
|
115
|
+
ColumnWidth(column: number): number;
|
|
116
|
+
/** wrapper around sheet method, incorporating scale */
|
|
117
|
+
RowHeight(row: number): number;
|
|
118
|
+
/**
|
|
119
|
+
* wrapper around sheet method, incorporating scale
|
|
120
|
+
*
|
|
121
|
+
* NOTE: this does not update total size, so unless there's a subsequent call
|
|
122
|
+
* to a layout update, total size will be out of sync
|
|
123
|
+
*/
|
|
124
|
+
SetRowHeight(row: number, height: number): void;
|
|
125
|
+
/**
|
|
126
|
+
* wrapper around sheet method, incorporating scale
|
|
127
|
+
*
|
|
128
|
+
* NOTE: this does not update total size, so unless there's a subsequent call
|
|
129
|
+
* to a layout update, total size will be out of sync
|
|
130
|
+
*/
|
|
131
|
+
SetColumnWidth(column: number, width: number): void;
|
|
132
|
+
/**
|
|
133
|
+
* show/hide grid selections. used when selecting annotations.
|
|
134
|
+
*/
|
|
135
|
+
ShowSelections(show?: boolean): void;
|
|
136
|
+
HideTitle(): void;
|
|
137
|
+
ShowTitle(text: string, address: ICellAddress): void;
|
|
138
|
+
HideNote(): void;
|
|
139
|
+
HideTableSortButton(): void;
|
|
140
|
+
ShowTableSortButton(table: Table, column: number, address: ICellAddress): void;
|
|
141
|
+
/**
|
|
142
|
+
* adding html parameter at the end, so we can keep the function
|
|
143
|
+
* signature otherwise the same. this is for markdown formatting.
|
|
144
|
+
*/
|
|
145
|
+
ShowNote(note: string, address: ICellAddress, event?: MouseEvent, markdown?: string): void;
|
|
146
|
+
/**
|
|
147
|
+
* raise or lower annotation in z-order (implicit)
|
|
148
|
+
*
|
|
149
|
+
* returns true if we've made changes, so you can trigger any necessary
|
|
150
|
+
* events or side-effects
|
|
151
|
+
*/
|
|
152
|
+
AnnotationLayoutOrder(annotation: Annotation, delta: number): boolean;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
PointToAnnotationCorner(point: Point): Corner;
|
|
157
|
+
/**
|
|
158
|
+
* utility for managing (new) annotation layout. we offset the {top, left}
|
|
159
|
+
* by {1, 1} pixel so that the alignment snaps to cell boundaries.
|
|
160
|
+
*/
|
|
161
|
+
RectToAnnotationLayout(rect: Partial<Rectangle>): AnnotationLayout;
|
|
162
|
+
AddressToAnnotationLayout(tl: ICellAddress, br: ICellAddress): AnnotationLayout;
|
|
163
|
+
/**
|
|
164
|
+
* @see RectToAnnotationLayout regarding the 1 pixel shift
|
|
165
|
+
*/
|
|
166
|
+
AnnotationLayoutToRect(layout: AnnotationLayout): Rectangle;
|
|
167
|
+
UpdateAnnotation(elements: Annotation | Annotation[], theme: Theme): void;
|
|
168
|
+
/** returns a list of copies painted to frozen panes, for move/size */
|
|
169
|
+
GetFrozenAnnotations(annotation: Annotation): HTMLElement[];
|
|
170
|
+
/**
|
|
171
|
+
* clone all annotations into freeze panes
|
|
172
|
+
*/
|
|
173
|
+
CloneFrozenAnnotations(): void;
|
|
174
|
+
/**
|
|
175
|
+
* remove all annotations from freeze panes
|
|
176
|
+
*
|
|
177
|
+
*/
|
|
178
|
+
ClearFrozenAnnotations(): void;
|
|
179
|
+
/**
|
|
180
|
+
* remove a frozen annotation
|
|
181
|
+
* @param annotation
|
|
182
|
+
*/
|
|
183
|
+
RemoveFrozenAnnotation(annotation: Annotation): void;
|
|
184
|
+
/**
|
|
185
|
+
* clone a single annotation. usually this will be used on create, but
|
|
186
|
+
* we batch them when we freeze panes (from unfrozen)
|
|
187
|
+
*/
|
|
188
|
+
CloneFrozenAnnotation(annotation: Annotation): void;
|
|
189
|
+
RemoveAnnotation(annotation: Annotation): void;
|
|
190
|
+
/**
|
|
191
|
+
* remove annotation nodes from the container, without impacting
|
|
192
|
+
* the underlying data. annotations will still retain nodes, they
|
|
193
|
+
* just won't be attached to anything.
|
|
194
|
+
*
|
|
195
|
+
* NOTE: IE destroys nodes if you do this? (...)
|
|
196
|
+
* patch in legacy... actually we'll do it here
|
|
197
|
+
*/
|
|
198
|
+
RemoveAnnotationNodes(): void;
|
|
199
|
+
AddAnnotation(annotation: Annotation, theme: Theme): void;
|
|
200
|
+
AnnotationMouseDown(annotation: Annotation, node: HTMLElement, event: MouseEvent, move_target: HTMLElement, resize_target: HTMLElement): Promise<GridEvent | void>;
|
|
201
|
+
/**
|
|
202
|
+
* this used to be an abstract method for initializing. we're taking it
|
|
203
|
+
* over to do some additional work post init, and renaming the subclass-specific
|
|
204
|
+
* method (@see InitializeInternal).
|
|
205
|
+
*/
|
|
206
|
+
Initialize(container: HTMLElement, callbacks: {
|
|
207
|
+
scroll: () => void;
|
|
208
|
+
dropdown: (value: CellValue) => void;
|
|
209
|
+
sort: (table: string, column: number, asc: boolean) => void;
|
|
210
|
+
focus: () => void;
|
|
211
|
+
}, scroll?: boolean): void;
|
|
212
|
+
/**
|
|
213
|
+
* create a selection so that this node (and parents) receive
|
|
214
|
+
* a copy event on ctrl+c (or any other system copy event).
|
|
215
|
+
* seems to break IE, so split.
|
|
216
|
+
*/
|
|
217
|
+
MockSelection(): void;
|
|
218
|
+
/**
|
|
219
|
+
* FIXME: this is public for now but tiles should move into
|
|
220
|
+
* this class, then this method can become private
|
|
221
|
+
*/
|
|
222
|
+
CreateTile(classes: string, size: Size, position: Position, first_cell: Position, cell_extent: Extent, pixel_start: Point, parent: HTMLElement, mark_dirty?: boolean): Tile;
|
|
223
|
+
ApplyThemeColors(): void;
|
|
224
|
+
/**
|
|
225
|
+
* applies theme to nodes, as necessary
|
|
226
|
+
*/
|
|
227
|
+
ApplyTheme(theme: Theme): void;
|
|
228
|
+
UpdateTotalSize(): void;
|
|
229
|
+
UpdateContentsSize(): void;
|
|
230
|
+
/** hides column/row resize tooltip and removes any specific classes */
|
|
231
|
+
HideTooltip(): void;
|
|
232
|
+
/** show column/row resize tooltip */
|
|
233
|
+
ShowTooltip(options?: TooltipOptions): void;
|
|
234
|
+
ShowDropdownCaret(area: Area, list: CellValue[], current: CellValue): void;
|
|
235
|
+
ShowSpillBorder(area?: IArea): void;
|
|
236
|
+
HideDropdownCaret(): void;
|
|
237
|
+
/**
|
|
238
|
+
* this method returns the scroll offset adjusted for headers.
|
|
239
|
+
* if you just want the raw scroll offset, use the accessor.
|
|
240
|
+
*
|
|
241
|
+
* @param offset_headers
|
|
242
|
+
* @returns
|
|
243
|
+
*/
|
|
244
|
+
GetScrollOffset(): Point;
|
|
245
|
+
ScrollTo(address: ICellAddress, x?: boolean, y?: boolean, smooth?: boolean): void;
|
|
246
|
+
/**
|
|
247
|
+
* scroll address into view, at top-left or bottom-right depending on
|
|
248
|
+
* target and current position. also offsets for frozen rows, columns.
|
|
249
|
+
*/
|
|
250
|
+
ScrollIntoView(address: ICellAddress, smooth?: boolean): void;
|
|
251
|
+
UpdateTooltip(options?: TooltipOptions): void;
|
|
252
|
+
/**
|
|
253
|
+
* y coordinate to row header. for consistency we return an address.
|
|
254
|
+
*/
|
|
255
|
+
CoordinateToRowHeader(y: number): ICellAddress;
|
|
256
|
+
/**
|
|
257
|
+
* x coordinate to colum header. for consistency we return an address.
|
|
258
|
+
*/
|
|
259
|
+
CoordinateToColumnHeader(x: number): ICellAddress;
|
|
260
|
+
/**
|
|
261
|
+
* point to cell address (grid only)
|
|
262
|
+
*
|
|
263
|
+
* FIXME: implement cap_maximum parameter (not sure where we would need it)
|
|
264
|
+
*/
|
|
265
|
+
PointToAddress_Grid(point: Point, offset_freeze?: boolean): ICellAddress;
|
|
266
|
+
/**
|
|
267
|
+
* get an adjacent tile. this is used by the renderer when a merge or
|
|
268
|
+
* overflow runs out of the painted tile, and we need to paint it.
|
|
269
|
+
*/
|
|
270
|
+
AdjacentTile(tile: Tile, row_offset?: number, column_offset?: number): Tile | undefined;
|
|
271
|
+
UpdateTiles(): void;
|
|
272
|
+
ClearLayoutCaches(): void;
|
|
273
|
+
/**
|
|
274
|
+
* returns the tile index for a given column. this is used to map
|
|
275
|
+
* a column to a tile in either the header or the grid.
|
|
276
|
+
* FIXME: speed up w/ lookup cache
|
|
277
|
+
*/
|
|
278
|
+
TileIndexForColumn(column: number): number;
|
|
279
|
+
/**
|
|
280
|
+
* returns the tile index for a given row. this is used to map
|
|
281
|
+
* a column to a tile in either the header or the grid.
|
|
282
|
+
* FIXME: speed up w/ lookup cache
|
|
283
|
+
*/
|
|
284
|
+
TileIndexForRow(row: number): number;
|
|
285
|
+
/**
|
|
286
|
+
* marks header tiles as dirty, for next repaint call
|
|
287
|
+
*
|
|
288
|
+
* UPDATE fix for entire column/row/sheet (the Intersects() method
|
|
289
|
+
* doesn't support infinities, for some reason: FIX THAT)
|
|
290
|
+
*/
|
|
291
|
+
DirtyHeaders(area?: Area): void;
|
|
292
|
+
DirtyAll(): void;
|
|
293
|
+
DirtyArea(areas: IArea | IArea[]): void;
|
|
294
|
+
/** calculate first visible tile based on scroll position */
|
|
295
|
+
VisibleTiles(): TileRange;
|
|
296
|
+
UpdateTileHeights(mark_dirty?: boolean, start_row?: number): void;
|
|
297
|
+
/**
|
|
298
|
+
* update all widths. start_column is a hint that can save some work
|
|
299
|
+
* by skipping unaffected tiles
|
|
300
|
+
*/
|
|
301
|
+
UpdateTileWidths(mark_dirty?: boolean, start_column?: number): void;
|
|
302
|
+
ClampToGrid(point: Point): Point;
|
|
303
|
+
/**
|
|
304
|
+
* wrapper method for CellAddressToRectangle allows us to offset for
|
|
305
|
+
* frozen rows/columns. in some cases we may not want to do this, so
|
|
306
|
+
* the underlying method is still visible (and cache contains the raw
|
|
307
|
+
* rectangles, not offset).
|
|
308
|
+
*/
|
|
309
|
+
OffsetCellAddressToRectangle(address: ICellAddress): Rectangle;
|
|
310
|
+
/**
|
|
311
|
+
* finds the rectangle, in the coordinate space of the grid node,
|
|
312
|
+
* of the cell with the given address. uses a cache since we wind
|
|
313
|
+
* up looking up the same rectangles a lot.
|
|
314
|
+
*
|
|
315
|
+
* UPDATE dropping rectangle cache in favor of holding row and
|
|
316
|
+
* column edges. I realized we were holding a lot of redundant
|
|
317
|
+
* information, and this should be resonably fast.
|
|
318
|
+
*
|
|
319
|
+
* TODO could probably be slightly more efficient by holding the
|
|
320
|
+
* left edge of the column/row at the index; then we don't have to
|
|
321
|
+
* have special behavior for column/row 0.
|
|
322
|
+
*/
|
|
323
|
+
CellAddressToRectangle(address: ICellAddress): Rectangle;
|
|
324
|
+
/**
|
|
325
|
+
* resizes the tile at this index, rebuilds structure of subsequent tiles.
|
|
326
|
+
* this is necessary because tiles keep track of pixel position: so if a
|
|
327
|
+
* tile is resized, subsequent tiles have to change.
|
|
328
|
+
*/
|
|
329
|
+
ResizeTileWidth(index: number, width: number, mark_dirty?: boolean): void;
|
|
330
|
+
/**
|
|
331
|
+
* resizes the tile at this index, rebuilds structure of subsequent tiles
|
|
332
|
+
*/
|
|
333
|
+
ResizeTileHeight(index: number, height: number, mark_dirty?: boolean): void;
|
|
334
|
+
/**
|
|
335
|
+
* do subclass-specific initialization
|
|
336
|
+
*/
|
|
337
|
+
abstract InitializeInternal(container: HTMLElement, scroll_callback: () => void): void;
|
|
338
|
+
/**
|
|
339
|
+
* set resize cursor. this is subclass-specific because it's set on
|
|
340
|
+
* different nodes depending on layout.
|
|
341
|
+
*/
|
|
342
|
+
abstract ResizeCursor(resize?: 'row' | 'column'): void;
|
|
343
|
+
protected abstract UpdateTileGridPosition(tile: Tile): void;
|
|
344
|
+
protected abstract UpdateContainingGrid(): void;
|
|
345
|
+
protected abstract UpdateGridTemplates(columns: boolean, rows: boolean): void;
|
|
346
|
+
}
|