@flashist/fconsole 0.0.5

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.
Files changed (55) hide show
  1. package/console/Config.d.ts +118 -0
  2. package/console/Config.js +109 -0
  3. package/console/Config.js.map +1 -0
  4. package/console/FC.d.ts +29 -0
  5. package/console/FC.js +136 -0
  6. package/console/FC.js.map +1 -0
  7. package/console/tools/GlobalVarTools.d.ts +4 -0
  8. package/console/tools/GlobalVarTools.js +19 -0
  9. package/console/tools/GlobalVarTools.js.map +1 -0
  10. package/console/view/BaseConsoleButton.d.ts +19 -0
  11. package/console/view/BaseConsoleButton.js +85 -0
  12. package/console/view/BaseConsoleButton.js.map +1 -0
  13. package/console/view/BaseConsoleView.d.ts +41 -0
  14. package/console/view/BaseConsoleView.js +195 -0
  15. package/console/view/BaseConsoleView.js.map +1 -0
  16. package/console/view/ConsoleContentContainer.d.ts +8 -0
  17. package/console/view/ConsoleContentContainer.js +30 -0
  18. package/console/view/ConsoleContentContainer.js.map +1 -0
  19. package/console/view/ConsoleView.d.ts +9 -0
  20. package/console/view/ConsoleView.js +46 -0
  21. package/console/view/ConsoleView.js.map +1 -0
  22. package/console/view/capture/CaptureKeyButton.d.ts +16 -0
  23. package/console/view/capture/CaptureKeyButton.js +102 -0
  24. package/console/view/capture/CaptureKeyButton.js.map +1 -0
  25. package/console/view/capture/CaptureKeyButtonEvent.d.ts +3 -0
  26. package/console/view/capture/CaptureKeyButtonEvent.js +8 -0
  27. package/console/view/capture/CaptureKeyButtonEvent.js.map +1 -0
  28. package/console/view/displaylist/DisplayListItemView.d.ts +17 -0
  29. package/console/view/displaylist/DisplayListItemView.js +92 -0
  30. package/console/view/displaylist/DisplayListItemView.js.map +1 -0
  31. package/console/view/displaylist/DisplayListView.d.ts +56 -0
  32. package/console/view/displaylist/DisplayListView.js +555 -0
  33. package/console/view/displaylist/DisplayListView.js.map +1 -0
  34. package/console/view/fps/FpsMeterView.d.ts +13 -0
  35. package/console/view/fps/FpsMeterView.js +86 -0
  36. package/console/view/fps/FpsMeterView.js.map +1 -0
  37. package/console/view/pause/PauseKeyButton.d.ts +20 -0
  38. package/console/view/pause/PauseKeyButton.js +132 -0
  39. package/console/view/pause/PauseKeyButton.js.map +1 -0
  40. package/console/view/tooltip/ConsoleTooltip.d.ts +11 -0
  41. package/console/view/tooltip/ConsoleTooltip.js +82 -0
  42. package/console/view/tooltip/ConsoleTooltip.js.map +1 -0
  43. package/index.d.ts +15 -0
  44. package/index.js +16 -0
  45. package/index.js.map +1 -0
  46. package/package.json +50 -0
  47. package/tooltip/BaseTooltip.d.ts +9 -0
  48. package/tooltip/BaseTooltip.js +34 -0
  49. package/tooltip/BaseTooltip.js.map +1 -0
  50. package/tooltip/ITooltipData.d.ts +4 -0
  51. package/tooltip/ITooltipData.js +2 -0
  52. package/tooltip/ITooltipData.js.map +1 -0
  53. package/tooltip/TooltipManager.d.ts +37 -0
  54. package/tooltip/TooltipManager.js +135 -0
  55. package/tooltip/TooltipManager.js.map +1 -0
@@ -0,0 +1,555 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ if (typeof b !== "function" && b !== null)
10
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ import { ObjectsPool, ObjectTools } from "@flashist/fcore";
17
+ import { FLabel, Point, InteractiveEvent, KeyCodes, FDisplayTools, FApp, FContainer, DisplayTools, InputManager, InputManagerEvent } from "@flashist/flibs";
18
+ import { DisplayListItemView } from "./DisplayListItemView";
19
+ import { BaseConsoleView } from "../BaseConsoleView";
20
+ import { BaseConsoleButton } from "../BaseConsoleButton";
21
+ import { PauseKeyButton } from "../pause/PauseKeyButton";
22
+ import { FC } from "../../FC";
23
+ import { ConsoleContentContainer } from "../ConsoleContentContainer";
24
+ var DisplayListView = /** @class */ (function (_super) {
25
+ __extends(DisplayListView, _super);
26
+ function DisplayListView() {
27
+ return _super.call(this) || this;
28
+ }
29
+ DisplayListView.prototype.construction = function () {
30
+ _super.prototype.construction.call(this);
31
+ this.captureVisible = true;
32
+ this.pauseVisible = true;
33
+ this.lastCheckedPos = new Point();
34
+ this.moveObjectIndex = -1;
35
+ this.titleLabel.text = FC.config.localization.displayListTitle;
36
+ this.insideContentCont.visible = true;
37
+ this.pauseKeyBtn = new PauseKeyButton();
38
+ this.insideContentCont.addChild(this.pauseKeyBtn.view);
39
+ this.pauseKeyBtn.view.y = 5;
40
+ //
41
+ this.pauseKeyBtn.tooltipData = { title: FC.config.localization.pauseUpdateKeyBtnTooltipTitle };
42
+ this.ignoreConsoleBtn = new BaseConsoleButton();
43
+ this.insideContentCont.addChild(this.ignoreConsoleBtn.view);
44
+ this.ignoreConsoleBtn.tooltipData = {
45
+ title: FC.config.localization.ignoreInfoBtnTooltipTitle,
46
+ text: FC.config.localization.ignoreInfoBtnTooltipText
47
+ };
48
+ this.ignoreConsoleBtn.field.size = FC.config.btnSettings.smallSize;
49
+ //
50
+ this.ignoreConsoleBtn.view.y = this.pauseKeyBtn.view.y + this.pauseKeyBtn.view.height + 5;
51
+ this.additionalInfoBtn = new BaseConsoleButton();
52
+ this.insideContentCont.addChild(this.additionalInfoBtn.view);
53
+ this.additionalInfoBtn.tooltipData = {
54
+ title: FC.config.localization.additionalInfoBtnTooltipTitle,
55
+ text: FC.config.localization.additionalInfoBtnTooltipText
56
+ };
57
+ this.additionalInfoBtn.field.size = FC.config.btnSettings.smallSize;
58
+ //
59
+ this.additionalInfoBtn.view.y = this.ignoreConsoleBtn.view.y + this.ignoreConsoleBtn.view.height;
60
+ this.moveHelperBtn = new BaseConsoleButton();
61
+ this.insideContentCont.addChild(this.moveHelperBtn.view);
62
+ this.moveHelperBtn.tooltipData = {
63
+ title: FC.config.localization.moveHelperTooltipTitle,
64
+ text: FC.config.localization.moveHelperTooltipText
65
+ };
66
+ this.moveHelperBtn.field.size = FC.config.btnSettings.smallSize;
67
+ //
68
+ this.moveHelperBtn.view.y = this.additionalInfoBtn.view.y + this.additionalInfoBtn.view.height;
69
+ this.displayListField = new FLabel({
70
+ autosize: true,
71
+ color: FC.config.displayListSettings.hierarchyLabelColor,
72
+ size: FC.config.displayListSettings.hierarchyLabelSize
73
+ });
74
+ this.insideContentCont.addChild(this.displayListField);
75
+ //
76
+ this.displayListField.y = this.moveHelperBtn.view.y + this.moveHelperBtn.view.height + 5;
77
+ //
78
+ this.displayListField.visible = false;
79
+ this.displayListItemsPool = new ObjectsPool();
80
+ this.displayListItemsCont = new FContainer();
81
+ this.insideContentCont.addChild(this.displayListItemsCont);
82
+ //
83
+ this.displayListItemsCont.y = this.moveHelperBtn.view.y + this.moveHelperBtn.view.height + 5;
84
+ this.closeBtn = this.createTitleBtn(FC.config.localization.closeBtnLabel, { title: FC.config.localization.closeBtnTooltipTitle });
85
+ this.captureKeyBtn.tooltipData.text = FC.config.localization.captureKeyBtnTooltipText;
86
+ if (FC.config.displayListSettings.defaultCaptureKeyCode) {
87
+ this.captureKeyBtn.captureKey = FC.config.displayListSettings.defaultCaptureKey;
88
+ this.captureKeyBtn.captureKeyCode = FC.config.displayListSettings.defaultCaptureKeyCode;
89
+ }
90
+ if (FC.config.displayListSettings.defaultPauseKeyCode) {
91
+ this.pauseKeyBtn.pauseKey = FC.config.displayListSettings.defaultPauseKey;
92
+ this.pauseKeyBtn.pauseKeyCode = FC.config.displayListSettings.defaultPauseKeyCode;
93
+ }
94
+ this.isIgnoreConsoleEnabled = FC.config.displayListSettings.defaultIgnoreConsoleEnabled;
95
+ this.isAdditionalInfoEnabled = FC.config.displayListSettings.defaultAdditionalInfoEnabled;
96
+ this.isMoveHelperEnabled = FC.config.displayListSettings.defaultMoveHelperEnabled;
97
+ };
98
+ DisplayListView.prototype.destruction = function () {
99
+ _super.prototype.destruction.call(this);
100
+ this.lastUnderPointData = null;
101
+ this.lastAllObjectsUnderPointList = null;
102
+ if (this.moveObject) {
103
+ this.moveObject = null;
104
+ }
105
+ this.prevMoveObject = null;
106
+ };
107
+ DisplayListView.prototype.addListeners = function () {
108
+ _super.prototype.addListeners.call(this);
109
+ /*this.eventListenerHelper.addEventListener(
110
+ EngineAdapter.instance.mainTicker,
111
+ TickerEvent.TICK,
112
+ this.onTick
113
+ );*/
114
+ FApp.instance.ticker.add(this.onTick, this);
115
+ this.eventListenerHelper.addEventListener(this.closeBtn.view, InteractiveEvent.TAP, this.onClose);
116
+ this.eventListenerHelper.addEventListener(this.additionalInfoBtn.view, InteractiveEvent.TAP, this.onAdditionalInfo);
117
+ this.eventListenerHelper.addEventListener(this.ignoreConsoleBtn.view, InteractiveEvent.TAP, this.onIgnoreConsole);
118
+ this.eventListenerHelper.addEventListener(this.moveHelperBtn.view, InteractiveEvent.TAP, this.onMoveHelper);
119
+ this.eventListenerHelper.addEventListener(InputManager.instance, InputManagerEvent.KEY_DOWN, this.onKeyDown);
120
+ };
121
+ DisplayListView.prototype.removeListeners = function () {
122
+ _super.prototype.removeListeners.call(this);
123
+ FApp.instance.ticker.remove(this.onTick, this);
124
+ };
125
+ DisplayListView.prototype.onTick = function () {
126
+ if (this.paused) {
127
+ return;
128
+ }
129
+ if (this.pauseKeyBtn.isActivated) {
130
+ return;
131
+ }
132
+ if (this.visible) {
133
+ var globalPos = FApp.instance.getGlobalInteractionPosition();
134
+ this.lastCheckedPos.x = globalPos.x;
135
+ this.lastCheckedPos.y = globalPos.y;
136
+ var filter = null;
137
+ if (this.isIgnoreConsoleEnabled) {
138
+ filter = function (object) {
139
+ return !(object instanceof ConsoleContentContainer);
140
+ };
141
+ }
142
+ var underPointData = FDisplayTools.getObjectsUnderPoint(FApp.instance.stage, globalPos.x, globalPos.y, filter);
143
+ if (this.forceUpdateUnderPointView || !this.checkUnderPointDataEqual(underPointData, this.lastUnderPointData)) {
144
+ this.forceUpdateUnderPointView = false;
145
+ this.lastUnderPointData = underPointData;
146
+ this.lastAllObjectsUnderPointList = [];
147
+ this.parseUnderPointDataToSingleList(this.lastUnderPointData, this.lastAllObjectsUnderPointList);
148
+ this.commitDisplayListData();
149
+ }
150
+ }
151
+ };
152
+ DisplayListView.prototype.onCapture = function () {
153
+ _super.prototype.onCapture.call(this);
154
+ // Log the parsed structure
155
+ console.group(FC.config.localization.displayListStructureLogTitle);
156
+ this.groupLogUnderPointData(this.lastUnderPointData);
157
+ console.groupEnd();
158
+ };
159
+ DisplayListView.prototype.onIgnoreConsole = function () {
160
+ this.isIgnoreConsoleEnabled = !this.isIgnoreConsoleEnabled;
161
+ };
162
+ DisplayListView.prototype.onAdditionalInfo = function () {
163
+ this.isAdditionalInfoEnabled = !this.isAdditionalInfoEnabled;
164
+ };
165
+ DisplayListView.prototype.onMoveHelper = function () {
166
+ this.isMoveHelperEnabled = !this.isMoveHelperEnabled;
167
+ };
168
+ DisplayListView.prototype.onKeyDown = function (data) {
169
+ if (this.isMoveHelperEnabled) {
170
+ var tempCode = data.nativeKeyboardEvent.code;
171
+ if (data.nativeKeyboardEvent.ctrlKey) {
172
+ this.moveObjectIndex--;
173
+ this.commitData();
174
+ }
175
+ else if (DisplayListView.ARROW_KEY_CODES.indexOf(tempCode) != -1) {
176
+ if (this.moveObject) {
177
+ var tempChangeX = 0;
178
+ var tempChangeY = 0;
179
+ if (tempCode == KeyCodes.ARROW_LEFT) {
180
+ tempChangeX = -1;
181
+ }
182
+ else if (tempCode == KeyCodes.ARROW_RIGHT) {
183
+ tempChangeX = 1;
184
+ }
185
+ if (tempCode == KeyCodes.ARROW_UP) {
186
+ tempChangeY = -1;
187
+ }
188
+ else if (tempCode == KeyCodes.ARROW_DOWN) {
189
+ tempChangeY = 1;
190
+ }
191
+ if (data.nativeKeyboardEvent.shiftKey) {
192
+ tempChangeX *= 10;
193
+ tempChangeY *= 10;
194
+ }
195
+ this.moveObject.x += tempChangeX;
196
+ this.moveObject.y += tempChangeY;
197
+ console.log("Movable object: ", this.moveObject);
198
+ console.log("x: " + this.moveObject.x + ", y: " + this.moveObject.y);
199
+ }
200
+ }
201
+ }
202
+ };
203
+ DisplayListView.prototype.parseUnderPointDataToText = function (data, prefix) {
204
+ if (prefix === void 0) { prefix = "∟"; }
205
+ var result = "";
206
+ if (data && data.object) {
207
+ var tempName = data.object.toString();
208
+ if (data.object.constructor) {
209
+ tempName = ObjectTools.getConstructorName(data.object.constructor);
210
+ }
211
+ result += prefix + " " + tempName;
212
+ if (FC.config.displayListSettings.nameParamName) {
213
+ if (data.object[FC.config.displayListSettings.nameParamName]) {
214
+ result += " (" + data.object[FC.config.displayListSettings.nameParamName] + ")";
215
+ }
216
+ }
217
+ if (this.isMoveHelperEnabled) {
218
+ if (data.object == this.moveObject) {
219
+ result += " " + FC.config.localization.movableObjectText;
220
+ }
221
+ }
222
+ if (this.isAdditionalInfoEnabled) {
223
+ if (FC.config.displayListSettings.additionalInfoParams) {
224
+ result += " - { ";
225
+ var parsedData = void 0;
226
+ var tempParamConfig = void 0;
227
+ var keys = Object.keys(FC.config.displayListSettings.additionalInfoParams);
228
+ var tempKey = void 0;
229
+ var tempVisualKey = void 0;
230
+ var keysCount = keys.length;
231
+ for (var keyIndex = 0; keyIndex < keysCount; keyIndex++) {
232
+ tempKey = keys[keyIndex];
233
+ if (data.object[tempKey] !== undefined) {
234
+ if (keyIndex > 0) {
235
+ result += ", ";
236
+ }
237
+ parsedData = data.object[tempKey];
238
+ //
239
+ tempParamConfig = FC.config.displayListSettings.additionalInfoParams[tempKey];
240
+ if (tempParamConfig.toFixed || tempParamConfig.toFixed === 0) {
241
+ if (parsedData !== Math.floor(parsedData)) {
242
+ parsedData = parsedData.toFixed(tempParamConfig.toFixed);
243
+ }
244
+ }
245
+ //
246
+ tempVisualKey = tempKey;
247
+ if (tempParamConfig.visualName) {
248
+ tempVisualKey = tempParamConfig.visualName;
249
+ }
250
+ result += tempVisualKey + ": " + parsedData;
251
+ }
252
+ }
253
+ result += " }";
254
+ }
255
+ }
256
+ if (data.children && data.children.length > 0) {
257
+ var childPrefix = "- " + prefix;
258
+ var childrenCount = data.children.length;
259
+ for (var childIndex = 0; childIndex < childrenCount; childIndex++) {
260
+ result += "\n" + this.parseUnderPointDataToText(data.children[childIndex], childPrefix);
261
+ }
262
+ }
263
+ }
264
+ return result;
265
+ };
266
+ DisplayListView.prototype.parseUnderPointDataToVisualItemsList = function (data, prefix) {
267
+ if (prefix === void 0) { prefix = "∟"; }
268
+ var result = [];
269
+ if (data && data.object) {
270
+ var tempName = data.object.toString();
271
+ if (data.object.constructor) {
272
+ tempName = ObjectTools.getConstructorName(data.object.constructor);
273
+ }
274
+ var tempItemText = prefix + " " + tempName;
275
+ if (FC.config.displayListSettings.nameParamName) {
276
+ if (data.object[FC.config.displayListSettings.nameParamName]) {
277
+ tempItemText += " (" + data.object[FC.config.displayListSettings.nameParamName] + ")";
278
+ }
279
+ }
280
+ if (this.isMoveHelperEnabled) {
281
+ if (data.object == this.moveObject) {
282
+ tempItemText += " " + FC.config.localization.movableObjectText;
283
+ }
284
+ }
285
+ if (this.isAdditionalInfoEnabled) {
286
+ if (FC.config.displayListSettings.additionalInfoParams) {
287
+ tempItemText += " - { ";
288
+ var parsedData = void 0;
289
+ var tempParamConfig = void 0;
290
+ var keys = Object.keys(FC.config.displayListSettings.additionalInfoParams);
291
+ var tempKey = void 0;
292
+ var tempVisualKey = void 0;
293
+ var keysCount = keys.length;
294
+ for (var keyIndex = 0; keyIndex < keysCount; keyIndex++) {
295
+ tempKey = keys[keyIndex];
296
+ if (data.object[tempKey] !== undefined) {
297
+ if (keyIndex > 0) {
298
+ tempItemText += ", ";
299
+ }
300
+ parsedData = data.object[tempKey];
301
+ //
302
+ tempParamConfig = FC.config.displayListSettings.additionalInfoParams[tempKey];
303
+ if (tempParamConfig.toFixed || tempParamConfig.toFixed === 0) {
304
+ if (parsedData !== Math.floor(parsedData)) {
305
+ parsedData = parsedData.toFixed(tempParamConfig.toFixed);
306
+ }
307
+ }
308
+ //
309
+ tempVisualKey = tempKey;
310
+ if (tempParamConfig.visualName) {
311
+ tempVisualKey = tempParamConfig.visualName;
312
+ }
313
+ tempItemText += tempVisualKey + ": " + parsedData;
314
+ }
315
+ }
316
+ tempItemText += " }";
317
+ }
318
+ }
319
+ var tempItem = this.displayListItemsPool.getObject(DisplayListItemView);
320
+ tempItem.data = data;
321
+ tempItem.text = tempItemText;
322
+ //
323
+ result.push(tempItem);
324
+ if (data.children && data.children.length > 0) {
325
+ var childPrefix = "- " + prefix;
326
+ var childrenCount = data.children.length;
327
+ for (var childIndex = 0; childIndex < childrenCount; childIndex++) {
328
+ // result += "\n" + this.parseUnderPointDataToText(data.children[childIndex], childPrefix);
329
+ result.push.apply(result, this.parseUnderPointDataToVisualItemsList(data.children[childIndex], childPrefix));
330
+ }
331
+ }
332
+ }
333
+ return result;
334
+ };
335
+ DisplayListView.prototype.groupLogUnderPointData = function (data, prefix) {
336
+ if (prefix === void 0) { prefix = "∟"; }
337
+ if (data && data.object) {
338
+ //console.log(data.object);
339
+ //console.dir(data.object);
340
+ var constructorName = ObjectTools.getConstructorName(data.object);
341
+ var logPrefix = prefix;
342
+ if (constructorName) {
343
+ logPrefix = prefix + " " + constructorName;
344
+ }
345
+ console.log(logPrefix, data.object);
346
+ if (data.children && data.children.length > 0) {
347
+ // console.group(" children");
348
+ var childrenCount = data.children.length;
349
+ for (var childIndex = 0; childIndex < childrenCount; childIndex++) {
350
+ this.groupLogUnderPointData(data.children[childIndex], " " + prefix);
351
+ }
352
+ // console.groupEnd();
353
+ }
354
+ }
355
+ };
356
+ DisplayListView.prototype.checkUnderPointDataEqual = function (data1, data2) {
357
+ var result = true;
358
+ // If one of the data objects exists and other doesn't
359
+ if (!!data1 != !!data2) {
360
+ result = false;
361
+ // If 2 data objects are available
362
+ }
363
+ else if (data1 && data2) {
364
+ if (data1.object != data2.object) {
365
+ result = false;
366
+ // If one of data has children and other doesn't have
367
+ }
368
+ else if (!!data1.children != !!data2.children) {
369
+ result = false;
370
+ // If there are children arrays in the both data objects
371
+ }
372
+ else if (data1.children && data2.children) {
373
+ // If length of the children lists are not equal, then data objects are not equal too
374
+ if (data1.children.length != data2.children.length) {
375
+ result = false;
376
+ }
377
+ else {
378
+ var childrenCount = data1.children.length;
379
+ for (var childIndex = 0; childIndex < childrenCount; childIndex++) {
380
+ // If one of the children are not equeal, than stop checking and break the loop
381
+ if (!this.checkUnderPointDataEqual(data1.children[childIndex], data2.children[childIndex])) {
382
+ result = false;
383
+ break;
384
+ }
385
+ }
386
+ }
387
+ }
388
+ }
389
+ return result;
390
+ };
391
+ DisplayListView.prototype.parseUnderPointDataToSingleList = function (data, list) {
392
+ if (data && data.object) {
393
+ list.push(data.object);
394
+ if (data.children && data.children.length > 0) {
395
+ var childrenCount = data.children.length;
396
+ for (var childIndex = 0; childIndex < childrenCount; childIndex++) {
397
+ this.parseUnderPointDataToSingleList(data.children[childIndex], list);
398
+ }
399
+ }
400
+ }
401
+ };
402
+ Object.defineProperty(DisplayListView.prototype, "isAdditionalInfoEnabled", {
403
+ get: function () {
404
+ return this._isAdditionalInfoEnabled;
405
+ },
406
+ set: function (value) {
407
+ if (value == this._isAdditionalInfoEnabled) {
408
+ return;
409
+ }
410
+ this._isAdditionalInfoEnabled = value;
411
+ this.commitData();
412
+ },
413
+ enumerable: false,
414
+ configurable: true
415
+ });
416
+ Object.defineProperty(DisplayListView.prototype, "isMoveHelperEnabled", {
417
+ get: function () {
418
+ return this._isMoveHelperEnabled;
419
+ },
420
+ set: function (value) {
421
+ if (value == this._isMoveHelperEnabled) {
422
+ return;
423
+ }
424
+ this._isMoveHelperEnabled = value;
425
+ this.commitData();
426
+ },
427
+ enumerable: false,
428
+ configurable: true
429
+ });
430
+ Object.defineProperty(DisplayListView.prototype, "isIgnoreConsoleEnabled", {
431
+ get: function () {
432
+ return this._isIgnoreConsoleEnabled;
433
+ },
434
+ set: function (value) {
435
+ if (value == this._isIgnoreConsoleEnabled) {
436
+ return;
437
+ }
438
+ this._isIgnoreConsoleEnabled = value;
439
+ this.commitData();
440
+ },
441
+ enumerable: false,
442
+ configurable: true
443
+ });
444
+ DisplayListView.prototype.commitData = function () {
445
+ _super.prototype.commitData.call(this);
446
+ this.commitDisplayListData();
447
+ if (!this.visible) {
448
+ this.isAdditionalInfoEnabled = false;
449
+ this.isMoveHelperEnabled = false;
450
+ }
451
+ if (this.pauseKeyBtn) {
452
+ this.pauseKeyBtn.view.visible = this.pauseVisible;
453
+ }
454
+ if (this.ignoreConsoleBtn) {
455
+ if (this.isIgnoreConsoleEnabled) {
456
+ this.ignoreConsoleBtn.text = FC.config.localization.ignoreInfoBtnPressedLabel;
457
+ }
458
+ else {
459
+ this.ignoreConsoleBtn.text = FC.config.localization.ignorelInfoBtnNormalLabel;
460
+ }
461
+ }
462
+ if (this.additionalInfoBtn) {
463
+ if (this.isAdditionalInfoEnabled) {
464
+ this.additionalInfoBtn.text = FC.config.localization.additionalInfoBtnPressedLabel;
465
+ }
466
+ else {
467
+ this.additionalInfoBtn.text = FC.config.localization.additionalInfoBtnNormalLabel;
468
+ }
469
+ }
470
+ if (this.moveHelperBtn) {
471
+ if (this.isMoveHelperEnabled) {
472
+ this.moveHelperBtn.text = FC.config.localization.moveHelperBtnPressedLabel;
473
+ // Select an object (if index is -1, it means that selection is reset)
474
+ if (this.moveObjectIndex < -1 || this.moveObjectIndex >= this.lastAllObjectsUnderPointList.length) {
475
+ this.moveObjectIndex = this.lastAllObjectsUnderPointList.length - 1;
476
+ }
477
+ // If there is an object, select it
478
+ if (this.lastAllObjectsUnderPointList[this.moveObjectIndex]) {
479
+ this.moveObject = this.lastAllObjectsUnderPointList[this.moveObjectIndex];
480
+ }
481
+ else {
482
+ this.moveObject = null;
483
+ }
484
+ }
485
+ else {
486
+ this.moveHelperBtn.text = FC.config.localization.moveHelperBtnNormalLabel;
487
+ // Reset selection
488
+ this.moveObject = null;
489
+ this.moveObjectIndex = -1;
490
+ }
491
+ // Update the under point view if a new move object was chosen
492
+ if (this.prevMoveObject !== this.moveObject) {
493
+ this.forceUpdateUnderPointView = true;
494
+ }
495
+ this.prevMoveObject = this.moveObject;
496
+ }
497
+ };
498
+ DisplayListView.prototype.commitDisplayListData = function () {
499
+ if (!this.lastUnderPointData) {
500
+ return;
501
+ }
502
+ var listText = this.parseUnderPointDataToText(this.lastUnderPointData);
503
+ this.displayListField.text = listText;
504
+ this.clearDisplayListItems();
505
+ var tempDisplayListItems = this.parseUnderPointDataToVisualItemsList(this.lastUnderPointData);
506
+ this.createDisplayListItems(tempDisplayListItems);
507
+ this.arrange();
508
+ };
509
+ Object.defineProperty(DisplayListView.prototype, "pauseVisible", {
510
+ get: function () {
511
+ return this._pauseVisible;
512
+ },
513
+ set: function (value) {
514
+ if (value == this.pauseVisible) {
515
+ return;
516
+ }
517
+ this._pauseVisible = value;
518
+ this.commitData();
519
+ },
520
+ enumerable: false,
521
+ configurable: true
522
+ });
523
+ DisplayListView.prototype.clearDisplayListItems = function () {
524
+ var childrenCount = this.displayListItemsCont.children.length;
525
+ for (var childIndex = 0; childIndex < childrenCount; childIndex++) {
526
+ var tempChild = this.displayListItemsCont.children[childIndex];
527
+ this.displayListItemsPool.addObject(tempChild, DisplayListItemView);
528
+ }
529
+ DisplayTools.removeAllChildren(this.displayListItemsCont);
530
+ };
531
+ DisplayListView.prototype.createDisplayListItems = function (items) {
532
+ var lastItem;
533
+ var itemsCount = items.length;
534
+ for (var itemIndex = 0; itemIndex < itemsCount; itemIndex++) {
535
+ var tempItem = items[itemIndex];
536
+ this.displayListItemsCont.addChild(tempItem);
537
+ if (lastItem) {
538
+ tempItem.y = lastItem.y + lastItem.height;
539
+ }
540
+ else {
541
+ tempItem.y = 0;
542
+ }
543
+ lastItem = tempItem;
544
+ }
545
+ };
546
+ DisplayListView.ARROW_KEY_CODES = [
547
+ KeyCodes.ARROW_LEFT,
548
+ KeyCodes.ARROW_RIGHT,
549
+ KeyCodes.ARROW_UP,
550
+ KeyCodes.ARROW_DOWN
551
+ ];
552
+ return DisplayListView;
553
+ }(BaseConsoleView));
554
+ export { DisplayListView };
555
+ //# sourceMappingURL=DisplayListView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DisplayListView.js","sourceRoot":"","sources":["../../../../src/console/view/displaylist/DisplayListView.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,iBAAiB,CAAC;AACzD,OAAO,EACH,MAAM,EACN,KAAK,EACL,gBAAgB,EAEhB,QAAQ,EAER,aAAa,EACb,IAAI,EACJ,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,iBAAiB,EAEpB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAC,mBAAmB,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAC,EAAE,EAAC,MAAM,UAAU,CAAC;AAC5B,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AAEnE;IAAqC,mCAAe;IAwChD;eACI,iBAAO;IACX,CAAC;IAES,sCAAY,GAAtB;QACI,iBAAM,YAAY,WAAE,CAAC;QAErB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QAEzB,IAAI,CAAC,cAAc,GAAG,IAAI,KAAK,EAAE,CAAC;QAClC,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC,CAAC;QAE1B,IAAI,CAAC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AAC;YACrD,IAAI,CAAC,oBAAoB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YAE7C,IAAI,QAAQ,EAAE;gBACV,QAAQ,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC;aAC7C;iBAAM;gBACH,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC;aAClB;YAED,QAAQ,GAAG,QAAQ,CAAC;SACvB;IACL,CAAC;IAzrBc,+BAAe,GAAa;QACvC,QAAQ,CAAC,UAAU;QACnB,QAAQ,CAAC,WAAW;QACpB,QAAQ,CAAC,QAAQ;QACjB,QAAQ,CAAC,UAAU;KACtB,CAAC;IAqrBN,sBAAC;CAAA,AA5rBD,CAAqC,eAAe,GA4rBnD;SA5rBY,eAAe"}
@@ -0,0 +1,13 @@
1
+ import { FContainer, FLabel, Graphics } from "@flashist/flibs";
2
+ export declare class FpsMeterView extends FContainer {
3
+ protected field: FLabel;
4
+ protected border: Graphics;
5
+ protected prevTime: number;
6
+ protected time: number;
7
+ protected stepFps: number;
8
+ protected fpsValues: number[];
9
+ protected cumulativeFpsValue: number;
10
+ protected construction(...args: any[]): void;
11
+ protected onAddedToStage(): void;
12
+ protected checkFps(): void;
13
+ }