@odoo/o-spreadsheet 19.5.0-alpha.0 → 19.5.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/o_spreadsheet.cjs +54635 -52850
- package/dist/o_spreadsheet.css +95 -44
- package/dist/o_spreadsheet.esm.js +54380 -52595
- package/dist/o_spreadsheet.iife.js +54407 -52622
- package/dist/o_spreadsheet.min.iife.js +403 -403
- package/dist/o_spreadsheet.xml +290 -167
- package/dist/types/actions/action.d.ts +1 -7
- package/dist/types/actions/data_actions.d.ts +1 -0
- package/dist/types/actions/menu_items_actions.d.ts +2 -0
- package/dist/types/clipboard_handlers/default_clipboard.d.ts +1 -1
- package/dist/types/collaborative/ot/ot_helpers.d.ts +3 -1
- package/dist/types/components/autofill/autofill.d.ts +3 -0
- package/dist/types/{plugins/ui_feature/autofill.d.ts → components/autofill/autofill_store.d.ts} +7 -12
- package/dist/types/components/autofill/table_autofill_store.d.ts +6 -0
- package/dist/types/components/border_editor/border_editor_widget.d.ts +1 -0
- package/dist/types/components/clickable_cells_overlay/clickable_cells_overlay.d.ts +20 -0
- package/dist/types/components/collaborative_client_tag/collaborative_client_tag.d.ts +2 -0
- package/dist/types/components/composer/composer/abstract_composer_store.d.ts +3 -2
- package/dist/types/components/composer/composer/composer.d.ts +2 -1
- package/dist/types/components/composer/grid_composer/grid_composer.d.ts +1 -0
- package/dist/types/components/dashboard/clickable_cell_store.d.ts +1 -0
- package/dist/types/components/dashboard/dashboard.d.ts +7 -12
- package/dist/types/components/error_tooltip/error_tooltip.d.ts +2 -0
- package/dist/types/components/figures/chart/chartJs/chartjs_geo_projection_plugin.d.ts +12 -0
- package/dist/types/components/figures/chart/gauge/gauge_chart_component.d.ts +1 -0
- package/dist/types/components/figures/chart/scorecard/chart_scorecard.d.ts +3 -0
- package/dist/types/components/figures/figure/figure.d.ts +8 -9
- package/dist/types/components/figures/figure_carousel/figure_carousel.d.ts +7 -2
- package/dist/types/components/figures/figure_chart/figure_chart.d.ts +1 -2
- package/dist/types/components/figures/figure_container/figure_container.d.ts +4 -2
- package/dist/types/components/figures/figure_image/figure_image.d.ts +1 -2
- package/dist/types/components/filters/filter_menu/filter_menu.d.ts +1 -0
- package/dist/types/components/grid/grid.d.ts +8 -0
- package/dist/types/components/grid_add_rows_footer/grid_add_rows_footer.d.ts +1 -0
- package/dist/types/components/grid_overlay/grid_overlay.d.ts +6 -4
- package/dist/types/components/grid_popover/grid_popover.d.ts +1 -0
- package/dist/types/components/header_group/header_group_container.d.ts +2 -0
- package/dist/types/components/headers_overlay/headers_overlay.d.ts +3 -0
- package/dist/types/components/headers_overlay/unhide_headers.d.ts +4 -0
- package/dist/types/components/helpers/dom_helpers.d.ts +2 -0
- package/dist/types/components/helpers/figure_snap_helper.d.ts +3 -3
- package/dist/types/components/helpers/wheel_hook.d.ts +1 -1
- package/dist/types/components/helpers/zoom.d.ts +1 -5
- package/dist/types/components/highlight/border/border.d.ts +2 -0
- package/dist/types/components/highlight/corner/corner.d.ts +1 -0
- package/dist/types/components/highlight/highlight/highlight.d.ts +3 -0
- package/dist/types/components/link/link_display/link_display.d.ts +1 -0
- package/dist/types/components/link/link_editor/link_editor.d.ts +1 -0
- package/dist/types/components/paint_format_button/paint_format_store.d.ts +1 -1
- package/dist/types/components/popover/cell_popover_store.d.ts +2 -1
- package/dist/types/components/props_validation.d.ts +7 -7
- package/dist/types/components/scrollbar/scrollbar_horizontal.d.ts +3 -0
- package/dist/types/components/scrollbar/scrollbar_vertical.d.ts +5 -1
- package/dist/types/components/selection_input/selection_input_store.d.ts +1 -1
- package/dist/types/components/side_panel/carousel_panel/carousel_panel.d.ts +20 -2
- package/dist/types/components/side_panel/chart/building_blocks/chart_title/chart_title.d.ts +1 -0
- package/dist/types/components/side_panel/chart/chart_type_picker/chart_type_picker.d.ts +5 -18
- package/dist/types/components/side_panel/chart/chart_type_picker_popover/chart_type_picker_popover.d.ts +64 -0
- package/dist/types/components/side_panel/chart/common.d.ts +1 -1
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/cell_is_rule_editor.d.ts +1 -1
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor.d.ts +1 -1
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/color_scale_rule_editor_threshold.d.ts +1 -1
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/data_bar_rule_editor.d.ts +1 -1
- package/dist/types/components/side_panel/conditional_formatting/cf_editor/icon_set_rule_editor.d.ts +1 -1
- package/dist/types/components/side_panel/criterion_form/calendar_button/calendar_button.d.ts +13 -0
- package/dist/types/components/side_panel/criterion_form/date_criterion/date_criterion.d.ts +2 -0
- package/dist/types/components/side_panel/criterion_form/double_input_criterion/double_input_criterion.d.ts +3 -0
- package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup.d.ts +28 -0
- package/dist/types/components/side_panel/data_sources_cleanup/data_sources_cleanup_store.d.ts +13 -0
- package/dist/types/components/side_panel/find_and_replace/find_and_replace_store.d.ts +1 -0
- package/dist/types/components/side_panel/pivot/pivot_layout_configurator/pivot_layout_configurator.d.ts +0 -2
- package/dist/types/components/side_panel/pivot/pivot_side_panel/pivot_side_panel_store.d.ts +1 -0
- package/dist/types/components/side_panel/remove_duplicates/remove_duplicates.d.ts +3 -10
- package/dist/types/components/side_panel/side_panel/side_panel_store.d.ts +1 -1
- package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_panel.d.ts +4 -11
- package/dist/types/components/side_panel/split_to_columns_panel/split_to_columns_store.d.ts +33 -0
- package/dist/types/components/small_bottom_bar/small_bottom_bar.d.ts +1 -0
- package/dist/types/components/spreadsheet/spreadsheet.d.ts +2 -0
- package/dist/types/components/standalone_grid_canvas/standalone_grid_canvas.d.ts +2 -1
- package/dist/types/components/standalone_viewport/standalone_viewport.d.ts +56 -0
- package/dist/types/components/standalone_viewport/standalone_viewport_store.d.ts +28 -0
- package/dist/types/components/tables/hovered_table_store.d.ts +3 -6
- package/dist/types/components/tables/table_resizer/table_resizer.d.ts +1 -0
- package/dist/types/components/top_bar/zoom_editor/zoom_editor.d.ts +2 -1
- package/dist/types/constants.d.ts +4 -0
- package/dist/types/formulas/code_builder.d.ts +2 -1
- package/dist/types/formulas/compiler.d.ts +7 -0
- package/dist/types/functions/create_compute_function.d.ts +4 -3
- package/dist/types/functions/function_registry.d.ts +1 -5
- package/dist/types/functions/helper_matrices.d.ts +1 -0
- package/dist/types/functions/helper_statistical.d.ts +6 -0
- package/dist/types/functions/module_array.d.ts +41 -23
- package/dist/types/functions/module_database.d.ts +18 -6
- package/dist/types/functions/module_date.d.ts +70 -22
- package/dist/types/functions/module_engineering.d.ts +3 -1
- package/dist/types/functions/module_filter.d.ts +2 -2
- package/dist/types/functions/module_financial.d.ts +105 -35
- package/dist/types/functions/module_info.d.ts +33 -11
- package/dist/types/functions/module_logical.d.ts +16 -8
- package/dist/types/functions/module_lookup.d.ts +23 -15
- package/dist/types/functions/module_math.d.ts +125 -43
- package/dist/types/functions/module_operators.d.ts +7 -3
- package/dist/types/functions/module_statistical.d.ts +78 -22
- package/dist/types/functions/module_text.d.ts +70 -24
- package/dist/types/functions/module_web.d.ts +3 -1
- package/dist/types/helpers/carousel_helpers.d.ts +8 -3
- package/dist/types/helpers/figures/chart.d.ts +2 -0
- package/dist/types/helpers/figures/charts/chart_common.d.ts +0 -2
- package/dist/types/helpers/figures/charts/scorecard_chart_config_builder.d.ts +2 -0
- package/dist/types/helpers/figures/figure/figure.d.ts +3 -2
- package/dist/types/helpers/internal_viewport.d.ts +20 -10
- package/dist/types/helpers/misc.d.ts +2 -0
- package/dist/types/helpers/pivot/pivot_helpers.d.ts +2 -2
- package/dist/types/helpers/pivot/pivot_highlight.d.ts +2 -2
- package/dist/types/helpers/rectangle.d.ts +4 -0
- package/dist/types/helpers/text_helper.d.ts +6 -1
- package/dist/types/helpers/ui/split_to_columns_interactive.d.ts +1 -1
- package/dist/types/helpers/viewport_collection.d.ts +51 -21
- package/dist/types/helpers/zones.d.ts +1 -0
- package/dist/types/index.d.ts +29 -3
- package/dist/types/model.d.ts +1 -0
- package/dist/types/plugins/core/carousel.d.ts +8 -4
- package/dist/types/plugins/core/cell.d.ts +1 -0
- package/dist/types/plugins/core/chart.d.ts +2 -0
- package/dist/types/plugins/core/conditional_format.d.ts +2 -0
- package/dist/types/plugins/core/data_validation.d.ts +2 -0
- package/dist/types/plugins/core/formulas_provider.d.ts +8 -0
- package/dist/types/plugins/core/pivot.d.ts +1 -0
- package/dist/types/plugins/core/squisher.d.ts +1 -0
- package/dist/types/plugins/core_plugin.d.ts +7 -3
- package/dist/types/plugins/ui_core_views/cell_evaluation/evaluation_plugin.d.ts +10 -3
- package/dist/types/plugins/ui_core_views/pivot_ui.d.ts +3 -0
- package/dist/types/plugins/ui_feature/collaborative.d.ts +2 -1
- package/dist/types/plugins/ui_feature/ui_options.d.ts +1 -7
- package/dist/types/plugins/ui_feature/ui_sheet.d.ts +2 -1
- package/dist/types/plugins/ui_stateful/carousel_ui.d.ts +2 -2
- package/dist/types/plugins/{ui_feature → ui_stateful}/figure.d.ts +4 -0
- package/dist/types/plugins/ui_stateful/filter_evaluation.d.ts +2 -3
- package/dist/types/plugins/ui_stateful/header_positions.d.ts +2 -1
- package/dist/types/registries/chart_registry.d.ts +3 -0
- package/dist/types/registries/data_source_registry.d.ts +15 -0
- package/dist/types/registries/figures_registry.d.ts +4 -1
- package/dist/types/store_engine/dependency_container.d.ts +5 -0
- package/dist/types/store_engine/store_hooks.d.ts +6 -0
- package/dist/types/store_engine/store_registries.d.ts +4 -0
- package/dist/types/stores/array_formula_highlight.d.ts +1 -1
- package/dist/types/{plugins/ui_feature/automatic_sum.d.ts → stores/automatic_sum_store.d.ts} +5 -4
- package/dist/types/stores/checkbox_toggle.d.ts +9 -0
- package/dist/types/stores/client_focus_store.d.ts +1 -0
- package/dist/types/stores/data_cleanup_store.d.ts +31 -0
- package/dist/types/stores/main_viewport_store.d.ts +11 -0
- package/dist/types/stores/spreadsheet_store.d.ts +1 -1
- package/dist/types/stores/table_resize_store.d.ts +6 -0
- package/dist/types/stores/trim_whitespace_store.d.ts +9 -0
- package/dist/types/stores/viewports_store.d.ts +87 -0
- package/dist/types/stores/zoom_store.d.ts +14 -0
- package/dist/types/types/chart/radar_chart.d.ts +1 -1
- package/dist/types/types/chart/scorecard_chart.d.ts +2 -0
- package/dist/types/types/commands.d.ts +25 -58
- package/dist/types/types/core_getters.d.ts +3 -1
- package/dist/types/types/figure.d.ts +26 -3
- package/dist/types/types/functions.d.ts +14 -4
- package/dist/types/types/getters.d.ts +28 -11
- package/dist/types/types/misc.d.ts +19 -1
- package/dist/types/types/range.d.ts +1 -0
- package/dist/types/types/rendering.d.ts +1 -0
- package/dist/types/types/store_engine.d.ts +10 -3
- package/package.json +2 -2
- package/dist/types/plugins/ui_feature/checkbox_toggle.d.ts +0 -9
- package/dist/types/plugins/ui_feature/data_cleanup.d.ts +0 -16
- package/dist/types/plugins/ui_feature/split_to_columns.d.ts +0 -21
- package/dist/types/plugins/ui_feature/table_autofill.d.ts +0 -6
- package/dist/types/plugins/ui_feature/table_resize_ui.d.ts +0 -6
- package/dist/types/plugins/ui_stateful/sheetview.d.ts +0 -123
- /package/dist/types/plugins/{ui_feature → ui_stateful}/cell_computed_style.d.ts +0 -0
- /package/dist/types/plugins/{ui_feature → ui_stateful}/header_visibility_ui.d.ts +0 -0
- /package/dist/types/plugins/{ui_feature → ui_stateful}/table_computed_style.d.ts +0 -0
|
@@ -3,31 +3,41 @@ import { Arg, FunctionResultNumber, FunctionResultObject, Maybe } from "../types
|
|
|
3
3
|
export declare const CHAR: {
|
|
4
4
|
description: string;
|
|
5
5
|
args: import("..").ArgDefinition[];
|
|
6
|
-
compute: (this: import("..").EvalContext, tableNumber: Maybe<FunctionResultObject>) =>
|
|
6
|
+
compute: (this: import("..").EvalContext, tableNumber: Maybe<FunctionResultObject>) => EvaluationError | {
|
|
7
|
+
value: string;
|
|
8
|
+
};
|
|
7
9
|
isExported: true;
|
|
8
10
|
};
|
|
9
11
|
export declare const CLEAN: {
|
|
10
12
|
description: string;
|
|
11
13
|
args: import("..").ArgDefinition[];
|
|
12
|
-
compute: (text: Maybe<FunctionResultObject>) =>
|
|
14
|
+
compute: (text: Maybe<FunctionResultObject>) => {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
13
17
|
isExported: true;
|
|
14
18
|
};
|
|
15
19
|
export declare const CONCATENATE: {
|
|
16
20
|
description: string;
|
|
17
21
|
args: import("..").ArgDefinition[];
|
|
18
|
-
compute: (...datas: Arg[]) =>
|
|
22
|
+
compute: (...datas: Arg[]) => {
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
19
25
|
isExported: true;
|
|
20
26
|
};
|
|
21
27
|
export declare const EXACT: {
|
|
22
28
|
description: string;
|
|
23
29
|
args: import("..").ArgDefinition[];
|
|
24
|
-
compute: (string1: Maybe<FunctionResultObject>, string2: Maybe<FunctionResultObject>) =>
|
|
30
|
+
compute: (string1: Maybe<FunctionResultObject>, string2: Maybe<FunctionResultObject>) => {
|
|
31
|
+
value: boolean;
|
|
32
|
+
};
|
|
25
33
|
isExported: true;
|
|
26
34
|
};
|
|
27
35
|
export declare const FIND: {
|
|
28
36
|
description: string;
|
|
29
37
|
args: import("..").ArgDefinition[];
|
|
30
|
-
compute: (this: import("..").EvalContext, searchFor: Maybe<FunctionResultObject>, textToSearch: Maybe<FunctionResultObject>, startingAt?: Maybe<FunctionResultObject>) =>
|
|
38
|
+
compute: (this: import("..").EvalContext, searchFor: Maybe<FunctionResultObject>, textToSearch: Maybe<FunctionResultObject>, startingAt?: Maybe<FunctionResultObject>) => EvaluationError | {
|
|
39
|
+
value: number;
|
|
40
|
+
};
|
|
31
41
|
isExported: true;
|
|
32
42
|
};
|
|
33
43
|
export declare const FORMAT_LARGE_NUMBER: {
|
|
@@ -38,48 +48,64 @@ export declare const FORMAT_LARGE_NUMBER: {
|
|
|
38
48
|
export declare const JOIN: {
|
|
39
49
|
description: string;
|
|
40
50
|
args: import("..").ArgDefinition[];
|
|
41
|
-
compute: (delimiter: Maybe<FunctionResultObject>, ...valuesOrArrays: Arg[]) =>
|
|
51
|
+
compute: (delimiter: Maybe<FunctionResultObject>, ...valuesOrArrays: Arg[]) => {
|
|
52
|
+
value: string;
|
|
53
|
+
};
|
|
42
54
|
};
|
|
43
55
|
export declare const LEFT: {
|
|
44
56
|
description: string;
|
|
45
57
|
args: import("..").ArgDefinition[];
|
|
46
|
-
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, ...args: Maybe<FunctionResultObject>[]) =>
|
|
58
|
+
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, ...args: Maybe<FunctionResultObject>[]) => EvaluationError | {
|
|
59
|
+
value: string;
|
|
60
|
+
};
|
|
47
61
|
isExported: true;
|
|
48
62
|
};
|
|
49
63
|
export declare const LEN: {
|
|
50
64
|
description: string;
|
|
51
65
|
args: import("..").ArgDefinition[];
|
|
52
|
-
compute: (text: Maybe<FunctionResultObject>) =>
|
|
66
|
+
compute: (text: Maybe<FunctionResultObject>) => {
|
|
67
|
+
value: number;
|
|
68
|
+
};
|
|
53
69
|
isExported: true;
|
|
54
70
|
};
|
|
55
71
|
export declare const LOWER: {
|
|
56
72
|
description: string;
|
|
57
73
|
args: import("..").ArgDefinition[];
|
|
58
|
-
compute: (text: Maybe<FunctionResultObject>) =>
|
|
74
|
+
compute: (text: Maybe<FunctionResultObject>) => {
|
|
75
|
+
value: string;
|
|
76
|
+
};
|
|
59
77
|
isExported: true;
|
|
60
78
|
};
|
|
61
79
|
export declare const MID: {
|
|
62
80
|
description: string;
|
|
63
81
|
args: import("..").ArgDefinition[];
|
|
64
|
-
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, starting_at: Maybe<FunctionResultObject>, extract_length: Maybe<FunctionResultObject>) =>
|
|
82
|
+
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, starting_at: Maybe<FunctionResultObject>, extract_length: Maybe<FunctionResultObject>) => EvaluationError | {
|
|
83
|
+
value: string;
|
|
84
|
+
};
|
|
65
85
|
isExported: true;
|
|
66
86
|
};
|
|
67
87
|
export declare const PROPER: {
|
|
68
88
|
description: string;
|
|
69
89
|
args: import("..").ArgDefinition[];
|
|
70
|
-
compute: (text: Maybe<FunctionResultObject>) =>
|
|
90
|
+
compute: (text: Maybe<FunctionResultObject>) => {
|
|
91
|
+
value: string;
|
|
92
|
+
};
|
|
71
93
|
isExported: true;
|
|
72
94
|
};
|
|
73
95
|
export declare const REGEXTEST: {
|
|
74
96
|
description: string;
|
|
75
97
|
args: import("..").ArgDefinition[];
|
|
76
|
-
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, pattern: Maybe<FunctionResultObject>, newText?: Maybe<FunctionResultObject>) =>
|
|
98
|
+
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, pattern: Maybe<FunctionResultObject>, newText?: Maybe<FunctionResultObject>) => EvaluationError | {
|
|
99
|
+
value: boolean;
|
|
100
|
+
};
|
|
77
101
|
isExported: true;
|
|
78
102
|
};
|
|
79
103
|
export declare const REGEXEXTRACT: {
|
|
80
104
|
description: string;
|
|
81
105
|
args: import("..").ArgDefinition[];
|
|
82
|
-
|
|
106
|
+
computeArray: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, pattern: Maybe<FunctionResultObject>, return_mode?: Maybe<FunctionResultObject>, newText?: Maybe<FunctionResultObject>) => EvaluationError | {
|
|
107
|
+
value: string;
|
|
108
|
+
}[][] | {
|
|
83
109
|
value: string;
|
|
84
110
|
};
|
|
85
111
|
isExported: true;
|
|
@@ -87,19 +113,25 @@ export declare const REGEXEXTRACT: {
|
|
|
87
113
|
export declare const REGEXREPLACE: {
|
|
88
114
|
description: string;
|
|
89
115
|
args: import("..").ArgDefinition[];
|
|
90
|
-
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, pattern: Maybe<FunctionResultObject>, replacement: Maybe<FunctionResultObject>, occurence?: Maybe<FunctionResultObject>, newText?: Maybe<FunctionResultObject>) =>
|
|
116
|
+
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, pattern: Maybe<FunctionResultObject>, replacement: Maybe<FunctionResultObject>, occurence?: Maybe<FunctionResultObject>, newText?: Maybe<FunctionResultObject>) => EvaluationError | {
|
|
117
|
+
value: string;
|
|
118
|
+
};
|
|
91
119
|
isExported: true;
|
|
92
120
|
};
|
|
93
121
|
export declare const REPLACE: {
|
|
94
122
|
description: string;
|
|
95
123
|
args: import("..").ArgDefinition[];
|
|
96
|
-
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, position: Maybe<FunctionResultObject>, length: Maybe<FunctionResultObject>, newText: Maybe<FunctionResultObject>) =>
|
|
124
|
+
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, position: Maybe<FunctionResultObject>, length: Maybe<FunctionResultObject>, newText: Maybe<FunctionResultObject>) => EvaluationError | {
|
|
125
|
+
value: string;
|
|
126
|
+
};
|
|
97
127
|
isExported: true;
|
|
98
128
|
};
|
|
99
129
|
export declare const RIGHT: {
|
|
100
130
|
description: string;
|
|
101
131
|
args: import("..").ArgDefinition[];
|
|
102
|
-
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, ...args: Maybe<FunctionResultObject>[]) =>
|
|
132
|
+
compute: (this: import("..").EvalContext, text: Maybe<FunctionResultObject>, ...args: Maybe<FunctionResultObject>[]) => EvaluationError | {
|
|
133
|
+
value: string;
|
|
134
|
+
};
|
|
103
135
|
isExported: true;
|
|
104
136
|
};
|
|
105
137
|
export declare const SEARCH: {
|
|
@@ -117,49 +149,63 @@ export declare const SEARCH: {
|
|
|
117
149
|
export declare const SPLIT: {
|
|
118
150
|
description: string;
|
|
119
151
|
args: import("..").ArgDefinition[];
|
|
120
|
-
|
|
152
|
+
computeArray: (text: Maybe<FunctionResultObject>, delimiter: Maybe<FunctionResultObject>, splitByEach?: Maybe<FunctionResultObject>, removeEmptyText?: Maybe<FunctionResultObject>) => EvaluationError | import("..").Matrix<{
|
|
153
|
+
value: string;
|
|
154
|
+
}>;
|
|
121
155
|
isExported: false;
|
|
122
156
|
};
|
|
123
157
|
export declare const SUBSTITUTE: {
|
|
124
158
|
description: string;
|
|
125
159
|
args: import("..").ArgDefinition[];
|
|
126
|
-
compute: (this: import("..").EvalContext, textToSearch: Maybe<FunctionResultObject>, searchFor: Maybe<FunctionResultObject>, replaceWith: Maybe<FunctionResultObject>, occurrenceNumber: Maybe<FunctionResultObject>) =>
|
|
160
|
+
compute: (this: import("..").EvalContext, textToSearch: Maybe<FunctionResultObject>, searchFor: Maybe<FunctionResultObject>, replaceWith: Maybe<FunctionResultObject>, occurrenceNumber: Maybe<FunctionResultObject>) => EvaluationError | {
|
|
161
|
+
value: string;
|
|
162
|
+
};
|
|
127
163
|
isExported: true;
|
|
128
164
|
};
|
|
129
165
|
export declare const TEXTJOIN: {
|
|
130
166
|
description: string;
|
|
131
167
|
args: import("..").ArgDefinition[];
|
|
132
|
-
compute: (delimiter: Maybe<FunctionResultObject>, ignoreEmpty?: Maybe<FunctionResultObject>, ...textsOrArrays: Arg[]) =>
|
|
168
|
+
compute: (delimiter: Maybe<FunctionResultObject>, ignoreEmpty?: Maybe<FunctionResultObject>, ...textsOrArrays: Arg[]) => {
|
|
169
|
+
value: string;
|
|
170
|
+
};
|
|
133
171
|
isExported: true;
|
|
134
172
|
};
|
|
135
173
|
export declare const TEXTSPLIT: {
|
|
136
174
|
description: string;
|
|
137
175
|
args: import("..").ArgDefinition[];
|
|
138
|
-
|
|
176
|
+
computeArray: (this: import("..").EvalContext, text: FunctionResultObject, colDelimiter: Arg, rowDelimiter: Arg, ignoreEmpty?: Maybe<FunctionResultObject>, matchMode?: Maybe<FunctionResultObject>, padWith?: Maybe<FunctionResultObject>) => EvaluationError | import("..").Matrix<FunctionResultObject>;
|
|
139
177
|
isExported: true;
|
|
140
178
|
};
|
|
141
179
|
export declare const TRIM: {
|
|
142
180
|
description: string;
|
|
143
181
|
args: import("..").ArgDefinition[];
|
|
144
|
-
compute: (text: Maybe<FunctionResultObject>) =>
|
|
182
|
+
compute: (text: Maybe<FunctionResultObject>) => {
|
|
183
|
+
value: string;
|
|
184
|
+
};
|
|
145
185
|
isExported: true;
|
|
146
186
|
};
|
|
147
187
|
export declare const UPPER: {
|
|
148
188
|
description: string;
|
|
149
189
|
args: import("..").ArgDefinition[];
|
|
150
|
-
compute: (text: Maybe<FunctionResultObject>) =>
|
|
190
|
+
compute: (text: Maybe<FunctionResultObject>) => {
|
|
191
|
+
value: string;
|
|
192
|
+
};
|
|
151
193
|
isExported: true;
|
|
152
194
|
};
|
|
153
195
|
export declare const TEXT: {
|
|
154
196
|
description: string;
|
|
155
197
|
args: import("..").ArgDefinition[];
|
|
156
|
-
compute: (this: import("..").EvalContext, number: Maybe<FunctionResultObject>, format: Maybe<FunctionResultObject>) =>
|
|
198
|
+
compute: (this: import("..").EvalContext, number: Maybe<FunctionResultObject>, format: Maybe<FunctionResultObject>) => {
|
|
199
|
+
value: import("..").FormattedValue;
|
|
200
|
+
};
|
|
157
201
|
isExported: true;
|
|
158
202
|
};
|
|
159
203
|
export declare const VALUE: {
|
|
160
204
|
description: string;
|
|
161
205
|
args: import("..").ArgDefinition[];
|
|
162
|
-
compute: (this: import("..").EvalContext, value: Maybe<FunctionResultObject>) =>
|
|
206
|
+
compute: (this: import("..").EvalContext, value: Maybe<FunctionResultObject>) => {
|
|
207
|
+
value: number;
|
|
208
|
+
};
|
|
163
209
|
isExported: true;
|
|
164
210
|
};
|
|
165
211
|
export declare const TEXTAFTER: {
|
|
@@ -2,6 +2,8 @@ import { FunctionResultObject, Maybe } from "../types/misc";
|
|
|
2
2
|
export declare const HYPERLINK: {
|
|
3
3
|
description: string;
|
|
4
4
|
args: import("..").ArgDefinition[];
|
|
5
|
-
compute: (url: Maybe<FunctionResultObject>, linkLabel: Maybe<FunctionResultObject>) =>
|
|
5
|
+
compute: (url: Maybe<FunctionResultObject>, linkLabel: Maybe<FunctionResultObject>) => {
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
6
8
|
isExported: true;
|
|
7
9
|
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CarouselItem } from "../types/figure";
|
|
1
|
+
import { AnchorOffset, CarouselItem } from "../types/figure";
|
|
3
2
|
import { Getters } from "../types/getters";
|
|
4
|
-
|
|
3
|
+
import { UID } from "../types/misc";
|
|
4
|
+
import { SpreadsheetChildEnv } from "../types/spreadsheet_env";
|
|
5
|
+
/**
|
|
6
|
+
* Compute the anchor of a chart popped out of a carousel: slightly offset from the
|
|
7
|
+
* carousel figure so the new chart does not perfectly overlap it.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getPoppedOutChartAnchor(env: SpreadsheetChildEnv, sheetId: UID, carouselId: UID): AnchorOffset;
|
|
5
10
|
export declare function getCarouselItemPreview(getters: Getters, item: CarouselItem): string;
|
|
6
11
|
export declare function getCarouselItemTitle(getters: Getters, item: CarouselItem): string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CompiledFormula } from "../../formulas/compiler";
|
|
1
2
|
import { ChartCreationContext, ChartData, ChartDefinition } from "../../types/chart/chart";
|
|
2
3
|
import { CoreGetters } from "../../types/core_getters";
|
|
3
4
|
import { Getters } from "../../types/getters";
|
|
@@ -24,6 +25,7 @@ export declare class SpreadsheetChart {
|
|
|
24
25
|
getContextCreation(): ChartCreationContext;
|
|
25
26
|
getDefinitionForExcel(getters: Getters): import("../..").ExcelChartDefinition | undefined;
|
|
26
27
|
getData(getters: Getters, chartId: UID): ChartData;
|
|
28
|
+
getFormulas(getters: CoreGetters): CompiledFormula[];
|
|
27
29
|
getRuntime(getters: Getters, chartId: UID): import("../..").ChartRuntime;
|
|
28
30
|
static deleteInvalidKeys(definition: ChartDefinition<any>): ChartDefinition<any>;
|
|
29
31
|
}
|
|
@@ -6,7 +6,6 @@ import { Getters } from "../../../types/getters";
|
|
|
6
6
|
import { Locale } from "../../../types/locale";
|
|
7
7
|
import { Color, RangeAdapterFunctions, UID } from "../../../types/misc";
|
|
8
8
|
import { Range } from "../../../types/range";
|
|
9
|
-
import { DOMCoordinates, DOMDimension } from "../../../types/rendering";
|
|
10
9
|
import { ColorGenerator } from "../../color";
|
|
11
10
|
export declare const TREND_LINE_XAXIS_ID = "x1";
|
|
12
11
|
export declare const MOVING_AVERAGE_TREND_LINE_XAXIS_ID = "xMovingAverage";
|
|
@@ -47,7 +46,6 @@ export declare function chartMutedFontColor(backgroundColor: Color | undefined):
|
|
|
47
46
|
export declare function checkDataset(dataSource: ChartRangeDataSource<string>): CommandResult;
|
|
48
47
|
export declare function checkLabelRange(dataSource: ChartRangeDataSource<string>): CommandResult;
|
|
49
48
|
export declare function shouldRemoveFirstLabel(numberOfLabels: number, numberOfDataPoints: number | undefined, dataSetsHaveTitle: boolean): boolean;
|
|
50
|
-
export declare function getChartPositionAtCenterOfViewport(getters: Getters, chartSize: DOMDimension): DOMCoordinates;
|
|
51
49
|
export declare function getDefinedAxis(definition: Partial<ChartDefinition<string | Range>>): {
|
|
52
50
|
useLeftAxis: boolean;
|
|
53
51
|
useRightAxis: boolean;
|
|
@@ -8,6 +8,7 @@ type ScorecardChartElement = {
|
|
|
8
8
|
color: Color;
|
|
9
9
|
strikethrough?: boolean;
|
|
10
10
|
underline?: boolean;
|
|
11
|
+
highlightText?: boolean;
|
|
11
12
|
};
|
|
12
13
|
position: PixelPosition;
|
|
13
14
|
};
|
|
@@ -23,6 +24,7 @@ export type ScorecardChartConfig = {
|
|
|
23
24
|
style: {
|
|
24
25
|
size: Pixel;
|
|
25
26
|
color: Color;
|
|
27
|
+
highlight?: boolean;
|
|
26
28
|
};
|
|
27
29
|
position: PixelPosition;
|
|
28
30
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Position, UID } from "../../..";
|
|
2
2
|
import { AnchorOffset, Figure, FigureSize } from "../../../types/figure";
|
|
3
3
|
import { Getters } from "../../../types/getters";
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
4
|
+
import { SpreadsheetChildEnv } from "../../../types/spreadsheet_env";
|
|
5
|
+
export declare function centerFigurePosition(env: SpreadsheetChildEnv, size: FigureSize): AnchorOffset;
|
|
6
|
+
export declare function getMaxFigureSize(figureSize: FigureSize): FigureSize;
|
|
6
7
|
export declare function boundColRowOffsetInSheet(getters: Getters, sheetId: UID, position: Position, figure: Figure): {
|
|
7
8
|
col: import("../../..").HeaderIndex;
|
|
8
9
|
row: import("../../..").HeaderIndex;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ViewportsGetters } from "../types/getters";
|
|
2
2
|
import { Dimension, HeaderIndex, Pixel, Position, UID, Zone } from "../types/misc";
|
|
3
3
|
import { DOMCoordinates, DOMDimension, Rect } from "../types/rendering";
|
|
4
|
+
interface InternalViewportArgs {
|
|
5
|
+
getters: ViewportsGetters;
|
|
6
|
+
sheetId: UID;
|
|
7
|
+
boundaries: Zone;
|
|
8
|
+
sizeInGrid: DOMDimension;
|
|
9
|
+
canScrollVertically: boolean;
|
|
10
|
+
canScrollHorizontally: boolean;
|
|
11
|
+
offsets: DOMCoordinates;
|
|
12
|
+
getFooterSize: () => number;
|
|
13
|
+
}
|
|
4
14
|
export declare class InternalViewport {
|
|
5
|
-
private getters;
|
|
6
|
-
private sheetId;
|
|
7
|
-
private boundaries;
|
|
8
15
|
top: HeaderIndex;
|
|
9
16
|
bottom: HeaderIndex;
|
|
10
17
|
left: HeaderIndex;
|
|
@@ -15,12 +22,13 @@ export declare class InternalViewport {
|
|
|
15
22
|
canScrollHorizontally: boolean;
|
|
16
23
|
viewportWidth: Pixel;
|
|
17
24
|
viewportHeight: Pixel;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
boundaryLeftX: Pixel;
|
|
26
|
+
boundaryTopY: Pixel;
|
|
27
|
+
private getters;
|
|
28
|
+
private sheetId;
|
|
29
|
+
private boundaries;
|
|
30
|
+
private getFooterSize;
|
|
31
|
+
constructor(args: InternalViewportArgs);
|
|
24
32
|
/** Returns the maximum size (in Pixels) of the viewport relative to its allocated client size
|
|
25
33
|
* When the viewport grid size is smaller than its client width (resp. height), it will return
|
|
26
34
|
* the client width (resp. height).
|
|
@@ -49,6 +57,7 @@ export declare class InternalViewport {
|
|
|
49
57
|
willNewOffsetScrollViewport(offsetX: Pixel, offsetY: Pixel): boolean;
|
|
50
58
|
setViewportOffset(offsetX: Pixel, offsetY: Pixel): void;
|
|
51
59
|
adjustViewportZone(): void;
|
|
60
|
+
isZoneVisible(zone: Zone): boolean;
|
|
52
61
|
/**
|
|
53
62
|
*
|
|
54
63
|
* Computes the visible coordinates & dimensions of a given zone inside the viewport
|
|
@@ -84,3 +93,4 @@ export declare class InternalViewport {
|
|
|
84
93
|
* */
|
|
85
94
|
private get snapCorrection();
|
|
86
95
|
}
|
|
96
|
+
export {};
|
|
@@ -2,7 +2,7 @@ import { Registry } from "../../registries/registry";
|
|
|
2
2
|
import { CellValue } from "../../types/cells";
|
|
3
3
|
import { Locale } from "../../types/locale";
|
|
4
4
|
import { CellPosition, FunctionResultObject, Matrix, Maybe } from "../../types/misc";
|
|
5
|
-
import {
|
|
5
|
+
import { PivotCoreDefinition, PivotCoreDimension, PivotCoreMeasure, PivotCustomGroupedField, PivotDimension, PivotDomain, PivotField, PivotFields, PivotSortedColumn, PivotStyle, PivotTableCell } from "../../types/pivot";
|
|
6
6
|
import { Pivot } from "../../types/pivot_runtime";
|
|
7
7
|
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
8
8
|
import { PivotRuntimeDefinition } from "./pivot_runtime_definition";
|
|
@@ -53,7 +53,7 @@ export declare function createPivotFormula(formulaId: string, cell: PivotTableCe
|
|
|
53
53
|
*/
|
|
54
54
|
export declare function toNormalizedPivotValue(dimension: Pick<PivotDimension, "type" | "displayName" | "granularity">, groupValue: Maybe<CellValue | FunctionResultObject>): CellValue;
|
|
55
55
|
export declare function toFunctionPivotValue(value: CellValue, dimension: Pick<PivotDimension, "type" | "granularity">): string;
|
|
56
|
-
export declare const pivotNormalizationValueRegistry: Registry<(value: string,
|
|
56
|
+
export declare const pivotNormalizationValueRegistry: Registry<(value: string, dimension: Pick<PivotDimension, "type" | "displayName" | "granularity">) => CellValue>;
|
|
57
57
|
export declare const pivotToFunctionValueRegistry: Registry<(value: CellValue, granularity?: string) => string>;
|
|
58
58
|
export declare function getFieldDisplayName(field: PivotDimension): string;
|
|
59
59
|
export declare function addAlignFormatToPivotHeader(domain: PivotDomain, functionResult: FunctionResultObject): FunctionResultObject;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Getters } from "../../types/getters";
|
|
2
1
|
import { Highlight, UID } from "../../types/misc";
|
|
3
|
-
|
|
2
|
+
import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
3
|
+
export declare function getPivotHighlights(env: SpreadsheetChildEnv, pivotId: UID): Highlight[];
|
|
@@ -6,3 +6,7 @@ export declare function rectIntersection(rect1: Rect, rect2: Rect): Rect | undef
|
|
|
6
6
|
/** Compute the union of the rectangles, ie. the smallest rectangle that contain them all */
|
|
7
7
|
export declare function rectUnion(...rects: Rect[]): Rect;
|
|
8
8
|
export declare function isPointInsideRect(x: number, y: number, rect: Rect): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Return a Rect with position and size on the zoomed canvas
|
|
11
|
+
*/
|
|
12
|
+
export declare function getZoomedRect(zoom: number, rect: Rect): Rect;
|
|
@@ -19,6 +19,10 @@ export declare function computeTextDimension(context: Canvas2DContext, text: str
|
|
|
19
19
|
width: number;
|
|
20
20
|
height: number;
|
|
21
21
|
};
|
|
22
|
+
export declare function computeCachedTextDimension(context: Canvas2DContext, text: string, font: string): {
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
22
26
|
export declare function fontSizeInPixels(fontSize: number): number;
|
|
23
27
|
export declare function computeTextFont(style: Style, fontUnit?: "px" | "pt"): string;
|
|
24
28
|
export declare function computeTextFontSizeInPixels(style?: Style): number;
|
|
@@ -38,7 +42,8 @@ export declare function getFontSizeMatchingWidth(lineWidth: number, maxFontSize:
|
|
|
38
42
|
export declare function toTrimmedLowerCase(str: string | undefined): string;
|
|
39
43
|
export declare function getContextFontSize(font: string): Pixel;
|
|
40
44
|
export declare function clipTextWithEllipsis(ctx: Canvas2DContext, text: string, maxWidth: number): string;
|
|
41
|
-
export declare function drawDecoratedText(context: Canvas2DContext, text: string, position: PixelPosition, underline?: boolean | undefined, strikethrough?: boolean | undefined, strokeWidth?: number
|
|
45
|
+
export declare function drawDecoratedText(context: Canvas2DContext, text: string, position: PixelPosition, underline?: boolean | undefined, strikethrough?: boolean | undefined, strokeWidth?: number, //This value is defined to get a good looking stroke
|
|
46
|
+
highlightText?: boolean | undefined): void;
|
|
42
47
|
export declare function sliceTextToFitWidth(context: Canvas2DContext, width: number, text: string, style: Style, fontUnit?: "px" | "pt"): string;
|
|
43
48
|
/**
|
|
44
49
|
* Return the position to draw text on a rotated canvas to ensure that the rotated text alignment correspond
|
|
@@ -3,4 +3,4 @@ import { SpreadsheetChildEnv } from "../../types/spreadsheet_env";
|
|
|
3
3
|
export declare const SplitToColumnsInteractiveContent: {
|
|
4
4
|
SplitIsDestructive: string;
|
|
5
5
|
};
|
|
6
|
-
export declare function interactiveSplitToColumns(env: SpreadsheetChildEnv
|
|
6
|
+
export declare function interactiveSplitToColumns(env: SpreadsheetChildEnv): DispatchResult;
|
|
@@ -1,15 +1,28 @@
|
|
|
1
|
-
import { CommandResult, ResizeViewportCommand, SetViewportOffsetCommand } from "../types/commands";
|
|
2
1
|
import { AnchorOffset, Figure, FigureUI } from "../types/figure";
|
|
3
|
-
import {
|
|
4
|
-
import { CellPosition, Dimension, HeaderDimensions, HeaderIndex, PaneDivision, Pixel, PixelPosition, Position, UID, Zone } from "../types/misc";
|
|
2
|
+
import { ViewportsGetters } from "../types/getters";
|
|
3
|
+
import { CellPosition, Dimension, HeaderDimensions, HeaderIndex, PaneDivision, Pixel, PixelPosition, Position, SheetViewDimensions, UID, Zone } from "../types/misc";
|
|
5
4
|
import { DOMCoordinates, DOMDimension, EdgeScrollInfo, Rect, SheetDOMScrollInfo, Viewport } from "../types/rendering";
|
|
6
5
|
import { InternalViewport } from "./internal_viewport";
|
|
7
6
|
type SheetViewports = {
|
|
8
|
-
topLeft
|
|
9
|
-
bottomLeft
|
|
10
|
-
topRight
|
|
7
|
+
topLeft?: InternalViewport;
|
|
8
|
+
bottomLeft?: InternalViewport;
|
|
9
|
+
topRight?: InternalViewport;
|
|
11
10
|
bottomRight: InternalViewport;
|
|
12
11
|
};
|
|
12
|
+
interface PositionedViewport {
|
|
13
|
+
viewport: InternalViewport;
|
|
14
|
+
viewportX: Pixel;
|
|
15
|
+
viewportY: Pixel;
|
|
16
|
+
}
|
|
17
|
+
interface ViewportCollectionArgs {
|
|
18
|
+
getters: ViewportsGetters;
|
|
19
|
+
paneDivision: Record<UID, PaneDivision>;
|
|
20
|
+
sheetViewWidth: Pixel;
|
|
21
|
+
sheetViewHeight: Pixel;
|
|
22
|
+
getZoomLevel: () => number;
|
|
23
|
+
getFooterSize: () => number;
|
|
24
|
+
zoneToDisplay?: Zone;
|
|
25
|
+
}
|
|
13
26
|
/**
|
|
14
27
|
* EdgeScrollCases Schema
|
|
15
28
|
*
|
|
@@ -46,15 +59,18 @@ type SheetViewports = {
|
|
|
46
59
|
* ↓ ↓
|
|
47
60
|
*/
|
|
48
61
|
export declare class ViewportCollection {
|
|
49
|
-
|
|
50
|
-
private sheetViewWidth;
|
|
51
|
-
private sheetViewHeight;
|
|
52
|
-
private zoomLevel;
|
|
53
|
-
getters: RenderingGetters;
|
|
62
|
+
getters: ViewportsGetters;
|
|
54
63
|
viewports: Record<UID, SheetViewports | undefined>;
|
|
55
64
|
private gridOffsetX;
|
|
56
65
|
private gridOffsetY;
|
|
57
|
-
|
|
66
|
+
private paneDivision;
|
|
67
|
+
private sheetViewWidth;
|
|
68
|
+
private sheetViewHeight;
|
|
69
|
+
getZoomLevel: () => number;
|
|
70
|
+
private getFooterSize;
|
|
71
|
+
private zoneToDisplay?;
|
|
72
|
+
constructor(args: ViewportCollectionArgs);
|
|
73
|
+
changeViewportArgs(args: Partial<ViewportCollectionArgs>): void;
|
|
58
74
|
/**
|
|
59
75
|
* Return the index of a column given an offset x, based on the viewport left
|
|
60
76
|
* visible cell.
|
|
@@ -94,7 +110,7 @@ export declare class ViewportCollection {
|
|
|
94
110
|
* Check if a given position is visible in the viewport.
|
|
95
111
|
*/
|
|
96
112
|
isVisibleInViewport({ sheetId, col, row }: CellPosition): boolean;
|
|
97
|
-
|
|
113
|
+
isZoneVisibleInViewport(sheetId: UID, zone: Zone): boolean;
|
|
98
114
|
getEdgeScrollCol(sheetId: UID, x: number, previousX: number, startingX: number): EdgeScrollInfo;
|
|
99
115
|
getEdgeScrollRow(sheetId: UID, y: number, previousY: number, startingY: number): EdgeScrollInfo;
|
|
100
116
|
/**
|
|
@@ -139,21 +155,28 @@ export declare class ViewportCollection {
|
|
|
139
155
|
zone: Zone;
|
|
140
156
|
rect: Rect;
|
|
141
157
|
}[];
|
|
142
|
-
getViewportZoomLevel(): number;
|
|
143
158
|
ensureMainViewportExist(sheetId: UID): void;
|
|
159
|
+
getPanesDimensions(sheetId: UID): {
|
|
160
|
+
paneWidth: number;
|
|
161
|
+
paneHeight: number;
|
|
162
|
+
};
|
|
163
|
+
getPositionedViewports(sheetId: UID): PositionedViewport[];
|
|
144
164
|
getSubViewports(sheetId: UID): InternalViewport[];
|
|
145
|
-
checkPositiveDimension(
|
|
146
|
-
checkValuesAreDifferent(
|
|
165
|
+
checkPositiveDimension(dims: SheetViewDimensions): boolean;
|
|
166
|
+
checkValuesAreDifferent(dims: SheetViewDimensions): boolean;
|
|
147
167
|
checkScrollingDirection(sheetId: UID, { offsetX, offsetY }: {
|
|
148
168
|
offsetX: Pixel;
|
|
149
169
|
offsetY: Pixel;
|
|
150
|
-
}):
|
|
151
|
-
checkIfViewportsWillChange(sheetId: UID, { offsetX, offsetY }:
|
|
170
|
+
}): boolean;
|
|
171
|
+
checkIfViewportsWillChange(sheetId: UID, { offsetX, offsetY }: {
|
|
172
|
+
offsetX: Pixel;
|
|
173
|
+
offsetY: Pixel;
|
|
174
|
+
}): boolean;
|
|
152
175
|
getMainViewport(sheetId: UID): Viewport;
|
|
153
176
|
getMainInternalViewport(sheetId: UID): InternalViewport;
|
|
154
177
|
/** gets rid of deprecated sheetIds */
|
|
155
178
|
cleanViewports(): void;
|
|
156
|
-
resizeSheetView(
|
|
179
|
+
resizeSheetView(dimensions: SheetViewDimensions): void;
|
|
157
180
|
recomputeViewports(): void;
|
|
158
181
|
setSheetViewOffset(sheetId: UID, offsetX: Pixel, offsetY: Pixel): void;
|
|
159
182
|
getViewportOffset(sheetId: UID): {
|
|
@@ -161,6 +184,15 @@ export declare class ViewportCollection {
|
|
|
161
184
|
y: number | Pixel;
|
|
162
185
|
};
|
|
163
186
|
resetViewports(sheetId: UID): void;
|
|
187
|
+
/**
|
|
188
|
+
* Depending on how `this.zoneToDisplay` intersects the viewports, we may need to reorganize the viewports to ensure that
|
|
189
|
+
* `viewports.bottomRight` is always defined.
|
|
190
|
+
*
|
|
191
|
+
* For example if `this.zoneToDisplay` is only intersecting the bottom-left viewport, we need to treat the bottom-left
|
|
192
|
+
* viewport as the bottom-right viewport.
|
|
193
|
+
*/
|
|
194
|
+
private reorganizeViewportZones;
|
|
195
|
+
private getViewportZones;
|
|
164
196
|
/**
|
|
165
197
|
* Adjust the viewport such that the anchor position is visible
|
|
166
198
|
*/
|
|
@@ -188,8 +220,6 @@ export declare class ViewportCollection {
|
|
|
188
220
|
private mapViewportsToRect;
|
|
189
221
|
getGridOffsetX(): Pixel;
|
|
190
222
|
getGridOffsetY(): Pixel;
|
|
191
|
-
getZoomLevel(): number;
|
|
192
|
-
setZoomLevel(zoomLevel: number): void;
|
|
193
223
|
private getPaneDivisions;
|
|
194
224
|
setPaneDivision(sheetId: UID, paneDivision: PaneDivision): void;
|
|
195
225
|
}
|