igniteui-webcomponents-grids 3.2.2 → 3.2.4
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/bundles/igniteui-webcomponents-grids.umd.js +10275 -9381
- package/bundles/igniteui-webcomponents-grids.umd.min.js +1 -1
- package/esm2015/lib/BaseEditorView.js +5 -0
- package/esm2015/lib/CanvasCellPresenterBase.js +10 -10
- package/esm2015/lib/CanvasContentCellModelHelper.js +11 -11
- package/esm2015/lib/CanvasDateTimeCellPresenter.js +2 -2
- package/esm2015/lib/CanvasGridCellBase.js +305 -289
- package/esm2015/lib/CanvasImageCell.js +29 -29
- package/esm2015/lib/CanvasImageCellPresenter.js +7 -7
- package/esm2015/lib/CanvasNumericCell.js +2 -2
- package/esm2015/lib/CanvasNumericCellPresenter.js +3 -3
- package/esm2015/lib/CanvasSectionHeaderCell.js +3 -3
- package/esm2015/lib/CanvasSectionHeaderCellPresenter.js +2 -2
- package/esm2015/lib/CanvasSummaryCell.js +51 -51
- package/esm2015/lib/CanvasSummaryCellPresenter.js +5 -5
- package/esm2015/lib/CanvasTemplateCell.js +7 -7
- package/esm2015/lib/CanvasTemplateCellPresenter.js +3 -3
- package/esm2015/lib/CanvasTemplateHeaderCell.js +7 -7
- package/esm2015/lib/CanvasTemplateHeaderCellPresenter.js +2 -2
- package/esm2015/lib/CanvasTextCell.js +3 -3
- package/esm2015/lib/CanvasTextCellPresenter.js +2 -2
- package/esm2015/lib/CanvasTextHeaderCell.js +24 -24
- package/esm2015/lib/CanvasTextHeaderCellPresenter.js +11 -11
- package/esm2015/lib/CellPresenterBase.js +1 -1
- package/esm2015/lib/CheckboxListView_combined.js +341 -306
- package/esm2015/lib/ColumnChooserView_combined.js +22 -22
- package/esm2015/lib/ColumnFilterCondition_combined.js +7531 -7208
- package/esm2015/lib/ColumnGroupDescription.js +22 -0
- package/esm2015/lib/ColumnGroupDescriptionCollection.js +14 -8
- package/esm2015/lib/ColumnGroupingView_combined.js +25 -25
- package/esm2015/lib/ColumnPinningView_combined.js +22 -22
- package/esm2015/lib/ColumnSortDescriptionCollection.js +12 -6
- package/esm2015/lib/ColumnSummaryDescriptionCollection.js +12 -6
- package/esm2015/lib/ComboEditorView.js +6 -3
- package/esm2015/lib/ComparisonOperatorSelectorView_combined.js +23 -18
- package/esm2015/lib/DataGridAccessibilityLayoutPanel.js +5 -5
- package/esm2015/lib/DataGridCellLayoutPanel.js +27 -25
- package/esm2015/lib/DataGridScrollerKeyboardListener.js +15 -15
- package/esm2015/lib/DataGridToolbarView_combined.js +17 -17
- package/esm2015/lib/DateTimeColumnValueFormatter.js +90 -1
- package/esm2015/lib/GridColumnFilterOptionsView_combined.js +25 -25
- package/esm2015/lib/GridColumnGroupOptionsView_combined.js +10 -10
- package/esm2015/lib/GridColumnHideOptionsView_combined.js +3 -3
- package/esm2015/lib/GridColumnMoveOptionsView_combined.js +6 -6
- package/esm2015/lib/GridColumnOptionsViewBase_combined.js +2 -2
- package/esm2015/lib/GridColumnOptionsView_combined.js +1 -1
- package/esm2015/lib/GridColumnPinOptionsView_combined.js +5 -5
- package/esm2015/lib/GridColumnSortOptionsView_combined.js +5 -5
- package/esm2015/lib/GridColumnSummaryOptionsView_combined.js +15 -15
- package/esm2015/lib/GridExternalWrapper.js +18 -6
- package/esm2015/lib/GridFilterDialogView_combined.js +1 -1
- package/esm2015/lib/ISummaryChooserView_combined.js +13 -13
- package/esm2015/lib/MultiColumnComboBoxView_combined.js +47 -47
- package/esm2015/lib/MultiColumnComboVisualModelExport.js +1 -1
- package/esm2015/lib/NumericCellPresenter.js +1 -1
- package/esm2015/lib/PropertyEditorView_combined.js +40 -40
- package/esm2015/lib/TemplateCellPresenter.js +1 -1
- package/esm2015/lib/TemplateHeader.js +8 -8
- package/esm2015/lib/TemplateHeaderCellPresenter.js +1 -1
- package/esm2015/lib/TemplateSectionHeader.js +2 -2
- package/esm2015/lib/TextEditorView.js +28 -10
- package/esm2015/lib/VerticalSeparatorCell.js +46 -8
- package/esm2015/lib/VisualModelExport.js +120 -100
- package/esm2015/lib/igc-checkbox-list-component.js +74 -54
- package/esm2015/lib/igc-column-component.js +164 -164
- package/esm2015/lib/igc-column-group-description-collection.js +13 -3
- package/esm2015/lib/igc-column-moving-separator-component.js +9 -9
- package/esm2015/lib/igc-column-resizing-separator-component.js +6 -6
- package/esm2015/lib/igc-column-sort-description-collection.js +13 -3
- package/esm2015/lib/igc-column-summary-description-collection.js +13 -3
- package/esm2015/lib/igc-combo-box-column-component.js +10 -10
- package/esm2015/lib/igc-data-grid-component.js +699 -593
- package/esm2015/lib/igc-date-time-column-component.js +23 -23
- package/esm2015/lib/igc-definition-base-component.js +50 -50
- package/esm2015/lib/igc-filter-row-definition-component.js +12 -12
- package/esm2015/lib/igc-header-component.js +24 -24
- package/esm2015/lib/igc-image-column-component.js +12 -12
- package/esm2015/lib/igc-numeric-column-component.js +35 -35
- package/esm2015/lib/igc-section-header-component.js +24 -24
- package/esm2015/lib/igc-summary-row-component.js +24 -24
- package/esm2015/lib/igc-text-column-component.js +9 -9
- package/esm5/lib/BaseEditorView.js +5 -0
- package/esm5/lib/CanvasCellPresenterBase.js +10 -10
- package/esm5/lib/CanvasContentCellModelHelper.js +11 -11
- package/esm5/lib/CanvasDateTimeCellPresenter.js +2 -2
- package/esm5/lib/CanvasGridCellBase.js +304 -288
- package/esm5/lib/CanvasImageCell.js +28 -28
- package/esm5/lib/CanvasImageCellPresenter.js +7 -7
- package/esm5/lib/CanvasNumericCell.js +2 -2
- package/esm5/lib/CanvasNumericCellPresenter.js +3 -3
- package/esm5/lib/CanvasSectionHeaderCell.js +3 -3
- package/esm5/lib/CanvasSectionHeaderCellPresenter.js +2 -2
- package/esm5/lib/CanvasSummaryCell.js +51 -51
- package/esm5/lib/CanvasSummaryCellPresenter.js +5 -5
- package/esm5/lib/CanvasTemplateCell.js +7 -7
- package/esm5/lib/CanvasTemplateCellPresenter.js +3 -3
- package/esm5/lib/CanvasTemplateHeaderCell.js +7 -7
- package/esm5/lib/CanvasTemplateHeaderCellPresenter.js +2 -2
- package/esm5/lib/CanvasTextCell.js +3 -3
- package/esm5/lib/CanvasTextCellPresenter.js +2 -2
- package/esm5/lib/CanvasTextHeaderCell.js +24 -24
- package/esm5/lib/CanvasTextHeaderCellPresenter.js +11 -11
- package/esm5/lib/CellPresenterBase.js +1 -1
- package/esm5/lib/CheckboxListView_combined.js +339 -296
- package/esm5/lib/ColumnChooserView_combined.js +22 -22
- package/esm5/lib/ColumnFilterCondition_combined.js +7352 -6962
- package/esm5/lib/ColumnGroupDescription.js +22 -0
- package/esm5/lib/ColumnGroupDescriptionCollection.js +18 -8
- package/esm5/lib/ColumnGroupingView_combined.js +25 -25
- package/esm5/lib/ColumnPinningView_combined.js +22 -22
- package/esm5/lib/ColumnSortDescriptionCollection.js +16 -6
- package/esm5/lib/ColumnSummaryDescriptionCollection.js +16 -6
- package/esm5/lib/ComboEditorView.js +6 -3
- package/esm5/lib/ComparisonOperatorSelectorView_combined.js +23 -18
- package/esm5/lib/DataGridAccessibilityLayoutPanel.js +5 -5
- package/esm5/lib/DataGridCellLayoutPanel.js +27 -25
- package/esm5/lib/DataGridScrollerKeyboardListener.js +15 -15
- package/esm5/lib/DataGridToolbarView_combined.js +17 -17
- package/esm5/lib/DateTimeColumnValueFormatter.js +92 -1
- package/esm5/lib/GridColumnFilterOptionsView_combined.js +25 -25
- package/esm5/lib/GridColumnGroupOptionsView_combined.js +10 -10
- package/esm5/lib/GridColumnHideOptionsView_combined.js +3 -3
- package/esm5/lib/GridColumnMoveOptionsView_combined.js +6 -6
- package/esm5/lib/GridColumnOptionsViewBase_combined.js +2 -2
- package/esm5/lib/GridColumnOptionsView_combined.js +1 -1
- package/esm5/lib/GridColumnPinOptionsView_combined.js +5 -5
- package/esm5/lib/GridColumnSortOptionsView_combined.js +5 -5
- package/esm5/lib/GridColumnSummaryOptionsView_combined.js +15 -15
- package/esm5/lib/GridExternalWrapper.js +18 -6
- package/esm5/lib/GridFilterDialogView_combined.js +1 -1
- package/esm5/lib/ISummaryChooserView_combined.js +13 -13
- package/esm5/lib/MultiColumnComboBoxView_combined.js +47 -47
- package/esm5/lib/MultiColumnComboVisualModelExport.js +1 -1
- package/esm5/lib/NumericCellPresenter.js +1 -1
- package/esm5/lib/PropertyEditorView_combined.js +40 -40
- package/esm5/lib/TemplateCellPresenter.js +1 -1
- package/esm5/lib/TemplateHeader.js +8 -8
- package/esm5/lib/TemplateHeaderCellPresenter.js +1 -1
- package/esm5/lib/TemplateSectionHeader.js +2 -2
- package/esm5/lib/TextEditorView.js +28 -10
- package/esm5/lib/VerticalSeparatorCell.js +46 -8
- package/esm5/lib/VisualModelExport.js +120 -100
- package/esm5/lib/igc-checkbox-list-component.js +82 -54
- package/esm5/lib/igc-column-component.js +164 -164
- package/esm5/lib/igc-column-group-description-collection.js +17 -3
- package/esm5/lib/igc-column-moving-separator-component.js +9 -9
- package/esm5/lib/igc-column-resizing-separator-component.js +6 -6
- package/esm5/lib/igc-column-sort-description-collection.js +17 -3
- package/esm5/lib/igc-column-summary-description-collection.js +17 -3
- package/esm5/lib/igc-combo-box-column-component.js +10 -10
- package/esm5/lib/igc-data-grid-component.js +743 -601
- package/esm5/lib/igc-date-time-column-component.js +23 -23
- package/esm5/lib/igc-definition-base-component.js +50 -50
- package/esm5/lib/igc-filter-row-definition-component.js +12 -12
- package/esm5/lib/igc-header-component.js +24 -24
- package/esm5/lib/igc-image-column-component.js +12 -12
- package/esm5/lib/igc-numeric-column-component.js +35 -35
- package/esm5/lib/igc-section-header-component.js +24 -24
- package/esm5/lib/igc-summary-row-component.js +24 -24
- package/esm5/lib/igc-text-column-component.js +9 -9
- package/fesm2015/igniteui-webcomponents-grids.js +10315 -9565
- package/fesm5/igniteui-webcomponents-grids.js +10276 -9382
- package/lib/CanvasGridCellBase.d.ts +95 -93
- package/lib/CanvasImageCell.d.ts +11 -11
- package/lib/CanvasSectionHeaderCell.d.ts +1 -1
- package/lib/CanvasSummaryCell.d.ts +15 -15
- package/lib/CanvasTemplateCell.d.ts +4 -4
- package/lib/CanvasTemplateHeaderCell.d.ts +4 -4
- package/lib/CanvasTextCell.d.ts +1 -1
- package/lib/CanvasTextHeaderCell.d.ts +6 -6
- package/lib/CheckboxListView_combined.d.ts +74 -69
- package/lib/ColumnFilterCondition_combined.d.ts +1306 -1264
- package/lib/ColumnGroupDescription.d.ts +1 -0
- package/lib/ColumnGroupDescriptionCollection.d.ts +8 -7
- package/lib/ColumnSortDescriptionCollection.d.ts +8 -7
- package/lib/ColumnSummaryDescriptionCollection.d.ts +8 -7
- package/lib/DataGridCellLayoutPanel.d.ts +1 -0
- package/lib/DateTimeColumnValueFormatter.d.ts +19 -1
- package/lib/GridExternalWrapper.d.ts +4 -0
- package/lib/TemplateHeader.d.ts +3 -3
- package/lib/TemplateSectionHeader.d.ts +2 -2
- package/lib/TextEditorView.d.ts +5 -3
- package/lib/VerticalSeparatorCell.d.ts +9 -0
- package/lib/VisualModelExport.d.ts +31 -26
- package/lib/igc-checkbox-list-component.d.ts +9 -0
- package/lib/igc-column-group-description-collection.d.ts +4 -0
- package/lib/igc-column-sort-description-collection.d.ts +4 -0
- package/lib/igc-column-summary-description-collection.d.ts +4 -0
- package/lib/igc-data-grid-component.d.ts +30 -2
- package/package.json +4 -4
|
@@ -30,52 +30,53 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
30
30
|
this.s = true;
|
|
31
31
|
this.o = true;
|
|
32
32
|
this.k = null;
|
|
33
|
-
this.
|
|
33
|
+
this.bm = null;
|
|
34
34
|
this.q = false;
|
|
35
|
-
this.
|
|
35
|
+
this.b0 = null;
|
|
36
36
|
this.l = false;
|
|
37
|
-
this.
|
|
38
|
-
this.at = 5;
|
|
39
|
-
this.av = 5;
|
|
37
|
+
this.aq = 1;
|
|
40
38
|
this.au = 5;
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
39
|
+
this.aw = 5;
|
|
40
|
+
this.av = 5;
|
|
41
|
+
this.at = 5;
|
|
42
|
+
this.cy = null;
|
|
45
43
|
this.ai = 0;
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
44
|
+
this.ak = 0;
|
|
45
|
+
this.aj = 0;
|
|
46
|
+
this.ah = 0;
|
|
47
|
+
this.c6 = new Rectangle();
|
|
48
|
+
this.c2 = new Line();
|
|
49
|
+
this.c5 = new Line();
|
|
49
50
|
this.c3 = new Line();
|
|
50
51
|
this.c1 = new Line();
|
|
51
|
-
this.
|
|
52
|
-
this.
|
|
53
|
-
this.az = 0;
|
|
54
|
-
this.a1 = 0;
|
|
52
|
+
this.c4 = new Line();
|
|
53
|
+
this.a0 = 0;
|
|
55
54
|
this.a2 = 0;
|
|
56
55
|
this.a3 = 0;
|
|
57
|
-
this.
|
|
56
|
+
this.a4 = 0;
|
|
57
|
+
this.bo = null;
|
|
58
58
|
this.j = null;
|
|
59
|
+
this.am = 0;
|
|
59
60
|
this.al = 0;
|
|
60
|
-
this.
|
|
61
|
+
this.ao = 0;
|
|
61
62
|
this.an = 0;
|
|
62
|
-
this.am = 0;
|
|
63
63
|
this.u = true;
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
64
|
+
this.v = true;
|
|
65
|
+
this.a1 = NaN;
|
|
66
|
+
this.cx = new TextBlock();
|
|
67
|
+
this.c0 = Color.u(255, 0, 0, 0);
|
|
67
68
|
this.t = true;
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
69
|
+
this.as = 0;
|
|
70
|
+
this.a5 = 0;
|
|
71
|
+
this.cz = Color.u(255, 255, 255, 255);
|
|
71
72
|
this.m = false;
|
|
72
73
|
this.g = null;
|
|
73
74
|
this.c = 0;
|
|
74
75
|
this.e = 0;
|
|
75
|
-
this.
|
|
76
|
+
this.bz = 1;
|
|
76
77
|
this.r = false;
|
|
78
|
+
this.az = 0;
|
|
77
79
|
this.ay = 0;
|
|
78
|
-
this.ax = 0;
|
|
79
80
|
this.i = ((() => {
|
|
80
81
|
let $ret = new FontInfo();
|
|
81
82
|
$ret.n = "Verdana";
|
|
@@ -83,30 +84,30 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
83
84
|
return $ret;
|
|
84
85
|
})());
|
|
85
86
|
this.p = true;
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
88
|
-
this.
|
|
87
|
+
this.br = -1;
|
|
88
|
+
this.bx = 0;
|
|
89
|
+
this.by = 0;
|
|
89
90
|
this.n = false;
|
|
90
|
-
this.
|
|
91
|
+
this.bp = 0;
|
|
91
92
|
this.b = 0;
|
|
92
|
-
this.
|
|
93
|
+
this.ar = NaN;
|
|
93
94
|
this.h = null;
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
95
|
+
this.bt = -1;
|
|
96
|
+
this.ap = NaN;
|
|
96
97
|
this.f = 1;
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
98
|
+
this.ax = 1;
|
|
99
|
+
this.bm = a;
|
|
99
100
|
}
|
|
100
|
-
get
|
|
101
|
+
get aa() {
|
|
101
102
|
return this.o;
|
|
102
103
|
}
|
|
103
|
-
set
|
|
104
|
+
set aa(a) {
|
|
104
105
|
this.o = a;
|
|
105
106
|
}
|
|
106
|
-
|
|
107
|
+
cm(a) {
|
|
107
108
|
this.k = a;
|
|
108
109
|
}
|
|
109
|
-
|
|
110
|
+
b7() {
|
|
110
111
|
this.o = true;
|
|
111
112
|
if (this.k != null) {
|
|
112
113
|
this.k();
|
|
@@ -115,8 +116,8 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
115
116
|
get isCanvasBased() {
|
|
116
117
|
return true;
|
|
117
118
|
}
|
|
118
|
-
get
|
|
119
|
-
return this.
|
|
119
|
+
get bn() {
|
|
120
|
+
return this.bm;
|
|
120
121
|
}
|
|
121
122
|
get isRemoved() {
|
|
122
123
|
return this.q;
|
|
@@ -124,226 +125,241 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
124
125
|
set isRemoved(a) {
|
|
125
126
|
this.q = a;
|
|
126
127
|
}
|
|
127
|
-
|
|
128
|
-
this.
|
|
128
|
+
co(a) {
|
|
129
|
+
this.b0 = a;
|
|
129
130
|
this.o = true;
|
|
130
131
|
this.s = true;
|
|
131
132
|
}
|
|
132
133
|
get templateContext() {
|
|
133
134
|
return this.j.g();
|
|
134
135
|
}
|
|
135
|
-
get
|
|
136
|
+
get w() {
|
|
136
137
|
return this.l;
|
|
137
138
|
}
|
|
138
|
-
set
|
|
139
|
+
set w(a) {
|
|
139
140
|
this.l = a;
|
|
140
141
|
}
|
|
141
|
-
|
|
142
|
+
get_ac() {
|
|
142
143
|
return false;
|
|
143
144
|
}
|
|
144
|
-
get
|
|
145
|
-
return this.
|
|
145
|
+
get ac() {
|
|
146
|
+
return this.get_ac();
|
|
146
147
|
}
|
|
147
|
-
|
|
148
|
+
ce(a, b, c, d, e) {
|
|
148
149
|
this.o = true;
|
|
149
|
-
this.
|
|
150
|
-
this.
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
153
|
-
this.
|
|
150
|
+
this.cy = a;
|
|
151
|
+
this.ai = b;
|
|
152
|
+
this.ak = c;
|
|
153
|
+
this.aj = d;
|
|
154
|
+
this.ah = e;
|
|
154
155
|
this.s = true;
|
|
155
156
|
}
|
|
156
|
-
|
|
157
|
+
cf(a) {
|
|
157
158
|
this.o = true;
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
160
|
-
}
|
|
161
|
-
get bb() {
|
|
162
|
-
return this.at;
|
|
163
|
-
}
|
|
164
|
-
get bd() {
|
|
165
|
-
return this.av;
|
|
159
|
+
this.aq = a;
|
|
160
|
+
this.cx._opacity = this.aq;
|
|
166
161
|
}
|
|
167
162
|
get bc() {
|
|
168
163
|
return this.au;
|
|
169
164
|
}
|
|
170
|
-
get
|
|
171
|
-
return this.
|
|
165
|
+
get be() {
|
|
166
|
+
return this.aw;
|
|
172
167
|
}
|
|
173
|
-
get
|
|
174
|
-
return this.
|
|
168
|
+
get bd() {
|
|
169
|
+
return this.av;
|
|
175
170
|
}
|
|
176
|
-
get
|
|
177
|
-
return this.
|
|
171
|
+
get bb() {
|
|
172
|
+
return this.at;
|
|
178
173
|
}
|
|
179
174
|
get a7() {
|
|
180
175
|
return this.ai;
|
|
181
176
|
}
|
|
182
|
-
get
|
|
183
|
-
return this.
|
|
177
|
+
get a9() {
|
|
178
|
+
return this.ak;
|
|
184
179
|
}
|
|
185
|
-
get
|
|
186
|
-
return this.
|
|
180
|
+
get a8() {
|
|
181
|
+
return this.aj;
|
|
187
182
|
}
|
|
188
|
-
get
|
|
189
|
-
return this.
|
|
183
|
+
get a6() {
|
|
184
|
+
return this.ah;
|
|
185
|
+
}
|
|
186
|
+
get bg() {
|
|
187
|
+
return this.a0;
|
|
190
188
|
}
|
|
191
189
|
get bi() {
|
|
192
|
-
return this.
|
|
190
|
+
return this.a2;
|
|
193
191
|
}
|
|
194
|
-
|
|
192
|
+
get bj() {
|
|
193
|
+
return this.a4;
|
|
194
|
+
}
|
|
195
|
+
get_ad() {
|
|
195
196
|
return false;
|
|
196
197
|
}
|
|
197
|
-
get
|
|
198
|
-
return this.
|
|
198
|
+
get ad() {
|
|
199
|
+
return this.get_ad();
|
|
199
200
|
}
|
|
200
|
-
|
|
201
|
+
b3(a, b, c, d, e, f) {
|
|
201
202
|
let g = true;
|
|
202
203
|
let h = true;
|
|
203
204
|
let i = false;
|
|
204
|
-
if (this.
|
|
205
|
+
if (this.ad) {
|
|
205
206
|
g = false;
|
|
206
207
|
h = false;
|
|
207
208
|
i = false;
|
|
208
209
|
}
|
|
209
|
-
this.
|
|
210
|
+
this.b4(a, b, c, d, e, f, g, h, i);
|
|
210
211
|
}
|
|
211
212
|
get resized() {
|
|
212
213
|
return this.u;
|
|
213
214
|
}
|
|
214
215
|
ensureCorrectSize() {
|
|
215
|
-
this.u = this.
|
|
216
|
+
this.u = this.x(this.ax);
|
|
216
217
|
return this.u;
|
|
217
218
|
}
|
|
218
|
-
|
|
219
|
+
b4(a, b, c, d, e, f, g, h, i) {
|
|
219
220
|
if (!this.t) {
|
|
220
221
|
return;
|
|
221
222
|
}
|
|
222
|
-
if (this.
|
|
223
|
-
a.ad(this.
|
|
223
|
+
if (this.bz != 1) {
|
|
224
|
+
a.ad(this.bz);
|
|
225
|
+
}
|
|
226
|
+
let j = this.j;
|
|
227
|
+
if (!this.v) {
|
|
228
|
+
j = a;
|
|
224
229
|
}
|
|
225
|
-
this.
|
|
230
|
+
this.ax = f;
|
|
226
231
|
if (!i) {
|
|
227
|
-
this.
|
|
232
|
+
this.b5();
|
|
228
233
|
this.ensureCorrectSize();
|
|
229
234
|
}
|
|
230
|
-
if (this.
|
|
231
|
-
this.
|
|
232
|
-
|
|
233
|
-
if (this.p || this.u || (this.i != null && this.i.g != this.bq)) {
|
|
235
|
+
if (this.aa || this.u || i || !this.v) {
|
|
236
|
+
this.aa = false;
|
|
237
|
+
if (this.p || this.u || (this.i != null && this.i.g != this.br)) {
|
|
234
238
|
this.p = false;
|
|
235
|
-
this.
|
|
239
|
+
this.br = this.i.g;
|
|
236
240
|
j.ac(this.i);
|
|
237
241
|
}
|
|
238
242
|
if (f != 1) {
|
|
239
|
-
|
|
240
|
-
|
|
243
|
+
j.z();
|
|
244
|
+
j.aa(f, f);
|
|
245
|
+
}
|
|
246
|
+
if (!this.v) {
|
|
247
|
+
j.z();
|
|
248
|
+
let k = Math.round((d - b));
|
|
249
|
+
let l = Math.round((e - c));
|
|
250
|
+
j.af(k, l);
|
|
241
251
|
}
|
|
242
252
|
if (g) {
|
|
243
|
-
this.
|
|
253
|
+
this.b8(j);
|
|
244
254
|
}
|
|
245
255
|
if (h) {
|
|
246
|
-
this.
|
|
256
|
+
this.b9(j);
|
|
257
|
+
}
|
|
258
|
+
if (!this.v) {
|
|
259
|
+
j.y();
|
|
247
260
|
}
|
|
248
261
|
if (f != 1) {
|
|
249
|
-
|
|
262
|
+
j.y();
|
|
250
263
|
}
|
|
251
264
|
}
|
|
252
|
-
if (!i) {
|
|
253
|
-
let
|
|
254
|
-
let
|
|
255
|
-
if (this.
|
|
256
|
-
a.m(this.
|
|
265
|
+
if (!i && this.v) {
|
|
266
|
+
let m = Math.round((d - b) * f);
|
|
267
|
+
let n = Math.round((e - c) * f);
|
|
268
|
+
if (this.am == this.ao && this.al == this.an) {
|
|
269
|
+
a.m(this.bu(), 1, m, n, this.am, this.al);
|
|
257
270
|
}
|
|
258
271
|
else {
|
|
259
|
-
a.n(this.
|
|
272
|
+
a.n(this.bu(), 1, 0, 0, this.am, this.al, m, n, this.am, this.al);
|
|
260
273
|
}
|
|
261
274
|
}
|
|
262
|
-
if (this.
|
|
275
|
+
if (this.bz != 1) {
|
|
263
276
|
a.ad(1);
|
|
264
277
|
}
|
|
265
278
|
}
|
|
266
|
-
|
|
279
|
+
bu() {
|
|
280
|
+
return this.bo.getNativeElement();
|
|
281
|
+
}
|
|
282
|
+
b8(a) {
|
|
267
283
|
if (!this.m) {
|
|
268
|
-
|
|
269
|
-
}
|
|
270
|
-
this.
|
|
271
|
-
this.
|
|
272
|
-
this.
|
|
273
|
-
this.
|
|
274
|
-
|
|
275
|
-
if (this.
|
|
276
|
-
if (this.ah > 0) {
|
|
277
|
-
this.c0.am = 0;
|
|
278
|
-
this.c0.ak = this.ah / 2;
|
|
279
|
-
this.c0.an = this.ar;
|
|
280
|
-
this.c0.al = this.ah / 2;
|
|
281
|
-
this.c0._stroke = this.cw;
|
|
282
|
-
this.c0.ac = this.ah;
|
|
283
|
-
this.j.r(this.c0);
|
|
284
|
-
}
|
|
284
|
+
a.k(0, 0, this.ao, this.an);
|
|
285
|
+
}
|
|
286
|
+
this.c6.n = 0;
|
|
287
|
+
this.c6.o = 0;
|
|
288
|
+
this.c6.width = this.a5;
|
|
289
|
+
this.c6.height = this.as;
|
|
290
|
+
a.v(this.c6);
|
|
291
|
+
if (this.cy != null) {
|
|
285
292
|
if (this.ai > 0) {
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
292
|
-
|
|
293
|
+
this.c2.am = 0;
|
|
294
|
+
this.c2.ak = this.ai / 2;
|
|
295
|
+
this.c2.an = this.as;
|
|
296
|
+
this.c2.al = this.ai / 2;
|
|
297
|
+
this.c2._stroke = this.cy;
|
|
298
|
+
this.c2.ac = this.ai;
|
|
299
|
+
a.r(this.c2);
|
|
293
300
|
}
|
|
294
301
|
if (this.aj > 0) {
|
|
295
|
-
this.c3.am =
|
|
296
|
-
this.c3.ak = this.
|
|
297
|
-
this.c3.an = this.
|
|
298
|
-
this.c3.al = Math.max(0, (this.
|
|
299
|
-
this.c3._stroke = this.
|
|
302
|
+
this.c3.am = 0;
|
|
303
|
+
this.c3.ak = Math.max(0, (this.a5 - (this.aj / 2)));
|
|
304
|
+
this.c3.an = this.as;
|
|
305
|
+
this.c3.al = Math.max(0, (this.a5 - (this.aj / 2)));
|
|
306
|
+
this.c3._stroke = this.cy;
|
|
300
307
|
this.c3.ac = this.aj;
|
|
301
|
-
|
|
308
|
+
a.r(this.c3);
|
|
302
309
|
}
|
|
303
|
-
if (this.
|
|
304
|
-
this.
|
|
305
|
-
this.
|
|
306
|
-
this.
|
|
307
|
-
this.
|
|
308
|
-
this.
|
|
309
|
-
this.
|
|
310
|
-
|
|
310
|
+
if (this.ak > 0) {
|
|
311
|
+
this.c5.am = this.ak / 2;
|
|
312
|
+
this.c5.ak = this.ai;
|
|
313
|
+
this.c5.an = this.ak / 2;
|
|
314
|
+
this.c5.al = Math.max(0, (this.a5 - (this.aj / 2)));
|
|
315
|
+
this.c5._stroke = this.cy;
|
|
316
|
+
this.c5.ac = this.ak;
|
|
317
|
+
a.r(this.c5);
|
|
318
|
+
}
|
|
319
|
+
if (this.ah > 0) {
|
|
320
|
+
this.c1.am = Math.max(0, this.as - (this.ah / 2));
|
|
321
|
+
this.c1.ak = this.ai;
|
|
322
|
+
this.c1.an = Math.max(0, this.as - (this.ah / 2));
|
|
323
|
+
this.c1.al = Math.max(0, (this.a5 - (this.aj / 2)));
|
|
324
|
+
this.c1._stroke = this.cy;
|
|
325
|
+
this.c1.ac = this.ah;
|
|
326
|
+
a.r(this.c1);
|
|
311
327
|
}
|
|
312
328
|
}
|
|
313
329
|
}
|
|
314
|
-
|
|
315
|
-
this.
|
|
330
|
+
cl(a) {
|
|
331
|
+
this.ax = a;
|
|
316
332
|
}
|
|
317
333
|
renderStandardContent() {
|
|
318
|
-
this.
|
|
334
|
+
this.b4(this.j, 0, 0, 0, 0, this.ax, false, true, true);
|
|
319
335
|
}
|
|
320
336
|
renderStandardBackground() {
|
|
321
|
-
this.
|
|
337
|
+
this.b4(this.j, 0, 0, 0, 0, this.ax, true, false, true);
|
|
322
338
|
}
|
|
323
|
-
|
|
339
|
+
b9(a) {
|
|
324
340
|
if (this.s) {
|
|
325
|
-
this.
|
|
341
|
+
this.cw(a);
|
|
326
342
|
this.s = false;
|
|
327
343
|
}
|
|
328
|
-
if (this.
|
|
329
|
-
this.
|
|
330
|
-
this.
|
|
331
|
-
|
|
344
|
+
if (this.cx.al != null) {
|
|
345
|
+
this.cx.n = this.a0;
|
|
346
|
+
this.cx.o = this.a3;
|
|
347
|
+
a.w(this.cx);
|
|
332
348
|
if (this.r) {
|
|
333
|
-
this.
|
|
334
|
-
this.
|
|
335
|
-
this.
|
|
336
|
-
this.
|
|
337
|
-
this.
|
|
338
|
-
this.
|
|
339
|
-
this.j.r(this.
|
|
349
|
+
this.c4.ac = 1;
|
|
350
|
+
this.c4.ak = this.a0;
|
|
351
|
+
this.c4.am = this.a4 - 2;
|
|
352
|
+
this.c4.al = this.a0 + (this.a2 - this.a0);
|
|
353
|
+
this.c4.an = this.a4 - 2;
|
|
354
|
+
this.c4._stroke = this.cx.ao;
|
|
355
|
+
this.j.r(this.c4);
|
|
340
356
|
}
|
|
341
357
|
}
|
|
342
358
|
}
|
|
343
|
-
|
|
344
|
-
if (this.
|
|
345
|
-
this.
|
|
346
|
-
let a = this.
|
|
359
|
+
b5() {
|
|
360
|
+
if (this.bo == null && this.v) {
|
|
361
|
+
this.bo = this.bm.createElement("canvas");
|
|
362
|
+
let a = this.bm.get2DCanvasContext(this.bo);
|
|
347
363
|
let b = ((() => {
|
|
348
364
|
let $ret = new CanvasViewRenderer();
|
|
349
365
|
$ret.h$d = a;
|
|
@@ -353,82 +369,82 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
353
369
|
this.s = true;
|
|
354
370
|
}
|
|
355
371
|
}
|
|
356
|
-
|
|
357
|
-
let b = Math.round(this.
|
|
358
|
-
let c = Math.round(this.
|
|
359
|
-
this.
|
|
360
|
-
this.
|
|
361
|
-
let d = this.
|
|
362
|
-
let e = this.
|
|
363
|
-
if (d != this.
|
|
364
|
-
this.
|
|
365
|
-
this.
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
368
|
-
this.
|
|
369
|
-
this.
|
|
372
|
+
x(a) {
|
|
373
|
+
let b = Math.round(this.a5 * a);
|
|
374
|
+
let c = Math.round(this.as * a);
|
|
375
|
+
this.am = b;
|
|
376
|
+
this.al = c;
|
|
377
|
+
let d = this.bf(b);
|
|
378
|
+
let e = this.bf(c);
|
|
379
|
+
if (d != this.ao || e != this.an) {
|
|
380
|
+
this.bo.setAttribute("width", d + "px");
|
|
381
|
+
this.bo.setAttribute("height", e + "px");
|
|
382
|
+
this.ao = d;
|
|
383
|
+
this.an = e;
|
|
384
|
+
this.am = b;
|
|
385
|
+
this.al = c;
|
|
370
386
|
return true;
|
|
371
387
|
}
|
|
372
388
|
return false;
|
|
373
389
|
}
|
|
374
|
-
|
|
390
|
+
bf(a) {
|
|
375
391
|
return a;
|
|
376
392
|
}
|
|
377
|
-
|
|
393
|
+
ck(a, b, c, d) {
|
|
378
394
|
this.o = true;
|
|
379
|
-
this.
|
|
380
|
-
this.
|
|
381
|
-
this.
|
|
382
|
-
this.
|
|
395
|
+
this.au = a;
|
|
396
|
+
this.aw = b;
|
|
397
|
+
this.av = c;
|
|
398
|
+
this.at = d;
|
|
383
399
|
this.s = true;
|
|
384
400
|
}
|
|
385
|
-
get
|
|
386
|
-
return this.
|
|
401
|
+
get bh() {
|
|
402
|
+
return this.a1;
|
|
387
403
|
}
|
|
388
|
-
set
|
|
389
|
-
this.
|
|
404
|
+
set bh(a) {
|
|
405
|
+
this.a1 = a;
|
|
390
406
|
}
|
|
391
|
-
|
|
407
|
+
cp(a) {
|
|
392
408
|
this.o = true;
|
|
393
|
-
this.
|
|
394
|
-
this.
|
|
409
|
+
this.c0 = a;
|
|
410
|
+
this.cx.ao = ((() => {
|
|
395
411
|
let $ret = new Brush();
|
|
396
|
-
$ret.color = this.
|
|
412
|
+
$ret.color = this.c0;
|
|
397
413
|
return $ret;
|
|
398
414
|
})());
|
|
399
415
|
}
|
|
400
|
-
|
|
416
|
+
get_ab() {
|
|
401
417
|
return false;
|
|
402
418
|
}
|
|
403
|
-
get
|
|
404
|
-
return this.
|
|
419
|
+
get ab() {
|
|
420
|
+
return this.get_ab();
|
|
405
421
|
}
|
|
406
|
-
get
|
|
422
|
+
get ae() {
|
|
407
423
|
return this.t;
|
|
408
424
|
}
|
|
409
|
-
set
|
|
425
|
+
set ae(a) {
|
|
410
426
|
this.o = true;
|
|
411
427
|
this.t = a;
|
|
412
428
|
}
|
|
413
|
-
get
|
|
414
|
-
return this.
|
|
429
|
+
get ba() {
|
|
430
|
+
return this.as;
|
|
415
431
|
}
|
|
416
|
-
get
|
|
417
|
-
return this.
|
|
432
|
+
get bl() {
|
|
433
|
+
return this.a5;
|
|
418
434
|
}
|
|
419
|
-
|
|
435
|
+
ch(a) {
|
|
420
436
|
this.o = true;
|
|
421
|
-
this.
|
|
422
|
-
this.
|
|
437
|
+
this.as = a;
|
|
438
|
+
this.c6.height = this.as;
|
|
423
439
|
}
|
|
424
|
-
|
|
440
|
+
cr(a) {
|
|
425
441
|
this.o = true;
|
|
426
|
-
this.
|
|
427
|
-
this.
|
|
442
|
+
this.a5 = a;
|
|
443
|
+
this.c6.width = this.a5;
|
|
428
444
|
this.s = true;
|
|
429
445
|
}
|
|
430
|
-
|
|
431
|
-
if (!this.
|
|
446
|
+
b2() {
|
|
447
|
+
if (!this.ac) {
|
|
432
448
|
return;
|
|
433
449
|
}
|
|
434
450
|
this.l = true;
|
|
@@ -438,35 +454,35 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
438
454
|
this.g.l = Color.u(120, 120, 120, 120);
|
|
439
455
|
this.g.h = 0;
|
|
440
456
|
}
|
|
441
|
-
|
|
457
|
+
cd(a) {
|
|
442
458
|
this.o = true;
|
|
443
|
-
this.
|
|
444
|
-
this.m = this.
|
|
445
|
-
this.
|
|
459
|
+
this.cz = a;
|
|
460
|
+
this.m = this.cz.l == 255;
|
|
461
|
+
this.c6._fill = ((() => {
|
|
446
462
|
let $ret = new Brush();
|
|
447
|
-
$ret.color = this.
|
|
463
|
+
$ret.color = this.cz;
|
|
448
464
|
return $ret;
|
|
449
465
|
})());
|
|
450
466
|
}
|
|
451
|
-
|
|
467
|
+
cj(a) {
|
|
452
468
|
this.o = true;
|
|
453
|
-
this.
|
|
469
|
+
this.bz = a;
|
|
454
470
|
}
|
|
455
|
-
|
|
471
|
+
cn(a) {
|
|
456
472
|
this.r = a;
|
|
457
473
|
this.o = true;
|
|
458
474
|
}
|
|
459
|
-
|
|
460
|
-
if (!this.
|
|
475
|
+
cv(a) {
|
|
476
|
+
if (!this.ac) {
|
|
461
477
|
return;
|
|
462
478
|
}
|
|
463
479
|
this.o = true;
|
|
464
480
|
this.g.h = (a * 0.20000000298023224);
|
|
465
481
|
}
|
|
466
|
-
|
|
482
|
+
b6(a, b, c, d) {
|
|
467
483
|
if (this.g != null) {
|
|
468
|
-
let e = this.
|
|
469
|
-
let f = this.
|
|
484
|
+
let e = this.az;
|
|
485
|
+
let f = this.ay;
|
|
470
486
|
if (this.e == 1) {
|
|
471
487
|
b = truncate((b + (d / 2) - (f / 2)));
|
|
472
488
|
}
|
|
@@ -481,14 +497,14 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
481
497
|
}
|
|
482
498
|
}
|
|
483
499
|
}
|
|
484
|
-
|
|
500
|
+
cg(a) {
|
|
485
501
|
this.i = a;
|
|
486
502
|
this.p = true;
|
|
487
503
|
this.o = true;
|
|
488
504
|
this.s = true;
|
|
489
505
|
}
|
|
490
|
-
|
|
491
|
-
if (!this.
|
|
506
|
+
cu(a) {
|
|
507
|
+
if (!this.ac) {
|
|
492
508
|
return;
|
|
493
509
|
}
|
|
494
510
|
this.o = true;
|
|
@@ -496,116 +512,116 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
496
512
|
if (a.ag != null && !isNaN_(a.ag.d)) {
|
|
497
513
|
b = a.ag.d;
|
|
498
514
|
}
|
|
499
|
-
if (this.
|
|
500
|
-
this.
|
|
515
|
+
if (this.ay != b) {
|
|
516
|
+
this.ay = b;
|
|
501
517
|
}
|
|
502
518
|
let c = a.gu * 0.2;
|
|
503
519
|
let d = a.fc * 0.6;
|
|
504
|
-
if (this.
|
|
520
|
+
if (this.az >= c && this.az <= d) {
|
|
505
521
|
return;
|
|
506
522
|
}
|
|
507
|
-
let e = (CanvasGridCellBase.
|
|
508
|
-
if (this.
|
|
509
|
-
this.
|
|
523
|
+
let e = (CanvasGridCellBase.bw.nextDouble() * (d - c) + c);
|
|
524
|
+
if (this.az != e) {
|
|
525
|
+
this.az = e;
|
|
510
526
|
}
|
|
511
527
|
}
|
|
512
|
-
|
|
513
|
-
if (!this.
|
|
528
|
+
cs(a, b) {
|
|
529
|
+
if (!this.ac) {
|
|
514
530
|
return;
|
|
515
531
|
}
|
|
516
532
|
this.o = true;
|
|
517
533
|
this.c = a;
|
|
518
534
|
this.e = b;
|
|
519
535
|
}
|
|
520
|
-
|
|
521
|
-
if (!this.
|
|
536
|
+
ct(a) {
|
|
537
|
+
if (!this.ac) {
|
|
522
538
|
return;
|
|
523
539
|
}
|
|
524
540
|
this.o = true;
|
|
525
541
|
}
|
|
526
|
-
|
|
542
|
+
cc(a) {
|
|
527
543
|
this.a = a;
|
|
528
544
|
}
|
|
529
545
|
get d() {
|
|
530
546
|
return this.b;
|
|
531
547
|
}
|
|
532
|
-
|
|
548
|
+
ci(a) {
|
|
533
549
|
this.b = a;
|
|
534
550
|
this.o = true;
|
|
535
551
|
this.s = true;
|
|
536
552
|
}
|
|
537
|
-
|
|
538
|
-
if (this.
|
|
553
|
+
cw(a) {
|
|
554
|
+
if (this.b0 == null) {
|
|
539
555
|
return;
|
|
540
556
|
}
|
|
541
|
-
if (
|
|
557
|
+
if (a == null) {
|
|
542
558
|
return;
|
|
543
559
|
}
|
|
544
|
-
if (this.p || (this.i != null && this.i.g != this.
|
|
560
|
+
if (this.p || (this.i != null && this.i.g != this.br)) {
|
|
545
561
|
this.p = false;
|
|
546
|
-
this.
|
|
547
|
-
|
|
562
|
+
this.br = this.i.g;
|
|
563
|
+
a.ac(this.i);
|
|
548
564
|
}
|
|
549
|
-
let
|
|
550
|
-
if (this.h != this.i || this.
|
|
565
|
+
let b;
|
|
566
|
+
if (this.h != this.i || this.bt != this.i.g) {
|
|
551
567
|
this.h = this.i;
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
568
|
+
this.bt = this.i.g;
|
|
569
|
+
this.ar = FontUtil.getCurrentFontHeight(this.bm, this.i);
|
|
554
570
|
}
|
|
555
|
-
|
|
556
|
-
let b = 0;
|
|
571
|
+
b = this.ar;
|
|
557
572
|
let c = 0;
|
|
558
|
-
let d =
|
|
559
|
-
let e = this.
|
|
560
|
-
|
|
561
|
-
e -= (this.
|
|
562
|
-
|
|
573
|
+
let d = 0;
|
|
574
|
+
let e = this.a5;
|
|
575
|
+
let f = this.as;
|
|
576
|
+
e -= (this.ai + this.au + this.aj + this.av);
|
|
577
|
+
f -= (this.ak + this.aw + this.ah + this.at);
|
|
563
578
|
e = Math.max(e, 0);
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
579
|
+
f = Math.max(f, 0);
|
|
580
|
+
let g = e;
|
|
581
|
+
if (!isNaN_(this.a1) && this.a1 < e) {
|
|
582
|
+
g = this.a1;
|
|
567
583
|
}
|
|
568
|
-
let
|
|
584
|
+
let h = this.bk(this.cx, this.b0, g, a);
|
|
569
585
|
switch (this.b) {
|
|
570
586
|
case 0:
|
|
571
|
-
|
|
587
|
+
c = this.au + this.ai;
|
|
572
588
|
break;
|
|
573
589
|
case 3:
|
|
574
590
|
case 1:
|
|
575
|
-
|
|
591
|
+
c = this.au + this.ai + ((e / 2) - (h / 2));
|
|
576
592
|
break;
|
|
577
593
|
case 2:
|
|
578
|
-
|
|
594
|
+
c = Math.max(0, (this.a5 - (this.av + this.aj))) - h;
|
|
579
595
|
break;
|
|
580
596
|
}
|
|
581
597
|
switch (this.f) {
|
|
582
598
|
case 0:
|
|
583
|
-
|
|
599
|
+
d = this.aw + this.ak;
|
|
584
600
|
break;
|
|
585
601
|
case 3:
|
|
586
602
|
case 1:
|
|
587
|
-
|
|
603
|
+
d = this.aw + this.ak + ((f / 2) - (b / 2));
|
|
588
604
|
break;
|
|
589
605
|
case 2:
|
|
590
|
-
|
|
606
|
+
d = Math.max(0, (this.as - (this.at + this.ah))) - b;
|
|
591
607
|
break;
|
|
592
608
|
}
|
|
593
|
-
this.
|
|
594
|
-
this.
|
|
595
|
-
this.
|
|
596
|
-
this.
|
|
609
|
+
this.a0 = c;
|
|
610
|
+
this.a2 = this.a0 + h;
|
|
611
|
+
this.a3 = d;
|
|
612
|
+
this.a4 = this.a3 + (b / 2);
|
|
597
613
|
this.o = true;
|
|
598
614
|
}
|
|
599
|
-
|
|
615
|
+
bk(a, b, c, d) {
|
|
600
616
|
let e = b;
|
|
601
617
|
let f = e.length;
|
|
602
618
|
let g = ("\u2026");
|
|
603
|
-
if (isNaN_(this.
|
|
604
|
-
this.
|
|
619
|
+
if (isNaN_(this.ap)) {
|
|
620
|
+
this.ap = d.f(g);
|
|
605
621
|
}
|
|
606
|
-
if (c <= this.
|
|
622
|
+
if (c <= this.ap) {
|
|
607
623
|
a.al = g;
|
|
608
|
-
return this.
|
|
624
|
+
return this.ap;
|
|
609
625
|
}
|
|
610
626
|
let h = d.f(e);
|
|
611
627
|
if (h <= c) {
|
|
@@ -635,28 +651,28 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
635
651
|
a.al = e;
|
|
636
652
|
return h;
|
|
637
653
|
}
|
|
638
|
-
|
|
654
|
+
cq(a) {
|
|
639
655
|
this.f = a;
|
|
640
656
|
this.o = true;
|
|
641
657
|
this.s = true;
|
|
642
658
|
}
|
|
643
|
-
|
|
659
|
+
ag(a) {
|
|
644
660
|
return a.isClickActionDesired;
|
|
645
661
|
}
|
|
646
662
|
onContactStarted(a, b) {
|
|
647
|
-
if (this.a != null && this.
|
|
648
|
-
this.
|
|
649
|
-
this.
|
|
650
|
-
this.a.mouseDownCell(this.
|
|
663
|
+
if (this.a != null && this.ag(this.a)) {
|
|
664
|
+
this.bx = a.pageX;
|
|
665
|
+
this.by = a.pageY;
|
|
666
|
+
this.a.mouseDownCell(this.bx, this.by);
|
|
651
667
|
}
|
|
652
668
|
}
|
|
653
669
|
onContactMoved(a, b) {
|
|
654
|
-
if (this.a != null && this.
|
|
670
|
+
if (this.a != null && this.ag(this.a)) {
|
|
655
671
|
let c = a.pageX;
|
|
656
672
|
let d = a.pageY;
|
|
657
673
|
if (this.a.isMouseDown) {
|
|
658
674
|
if (b) {
|
|
659
|
-
if (PointUtil.equals(this.a.mousePosition, null) || Math.abs(c - this.a.mousePosition.x) > CanvasGridCellBase.
|
|
675
|
+
if (PointUtil.equals(this.a.mousePosition, null) || Math.abs(c - this.a.mousePosition.x) > CanvasGridCellBase.bs || Math.abs(d - this.a.mousePosition.y) > CanvasGridCellBase.bs) {
|
|
660
676
|
this.a.mouseUpCell(c, d);
|
|
661
677
|
}
|
|
662
678
|
else {
|
|
@@ -668,7 +684,7 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
668
684
|
this.a.mouseUpCell(c, d);
|
|
669
685
|
}
|
|
670
686
|
else {
|
|
671
|
-
if (Math.abs(c - this.a.mousePosition.x) > CanvasGridCellBase.
|
|
687
|
+
if (Math.abs(c - this.a.mousePosition.x) > CanvasGridCellBase.bq || Math.abs(d - this.a.mousePosition.y) > CanvasGridCellBase.bq) {
|
|
672
688
|
this.a.isControlPressed = a.ctrlKey;
|
|
673
689
|
this.a.dragStarted();
|
|
674
690
|
}
|
|
@@ -678,10 +694,10 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
678
694
|
}
|
|
679
695
|
}
|
|
680
696
|
onContactCompleted(a, b) {
|
|
681
|
-
if (this.a != null && this.
|
|
697
|
+
if (this.a != null && this.ag(this.a)) {
|
|
682
698
|
let c = a.pageX;
|
|
683
699
|
let d = a.pageY;
|
|
684
|
-
if (PointUtil.equals(this.a.mousePosition, null) || Math.abs(c - this.a.mousePosition.x) > CanvasGridCellBase.
|
|
700
|
+
if (PointUtil.equals(this.a.mousePosition, null) || Math.abs(c - this.a.mousePosition.x) > CanvasGridCellBase.bs || Math.abs(d - this.a.mousePosition.y) > CanvasGridCellBase.bs || this.a.isDrag) {
|
|
685
701
|
this.a.mouseUpCell(c, d);
|
|
686
702
|
}
|
|
687
703
|
if (this.a.isCellDown()) {
|
|
@@ -725,8 +741,8 @@ export let CanvasGridCellBase = /*@__PURE__*/ (() => {
|
|
|
725
741
|
}
|
|
726
742
|
}
|
|
727
743
|
CanvasGridCellBase.$t = /*@__PURE__*/ markType(CanvasGridCellBase, 'CanvasGridCellBase', Base.$, [INativeCell_$type]);
|
|
728
|
-
CanvasGridCellBase.
|
|
729
|
-
CanvasGridCellBase.
|
|
730
|
-
CanvasGridCellBase.
|
|
744
|
+
CanvasGridCellBase.bw = /*@__PURE__*/ new Random(0);
|
|
745
|
+
CanvasGridCellBase.bs = 10;
|
|
746
|
+
CanvasGridCellBase.bq = 3;
|
|
731
747
|
return CanvasGridCellBase;
|
|
732
748
|
})();
|