igniteui-webcomponents-layouts 4.0.4 → 4.2.3-alpha
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-layouts.umd.js +1495 -2681
- package/bundles/igniteui-webcomponents-layouts.umd.min.js +1 -1
- package/esm2015/lib/ListPanelView_combined.js +31 -18
- package/esm2015/lib/PropertyEditorPanelView_combined.js +154 -154
- package/esm2015/lib/PropertyEditorPropertyDescription_combined.js +127 -116
- package/esm2015/lib/ToolActionButton.js +1 -91
- package/esm2015/lib/ToolPanelView_combined.js +862 -692
- package/esm2015/lib/ToolbarView_combined.js +123 -96
- package/esm2015/lib/igc-property-editor-property-description-component.js +66 -31
- package/esm2015/lib/igc-tool-action-component.js +42 -31
- package/esm2015/lib/igc-tool-action-menu-base-component.js +1 -1
- package/esm2015/lib/igc-tool-action-radio-component.js +7 -4
- package/esm2015/lib/igc-tool-panel-component.js +21 -10
- package/esm2015/lib/igc-toolbar-component.js +23 -12
- package/esm2015/public_api.js +0 -13
- package/esm5/lib/ListPanelView_combined.js +31 -18
- package/esm5/lib/PropertyEditorPanelView_combined.js +154 -154
- package/esm5/lib/PropertyEditorPropertyDescription_combined.js +131 -116
- package/esm5/lib/ToolActionButton.js +1 -94
- package/esm5/lib/ToolPanelView_combined.js +877 -693
- package/esm5/lib/ToolbarView_combined.js +123 -92
- package/esm5/lib/igc-property-editor-property-description-component.js +70 -31
- package/esm5/lib/igc-tool-action-component.js +46 -31
- package/esm5/lib/igc-tool-action-menu-base-component.js +1 -1
- package/esm5/lib/igc-tool-action-radio-component.js +6 -3
- package/esm5/lib/igc-tool-panel-component.js +25 -10
- package/esm5/lib/igc-toolbar-component.js +27 -12
- package/esm5/public_api.js +0 -13
- package/fesm2015/igniteui-webcomponents-layouts.js +1460 -2516
- package/fesm5/igniteui-webcomponents-layouts.js +1493 -2663
- package/lib/PropertyEditorPropertyDescription_combined.d.ts +24 -22
- package/lib/ToolActionButton.d.ts +1 -23
- package/lib/ToolPanelView_combined.d.ts +172 -146
- package/lib/ToolbarView_combined.d.ts +33 -28
- package/lib/igc-property-editor-property-description-component.d.ts +3 -0
- package/lib/igc-tool-action-component.d.ts +5 -0
- package/lib/igc-tool-action-radio-component.d.ts +4 -1
- package/lib/igc-tool-panel-component.d.ts +5 -0
- package/lib/igc-toolbar-component.d.ts +5 -0
- package/package.json +3 -3
- package/public_api.d.ts +0 -13
- package/esm2015/lib/OnClosedEventArgs.js +0 -16
- package/esm2015/lib/OnPopupEventArgs.js +0 -16
- package/esm2015/lib/Popup.js +0 -7
- package/esm2015/lib/PopupAlignment.js +0 -29
- package/esm2015/lib/PopupDirection.js +0 -29
- package/esm2015/lib/PopupView.js +0 -7
- package/esm2015/lib/PopupView_combined.js +0 -647
- package/esm2015/lib/PopupVisualModelExport.js +0 -36
- package/esm2015/lib/Popup_InnerAnimationInfo.js +0 -21
- package/esm2015/lib/Popup_OuterAnimationInfo.js +0 -23
- package/esm2015/lib/igc-on-closed-event-args.js +0 -24
- package/esm2015/lib/igc-on-popup-event-args.js +0 -24
- package/esm2015/lib/igc-popup-component.js +0 -388
- package/esm2015/lib/igc-popup-module.js +0 -19
- package/esm5/lib/OnClosedEventArgs.js +0 -20
- package/esm5/lib/OnPopupEventArgs.js +0 -20
- package/esm5/lib/Popup.js +0 -7
- package/esm5/lib/PopupAlignment.js +0 -29
- package/esm5/lib/PopupDirection.js +0 -29
- package/esm5/lib/PopupView.js +0 -7
- package/esm5/lib/PopupView_combined.js +0 -700
- package/esm5/lib/PopupVisualModelExport.js +0 -38
- package/esm5/lib/Popup_InnerAnimationInfo.js +0 -23
- package/esm5/lib/Popup_OuterAnimationInfo.js +0 -25
- package/esm5/lib/igc-on-closed-event-args.js +0 -30
- package/esm5/lib/igc-on-popup-event-args.js +0 -30
- package/esm5/lib/igc-popup-component.js +0 -473
- package/esm5/lib/igc-popup-module.js +0 -23
- package/lib/OnClosedEventArgs.d.ts +0 -7
- package/lib/OnPopupEventArgs.d.ts +0 -7
- package/lib/Popup.d.ts +0 -1
- package/lib/PopupAlignment.d.ts +0 -22
- package/lib/PopupDirection.d.ts +0 -22
- package/lib/PopupView.d.ts +0 -1
- package/lib/PopupView_combined.d.ts +0 -126
- package/lib/PopupVisualModelExport.d.ts +0 -14
- package/lib/Popup_InnerAnimationInfo.d.ts +0 -10
- package/lib/Popup_OuterAnimationInfo.d.ts +0 -12
- package/lib/igc-on-closed-event-args.d.ts +0 -12
- package/lib/igc-on-popup-event-args.d.ts +0 -12
- package/lib/igc-popup-component.d.ts +0 -110
- package/lib/igc-popup-module.d.ts +0 -3
|
@@ -4,7 +4,7 @@ https://www.infragistics.com/legal/license/igultimate-la
|
|
|
4
4
|
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
5
|
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
|
|
6
6
|
*/
|
|
7
|
-
import { Base, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, EnumUtil, runOn, delegateCombine, typeCast, delegateRemove, fromEn, String_$type
|
|
7
|
+
import { Base, markType, INotifyPropertyChanged_$type, PropertyChangedEventArgs, enumGetBox, EnumUtil, runOn, delegateCombine, typeCast, delegateRemove, fromEn, String_$type } from "igniteui-webcomponents-core";
|
|
8
8
|
import { RenderingContext } from "igniteui-webcomponents-core";
|
|
9
9
|
import { FontInfo } from "igniteui-webcomponents-core";
|
|
10
10
|
import { ListPanel } from "./ListPanel";
|
|
@@ -13,10 +13,11 @@ import { CanvasViewRenderer } from "igniteui-webcomponents-core";
|
|
|
13
13
|
import { Size } from "igniteui-webcomponents-core";
|
|
14
14
|
import { NativeUI } from "igniteui-webcomponents-core";
|
|
15
15
|
import { FontUtil } from "igniteui-webcomponents-core";
|
|
16
|
-
import { Popup } from "
|
|
16
|
+
import { Popup } from "igniteui-webcomponents-core";
|
|
17
17
|
import { NativeUIContent } from "igniteui-webcomponents-core";
|
|
18
18
|
import { NativeUIComponent } from "igniteui-webcomponents-core";
|
|
19
19
|
import { Rect } from "igniteui-webcomponents-core";
|
|
20
|
+
import { BaseControlTheme_$type } from "igniteui-webcomponents-core";
|
|
20
21
|
import { ToolActionType_$type } from "igniteui-webcomponents-core";
|
|
21
22
|
import { ToolCommandArgument } from "igniteui-webcomponents-core";
|
|
22
23
|
import { ToolActionMeasurementContext } from "./ToolActionMeasurementContext";
|
|
@@ -33,6 +34,7 @@ import { ObservableCollection$1 } from "igniteui-webcomponents-core";
|
|
|
33
34
|
import { ToolPanelContentRefreshedEventArgs } from "./ToolPanelContentRefreshedEventArgs";
|
|
34
35
|
import { SRProvider } from "igniteui-webcomponents-core";
|
|
35
36
|
import { Dictionary$2 } from "igniteui-webcomponents-core";
|
|
37
|
+
import { NativeUIXInputsFactory } from "igniteui-webcomponents-inputs";
|
|
36
38
|
import { NativeUIInputsFactory } from "igniteui-webcomponents-core";
|
|
37
39
|
/**
|
|
38
40
|
* @hidden
|
|
@@ -88,7 +90,7 @@ export let ToolPanelView = /*@__PURE__*/ (() => {
|
|
|
88
90
|
b.provideContainer(d);
|
|
89
91
|
let e = this.k.getExternal(b, this.k.rootWrapper, this.k.getExternal(this.c, null, null));
|
|
90
92
|
b.externalListPanel = e;
|
|
91
|
-
this.c.
|
|
93
|
+
this.c.at(b);
|
|
92
94
|
let f = Math.round(a.rootWrapper.width());
|
|
93
95
|
let g = Math.round(a.rootWrapper.height());
|
|
94
96
|
this.k.rootWrapper.setStyleProperty("position", "relative");
|
|
@@ -106,7 +108,8 @@ export let ToolPanelView = /*@__PURE__*/ (() => {
|
|
|
106
108
|
let a = this.k.rootWrapper.width();
|
|
107
109
|
let b = this.k.rootWrapper.height();
|
|
108
110
|
this.ad = new Size(1, a, b);
|
|
109
|
-
|
|
111
|
+
this.c.az(this.ad);
|
|
112
|
+
if (this.c.r != null) {
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
ab() {
|
|
@@ -116,8 +119,8 @@ export let ToolPanelView = /*@__PURE__*/ (() => {
|
|
|
116
119
|
}
|
|
117
120
|
let b = a.rootWrapper;
|
|
118
121
|
if (null != b) {
|
|
119
|
-
NativeUI.o(b, this.c.
|
|
120
|
-
NativeUI.k(b, this.c.
|
|
122
|
+
NativeUI.o(b, this.c.be);
|
|
123
|
+
NativeUI.k(b, this.c.bb);
|
|
121
124
|
}
|
|
122
125
|
}
|
|
123
126
|
f() {
|
|
@@ -133,7 +136,7 @@ export let ToolPanelView = /*@__PURE__*/ (() => {
|
|
|
133
136
|
return this.ad.width;
|
|
134
137
|
}
|
|
135
138
|
j(a) {
|
|
136
|
-
this.e = this.c.
|
|
139
|
+
this.e = this.c.q();
|
|
137
140
|
return FontUtil.measureStringWidth(a, this.e, this.g);
|
|
138
141
|
}
|
|
139
142
|
s(a, b) {
|
|
@@ -150,7 +153,7 @@ export let ToolPanelView = /*@__PURE__*/ (() => {
|
|
|
150
153
|
b(a) {
|
|
151
154
|
let b = new ToolPanel();
|
|
152
155
|
let c = this.k.getExternal(b, this.k.rootWrapper, this.k.getExternal(this.c, null, null));
|
|
153
|
-
let d = a.
|
|
156
|
+
let d = a.x;
|
|
154
157
|
d.appendChild(b.l.k.rootWrapper.getNativeElement());
|
|
155
158
|
return b;
|
|
156
159
|
}
|
|
@@ -175,32 +178,33 @@ export let ToolAction = /*@__PURE__*/ (() => {
|
|
|
175
178
|
constructor() {
|
|
176
179
|
super(...arguments);
|
|
177
180
|
this.e = null;
|
|
181
|
+
this.ag = null;
|
|
182
|
+
this.ab = null;
|
|
183
|
+
this.aa = null;
|
|
184
|
+
this.w = null;
|
|
185
|
+
this.f = 0;
|
|
186
|
+
this.m = DeviceUtils.g(5);
|
|
187
|
+
this.n = DeviceUtils.g(5);
|
|
188
|
+
this.l = DeviceUtils.g(2);
|
|
189
|
+
this.o = DeviceUtils.g(2);
|
|
190
|
+
this.af = null;
|
|
178
191
|
this.ae = null;
|
|
179
|
-
this.z = null;
|
|
180
|
-
this.y = null;
|
|
181
|
-
this.u = null;
|
|
182
|
-
this.k = DeviceUtils.g(5);
|
|
183
|
-
this.l = DeviceUtils.g(5);
|
|
184
|
-
this.j = DeviceUtils.g(2);
|
|
185
|
-
this.m = DeviceUtils.g(2);
|
|
186
192
|
this.ad = null;
|
|
187
193
|
this.ac = null;
|
|
188
|
-
this.ab = null;
|
|
189
|
-
this.aa = null;
|
|
190
194
|
this.propertyChanged = null;
|
|
191
195
|
this.onCommand = null;
|
|
192
196
|
this.performed = null;
|
|
193
197
|
}
|
|
194
|
-
get
|
|
195
|
-
if (this.
|
|
196
|
-
return this.
|
|
198
|
+
get ar() {
|
|
199
|
+
if (this.au != null) {
|
|
200
|
+
return this.au;
|
|
197
201
|
}
|
|
198
|
-
if (this.
|
|
199
|
-
return this.
|
|
202
|
+
if (this.as != null) {
|
|
203
|
+
return this.a4(this.as);
|
|
200
204
|
}
|
|
201
205
|
return null;
|
|
202
206
|
}
|
|
203
|
-
|
|
207
|
+
a4(a) {
|
|
204
208
|
return stringReplace(a, " ", "_");
|
|
205
209
|
}
|
|
206
210
|
b(a) {
|
|
@@ -211,83 +215,103 @@ export let ToolAction = /*@__PURE__*/ (() => {
|
|
|
211
215
|
return $ret;
|
|
212
216
|
})());
|
|
213
217
|
}
|
|
214
|
-
|
|
218
|
+
i() {
|
|
215
219
|
return ((() => {
|
|
216
220
|
let $ret = new ToolCommandArgument();
|
|
217
|
-
$ret.argumentName = this.
|
|
218
|
-
$ret.value = this.
|
|
221
|
+
$ret.argumentName = this.a2();
|
|
222
|
+
$ret.value = this.y();
|
|
219
223
|
return $ret;
|
|
220
224
|
})());
|
|
221
225
|
}
|
|
222
|
-
|
|
223
|
-
if (this.
|
|
224
|
-
return this.
|
|
226
|
+
a2() {
|
|
227
|
+
if (this.ai != null) {
|
|
228
|
+
return this.ai;
|
|
225
229
|
}
|
|
226
|
-
return this.
|
|
230
|
+
return this.ar != null ? this.ar : "Unknown";
|
|
227
231
|
}
|
|
228
|
-
|
|
229
|
-
if (this.
|
|
230
|
-
return this.
|
|
232
|
+
y() {
|
|
233
|
+
if (this.x != null) {
|
|
234
|
+
return this.x;
|
|
231
235
|
}
|
|
232
|
-
return this.
|
|
236
|
+
return this.z();
|
|
233
237
|
}
|
|
234
|
-
|
|
238
|
+
z() {
|
|
235
239
|
return null;
|
|
236
240
|
}
|
|
237
|
-
get
|
|
238
|
-
return this.
|
|
241
|
+
get a0() {
|
|
242
|
+
return this.ag;
|
|
239
243
|
}
|
|
240
|
-
set
|
|
241
|
-
let b = this.
|
|
242
|
-
this.
|
|
243
|
-
if (b != this.
|
|
244
|
-
this.
|
|
244
|
+
set a0(a) {
|
|
245
|
+
let b = this.ag;
|
|
246
|
+
this.ag = a;
|
|
247
|
+
if (b != this.ag) {
|
|
248
|
+
this.bb("ParentId", b, this.ag);
|
|
245
249
|
}
|
|
246
250
|
}
|
|
247
|
-
|
|
248
|
-
if (this.
|
|
249
|
-
return this.
|
|
251
|
+
a3() {
|
|
252
|
+
if (this.al != null) {
|
|
253
|
+
return this.al;
|
|
254
|
+
}
|
|
255
|
+
return this.ar;
|
|
256
|
+
}
|
|
257
|
+
get al() {
|
|
258
|
+
return this.ab;
|
|
259
|
+
}
|
|
260
|
+
set al(a) {
|
|
261
|
+
let b = this.ab;
|
|
262
|
+
this.ab = a;
|
|
263
|
+
if (b != this.ab) {
|
|
264
|
+
this.bb("CommandId", b, this.ab);
|
|
250
265
|
}
|
|
251
|
-
return this.ao;
|
|
252
266
|
}
|
|
253
267
|
get ai() {
|
|
254
|
-
return this.
|
|
268
|
+
return this.aa;
|
|
255
269
|
}
|
|
256
270
|
set ai(a) {
|
|
257
|
-
let b = this.
|
|
258
|
-
this.
|
|
259
|
-
if (b != this.
|
|
260
|
-
this.
|
|
271
|
+
let b = this.aa;
|
|
272
|
+
this.aa = a;
|
|
273
|
+
if (b != this.aa) {
|
|
274
|
+
this.bb("CommandArgument", b, this.aa);
|
|
261
275
|
}
|
|
262
276
|
}
|
|
263
|
-
get
|
|
264
|
-
return this.
|
|
277
|
+
get x() {
|
|
278
|
+
return this.w;
|
|
265
279
|
}
|
|
266
|
-
set
|
|
267
|
-
let b = this.
|
|
268
|
-
this.
|
|
269
|
-
if (b != this.
|
|
270
|
-
this.
|
|
280
|
+
set x(a) {
|
|
281
|
+
let b = this.w;
|
|
282
|
+
this.w = a;
|
|
283
|
+
if (b != this.w) {
|
|
284
|
+
this.bb("CommandArgumentValue", b, this.w);
|
|
271
285
|
}
|
|
272
286
|
}
|
|
273
|
-
get
|
|
274
|
-
return this.
|
|
287
|
+
get g() {
|
|
288
|
+
return this.f;
|
|
275
289
|
}
|
|
276
|
-
set
|
|
277
|
-
let b = this.
|
|
278
|
-
this.
|
|
279
|
-
if (b != this.
|
|
280
|
-
this.
|
|
290
|
+
set g(a) {
|
|
291
|
+
let b = this.f;
|
|
292
|
+
this.f = a;
|
|
293
|
+
if (b != this.f) {
|
|
294
|
+
this.bb("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, a));
|
|
281
295
|
}
|
|
282
296
|
}
|
|
283
|
-
get
|
|
284
|
-
return this.
|
|
297
|
+
get t() {
|
|
298
|
+
return this.m;
|
|
285
299
|
}
|
|
286
|
-
set
|
|
287
|
-
let b = this.
|
|
288
|
-
this.
|
|
289
|
-
if (b != this.
|
|
290
|
-
this.
|
|
300
|
+
set t(a) {
|
|
301
|
+
let b = this.m;
|
|
302
|
+
this.m = a;
|
|
303
|
+
if (b != this.m) {
|
|
304
|
+
this.bb("PaddingLeft", b, this.m);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
get u() {
|
|
308
|
+
return this.n;
|
|
309
|
+
}
|
|
310
|
+
set u(a) {
|
|
311
|
+
let b = this.n;
|
|
312
|
+
this.n = a;
|
|
313
|
+
if (b != this.n) {
|
|
314
|
+
this.bb("PaddingRight", b, this.n);
|
|
291
315
|
}
|
|
292
316
|
}
|
|
293
317
|
get s() {
|
|
@@ -297,98 +321,95 @@ export let ToolAction = /*@__PURE__*/ (() => {
|
|
|
297
321
|
let b = this.l;
|
|
298
322
|
this.l = a;
|
|
299
323
|
if (b != this.l) {
|
|
300
|
-
this.
|
|
324
|
+
this.bb("PaddingBottom", b, this.l);
|
|
301
325
|
}
|
|
302
326
|
}
|
|
303
|
-
get
|
|
304
|
-
return this.
|
|
327
|
+
get v() {
|
|
328
|
+
return this.o;
|
|
305
329
|
}
|
|
306
|
-
set
|
|
307
|
-
let b = this.
|
|
308
|
-
this.
|
|
309
|
-
if (b != this.
|
|
310
|
-
this.
|
|
330
|
+
set v(a) {
|
|
331
|
+
let b = this.o;
|
|
332
|
+
this.o = a;
|
|
333
|
+
if (b != this.o) {
|
|
334
|
+
this.bb("PaddingTop", b, this.o);
|
|
311
335
|
}
|
|
312
336
|
}
|
|
313
|
-
get
|
|
314
|
-
return this.
|
|
337
|
+
get k() {
|
|
338
|
+
return this.a0 != null;
|
|
315
339
|
}
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
340
|
+
get au() {
|
|
341
|
+
return this.af;
|
|
342
|
+
}
|
|
343
|
+
set au(a) {
|
|
344
|
+
let b = this.af;
|
|
345
|
+
this.af = a;
|
|
346
|
+
if (b != this.af) {
|
|
347
|
+
this.bb("Name", b, this.af);
|
|
321
348
|
}
|
|
322
349
|
}
|
|
323
|
-
get
|
|
324
|
-
return this.
|
|
350
|
+
get as() {
|
|
351
|
+
return this.ae;
|
|
325
352
|
}
|
|
326
|
-
|
|
353
|
+
set as(a) {
|
|
354
|
+
let b = this.ae;
|
|
355
|
+
this.ae = a;
|
|
356
|
+
if (b != this.ae) {
|
|
357
|
+
this.bb("Label", b, this.ae);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
get ap() {
|
|
327
361
|
return this.ad;
|
|
328
362
|
}
|
|
329
|
-
set
|
|
363
|
+
set ap(a) {
|
|
330
364
|
let b = this.ad;
|
|
331
365
|
this.ad = a;
|
|
332
366
|
if (b != this.ad) {
|
|
333
|
-
this.
|
|
367
|
+
this.bb("IconName", b, this.ad);
|
|
334
368
|
}
|
|
335
369
|
}
|
|
336
|
-
get
|
|
370
|
+
get an() {
|
|
337
371
|
return this.ac;
|
|
338
372
|
}
|
|
339
|
-
set
|
|
373
|
+
set an(a) {
|
|
340
374
|
let b = this.ac;
|
|
341
375
|
this.ac = a;
|
|
342
376
|
if (b != this.ac) {
|
|
343
|
-
this.
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
get am() {
|
|
347
|
-
return this.ab;
|
|
348
|
-
}
|
|
349
|
-
set am(a) {
|
|
350
|
-
let b = this.ab;
|
|
351
|
-
this.ab = a;
|
|
352
|
-
if (b != this.ab) {
|
|
353
|
-
this.a8("IconName", b, this.ab);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
get ak() {
|
|
357
|
-
return this.aa;
|
|
358
|
-
}
|
|
359
|
-
set ak(a) {
|
|
360
|
-
let b = this.aa;
|
|
361
|
-
this.aa = a;
|
|
362
|
-
if (b != this.aa) {
|
|
363
|
-
this.a8("IconCollectionName", b, this.aa);
|
|
377
|
+
this.bb("IconCollectionName", b, this.ac);
|
|
364
378
|
}
|
|
365
379
|
}
|
|
366
|
-
|
|
380
|
+
bb(a, b, c) {
|
|
367
381
|
if (this.propertyChanged != null) {
|
|
368
382
|
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
369
383
|
}
|
|
370
|
-
this.
|
|
384
|
+
this.bf(a, b, c);
|
|
371
385
|
}
|
|
372
|
-
|
|
386
|
+
get_h() {
|
|
373
387
|
return 0;
|
|
374
388
|
}
|
|
375
|
-
get
|
|
376
|
-
return this.
|
|
389
|
+
get h() {
|
|
390
|
+
return this.get_h();
|
|
377
391
|
}
|
|
378
|
-
|
|
392
|
+
bf(a, b, c) {
|
|
393
|
+
switch (a) {
|
|
394
|
+
case "BaseTheme":
|
|
395
|
+
this.bh();
|
|
396
|
+
break;
|
|
397
|
+
}
|
|
379
398
|
}
|
|
380
|
-
|
|
381
|
-
this.bb(a, b, c, d);
|
|
399
|
+
bh() {
|
|
382
400
|
}
|
|
383
|
-
|
|
401
|
+
bd(a, b, c, d) {
|
|
402
|
+
this.be(a, b, c, d);
|
|
384
403
|
}
|
|
385
|
-
|
|
386
|
-
this.a5(a, b);
|
|
404
|
+
be(a, b, c, d) {
|
|
387
405
|
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
406
|
+
a7(a, b) {
|
|
407
|
+
this.a8(a, b);
|
|
408
|
+
}
|
|
409
|
+
a8(a, b) {
|
|
410
|
+
b.e = this.p(a, b);
|
|
411
|
+
b.g = this.r(a, b);
|
|
412
|
+
b.f = this.q(a, b);
|
|
392
413
|
if (b.a == 1) {
|
|
393
414
|
let c = 0;
|
|
394
415
|
if (!isNaN_(b.e)) {
|
|
@@ -400,36 +421,36 @@ export let ToolAction = /*@__PURE__*/ (() => {
|
|
|
400
421
|
if (!isNaN_(b.f)) {
|
|
401
422
|
c += b.f;
|
|
402
423
|
}
|
|
403
|
-
c += (this.
|
|
424
|
+
c += (this.t + this.u);
|
|
404
425
|
b.d = c;
|
|
405
426
|
}
|
|
406
427
|
}
|
|
407
|
-
|
|
428
|
+
q(a, b) {
|
|
408
429
|
return NaN;
|
|
409
430
|
}
|
|
410
|
-
|
|
411
|
-
if (this.
|
|
431
|
+
r(a, b) {
|
|
432
|
+
if (this.as == null) {
|
|
412
433
|
return NaN;
|
|
413
434
|
}
|
|
414
|
-
let c = a.l.j(this.
|
|
435
|
+
let c = a.l.j(this.as);
|
|
415
436
|
return c;
|
|
416
437
|
}
|
|
417
|
-
|
|
438
|
+
p(a, b) {
|
|
418
439
|
return NaN;
|
|
419
440
|
}
|
|
420
|
-
|
|
421
|
-
this.
|
|
422
|
-
if (this.
|
|
423
|
-
let c = this.e.c(this.
|
|
441
|
+
bc(a, b) {
|
|
442
|
+
this.bg();
|
|
443
|
+
if (this.k) {
|
|
444
|
+
let c = this.e.c(this.a0);
|
|
424
445
|
if (c != null) {
|
|
425
|
-
c.
|
|
446
|
+
c.ba(this);
|
|
426
447
|
}
|
|
427
448
|
}
|
|
428
449
|
else {
|
|
429
|
-
if (this.e.
|
|
450
|
+
if (this.e.w(this)) {
|
|
430
451
|
if (this.performed != null) {
|
|
431
452
|
let d = new ToolActionEventDetailCollection();
|
|
432
|
-
this.
|
|
453
|
+
this.a6(this, d, b);
|
|
433
454
|
this.performed(this, ((() => {
|
|
434
455
|
let $ret = new ToolActionPerformedEventArgs();
|
|
435
456
|
$ret.c = true;
|
|
@@ -450,15 +471,15 @@ export let ToolAction = /*@__PURE__*/ (() => {
|
|
|
450
471
|
}
|
|
451
472
|
}
|
|
452
473
|
}
|
|
453
|
-
|
|
454
|
-
let a = this.
|
|
474
|
+
bg() {
|
|
475
|
+
let a = this.a3();
|
|
455
476
|
if (a == null) {
|
|
456
477
|
return;
|
|
457
478
|
}
|
|
458
479
|
let b = new ToolCommand();
|
|
459
480
|
b.commandId = a;
|
|
460
481
|
let c = new List$1(ToolCommandArgument.$, 0);
|
|
461
|
-
this.
|
|
482
|
+
this.a5(this, c);
|
|
462
483
|
b.argumentsList = c.toArray();
|
|
463
484
|
if (this.onCommand != null) {
|
|
464
485
|
this.onCommand(this, ((() => {
|
|
@@ -468,44 +489,44 @@ export let ToolAction = /*@__PURE__*/ (() => {
|
|
|
468
489
|
})()));
|
|
469
490
|
}
|
|
470
491
|
if (this.e != null) {
|
|
471
|
-
this.e.
|
|
492
|
+
this.e.a1(this, b);
|
|
472
493
|
}
|
|
473
494
|
}
|
|
474
|
-
|
|
475
|
-
let c = a.
|
|
495
|
+
a5(a, b) {
|
|
496
|
+
let c = a.i();
|
|
476
497
|
if (c != null) {
|
|
477
498
|
b.add(c);
|
|
478
499
|
}
|
|
479
|
-
let d = this.e.
|
|
500
|
+
let d = this.e.aa(a);
|
|
480
501
|
if (d != null) {
|
|
481
502
|
for (let e = 0; e < d.count; e++) {
|
|
482
|
-
if (d._inner[e].
|
|
483
|
-
this.
|
|
503
|
+
if (d._inner[e].j()) {
|
|
504
|
+
this.a5(d._inner[e], b);
|
|
484
505
|
}
|
|
485
506
|
}
|
|
486
507
|
}
|
|
487
508
|
}
|
|
488
|
-
|
|
509
|
+
j() {
|
|
489
510
|
return true;
|
|
490
511
|
}
|
|
491
|
-
|
|
492
|
-
if (this.
|
|
493
|
-
let b = this.e.c(this.
|
|
512
|
+
ba(a) {
|
|
513
|
+
if (this.k) {
|
|
514
|
+
let b = this.e.c(this.a0);
|
|
494
515
|
if (b != null) {
|
|
495
|
-
b.
|
|
516
|
+
b.ba(a);
|
|
496
517
|
}
|
|
497
518
|
}
|
|
498
519
|
else {
|
|
499
|
-
this.
|
|
520
|
+
this.bc(this.b(false), a);
|
|
500
521
|
}
|
|
501
522
|
}
|
|
502
|
-
|
|
523
|
+
a6(a, b, c) {
|
|
503
524
|
let d = a.b(a == c);
|
|
504
525
|
b.add(d);
|
|
505
|
-
let e = this.e.
|
|
526
|
+
let e = this.e.aa(a);
|
|
506
527
|
if (e != null) {
|
|
507
528
|
for (let f = 0; f < e.count; f++) {
|
|
508
|
-
this.
|
|
529
|
+
this.a6(e._inner[f], b, c);
|
|
509
530
|
}
|
|
510
531
|
}
|
|
511
532
|
}
|
|
@@ -536,82 +557,166 @@ export let ToolAction = /*@__PURE__*/ (() => {
|
|
|
536
557
|
case 8:
|
|
537
558
|
b = new ToolActionIconMenu();
|
|
538
559
|
break;
|
|
560
|
+
case 9:
|
|
561
|
+
b = new ToolActionButton();
|
|
562
|
+
break;
|
|
539
563
|
case 0: return null;
|
|
540
564
|
}
|
|
541
|
-
b.
|
|
565
|
+
b.a9(a);
|
|
542
566
|
return b;
|
|
543
567
|
}
|
|
544
|
-
|
|
545
|
-
this.
|
|
546
|
-
this.
|
|
547
|
-
this.
|
|
548
|
-
this.
|
|
549
|
-
this.
|
|
550
|
-
this.
|
|
551
|
-
this.
|
|
552
|
-
this.
|
|
553
|
-
this.
|
|
554
|
-
this.
|
|
555
|
-
this.
|
|
556
|
-
this.
|
|
568
|
+
a9(a) {
|
|
569
|
+
this.au = a.name;
|
|
570
|
+
this.as = a.label;
|
|
571
|
+
this.ai = a.commandArgument;
|
|
572
|
+
this.x = a.commandArgumentValue;
|
|
573
|
+
this.al = a.commandId;
|
|
574
|
+
this.ap = a.iconName;
|
|
575
|
+
this.an = a.iconCollectionName;
|
|
576
|
+
this.t = a.paddingLeft;
|
|
577
|
+
this.u = a.paddingRight;
|
|
578
|
+
this.v = a.paddingTop;
|
|
579
|
+
this.s = a.paddingBottom;
|
|
580
|
+
this.a0 = a.parentId;
|
|
557
581
|
}
|
|
558
582
|
}
|
|
559
583
|
ToolAction.$t = /*@__PURE__*/ markType(ToolAction, 'ToolAction', Base.$, [INotifyPropertyChanged_$type]);
|
|
560
584
|
return ToolAction;
|
|
561
585
|
})();
|
|
586
|
+
/**
|
|
587
|
+
* @hidden
|
|
588
|
+
*/
|
|
589
|
+
export let ToolActionButton = /*@__PURE__*/ (() => {
|
|
590
|
+
class ToolActionButton extends ToolAction {
|
|
591
|
+
constructor() {
|
|
592
|
+
super(...arguments);
|
|
593
|
+
this.bi = null;
|
|
594
|
+
}
|
|
595
|
+
get_h() {
|
|
596
|
+
return 9;
|
|
597
|
+
}
|
|
598
|
+
i() {
|
|
599
|
+
return null;
|
|
600
|
+
}
|
|
601
|
+
b(a) {
|
|
602
|
+
let b = new ToolActionEventDetail();
|
|
603
|
+
b.a = this;
|
|
604
|
+
b.b = this.h;
|
|
605
|
+
b.d = a;
|
|
606
|
+
return b;
|
|
607
|
+
}
|
|
608
|
+
r(a, b) {
|
|
609
|
+
return NaN;
|
|
610
|
+
}
|
|
611
|
+
q(a, b) {
|
|
612
|
+
return 88;
|
|
613
|
+
}
|
|
614
|
+
bk(a, b, c, d, e, f, g) {
|
|
615
|
+
if (a.y == null || EnumUtil.getEnumValue(ToolActionType_$type, a.y) != this.h) {
|
|
616
|
+
a.a6 = b;
|
|
617
|
+
if (g.a == 1) {
|
|
618
|
+
b.f = 0;
|
|
619
|
+
}
|
|
620
|
+
else {
|
|
621
|
+
b.f = 3;
|
|
622
|
+
}
|
|
623
|
+
b.bd(0, 2, 1);
|
|
624
|
+
b.bc(0, 0, 1);
|
|
625
|
+
b.ax = new Thickness(1, this.t, this.v, this.u, this.s);
|
|
626
|
+
if (b.a0 == 0) {
|
|
627
|
+
b.a1(c);
|
|
628
|
+
}
|
|
629
|
+
b.bh(c, 0);
|
|
630
|
+
b.bg(c, 0);
|
|
631
|
+
this.bi = c;
|
|
632
|
+
this.bi.a0 = 2;
|
|
633
|
+
this.bi.az = runOn(this, this.bj);
|
|
634
|
+
}
|
|
635
|
+
c.a1 = this.as;
|
|
636
|
+
b.j = f.a.j;
|
|
637
|
+
}
|
|
638
|
+
bj(a, b) {
|
|
639
|
+
this.bc(this.b(true), this);
|
|
640
|
+
}
|
|
641
|
+
be(a, b, c, d) {
|
|
642
|
+
super.be(a, b, c, d);
|
|
643
|
+
let e = c.b;
|
|
644
|
+
if (e.a6 == null || (e.y == null || EnumUtil.getEnumValue(ToolActionType_$type, e.y) != this.h)) {
|
|
645
|
+
let f = [7, 1];
|
|
646
|
+
let g = [0, 0];
|
|
647
|
+
if (this.g >= 3 && this.g <= 6) {
|
|
648
|
+
g = [0, 2];
|
|
649
|
+
}
|
|
650
|
+
NativeUIComponent.ae(b.l.r(), f, g, (h) => {
|
|
651
|
+
let i = h[0];
|
|
652
|
+
let j = h[1];
|
|
653
|
+
e.a6 = i;
|
|
654
|
+
this.bk(e, i, j, a, b, c, d);
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
else {
|
|
658
|
+
let h = e.a6;
|
|
659
|
+
let i = h.az(0);
|
|
660
|
+
this.bk(e, h, i, a, b, c, d);
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
ToolActionButton.$t = /*@__PURE__*/ markType(ToolActionButton, 'ToolActionButton', ToolAction.$);
|
|
665
|
+
return ToolActionButton;
|
|
666
|
+
})();
|
|
562
667
|
/**
|
|
563
668
|
* @hidden
|
|
564
669
|
*/
|
|
565
670
|
export let ToolActionLabel = /*@__PURE__*/ (() => {
|
|
566
671
|
class ToolActionLabel extends ToolAction {
|
|
567
|
-
|
|
672
|
+
get_h() {
|
|
568
673
|
return 4;
|
|
569
674
|
}
|
|
570
|
-
|
|
571
|
-
if (a.
|
|
572
|
-
a.
|
|
675
|
+
bj(a, b, c, d, e, f, g) {
|
|
676
|
+
if (a.y == null || EnumUtil.getEnumValue(ToolActionType_$type, a.y) != this.h) {
|
|
677
|
+
a.a6 = b;
|
|
573
678
|
if (g.a == 1) {
|
|
574
|
-
b.
|
|
679
|
+
b.f = 0;
|
|
575
680
|
}
|
|
576
681
|
else {
|
|
577
|
-
b.
|
|
682
|
+
b.f = 3;
|
|
578
683
|
}
|
|
579
|
-
b.
|
|
580
|
-
b.
|
|
581
|
-
b.
|
|
582
|
-
b.
|
|
583
|
-
if (b.
|
|
584
|
-
b.
|
|
684
|
+
b.bd(0, 2, 1);
|
|
685
|
+
b.bc(0, 1, isNaN_(g.e) ? 0 : g.e);
|
|
686
|
+
b.bc(1, 1, isNaN_(g.g) ? 0 : g.g);
|
|
687
|
+
b.ax = new Thickness(1, this.t, this.v, this.u, this.s);
|
|
688
|
+
if (b.a0 == 0) {
|
|
689
|
+
b.a1(c);
|
|
585
690
|
}
|
|
586
|
-
b.
|
|
587
|
-
b.
|
|
588
|
-
c.
|
|
589
|
-
b.
|
|
691
|
+
b.bh(c, 0);
|
|
692
|
+
b.bg(c, 1);
|
|
693
|
+
c.g = 1;
|
|
694
|
+
b.a7 = runOn(this, this.bi);
|
|
590
695
|
}
|
|
591
|
-
b.
|
|
592
|
-
b.
|
|
593
|
-
c.
|
|
594
|
-
c.
|
|
696
|
+
b.j = f.a.j;
|
|
697
|
+
b.ao = BrushUtil.g(0, 0, 0, 0);
|
|
698
|
+
c.az = this.as;
|
|
699
|
+
c.aq = BrushUtil.g(255, 20, 20, 20);
|
|
595
700
|
}
|
|
596
|
-
|
|
597
|
-
this.
|
|
701
|
+
bi(a, b) {
|
|
702
|
+
this.bc(this.b(false), this);
|
|
598
703
|
}
|
|
599
|
-
|
|
600
|
-
super.
|
|
704
|
+
be(a, b, c, d) {
|
|
705
|
+
super.be(a, b, c, d);
|
|
601
706
|
let e = c.b;
|
|
602
|
-
if (e.
|
|
603
|
-
NativeUIComponent.
|
|
707
|
+
if (e.a6 == null || (e.y == null || EnumUtil.getEnumValue(ToolActionType_$type, e.y) != this.h)) {
|
|
708
|
+
NativeUIComponent.af(b.l.r(), [7, 3], (f) => {
|
|
604
709
|
let g = f[0];
|
|
605
710
|
let h = f[1];
|
|
606
|
-
e.
|
|
607
|
-
this.
|
|
711
|
+
e.a6 = g;
|
|
712
|
+
this.bj(e, g, h, a, b, c, d);
|
|
608
713
|
});
|
|
609
714
|
;
|
|
610
715
|
}
|
|
611
716
|
else {
|
|
612
|
-
let f = e.
|
|
613
|
-
let g = f.
|
|
614
|
-
this.
|
|
717
|
+
let f = e.a6;
|
|
718
|
+
let g = f.az(0);
|
|
719
|
+
this.bj(e, f, g, a, b, c, d);
|
|
615
720
|
}
|
|
616
721
|
}
|
|
617
722
|
}
|
|
@@ -625,87 +730,103 @@ export let ToolActionRadio = /*@__PURE__*/ (() => {
|
|
|
625
730
|
class ToolActionRadio extends ToolAction {
|
|
626
731
|
constructor() {
|
|
627
732
|
super(...arguments);
|
|
628
|
-
this.
|
|
629
|
-
this.
|
|
733
|
+
this.bj = "channel_1";
|
|
734
|
+
this.bi = null;
|
|
630
735
|
}
|
|
631
|
-
|
|
736
|
+
get_h() {
|
|
632
737
|
return 6;
|
|
633
738
|
}
|
|
739
|
+
get bk() {
|
|
740
|
+
return this.bj;
|
|
741
|
+
}
|
|
742
|
+
set bk(a) {
|
|
743
|
+
this.bj = a;
|
|
744
|
+
}
|
|
634
745
|
b(a) {
|
|
635
746
|
let b = new ToolActionEventDetail();
|
|
636
747
|
b.a = this;
|
|
637
|
-
b.b = this.
|
|
748
|
+
b.b = this.h;
|
|
638
749
|
b.d = a;
|
|
639
|
-
if (this.
|
|
640
|
-
b.c = this.
|
|
750
|
+
if (this.bi != null) {
|
|
751
|
+
b.c = this.bi.a1;
|
|
641
752
|
}
|
|
642
753
|
return b;
|
|
643
754
|
}
|
|
644
|
-
|
|
645
|
-
return this.
|
|
755
|
+
z() {
|
|
756
|
+
return this.bi.a1;
|
|
646
757
|
}
|
|
647
|
-
|
|
648
|
-
if (this.
|
|
649
|
-
this.
|
|
758
|
+
bl() {
|
|
759
|
+
if (this.bi != null) {
|
|
760
|
+
this.bi.a1 = false;
|
|
650
761
|
}
|
|
651
762
|
}
|
|
652
|
-
|
|
763
|
+
q(a, b) {
|
|
653
764
|
return 30;
|
|
654
765
|
}
|
|
655
|
-
|
|
656
|
-
if (
|
|
657
|
-
|
|
766
|
+
bh() {
|
|
767
|
+
if (this.bi != null) {
|
|
768
|
+
this.bi.c = this.g;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
bn(a, b, c, d, e, f, g, h) {
|
|
772
|
+
if (a.y == null || EnumUtil.getEnumValue(ToolActionType_$type, a.y) != this.h) {
|
|
773
|
+
a.a6 = b;
|
|
658
774
|
if (h.a == 1) {
|
|
659
|
-
b.
|
|
775
|
+
b.f = 0;
|
|
660
776
|
}
|
|
661
777
|
else {
|
|
662
|
-
b.
|
|
778
|
+
b.f = 3;
|
|
663
779
|
}
|
|
664
|
-
b.
|
|
665
|
-
b.
|
|
666
|
-
b.
|
|
667
|
-
b.
|
|
668
|
-
b.
|
|
669
|
-
if (b.
|
|
670
|
-
b.
|
|
671
|
-
b.
|
|
780
|
+
b.bd(0, 2, 1);
|
|
781
|
+
b.bc(0, 1, isNaN_(h.e) ? 0 : h.e);
|
|
782
|
+
b.bc(1, 1, isNaN_(h.g) ? 0 : h.g);
|
|
783
|
+
b.bc(2, 2, 1);
|
|
784
|
+
b.ax = new Thickness(1, this.t, this.v, this.u, this.s);
|
|
785
|
+
if (b.a0 == 0) {
|
|
786
|
+
b.a1(c);
|
|
787
|
+
b.a1(d);
|
|
672
788
|
}
|
|
673
|
-
b.
|
|
674
|
-
b.
|
|
675
|
-
b.
|
|
676
|
-
b.
|
|
677
|
-
this.
|
|
678
|
-
d.
|
|
679
|
-
d.
|
|
680
|
-
d.
|
|
681
|
-
d.
|
|
682
|
-
d.
|
|
683
|
-
c.
|
|
684
|
-
}
|
|
685
|
-
b.
|
|
686
|
-
c.
|
|
687
|
-
c.
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
this.
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
super.
|
|
789
|
+
b.bh(c, 0);
|
|
790
|
+
b.bg(c, 1);
|
|
791
|
+
b.bh(d, 0);
|
|
792
|
+
b.bg(d, 2);
|
|
793
|
+
this.bi = d;
|
|
794
|
+
d.a2 = 25;
|
|
795
|
+
d.a0 = true;
|
|
796
|
+
d.f = 2;
|
|
797
|
+
d.g = 1;
|
|
798
|
+
d.az = runOn(this, this.bm);
|
|
799
|
+
c.g = 1;
|
|
800
|
+
}
|
|
801
|
+
b.j = g.a.j;
|
|
802
|
+
c.az = this.as;
|
|
803
|
+
c.aq = BrushUtil.g(255, 20, 20, 20);
|
|
804
|
+
}
|
|
805
|
+
bm(a, b) {
|
|
806
|
+
this.bc(this.b(true), this);
|
|
807
|
+
}
|
|
808
|
+
be(a, b, c, d) {
|
|
809
|
+
super.be(a, b, c, d);
|
|
694
810
|
let e = c.b;
|
|
695
|
-
if (e.
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
811
|
+
if (e.a6 == null || (e.y == null || EnumUtil.getEnumValue(ToolActionType_$type, e.y) != this.h)) {
|
|
812
|
+
let f = [7, 3, 6];
|
|
813
|
+
let g = [0, 0, 0];
|
|
814
|
+
if (this.g >= 3 && this.g <= 6) {
|
|
815
|
+
g = [0, 0, 2];
|
|
816
|
+
}
|
|
817
|
+
NativeUIComponent.ae(b.l.r(), f, g, (h) => {
|
|
818
|
+
let i = h[0];
|
|
819
|
+
let j = h[1];
|
|
820
|
+
let k = h[2];
|
|
821
|
+
e.a6 = i;
|
|
822
|
+
this.bn(e, i, j, k, a, b, c, d);
|
|
702
823
|
});
|
|
703
824
|
}
|
|
704
825
|
else {
|
|
705
|
-
let
|
|
706
|
-
let
|
|
707
|
-
let
|
|
708
|
-
this.
|
|
826
|
+
let h = e.a6;
|
|
827
|
+
let i = h.az(0);
|
|
828
|
+
let j = h.az(1);
|
|
829
|
+
this.bn(e, h, i, j, a, b, c, d);
|
|
709
830
|
}
|
|
710
831
|
}
|
|
711
832
|
}
|
|
@@ -717,11 +838,11 @@ export let ToolActionRadio = /*@__PURE__*/ (() => {
|
|
|
717
838
|
*/
|
|
718
839
|
export let ToolActionSeparator = /*@__PURE__*/ (() => {
|
|
719
840
|
class ToolActionSeparator extends ToolAction {
|
|
720
|
-
|
|
841
|
+
get_h() {
|
|
721
842
|
return 7;
|
|
722
843
|
}
|
|
723
|
-
|
|
724
|
-
super.
|
|
844
|
+
a8(a, b) {
|
|
845
|
+
super.a8(a, b);
|
|
725
846
|
if (b.a == 1) {
|
|
726
847
|
b.d = 2;
|
|
727
848
|
}
|
|
@@ -729,39 +850,39 @@ export let ToolActionSeparator = /*@__PURE__*/ (() => {
|
|
|
729
850
|
b.c = 2;
|
|
730
851
|
}
|
|
731
852
|
}
|
|
732
|
-
|
|
733
|
-
if (a.
|
|
734
|
-
a.
|
|
853
|
+
bi(a, b, c, d, e, f) {
|
|
854
|
+
if (a.y == null || EnumUtil.getEnumValue(ToolActionType_$type, a.y) != this.h) {
|
|
855
|
+
a.a6 = b;
|
|
735
856
|
if (f.a == 1) {
|
|
736
|
-
b.
|
|
737
|
-
b.
|
|
857
|
+
b.f = 0;
|
|
858
|
+
b.g = 3;
|
|
738
859
|
}
|
|
739
860
|
else {
|
|
740
|
-
b.
|
|
861
|
+
b.f = 3;
|
|
741
862
|
}
|
|
742
863
|
}
|
|
743
864
|
if (f.a == 1) {
|
|
744
|
-
b.
|
|
865
|
+
b.p = DeviceUtils.g(2);
|
|
745
866
|
}
|
|
746
867
|
else {
|
|
747
|
-
b.
|
|
868
|
+
b.j = DeviceUtils.g(2);
|
|
748
869
|
}
|
|
749
|
-
b.
|
|
750
|
-
b.
|
|
870
|
+
b.ao = BrushUtil.g(255, 200, 200, 200);
|
|
871
|
+
b.ap = BrushUtil.g(255, 80, 80, 80);
|
|
751
872
|
}
|
|
752
|
-
|
|
753
|
-
super.
|
|
873
|
+
be(a, b, c, d) {
|
|
874
|
+
super.be(a, b, c, d);
|
|
754
875
|
let e = c.b;
|
|
755
|
-
if (e.
|
|
756
|
-
NativeUIComponent.
|
|
876
|
+
if (e.a6 == null || (e.y == null || EnumUtil.getEnumValue(ToolActionType_$type, e.y) != this.h)) {
|
|
877
|
+
NativeUIComponent.af(b.l.r(), [7], (f) => {
|
|
757
878
|
let g = f[0];
|
|
758
|
-
e.
|
|
759
|
-
this.
|
|
879
|
+
e.a6 = g;
|
|
880
|
+
this.bi(e, g, a, b, c, d);
|
|
760
881
|
});
|
|
761
882
|
}
|
|
762
883
|
else {
|
|
763
|
-
let f = e.
|
|
764
|
-
this.
|
|
884
|
+
let f = e.a6;
|
|
885
|
+
this.bi(e, f, a, b, c, d);
|
|
765
886
|
}
|
|
766
887
|
}
|
|
767
888
|
}
|
|
@@ -775,67 +896,77 @@ export let ToolActionIconButton = /*@__PURE__*/ (() => {
|
|
|
775
896
|
class ToolActionIconButton extends ToolAction {
|
|
776
897
|
constructor() {
|
|
777
898
|
super(...arguments);
|
|
778
|
-
this.
|
|
899
|
+
this.bi = null;
|
|
779
900
|
}
|
|
780
|
-
|
|
901
|
+
get_h() {
|
|
781
902
|
return 3;
|
|
782
903
|
}
|
|
783
|
-
|
|
904
|
+
i() {
|
|
784
905
|
return null;
|
|
785
906
|
}
|
|
786
907
|
b(a) {
|
|
787
908
|
let b = new ToolActionEventDetail();
|
|
788
909
|
b.a = this;
|
|
789
|
-
b.b = this.
|
|
910
|
+
b.b = this.h;
|
|
790
911
|
b.d = a;
|
|
791
912
|
return b;
|
|
792
913
|
}
|
|
793
|
-
|
|
914
|
+
q(a, b) {
|
|
794
915
|
return 30;
|
|
795
916
|
}
|
|
796
|
-
|
|
797
|
-
if (
|
|
798
|
-
|
|
917
|
+
bh() {
|
|
918
|
+
if (this.bi != null) {
|
|
919
|
+
this.bi.c = this.g;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
bk(a, b, c, d, e, f, g) {
|
|
923
|
+
if (a.y == null || EnumUtil.getEnumValue(ToolActionType_$type, a.y) != this.h) {
|
|
924
|
+
a.a6 = b;
|
|
799
925
|
if (g.a == 1) {
|
|
800
|
-
b.
|
|
926
|
+
b.f = 0;
|
|
801
927
|
}
|
|
802
928
|
else {
|
|
803
|
-
b.
|
|
929
|
+
b.f = 3;
|
|
804
930
|
}
|
|
805
|
-
b.
|
|
806
|
-
b.
|
|
807
|
-
b.
|
|
808
|
-
if (b.
|
|
809
|
-
b.
|
|
931
|
+
b.bd(0, 2, 1);
|
|
932
|
+
b.bc(0, 1, isNaN_(g.f) ? 0 : g.f);
|
|
933
|
+
b.ax = new Thickness(1, this.t, this.v, this.u, this.s);
|
|
934
|
+
if (b.a0 == 0) {
|
|
935
|
+
b.a1(c);
|
|
810
936
|
}
|
|
811
|
-
b.
|
|
812
|
-
b.
|
|
813
|
-
this.
|
|
814
|
-
this.
|
|
815
|
-
this.
|
|
937
|
+
b.bh(c, 0);
|
|
938
|
+
b.bg(c, 0);
|
|
939
|
+
this.bi = c;
|
|
940
|
+
this.bi.a0 = 2;
|
|
941
|
+
this.bi.az = runOn(this, this.bj);
|
|
816
942
|
}
|
|
817
|
-
this.
|
|
818
|
-
this.
|
|
819
|
-
b.
|
|
943
|
+
this.bi.a3 = this.ap;
|
|
944
|
+
this.bi.a2 = this.an;
|
|
945
|
+
b.j = f.a.j;
|
|
820
946
|
}
|
|
821
|
-
|
|
822
|
-
this.
|
|
947
|
+
bj(a, b) {
|
|
948
|
+
this.bc(this.b(true), this);
|
|
823
949
|
}
|
|
824
|
-
|
|
825
|
-
super.
|
|
950
|
+
be(a, b, c, d) {
|
|
951
|
+
super.be(a, b, c, d);
|
|
826
952
|
let e = c.b;
|
|
827
|
-
if (e.
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
953
|
+
if (e.a6 == null || (e.y == null || EnumUtil.getEnumValue(ToolActionType_$type, e.y) != this.h)) {
|
|
954
|
+
let f = [7, 10];
|
|
955
|
+
let g = [0, 0];
|
|
956
|
+
if (this.g >= 3 && this.g <= 6) {
|
|
957
|
+
g = [0, 2];
|
|
958
|
+
}
|
|
959
|
+
NativeUIComponent.ae(b.l.r(), f, g, (h) => {
|
|
960
|
+
let i = h[0];
|
|
961
|
+
let j = h[1];
|
|
962
|
+
e.a6 = i;
|
|
963
|
+
this.bk(e, i, j, a, b, c, d);
|
|
833
964
|
});
|
|
834
965
|
}
|
|
835
966
|
else {
|
|
836
|
-
let
|
|
837
|
-
let
|
|
838
|
-
this.
|
|
967
|
+
let h = e.a6;
|
|
968
|
+
let i = h.az(0);
|
|
969
|
+
this.bk(e, h, i, a, b, c, d);
|
|
839
970
|
}
|
|
840
971
|
}
|
|
841
972
|
}
|
|
@@ -847,51 +978,51 @@ export let ToolActionIconButton = /*@__PURE__*/ (() => {
|
|
|
847
978
|
*/
|
|
848
979
|
export let ToolActionGroupHeader = /*@__PURE__*/ (() => {
|
|
849
980
|
class ToolActionGroupHeader extends ToolAction {
|
|
850
|
-
|
|
981
|
+
get_h() {
|
|
851
982
|
return 1;
|
|
852
983
|
}
|
|
853
|
-
|
|
854
|
-
if (a.
|
|
855
|
-
a.
|
|
984
|
+
bi(a, b, c, d, e, f, g) {
|
|
985
|
+
if (a.y == null || EnumUtil.getEnumValue(ToolActionType_$type, a.y) != this.h) {
|
|
986
|
+
a.a6 = b;
|
|
856
987
|
if (g.a == 1) {
|
|
857
|
-
b.
|
|
988
|
+
b.f = 0;
|
|
858
989
|
}
|
|
859
990
|
else {
|
|
860
|
-
b.
|
|
991
|
+
b.f = 3;
|
|
861
992
|
}
|
|
862
|
-
b.
|
|
863
|
-
b.
|
|
864
|
-
b.
|
|
865
|
-
b.
|
|
866
|
-
if (b.
|
|
867
|
-
b.
|
|
993
|
+
b.bd(0, 2, 1);
|
|
994
|
+
b.bc(0, 1, isNaN_(g.e) ? 0 : g.e);
|
|
995
|
+
b.bc(1, 2, 1);
|
|
996
|
+
b.ax = new Thickness(1, this.t, this.v, this.u, this.s);
|
|
997
|
+
if (b.a0 == 0) {
|
|
998
|
+
b.a1(c);
|
|
868
999
|
}
|
|
869
|
-
c.
|
|
870
|
-
}
|
|
871
|
-
b.
|
|
872
|
-
b.
|
|
873
|
-
b.
|
|
874
|
-
b.
|
|
875
|
-
c.
|
|
876
|
-
c.
|
|
877
|
-
b.
|
|
878
|
-
b.
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
super.
|
|
1000
|
+
c.g = 1;
|
|
1001
|
+
}
|
|
1002
|
+
b.j = f.a.j;
|
|
1003
|
+
b.ao = BrushUtil.g(255, 200, 200, 200);
|
|
1004
|
+
b.ap = BrushUtil.g(255, 80, 80, 80);
|
|
1005
|
+
b.av = new Thickness(1, 0, 0, 0, 2);
|
|
1006
|
+
c.az = this.as;
|
|
1007
|
+
c.aq = BrushUtil.g(255, 20, 20, 20);
|
|
1008
|
+
b.bh(c, 0);
|
|
1009
|
+
b.bg(c, 1);
|
|
1010
|
+
}
|
|
1011
|
+
be(a, b, c, d) {
|
|
1012
|
+
super.be(a, b, c, d);
|
|
882
1013
|
let e = c.b;
|
|
883
|
-
if (e.
|
|
884
|
-
NativeUIComponent.
|
|
1014
|
+
if (e.a6 == null || (e.y == null || EnumUtil.getEnumValue(ToolActionType_$type, e.y) != this.h)) {
|
|
1015
|
+
NativeUIComponent.af(b.l.r(), [7, 3], (f) => {
|
|
885
1016
|
let g = f[0];
|
|
886
1017
|
let h = f[1];
|
|
887
|
-
e.
|
|
888
|
-
this.
|
|
1018
|
+
e.a6 = g;
|
|
1019
|
+
this.bi(e, g, h, a, b, c, d);
|
|
889
1020
|
});
|
|
890
1021
|
}
|
|
891
1022
|
else {
|
|
892
|
-
let f = e.
|
|
893
|
-
let g = f.
|
|
894
|
-
this.
|
|
1023
|
+
let f = e.a6;
|
|
1024
|
+
let g = f.az(0);
|
|
1025
|
+
this.bi(e, f, g, a, b, c, d);
|
|
895
1026
|
}
|
|
896
1027
|
}
|
|
897
1028
|
}
|
|
@@ -905,110 +1036,111 @@ export let ToolActionMenuBase = /*@__PURE__*/ (() => {
|
|
|
905
1036
|
class ToolActionMenuBase extends ToolAction {
|
|
906
1037
|
constructor() {
|
|
907
1038
|
super();
|
|
908
|
-
this.
|
|
909
|
-
this.
|
|
910
|
-
this.
|
|
911
|
-
this.
|
|
912
|
-
this.
|
|
913
|
-
this.
|
|
914
|
-
this.
|
|
915
|
-
this.
|
|
916
|
-
let a = this.
|
|
917
|
-
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(this, this.
|
|
918
|
-
}
|
|
919
|
-
|
|
1039
|
+
this.bl = new ToolActionCollection();
|
|
1040
|
+
this.bq = false;
|
|
1041
|
+
this.bi = null;
|
|
1042
|
+
this.bo = null;
|
|
1043
|
+
this.bp = false;
|
|
1044
|
+
this.bn = null;
|
|
1045
|
+
this.bs = false;
|
|
1046
|
+
this.br = false;
|
|
1047
|
+
let a = this.bl;
|
|
1048
|
+
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(this, this.bu));
|
|
1049
|
+
}
|
|
1050
|
+
i() {
|
|
920
1051
|
return null;
|
|
921
1052
|
}
|
|
922
|
-
|
|
923
|
-
super.
|
|
1053
|
+
a9(a) {
|
|
1054
|
+
super.a9(a);
|
|
924
1055
|
let b = a;
|
|
925
1056
|
if (b.actions != null) {
|
|
926
1057
|
for (let c = 0; c < b.actions.length; c++) {
|
|
927
|
-
this.
|
|
1058
|
+
this.bl.add(ToolAction.a(b.actions[c]));
|
|
928
1059
|
}
|
|
929
1060
|
}
|
|
930
1061
|
}
|
|
931
|
-
|
|
932
|
-
this.
|
|
1062
|
+
bu(a, b) {
|
|
1063
|
+
this.bz();
|
|
933
1064
|
}
|
|
934
|
-
|
|
1065
|
+
bz() {
|
|
935
1066
|
}
|
|
936
1067
|
get actions() {
|
|
937
|
-
return this.
|
|
1068
|
+
return this.bl;
|
|
938
1069
|
}
|
|
939
1070
|
set actions(a) {
|
|
940
|
-
let b = this.
|
|
941
|
-
this.
|
|
942
|
-
if (b != this.
|
|
943
|
-
this.
|
|
1071
|
+
let b = this.bl;
|
|
1072
|
+
this.bl = a;
|
|
1073
|
+
if (b != this.bl) {
|
|
1074
|
+
this.bb("Actions", b, this.bl);
|
|
944
1075
|
}
|
|
945
1076
|
}
|
|
946
1077
|
b(a) {
|
|
947
1078
|
let b = new ToolActionEventDetail();
|
|
948
1079
|
b.a = this;
|
|
949
|
-
b.b = this.
|
|
1080
|
+
b.b = this.h;
|
|
950
1081
|
b.d = a;
|
|
951
1082
|
return b;
|
|
952
1083
|
}
|
|
953
|
-
|
|
954
|
-
this.
|
|
955
|
-
this.
|
|
956
|
-
this.
|
|
957
|
-
if (this.
|
|
958
|
-
if (this.
|
|
959
|
-
this.
|
|
1084
|
+
b0() {
|
|
1085
|
+
this.bx();
|
|
1086
|
+
this.bw();
|
|
1087
|
+
this.by();
|
|
1088
|
+
if (this.bi.t || this.br) {
|
|
1089
|
+
if (this.br) {
|
|
1090
|
+
this.br = false;
|
|
960
1091
|
}
|
|
961
1092
|
else {
|
|
962
|
-
this.
|
|
1093
|
+
this.bi.ao();
|
|
963
1094
|
}
|
|
964
1095
|
}
|
|
965
1096
|
else {
|
|
966
|
-
if (this.
|
|
967
|
-
this.
|
|
1097
|
+
if (this.bs) {
|
|
1098
|
+
this.b1();
|
|
968
1099
|
}
|
|
969
1100
|
else {
|
|
970
|
-
this.
|
|
1101
|
+
this.br = true;
|
|
971
1102
|
}
|
|
972
1103
|
}
|
|
973
1104
|
}
|
|
974
|
-
|
|
975
|
-
this.
|
|
1105
|
+
b1() {
|
|
1106
|
+
this.bi.showRelativeToExclusionRect(this.b2(), this.bk(), this.bj());
|
|
976
1107
|
}
|
|
977
|
-
|
|
1108
|
+
bj() {
|
|
978
1109
|
return 1;
|
|
979
1110
|
}
|
|
980
|
-
|
|
1111
|
+
bk() {
|
|
981
1112
|
return 1;
|
|
982
1113
|
}
|
|
983
|
-
|
|
984
|
-
if (!this.
|
|
985
|
-
this.
|
|
986
|
-
this.
|
|
1114
|
+
by() {
|
|
1115
|
+
if (!this.bp) {
|
|
1116
|
+
this.bp = true;
|
|
1117
|
+
this.bi.appendPopupContent(this.bo.x);
|
|
987
1118
|
}
|
|
988
1119
|
}
|
|
989
|
-
|
|
990
|
-
if (this.
|
|
1120
|
+
bx() {
|
|
1121
|
+
if (this.bi == null) {
|
|
991
1122
|
if (this.e == null) {
|
|
992
1123
|
return;
|
|
993
1124
|
}
|
|
994
|
-
this.
|
|
1125
|
+
this.bi = this.e.l.a();
|
|
995
1126
|
}
|
|
996
1127
|
}
|
|
997
|
-
|
|
998
|
-
if (this.
|
|
999
|
-
NativeUIContent.
|
|
1000
|
-
this.
|
|
1001
|
-
let a = this.
|
|
1002
|
-
a.contentRefreshed = delegateCombine(a.contentRefreshed, runOn(this, this.
|
|
1003
|
-
this.
|
|
1128
|
+
bw() {
|
|
1129
|
+
if (this.bo == null) {
|
|
1130
|
+
NativeUIContent.ah(this.e.l.r(), 0, (a) => this.bo = a);
|
|
1131
|
+
this.bn = this.e.l.b(this.bo);
|
|
1132
|
+
let a = this.bn;
|
|
1133
|
+
a.contentRefreshed = delegateCombine(a.contentRefreshed, runOn(this, this.bv));
|
|
1134
|
+
this.bn.actions = this.actions;
|
|
1135
|
+
this.bn.n = this.g;
|
|
1004
1136
|
}
|
|
1005
1137
|
}
|
|
1006
|
-
|
|
1007
|
-
this.
|
|
1008
|
-
this.
|
|
1009
|
-
if (this.
|
|
1010
|
-
this.
|
|
1011
|
-
this.
|
|
1138
|
+
bv(a, b) {
|
|
1139
|
+
this.bs = true;
|
|
1140
|
+
this.bi.ar();
|
|
1141
|
+
if (this.br) {
|
|
1142
|
+
this.br = false;
|
|
1143
|
+
this.b1();
|
|
1012
1144
|
}
|
|
1013
1145
|
}
|
|
1014
1146
|
}
|
|
@@ -1022,60 +1154,60 @@ export let ToolActionIconMenu = /*@__PURE__*/ (() => {
|
|
|
1022
1154
|
class ToolActionIconMenu extends ToolActionMenuBase {
|
|
1023
1155
|
constructor() {
|
|
1024
1156
|
super(...arguments);
|
|
1025
|
-
this.
|
|
1157
|
+
this.b3 = null;
|
|
1026
1158
|
}
|
|
1027
|
-
|
|
1159
|
+
get_h() {
|
|
1028
1160
|
return 3;
|
|
1029
1161
|
}
|
|
1030
|
-
|
|
1162
|
+
q(a, b) {
|
|
1031
1163
|
return 30;
|
|
1032
1164
|
}
|
|
1033
|
-
|
|
1034
|
-
return this.e.l.ac(this.
|
|
1165
|
+
b2() {
|
|
1166
|
+
return this.e.l.ac(this.b3.x);
|
|
1035
1167
|
}
|
|
1036
|
-
|
|
1037
|
-
if (a.
|
|
1038
|
-
a.
|
|
1168
|
+
b5(a, b, c, d, e, f, g) {
|
|
1169
|
+
if (a.y == null || EnumUtil.getEnumValue(ToolActionType_$type, a.y) != this.h) {
|
|
1170
|
+
a.a6 = b;
|
|
1039
1171
|
if (g.a == 1) {
|
|
1040
|
-
b.
|
|
1172
|
+
b.f = 0;
|
|
1041
1173
|
}
|
|
1042
1174
|
else {
|
|
1043
|
-
b.
|
|
1175
|
+
b.f = 3;
|
|
1044
1176
|
}
|
|
1045
|
-
b.
|
|
1046
|
-
b.
|
|
1047
|
-
b.
|
|
1048
|
-
if (b.
|
|
1049
|
-
b.
|
|
1177
|
+
b.bd(0, 2, 1);
|
|
1178
|
+
b.bc(0, 1, isNaN_(g.f) ? 0 : g.f);
|
|
1179
|
+
b.ax = new Thickness(1, this.t, this.v, this.u, this.s);
|
|
1180
|
+
if (b.a0 == 0) {
|
|
1181
|
+
b.a1(c);
|
|
1050
1182
|
}
|
|
1051
|
-
b.
|
|
1052
|
-
b.
|
|
1053
|
-
this.
|
|
1054
|
-
this.
|
|
1055
|
-
this.
|
|
1183
|
+
b.bh(c, 0);
|
|
1184
|
+
b.bg(c, 0);
|
|
1185
|
+
this.b3 = c;
|
|
1186
|
+
this.b3.a0 = 2;
|
|
1187
|
+
this.b3.az = runOn(this, this.b4);
|
|
1056
1188
|
}
|
|
1057
|
-
this.
|
|
1058
|
-
this.
|
|
1059
|
-
b.
|
|
1189
|
+
this.b3.a3 = this.ap;
|
|
1190
|
+
this.b3.a2 = this.an;
|
|
1191
|
+
b.j = f.a.j;
|
|
1060
1192
|
}
|
|
1061
|
-
|
|
1062
|
-
this.
|
|
1193
|
+
b4(a, b) {
|
|
1194
|
+
this.b0();
|
|
1063
1195
|
}
|
|
1064
|
-
|
|
1065
|
-
super.
|
|
1196
|
+
be(a, b, c, d) {
|
|
1197
|
+
super.be(a, b, c, d);
|
|
1066
1198
|
let e = c.b;
|
|
1067
|
-
if (e.
|
|
1068
|
-
NativeUIComponent.
|
|
1199
|
+
if (e.a6 == null || (e.y == null || EnumUtil.getEnumValue(ToolActionType_$type, e.y) != this.h)) {
|
|
1200
|
+
NativeUIComponent.af(b.l.r(), [7, 10], (f) => {
|
|
1069
1201
|
let g = f[0];
|
|
1070
1202
|
let h = f[1];
|
|
1071
|
-
e.
|
|
1072
|
-
this.
|
|
1203
|
+
e.a6 = g;
|
|
1204
|
+
this.b5(e, g, h, a, b, c, d);
|
|
1073
1205
|
});
|
|
1074
1206
|
}
|
|
1075
1207
|
else {
|
|
1076
|
-
let f = e.
|
|
1077
|
-
let g = f.
|
|
1078
|
-
this.
|
|
1208
|
+
let f = e.a6;
|
|
1209
|
+
let g = f.az(0);
|
|
1210
|
+
this.b5(e, f, g, a, b, c, d);
|
|
1079
1211
|
}
|
|
1080
1212
|
}
|
|
1081
1213
|
}
|
|
@@ -1089,80 +1221,85 @@ export let ToolActionCheckbox = /*@__PURE__*/ (() => {
|
|
|
1089
1221
|
class ToolActionCheckbox extends ToolAction {
|
|
1090
1222
|
constructor() {
|
|
1091
1223
|
super(...arguments);
|
|
1092
|
-
this.
|
|
1224
|
+
this.bi = null;
|
|
1093
1225
|
}
|
|
1094
|
-
|
|
1226
|
+
get_h() {
|
|
1095
1227
|
return 2;
|
|
1096
1228
|
}
|
|
1097
1229
|
b(a) {
|
|
1098
1230
|
let b = new ToolActionEventDetail();
|
|
1099
1231
|
b.a = this;
|
|
1100
|
-
b.b = this.
|
|
1232
|
+
b.b = this.h;
|
|
1101
1233
|
b.d = a;
|
|
1102
|
-
if (this.
|
|
1103
|
-
b.c = this.
|
|
1234
|
+
if (this.bi != null) {
|
|
1235
|
+
b.c = this.bi.a1;
|
|
1104
1236
|
}
|
|
1105
1237
|
return b;
|
|
1106
1238
|
}
|
|
1107
|
-
|
|
1108
|
-
return this.
|
|
1239
|
+
z() {
|
|
1240
|
+
return this.bi.a1;
|
|
1109
1241
|
}
|
|
1110
|
-
|
|
1242
|
+
q(a, b) {
|
|
1111
1243
|
return 30;
|
|
1112
1244
|
}
|
|
1113
|
-
|
|
1114
|
-
if (a.
|
|
1115
|
-
a.
|
|
1245
|
+
bk(a, b, c, d, e, f, g, h) {
|
|
1246
|
+
if (a.y == null || EnumUtil.getEnumValue(ToolActionType_$type, a.y) != this.h) {
|
|
1247
|
+
a.a6 = b;
|
|
1116
1248
|
if (h.a == 1) {
|
|
1117
|
-
b.
|
|
1249
|
+
b.f = 0;
|
|
1118
1250
|
}
|
|
1119
1251
|
else {
|
|
1120
|
-
b.
|
|
1252
|
+
b.f = 3;
|
|
1121
1253
|
}
|
|
1122
|
-
b.
|
|
1123
|
-
b.
|
|
1124
|
-
b.
|
|
1125
|
-
b.
|
|
1126
|
-
b.
|
|
1127
|
-
if (b.
|
|
1128
|
-
b.
|
|
1129
|
-
b.
|
|
1254
|
+
b.bd(0, 2, 1);
|
|
1255
|
+
b.bc(0, 1, isNaN_(h.e) ? 0 : h.e);
|
|
1256
|
+
b.bc(1, 1, isNaN_(h.g) ? 0 : h.g);
|
|
1257
|
+
b.bc(2, 2, 1);
|
|
1258
|
+
b.ax = new Thickness(1, this.t, this.v, this.u, this.s);
|
|
1259
|
+
if (b.a0 == 0) {
|
|
1260
|
+
b.a1(c);
|
|
1261
|
+
b.a1(d);
|
|
1130
1262
|
}
|
|
1131
|
-
b.
|
|
1132
|
-
b.
|
|
1133
|
-
b.
|
|
1134
|
-
b.
|
|
1135
|
-
this.
|
|
1136
|
-
d.
|
|
1137
|
-
d.
|
|
1138
|
-
d.
|
|
1139
|
-
d.
|
|
1140
|
-
c.
|
|
1141
|
-
}
|
|
1142
|
-
b.
|
|
1143
|
-
c.
|
|
1144
|
-
c.
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
this.
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
super.
|
|
1263
|
+
b.bh(c, 0);
|
|
1264
|
+
b.bg(c, 1);
|
|
1265
|
+
b.bh(d, 0);
|
|
1266
|
+
b.bg(d, 2);
|
|
1267
|
+
this.bi = d;
|
|
1268
|
+
d.a0 = true;
|
|
1269
|
+
d.f = 2;
|
|
1270
|
+
d.g = 1;
|
|
1271
|
+
d.az = runOn(this, this.bj);
|
|
1272
|
+
c.g = 1;
|
|
1273
|
+
}
|
|
1274
|
+
b.j = g.a.j;
|
|
1275
|
+
c.az = this.as;
|
|
1276
|
+
c.aq = BrushUtil.g(255, 20, 20, 20);
|
|
1277
|
+
}
|
|
1278
|
+
bj(a, b) {
|
|
1279
|
+
this.bc(this.b(true), this);
|
|
1280
|
+
}
|
|
1281
|
+
be(a, b, c, d) {
|
|
1282
|
+
super.be(a, b, c, d);
|
|
1151
1283
|
let e = c.b;
|
|
1152
|
-
if (e.
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1284
|
+
if (e.a6 == null || (e.y == null || EnumUtil.getEnumValue(ToolActionType_$type, e.y) != this.h)) {
|
|
1285
|
+
let f = [7, 3, 6];
|
|
1286
|
+
let g = [0, 0, 0];
|
|
1287
|
+
if (this.g >= 3 && this.g <= 6) {
|
|
1288
|
+
g = [0, 0, 2];
|
|
1289
|
+
}
|
|
1290
|
+
NativeUIComponent.ae(b.l.r(), f, g, (h) => {
|
|
1291
|
+
let i = h[0];
|
|
1292
|
+
let j = h[1];
|
|
1293
|
+
let k = h[2];
|
|
1294
|
+
e.a6 = i;
|
|
1295
|
+
this.bk(e, i, j, k, a, b, c, d);
|
|
1159
1296
|
});
|
|
1160
1297
|
}
|
|
1161
1298
|
else {
|
|
1162
|
-
let
|
|
1163
|
-
let
|
|
1164
|
-
let
|
|
1165
|
-
this.
|
|
1299
|
+
let h = e.a6;
|
|
1300
|
+
let i = h.az(0);
|
|
1301
|
+
let j = h.az(1);
|
|
1302
|
+
this.bk(e, h, i, j, a, b, c, d);
|
|
1166
1303
|
}
|
|
1167
1304
|
}
|
|
1168
1305
|
}
|
|
@@ -1176,56 +1313,62 @@ export let ToolActionNumberInput = /*@__PURE__*/ (() => {
|
|
|
1176
1313
|
class ToolActionNumberInput extends ToolAction {
|
|
1177
1314
|
constructor() {
|
|
1178
1315
|
super(...arguments);
|
|
1179
|
-
this.
|
|
1316
|
+
this.bi = null;
|
|
1180
1317
|
}
|
|
1181
|
-
|
|
1318
|
+
get_h() {
|
|
1182
1319
|
return 5;
|
|
1183
1320
|
}
|
|
1184
|
-
|
|
1185
|
-
return this.
|
|
1321
|
+
z() {
|
|
1322
|
+
return this.bj();
|
|
1186
1323
|
}
|
|
1187
|
-
|
|
1324
|
+
q(a, b) {
|
|
1188
1325
|
return 100;
|
|
1189
1326
|
}
|
|
1190
|
-
bh(
|
|
1191
|
-
if (
|
|
1192
|
-
|
|
1327
|
+
bh() {
|
|
1328
|
+
if (this.bi != null) {
|
|
1329
|
+
this.bi.c = this.g;
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
bl(a, b, c, d, e, f, g, h) {
|
|
1333
|
+
if (a.y == null || EnumUtil.getEnumValue(ToolActionType_$type, a.y) != this.h) {
|
|
1334
|
+
a.a6 = b;
|
|
1193
1335
|
if (h.a == 1) {
|
|
1194
|
-
b.
|
|
1336
|
+
b.f = 0;
|
|
1195
1337
|
}
|
|
1196
1338
|
else {
|
|
1197
|
-
b.
|
|
1339
|
+
b.f = 3;
|
|
1198
1340
|
}
|
|
1199
|
-
b.
|
|
1200
|
-
b.
|
|
1201
|
-
b.
|
|
1202
|
-
b.
|
|
1203
|
-
b.
|
|
1204
|
-
if (b.
|
|
1205
|
-
b.
|
|
1206
|
-
b.
|
|
1341
|
+
b.bd(0, 2, 1);
|
|
1342
|
+
b.bc(0, 1, isNaN_(h.e) ? 0 : h.e);
|
|
1343
|
+
b.bc(1, 1, isNaN_(h.g) ? 0 : h.g);
|
|
1344
|
+
b.bc(1, 2, 1);
|
|
1345
|
+
b.ax = new Thickness(1, this.t, this.v, this.u, this.s);
|
|
1346
|
+
if (b.a0 == 0) {
|
|
1347
|
+
b.a1(c);
|
|
1348
|
+
b.a1(d);
|
|
1207
1349
|
}
|
|
1208
|
-
b.
|
|
1209
|
-
b.
|
|
1210
|
-
b.
|
|
1211
|
-
b.
|
|
1212
|
-
this.
|
|
1213
|
-
d.
|
|
1214
|
-
d.
|
|
1215
|
-
d.
|
|
1216
|
-
d.
|
|
1217
|
-
d.
|
|
1218
|
-
d.
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
c.
|
|
1224
|
-
|
|
1225
|
-
|
|
1350
|
+
b.bh(c, 0);
|
|
1351
|
+
b.bg(c, 1);
|
|
1352
|
+
b.bh(d, 0);
|
|
1353
|
+
b.bg(d, 2);
|
|
1354
|
+
this.bi = d;
|
|
1355
|
+
d.p = 100;
|
|
1356
|
+
d.az = 2;
|
|
1357
|
+
d.a2 = 1;
|
|
1358
|
+
d.f = 2;
|
|
1359
|
+
d.g = 1;
|
|
1360
|
+
d.a3 = 1;
|
|
1361
|
+
d.a1 = runOn(this, this.bk);
|
|
1362
|
+
c.g = 1;
|
|
1363
|
+
}
|
|
1364
|
+
b.j = g.a.j;
|
|
1365
|
+
c.az = this.as;
|
|
1366
|
+
c.aq = BrushUtil.g(255, 20, 20, 20);
|
|
1367
|
+
}
|
|
1368
|
+
bj() {
|
|
1226
1369
|
let a;
|
|
1227
1370
|
a = NaN;
|
|
1228
|
-
if (this.
|
|
1371
|
+
if (this.bi != null && ((() => { let b = tryParseNumber(this.bi.a4, a); a = b.p1; return b.ret; })())) {
|
|
1229
1372
|
}
|
|
1230
1373
|
return a;
|
|
1231
1374
|
}
|
|
@@ -1233,33 +1376,38 @@ export let ToolActionNumberInput = /*@__PURE__*/ (() => {
|
|
|
1233
1376
|
let b = new ToolActionEventDetail();
|
|
1234
1377
|
b.a = this;
|
|
1235
1378
|
b.d = a;
|
|
1236
|
-
b.b = this.
|
|
1379
|
+
b.b = this.h;
|
|
1237
1380
|
let c;
|
|
1238
|
-
b.f = this.
|
|
1381
|
+
b.f = this.bj();
|
|
1239
1382
|
return b;
|
|
1240
1383
|
}
|
|
1241
|
-
|
|
1384
|
+
bk(a, b) {
|
|
1242
1385
|
let c = a;
|
|
1243
1386
|
let d = this.b(true);
|
|
1244
|
-
this.
|
|
1387
|
+
this.bc(d, this);
|
|
1245
1388
|
}
|
|
1246
|
-
|
|
1247
|
-
super.
|
|
1389
|
+
be(a, b, c, d) {
|
|
1390
|
+
super.be(a, b, c, d);
|
|
1248
1391
|
let e = c.b;
|
|
1249
|
-
if (e.
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1392
|
+
if (e.a6 == null || (e.y == null || EnumUtil.getEnumValue(ToolActionType_$type, e.y) != this.h)) {
|
|
1393
|
+
let f = [7, 3, 2];
|
|
1394
|
+
let g = [0, 0, 0];
|
|
1395
|
+
if (this.g >= 3 && this.g <= 6) {
|
|
1396
|
+
g = [0, 0, 2];
|
|
1397
|
+
}
|
|
1398
|
+
NativeUIComponent.ae(b.l.r(), f, g, (h) => {
|
|
1399
|
+
let i = h[0];
|
|
1400
|
+
let j = h[1];
|
|
1401
|
+
let k = h[2];
|
|
1402
|
+
e.a6 = i;
|
|
1403
|
+
this.bl(e, i, j, k, a, b, c, d);
|
|
1256
1404
|
});
|
|
1257
1405
|
}
|
|
1258
1406
|
else {
|
|
1259
|
-
let
|
|
1260
|
-
let
|
|
1261
|
-
let
|
|
1262
|
-
this.
|
|
1407
|
+
let h = e.a6;
|
|
1408
|
+
let i = h.az(0);
|
|
1409
|
+
let j = h.az(1);
|
|
1410
|
+
this.bl(e, h, i, j, a, b, c, d);
|
|
1263
1411
|
}
|
|
1264
1412
|
}
|
|
1265
1413
|
}
|
|
@@ -1333,63 +1481,65 @@ export let ToolPanel = /*@__PURE__*/ (() => {
|
|
|
1333
1481
|
constructor() {
|
|
1334
1482
|
super();
|
|
1335
1483
|
this.l = null;
|
|
1336
|
-
this.
|
|
1337
|
-
this.
|
|
1338
|
-
this.
|
|
1484
|
+
this.r = null;
|
|
1485
|
+
this.u = false;
|
|
1486
|
+
this.s = null;
|
|
1339
1487
|
this.f = new ToolActionMeasurementContext();
|
|
1340
1488
|
this.propertyChanged = null;
|
|
1341
1489
|
this.d = new ToolActionCollection();
|
|
1342
1490
|
this.contentRefreshed = null;
|
|
1343
|
-
this.
|
|
1344
|
-
this.
|
|
1345
|
-
this.
|
|
1346
|
-
this.
|
|
1347
|
-
this.
|
|
1491
|
+
this.v = false;
|
|
1492
|
+
this.y = new Dictionary$2(String_$type, List$1.$.specialize(ToolAction.$), 0);
|
|
1493
|
+
this.z = new Dictionary$2(String_$type, List$1.$.specialize(ToolAction.$), 0);
|
|
1494
|
+
this.x = new Dictionary$2(String_$type, ToolAction.$, 0);
|
|
1495
|
+
this.o = null;
|
|
1348
1496
|
this.a = null;
|
|
1349
|
-
this.
|
|
1350
|
-
this.
|
|
1497
|
+
this.m = 0;
|
|
1498
|
+
this.a9 = ToolPanel.bc;
|
|
1499
|
+
this.ba = ToolPanel.bd;
|
|
1351
1500
|
this.b = null;
|
|
1352
|
-
this.
|
|
1501
|
+
this.ab = Number.POSITIVE_INFINITY;
|
|
1353
1502
|
this.i = ToolPanel.j;
|
|
1354
1503
|
this.onCommand = null;
|
|
1355
1504
|
let a = this.actions;
|
|
1356
|
-
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(this, this.
|
|
1357
|
-
|
|
1505
|
+
a.collectionChanged = delegateCombine(a.collectionChanged, runOn(this, this.an));
|
|
1506
|
+
NativeUIXInputsFactory.h();
|
|
1507
|
+
NativeUIInputsFactory.n();
|
|
1358
1508
|
let b = new ToolPanelView();
|
|
1359
1509
|
b.c = this;
|
|
1360
1510
|
this.l = b;
|
|
1361
1511
|
this.l.x();
|
|
1362
1512
|
}
|
|
1363
|
-
get
|
|
1364
|
-
if (this.
|
|
1365
|
-
this.
|
|
1366
|
-
this.
|
|
1513
|
+
get t() {
|
|
1514
|
+
if (this.s == null) {
|
|
1515
|
+
this.s = new SRProvider(this.l.k);
|
|
1516
|
+
this.s.cb("Layouts");
|
|
1367
1517
|
}
|
|
1368
|
-
return this.
|
|
1518
|
+
return this.s;
|
|
1369
1519
|
}
|
|
1370
|
-
|
|
1520
|
+
at(a) {
|
|
1371
1521
|
this.b = a;
|
|
1372
1522
|
let b = this.b;
|
|
1373
|
-
b.rowUpdating = delegateCombine(b.rowUpdating, runOn(this, this.
|
|
1523
|
+
b.rowUpdating = delegateCombine(b.rowUpdating, runOn(this, this.am));
|
|
1374
1524
|
let c = this.b;
|
|
1375
|
-
c.contentRefreshed = delegateCombine(c.contentRefreshed, runOn(this, this.
|
|
1525
|
+
c.contentRefreshed = delegateCombine(c.contentRefreshed, runOn(this, this.aj));
|
|
1376
1526
|
this.b.k = this.k;
|
|
1377
1527
|
this.b.ai = true;
|
|
1378
1528
|
let d = this.b;
|
|
1379
|
-
d.itemHeightRequested = delegateCombine(d.itemHeightRequested, runOn(this, this.
|
|
1529
|
+
d.itemHeightRequested = delegateCombine(d.itemHeightRequested, runOn(this, this.ak));
|
|
1380
1530
|
let e = this.b;
|
|
1381
|
-
e.itemWidthRequested = delegateCombine(e.itemWidthRequested, runOn(this, this.
|
|
1531
|
+
e.itemWidthRequested = delegateCombine(e.itemWidthRequested, runOn(this, this.al));
|
|
1382
1532
|
}
|
|
1383
|
-
|
|
1533
|
+
aj(a, b) {
|
|
1384
1534
|
if (this.contentRefreshed != null) {
|
|
1385
1535
|
this.contentRefreshed(this, new ToolPanelContentRefreshedEventArgs());
|
|
1386
1536
|
}
|
|
1387
1537
|
}
|
|
1388
|
-
|
|
1538
|
+
ak(a, b) {
|
|
1389
1539
|
let c = b.c;
|
|
1390
1540
|
let d = new ToolActionMeasurementContext();
|
|
1391
|
-
this.
|
|
1392
|
-
c.
|
|
1541
|
+
this.a2(d);
|
|
1542
|
+
c.a7(this, d);
|
|
1393
1543
|
if (!isNaN_(d.c)) {
|
|
1394
1544
|
b.a = d.c;
|
|
1395
1545
|
}
|
|
@@ -1397,33 +1547,34 @@ export let ToolPanel = /*@__PURE__*/ (() => {
|
|
|
1397
1547
|
b.a = this.b.av;
|
|
1398
1548
|
}
|
|
1399
1549
|
}
|
|
1400
|
-
|
|
1550
|
+
al(a, b) {
|
|
1401
1551
|
let c = b.c;
|
|
1402
1552
|
let d = new ToolActionMeasurementContext();
|
|
1403
|
-
this.
|
|
1404
|
-
c.
|
|
1553
|
+
this.a2(d);
|
|
1554
|
+
c.a7(this, d);
|
|
1405
1555
|
if (!isNaN_(d.d)) {
|
|
1406
1556
|
b.a = d.d;
|
|
1407
1557
|
}
|
|
1408
1558
|
else {
|
|
1409
1559
|
}
|
|
1410
1560
|
}
|
|
1411
|
-
|
|
1561
|
+
am(a, b) {
|
|
1412
1562
|
let c = b.a.n;
|
|
1413
1563
|
let d = a;
|
|
1414
1564
|
if (this.k == 1) {
|
|
1415
1565
|
let e = new ToolActionMeasurementContext();
|
|
1416
|
-
this.
|
|
1417
|
-
c.
|
|
1418
|
-
c.
|
|
1566
|
+
this.a2(e);
|
|
1567
|
+
c.a7(this, e);
|
|
1568
|
+
c.bd(d, this, b, e);
|
|
1419
1569
|
}
|
|
1420
1570
|
else {
|
|
1421
|
-
c.
|
|
1571
|
+
c.bd(d, this, b, this.f);
|
|
1422
1572
|
}
|
|
1423
1573
|
}
|
|
1424
|
-
|
|
1425
|
-
this.
|
|
1426
|
-
this.
|
|
1574
|
+
az(a) {
|
|
1575
|
+
this.ab = a.width;
|
|
1576
|
+
this.a5();
|
|
1577
|
+
this.b.notifySizeChanged();
|
|
1427
1578
|
}
|
|
1428
1579
|
get actions() {
|
|
1429
1580
|
return this.d;
|
|
@@ -1432,15 +1583,15 @@ export let ToolPanel = /*@__PURE__*/ (() => {
|
|
|
1432
1583
|
let b = this.d;
|
|
1433
1584
|
this.d = a;
|
|
1434
1585
|
if (b != this.d) {
|
|
1435
|
-
this.
|
|
1586
|
+
this.a0("Actions", b, this.d);
|
|
1436
1587
|
}
|
|
1437
1588
|
}
|
|
1438
|
-
|
|
1589
|
+
an(a, b) {
|
|
1439
1590
|
if (b.oldItems != null) {
|
|
1440
1591
|
for (let c of fromEn(b.oldItems)) {
|
|
1441
1592
|
if (typeCast(INotifyPropertyChanged_$type, c) !== null) {
|
|
1442
1593
|
let d = c;
|
|
1443
|
-
d.propertyChanged = delegateRemove(d.propertyChanged, runOn(this, this.
|
|
1594
|
+
d.propertyChanged = delegateRemove(d.propertyChanged, runOn(this, this.au));
|
|
1444
1595
|
}
|
|
1445
1596
|
}
|
|
1446
1597
|
}
|
|
@@ -1448,97 +1599,98 @@ export let ToolPanel = /*@__PURE__*/ (() => {
|
|
|
1448
1599
|
for (let e of fromEn(b.newItems)) {
|
|
1449
1600
|
if (typeCast(INotifyPropertyChanged_$type, e) !== null) {
|
|
1450
1601
|
let f = e;
|
|
1451
|
-
f.propertyChanged = delegateCombine(f.propertyChanged, runOn(this, this.
|
|
1602
|
+
f.propertyChanged = delegateCombine(f.propertyChanged, runOn(this, this.au));
|
|
1452
1603
|
}
|
|
1453
1604
|
}
|
|
1454
1605
|
}
|
|
1455
|
-
this.
|
|
1606
|
+
this.a8();
|
|
1607
|
+
this.ay();
|
|
1456
1608
|
}
|
|
1457
|
-
|
|
1458
|
-
this.
|
|
1609
|
+
ay() {
|
|
1610
|
+
this.a5();
|
|
1459
1611
|
}
|
|
1460
|
-
|
|
1461
|
-
if (this.
|
|
1612
|
+
a5() {
|
|
1613
|
+
if (this.v) {
|
|
1462
1614
|
return;
|
|
1463
1615
|
}
|
|
1464
|
-
this.
|
|
1465
|
-
this.a.enqueueAction(runOn(this, this.
|
|
1616
|
+
this.v = true;
|
|
1617
|
+
this.a.enqueueAction(runOn(this, this.aq));
|
|
1466
1618
|
}
|
|
1467
|
-
|
|
1468
|
-
if (!this.
|
|
1619
|
+
aq() {
|
|
1620
|
+
if (!this.v) {
|
|
1469
1621
|
return;
|
|
1470
1622
|
}
|
|
1471
|
-
this.
|
|
1472
|
-
this.
|
|
1473
|
-
this.
|
|
1623
|
+
this.v = false;
|
|
1624
|
+
this.ao();
|
|
1625
|
+
this.a7();
|
|
1474
1626
|
for (let a = 0; a < this.d.count; a++) {
|
|
1475
|
-
this.
|
|
1627
|
+
this.av(this.d._inner[a]);
|
|
1476
1628
|
}
|
|
1477
|
-
this.
|
|
1629
|
+
this.ar();
|
|
1478
1630
|
}
|
|
1479
|
-
|
|
1480
|
-
this.
|
|
1631
|
+
ao() {
|
|
1632
|
+
this.y.clear();
|
|
1633
|
+
this.z.clear();
|
|
1481
1634
|
this.x.clear();
|
|
1482
|
-
this.v.clear();
|
|
1483
1635
|
for (let a = 0; a < this.d.count; a++) {
|
|
1484
1636
|
this.d._inner[a].e = this;
|
|
1485
|
-
if (this.d._inner[a].
|
|
1486
|
-
this.
|
|
1637
|
+
if (this.d._inner[a].ar != null) {
|
|
1638
|
+
this.x.item(this.d._inner[a].ar, this.d._inner[a]);
|
|
1487
1639
|
}
|
|
1488
1640
|
}
|
|
1489
1641
|
for (let b = 0; b < this.d.count; b++) {
|
|
1490
|
-
if (this.d._inner[b].
|
|
1491
|
-
if (this.
|
|
1492
|
-
if (!this.
|
|
1493
|
-
this.
|
|
1642
|
+
if (this.d._inner[b].a0 != null) {
|
|
1643
|
+
if (this.x.containsKey(this.d._inner[b].a0)) {
|
|
1644
|
+
if (!this.y.containsKey(this.d._inner[b].a0)) {
|
|
1645
|
+
this.y.item(this.d._inner[b].a0, new List$1(ToolAction.$, 0));
|
|
1494
1646
|
}
|
|
1495
|
-
let c = this.
|
|
1647
|
+
let c = this.y.item(this.d._inner[b].a0);
|
|
1496
1648
|
c.add(this.d._inner[b]);
|
|
1497
1649
|
}
|
|
1498
1650
|
}
|
|
1499
1651
|
}
|
|
1500
1652
|
for (let d = 0; d < this.d.count; d++) {
|
|
1501
|
-
if (this.d._inner[d].
|
|
1502
|
-
let e = this.d._inner[d].
|
|
1503
|
-
if (!this.
|
|
1504
|
-
this.
|
|
1653
|
+
if (this.d._inner[d].h == 6) {
|
|
1654
|
+
let e = this.d._inner[d].bk;
|
|
1655
|
+
if (!this.z.containsKey(e)) {
|
|
1656
|
+
this.z.item(e, new List$1(ToolAction.$, 0));
|
|
1505
1657
|
}
|
|
1506
|
-
this.
|
|
1658
|
+
this.z.item(e).add(this.d._inner[d]);
|
|
1507
1659
|
}
|
|
1508
1660
|
}
|
|
1509
1661
|
}
|
|
1510
|
-
|
|
1511
|
-
if (a.
|
|
1662
|
+
w(a) {
|
|
1663
|
+
if (a.ar == null) {
|
|
1512
1664
|
return false;
|
|
1513
1665
|
}
|
|
1514
|
-
return this.
|
|
1666
|
+
return this.y.containsKey(a.ar);
|
|
1515
1667
|
}
|
|
1516
1668
|
c(a) {
|
|
1517
|
-
if (this.
|
|
1518
|
-
return this.
|
|
1669
|
+
if (this.x.containsKey(a)) {
|
|
1670
|
+
return this.x.item(a);
|
|
1519
1671
|
}
|
|
1520
1672
|
return null;
|
|
1521
1673
|
}
|
|
1522
|
-
|
|
1523
|
-
if (a.
|
|
1674
|
+
aa(a) {
|
|
1675
|
+
if (a.ar == null) {
|
|
1524
1676
|
return null;
|
|
1525
1677
|
}
|
|
1526
|
-
if (this.
|
|
1527
|
-
return this.
|
|
1678
|
+
if (this.y.containsKey(a.ar)) {
|
|
1679
|
+
return this.y.item(a.ar);
|
|
1528
1680
|
}
|
|
1529
1681
|
return null;
|
|
1530
1682
|
}
|
|
1531
|
-
|
|
1683
|
+
av(a) {
|
|
1532
1684
|
let b = new ToolActionMeasurementContext();
|
|
1533
|
-
this.
|
|
1534
|
-
a.
|
|
1535
|
-
this.
|
|
1685
|
+
this.a2(b);
|
|
1686
|
+
a.a7(this, b);
|
|
1687
|
+
this.aw(this.f, b);
|
|
1536
1688
|
}
|
|
1537
|
-
|
|
1689
|
+
a2(a) {
|
|
1538
1690
|
a.a = this.k;
|
|
1539
|
-
a.b = this.
|
|
1691
|
+
a.b = this.ab;
|
|
1540
1692
|
}
|
|
1541
|
-
|
|
1693
|
+
aw(a, b) {
|
|
1542
1694
|
if (!isNaN_(b.e)) {
|
|
1543
1695
|
if (isNaN_(a.e)) {
|
|
1544
1696
|
a.e = b.e;
|
|
@@ -1556,39 +1708,39 @@ export let ToolPanel = /*@__PURE__*/ (() => {
|
|
|
1556
1708
|
}
|
|
1557
1709
|
}
|
|
1558
1710
|
}
|
|
1559
|
-
|
|
1711
|
+
a7() {
|
|
1560
1712
|
this.f = new ToolActionMeasurementContext();
|
|
1561
1713
|
this.f.a = this.k;
|
|
1562
|
-
this.f.b = this.
|
|
1714
|
+
this.f.b = this.ab;
|
|
1563
1715
|
}
|
|
1564
|
-
|
|
1716
|
+
ar() {
|
|
1565
1717
|
if (this.b.itemsSource != this.actions) {
|
|
1566
1718
|
this.b.itemsSource = this.actions;
|
|
1567
1719
|
}
|
|
1568
1720
|
}
|
|
1569
|
-
|
|
1570
|
-
if (this.
|
|
1571
|
-
this.
|
|
1721
|
+
as() {
|
|
1722
|
+
if (this.v) {
|
|
1723
|
+
this.aq();
|
|
1572
1724
|
}
|
|
1573
1725
|
if (this.b != null) {
|
|
1574
1726
|
this.b.bt();
|
|
1575
1727
|
}
|
|
1576
1728
|
}
|
|
1577
|
-
|
|
1578
|
-
let b = a.
|
|
1579
|
-
let c = a.
|
|
1580
|
-
if (this.
|
|
1581
|
-
if (this.
|
|
1582
|
-
for (let d = 0; d < this.
|
|
1583
|
-
if (this.
|
|
1584
|
-
this.
|
|
1729
|
+
a6(a) {
|
|
1730
|
+
let b = a.bk;
|
|
1731
|
+
let c = a.ar;
|
|
1732
|
+
if (this.z != null) {
|
|
1733
|
+
if (this.z.containsKey(b)) {
|
|
1734
|
+
for (let d = 0; d < this.z.item(b).count; d++) {
|
|
1735
|
+
if (this.z.item(b)._inner[d].ar != c) {
|
|
1736
|
+
this.z.item(b)._inner[d].bl();
|
|
1585
1737
|
}
|
|
1586
1738
|
}
|
|
1587
1739
|
}
|
|
1588
1740
|
}
|
|
1589
1741
|
}
|
|
1590
|
-
|
|
1591
|
-
this.
|
|
1742
|
+
au(a, b) {
|
|
1743
|
+
this.ay();
|
|
1592
1744
|
}
|
|
1593
1745
|
notifySizeChanged() {
|
|
1594
1746
|
this.l.u();
|
|
@@ -1599,36 +1751,39 @@ export let ToolPanel = /*@__PURE__*/ (() => {
|
|
|
1599
1751
|
provideContainer(a) {
|
|
1600
1752
|
this.l.v(a);
|
|
1601
1753
|
}
|
|
1602
|
-
get
|
|
1603
|
-
return this.
|
|
1754
|
+
get p() {
|
|
1755
|
+
return this.o;
|
|
1604
1756
|
}
|
|
1605
|
-
set
|
|
1606
|
-
let b = this.
|
|
1607
|
-
this.
|
|
1608
|
-
if (b != this.
|
|
1609
|
-
this.
|
|
1757
|
+
set p(a) {
|
|
1758
|
+
let b = this.o;
|
|
1759
|
+
this.o = a;
|
|
1760
|
+
if (b != this.o) {
|
|
1761
|
+
this.a0("CellTextStyle", b, this.o);
|
|
1610
1762
|
}
|
|
1611
1763
|
}
|
|
1612
|
-
|
|
1613
|
-
if (this.
|
|
1764
|
+
q() {
|
|
1765
|
+
if (this.p == null) {
|
|
1614
1766
|
return this.l.f();
|
|
1615
1767
|
}
|
|
1616
|
-
return this.
|
|
1768
|
+
return this.p;
|
|
1617
1769
|
}
|
|
1618
|
-
|
|
1770
|
+
a0(a, b, c) {
|
|
1619
1771
|
if (this.propertyChanged != null) {
|
|
1620
1772
|
this.propertyChanged(this, new PropertyChangedEventArgs(a));
|
|
1621
1773
|
}
|
|
1622
|
-
this.
|
|
1774
|
+
this.a3(a, b, c);
|
|
1623
1775
|
}
|
|
1624
|
-
|
|
1776
|
+
a3(a, b, c) {
|
|
1625
1777
|
switch (a) {
|
|
1778
|
+
case "BaseTheme":
|
|
1779
|
+
this.a8();
|
|
1780
|
+
break;
|
|
1626
1781
|
case "CellTextStyle":
|
|
1627
|
-
this.
|
|
1782
|
+
this.a5();
|
|
1628
1783
|
break;
|
|
1629
1784
|
case "BackgroundColor":
|
|
1630
1785
|
case "TextColor":
|
|
1631
|
-
this.
|
|
1786
|
+
this.a5();
|
|
1632
1787
|
break;
|
|
1633
1788
|
case "Orientation":
|
|
1634
1789
|
if (this.b != null) {
|
|
@@ -1638,34 +1793,49 @@ export let ToolPanel = /*@__PURE__*/ (() => {
|
|
|
1638
1793
|
case "Actions":
|
|
1639
1794
|
if (b != null) {
|
|
1640
1795
|
let d = b;
|
|
1641
|
-
d.collectionChanged = delegateRemove(d.collectionChanged, runOn(this, this.
|
|
1796
|
+
d.collectionChanged = delegateRemove(d.collectionChanged, runOn(this, this.an));
|
|
1642
1797
|
}
|
|
1643
1798
|
if (c != null) {
|
|
1644
1799
|
let e = c;
|
|
1645
|
-
e.collectionChanged = delegateCombine(e.collectionChanged, runOn(this, this.
|
|
1800
|
+
e.collectionChanged = delegateCombine(e.collectionChanged, runOn(this, this.an));
|
|
1646
1801
|
}
|
|
1647
|
-
this.
|
|
1802
|
+
this.a5();
|
|
1648
1803
|
break;
|
|
1649
1804
|
}
|
|
1650
1805
|
}
|
|
1651
|
-
|
|
1652
|
-
|
|
1806
|
+
a8() {
|
|
1807
|
+
for (let a = 0; a < this.d.count; a++) {
|
|
1808
|
+
this.d._inner[a].g = this.n;
|
|
1809
|
+
}
|
|
1810
|
+
}
|
|
1811
|
+
get n() {
|
|
1812
|
+
return this.m;
|
|
1813
|
+
}
|
|
1814
|
+
set n(a) {
|
|
1815
|
+
let b = this.m;
|
|
1816
|
+
this.m = a;
|
|
1817
|
+
if (b != this.m) {
|
|
1818
|
+
this.a0("BaseTheme", enumGetBox(BaseControlTheme_$type, b), enumGetBox(BaseControlTheme_$type, a));
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
get bb() {
|
|
1822
|
+
return this.a9;
|
|
1653
1823
|
}
|
|
1654
|
-
set
|
|
1655
|
-
let b = this.
|
|
1656
|
-
this.
|
|
1657
|
-
if (b != this.
|
|
1658
|
-
this.
|
|
1824
|
+
set bb(a) {
|
|
1825
|
+
let b = this.a9;
|
|
1826
|
+
this.a9 = a;
|
|
1827
|
+
if (b != this.a9) {
|
|
1828
|
+
this.a0("BackgroundColor", b, a);
|
|
1659
1829
|
}
|
|
1660
1830
|
}
|
|
1661
|
-
get
|
|
1662
|
-
return this.
|
|
1831
|
+
get be() {
|
|
1832
|
+
return this.ba;
|
|
1663
1833
|
}
|
|
1664
|
-
set
|
|
1665
|
-
let b = this.
|
|
1666
|
-
this.
|
|
1667
|
-
if (b != this.
|
|
1668
|
-
this.
|
|
1834
|
+
set be(a) {
|
|
1835
|
+
let b = this.ba;
|
|
1836
|
+
this.ba = a;
|
|
1837
|
+
if (b != this.ba) {
|
|
1838
|
+
this.a0("TextColor", b, a);
|
|
1669
1839
|
}
|
|
1670
1840
|
}
|
|
1671
1841
|
get k() {
|
|
@@ -1675,10 +1845,10 @@ export let ToolPanel = /*@__PURE__*/ (() => {
|
|
|
1675
1845
|
let b = this.i;
|
|
1676
1846
|
this.i = a;
|
|
1677
1847
|
if (b != this.i) {
|
|
1678
|
-
this.
|
|
1848
|
+
this.a0("Orientation", enumGetBox(ToolPanelOrientation_$type, b), enumGetBox(ToolPanelOrientation_$type, a));
|
|
1679
1849
|
}
|
|
1680
1850
|
}
|
|
1681
|
-
|
|
1851
|
+
a1(a, b) {
|
|
1682
1852
|
if (this.onCommand != null) {
|
|
1683
1853
|
this.onCommand(this, ((() => {
|
|
1684
1854
|
let $ret = new ToolCommandEventArgs();
|
|
@@ -1686,14 +1856,14 @@ export let ToolPanel = /*@__PURE__*/ (() => {
|
|
|
1686
1856
|
return $ret;
|
|
1687
1857
|
})()));
|
|
1688
1858
|
}
|
|
1689
|
-
if (a.
|
|
1690
|
-
this.
|
|
1859
|
+
if (a.h == 6) {
|
|
1860
|
+
this.a6(a);
|
|
1691
1861
|
}
|
|
1692
1862
|
}
|
|
1693
1863
|
}
|
|
1694
1864
|
ToolPanel.$t = /*@__PURE__*/ markType(ToolPanel, 'ToolPanel', Base.$, [INotifyPropertyChanged_$type]);
|
|
1695
|
-
ToolPanel.
|
|
1696
|
-
ToolPanel.
|
|
1865
|
+
ToolPanel.bc = /*@__PURE__*/ BrushUtil.g(255, 248, 248, 248);
|
|
1866
|
+
ToolPanel.bd = /*@__PURE__*/ BrushUtil.g(255, 24, 29, 31);
|
|
1697
1867
|
ToolPanel.j = 0;
|
|
1698
1868
|
return ToolPanel;
|
|
1699
1869
|
})();
|