@flashist/fconsole 0.0.21 → 0.0.23
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/console/FC.js +53 -67
- package/console/FC.js.map +1 -1
- package/console/config/DefaultFConsoneConfigVO.js +3 -5
- package/console/config/DefaultFConsoneConfigVO.js.map +1 -1
- package/console/tools/GlobalVarTools.js +9 -13
- package/console/tools/GlobalVarTools.js.map +1 -1
- package/console/view/BaseConsoleButton.js +34 -57
- package/console/view/BaseConsoleButton.js.map +1 -1
- package/console/view/BaseConsoleView.js +66 -97
- package/console/view/BaseConsoleView.js.map +1 -1
- package/console/view/ConsoleContentContainer.js +2 -23
- package/console/view/ConsoleContentContainer.js.map +1 -1
- package/console/view/ConsoleView.js +16 -40
- package/console/view/ConsoleView.js.map +1 -1
- package/console/view/capture/CaptureKeyButton.js +36 -65
- package/console/view/capture/CaptureKeyButton.js.map +1 -1
- package/console/view/capture/CaptureKeyButtonEvent.js +3 -7
- package/console/view/capture/CaptureKeyButtonEvent.js.map +1 -1
- package/console/view/displaylist/DisplayListItemView.js +35 -58
- package/console/view/displaylist/DisplayListItemView.js.map +1 -1
- package/console/view/displaylist/DisplayListView.js +158 -199
- package/console/view/displaylist/DisplayListView.js.map +1 -1
- package/console/view/fps/FpsMeterView.js +21 -45
- package/console/view/fps/FpsMeterView.js.map +1 -1
- package/console/view/pause/PauseKeyButton.js +48 -81
- package/console/view/pause/PauseKeyButton.js.map +1 -1
- package/console/view/tooltip/ConsoleTooltip.js +14 -32
- package/console/view/tooltip/ConsoleTooltip.js.map +1 -1
- package/package.json +2 -2
- package/tooltip/BaseTooltip.js +8 -29
- package/tooltip/BaseTooltip.js.map +1 -1
- package/tooltip/TooltipManager.js +53 -83
- package/tooltip/TooltipManager.js.map +1 -1
|
@@ -1,39 +1,18 @@
|
|
|
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
1
|
import { StringTools, NumberTools } from "@flashist/fcore";
|
|
17
2
|
import { FContainer, FLabel, Graphics } from "@flashist/flibs";
|
|
18
3
|
import { FC } from "../../FC";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_this.stepFps = 0;
|
|
4
|
+
export class FpsMeterView extends FContainer {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.prevTime = 0;
|
|
8
|
+
this.time = 0;
|
|
9
|
+
this.stepFps = 0;
|
|
26
10
|
//
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return _this;
|
|
11
|
+
this.fpsValues = [];
|
|
12
|
+
this.cumulativeFpsValue = 0;
|
|
30
13
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
34
|
-
args[_i] = arguments[_i];
|
|
35
|
-
}
|
|
36
|
-
_super.prototype.construction.call(this, args);
|
|
14
|
+
construction(...args) {
|
|
15
|
+
super.construction(args);
|
|
37
16
|
this.border = new Graphics();
|
|
38
17
|
this.addChild(this.border);
|
|
39
18
|
//
|
|
@@ -51,21 +30,20 @@ var FpsMeterView = /** @class */ (function (_super) {
|
|
|
51
30
|
this.field.y = FC.config.fpsSettings.fieldToBorderPadding;
|
|
52
31
|
this.field.width = this.border.width - FC.config.fpsSettings.fieldToBorderPadding * 2;
|
|
53
32
|
this.field.height = this.border.height - FC.config.fpsSettings.fieldToBorderPadding * 2;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
33
|
+
}
|
|
34
|
+
onAddedToStage() {
|
|
35
|
+
super.onAddedToStage();
|
|
57
36
|
this.checkFps();
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
var _this = this;
|
|
37
|
+
}
|
|
38
|
+
checkFps() {
|
|
61
39
|
if (!this.stage) {
|
|
62
40
|
return;
|
|
63
41
|
}
|
|
64
42
|
this.time = Date.now();
|
|
65
|
-
|
|
43
|
+
let delta = this.time - this.prevTime;
|
|
66
44
|
this.stepFps = NumberTools.roundTo(1000 / delta, 0.1);
|
|
67
45
|
if (this.fpsValues.length >= FC.config.fpsSettings.cumulativeFpsCount) {
|
|
68
|
-
|
|
46
|
+
let lastFps = this.fpsValues.shift();
|
|
69
47
|
this.cumulativeFpsValue -= lastFps;
|
|
70
48
|
}
|
|
71
49
|
this.fpsValues.push(this.stepFps);
|
|
@@ -75,11 +53,9 @@ var FpsMeterView = /** @class */ (function (_super) {
|
|
|
75
53
|
}
|
|
76
54
|
this.field.text = StringTools.substituteList(FC.config.localization.fpsText, Math.floor(this.cumulativeFpsValue / this.fpsValues.length));
|
|
77
55
|
this.prevTime = this.time;
|
|
78
|
-
requestAnimationFrame(
|
|
79
|
-
|
|
56
|
+
requestAnimationFrame(() => {
|
|
57
|
+
this.checkFps();
|
|
80
58
|
});
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
}(FContainer));
|
|
84
|
-
export { FpsMeterView };
|
|
59
|
+
}
|
|
60
|
+
}
|
|
85
61
|
//# sourceMappingURL=FpsMeterView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FpsMeterView.js","sourceRoot":"","sources":["../../../../src/console/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,CAAC,KAAK,EAAE,CAAC;YAC7C,IAAI,CAAC,kBAAkB,IAAI,OAAO,CAAC;SACtC;QACD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClC,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,OAAO,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,kBAAkB,IAAI,IAAI,CAAC,kBAAkB,GAAG,CAAC,EAAE;YACzD,IAAI,CAAC,kBAAkB,GAAG,CAAC,CAAC;SAC/B;QAED,IAAI,CAAC,KAAK,CAAC,IAAI,GAAG,WAAW,CAAC,cAAc,CACxC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,EAC9B,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAC9D,CAAC;QAEF,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC;QAE1B,qBAAqB,CACjB,GAAG,EAAE;YACD,IAAI,CAAC,QAAQ,EAAE,CAAA;QACnB,CAAC,CACJ,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -1,45 +1,26 @@
|
|
|
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
1
|
import { BaseConsoleButton } from "../BaseConsoleButton";
|
|
17
2
|
import { InputManager, InputManagerEvent, FApp } from "@flashist/flibs";
|
|
18
3
|
import { StringTools } from "@flashist/fcore";
|
|
19
4
|
import { FC } from "../../FC";
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
24
|
-
}
|
|
25
|
-
PauseKeyButton.prototype.addListeners = function () {
|
|
26
|
-
_super.prototype.addListeners.call(this);
|
|
5
|
+
export class PauseKeyButton extends BaseConsoleButton {
|
|
6
|
+
addListeners() {
|
|
7
|
+
super.addListeners();
|
|
27
8
|
this.eventListenerHelper.addEventListener(InputManager.instance, InputManagerEvent.KEY_UP, this.onKeyUp);
|
|
28
9
|
FApp.instance.ticker.add(this.onTick, this);
|
|
29
|
-
}
|
|
30
|
-
|
|
10
|
+
}
|
|
11
|
+
onTick() {
|
|
31
12
|
if (!this.isClicked) {
|
|
32
13
|
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
14
|
+
}
|
|
15
|
+
onClick() {
|
|
16
|
+
super.onClick();
|
|
36
17
|
this.isClicked = !this.isClicked;
|
|
37
18
|
if (this.isClicked) {
|
|
38
19
|
this.pauseKeyCode = null;
|
|
39
20
|
this.isActivated = false;
|
|
40
21
|
}
|
|
41
|
-
}
|
|
42
|
-
|
|
22
|
+
}
|
|
23
|
+
onKeyUp(data) {
|
|
43
24
|
if (this.view.worldVisible) {
|
|
44
25
|
if (this.isClicked) {
|
|
45
26
|
this.isClicked = false;
|
|
@@ -55,9 +36,9 @@ var PauseKeyButton = /** @class */ (function (_super) {
|
|
|
55
36
|
}
|
|
56
37
|
}
|
|
57
38
|
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
39
|
+
}
|
|
40
|
+
commitData() {
|
|
41
|
+
super.commitData();
|
|
61
42
|
if (this.isClicked) {
|
|
62
43
|
this.text = FC.config.localization.pauseUpdateKeyBtnPressedLabel;
|
|
63
44
|
}
|
|
@@ -80,53 +61,39 @@ var PauseKeyButton = /** @class */ (function (_super) {
|
|
|
80
61
|
key: FC.config.localization.pauseUpdateKeyBtnNoKeyHelpText
|
|
81
62
|
});
|
|
82
63
|
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
set: function (value) {
|
|
120
|
-
if (value === this.isActivated) {
|
|
121
|
-
return;
|
|
122
|
-
}
|
|
123
|
-
this._isActivated = value;
|
|
124
|
-
this.commitData();
|
|
125
|
-
},
|
|
126
|
-
enumerable: false,
|
|
127
|
-
configurable: true
|
|
128
|
-
});
|
|
129
|
-
return PauseKeyButton;
|
|
130
|
-
}(BaseConsoleButton));
|
|
131
|
-
export { PauseKeyButton };
|
|
64
|
+
}
|
|
65
|
+
arrange() {
|
|
66
|
+
super.arrange();
|
|
67
|
+
}
|
|
68
|
+
get isClicked() {
|
|
69
|
+
return this._isClicked;
|
|
70
|
+
}
|
|
71
|
+
set isClicked(value) {
|
|
72
|
+
if (value == this.isClicked) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
this._isClicked = value;
|
|
76
|
+
this.commitData();
|
|
77
|
+
}
|
|
78
|
+
get pauseKeyCode() {
|
|
79
|
+
return this._pauseKeyCode;
|
|
80
|
+
}
|
|
81
|
+
set pauseKeyCode(value) {
|
|
82
|
+
if (value === this._pauseKeyCode) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
this._pauseKeyCode = value;
|
|
86
|
+
this.commitData();
|
|
87
|
+
}
|
|
88
|
+
get isActivated() {
|
|
89
|
+
return this._isActivated;
|
|
90
|
+
}
|
|
91
|
+
set isActivated(value) {
|
|
92
|
+
if (value === this.isActivated) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
this._isActivated = value;
|
|
96
|
+
this.commitData();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
132
99
|
//# sourceMappingURL=PauseKeyButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PauseKeyButton.js","sourceRoot":"","sources":["../../../../src/console/view/pause/PauseKeyButton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PauseKeyButton.js","sourceRoot":"","sources":["../../../../src/console/view/pause/PauseKeyButton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAyB,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAE9B,MAAM,OAAO,cAAe,SAAQ,iBAAiB;IAQvC,YAAY;QAClB,KAAK,CAAC,YAAY,EAAE,CAAC;QAErB,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CACrC,YAAY,CAAC,QAAQ,EACrB,iBAAiB,CAAC,MAAM,EACxB,IAAI,CAAC,OAAO,CACf,CAAC;QAEF,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAChD,CAAC;IAES,MAAM;QACZ,IAAI,CAAC,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WAAW,EAAE;YAC5B,OAAO;SACV;QAED,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAE1B,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;CACJ"}
|
|
@@ -1,28 +1,12 @@
|
|
|
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
1
|
import { Graphics, FLabel, Align, FContainer } from "@flashist/flibs";
|
|
17
2
|
import { BaseTooltip } from "../../../tooltip/BaseTooltip";
|
|
18
3
|
import { FC } from "../../FC";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
return _super.call(this) || this;
|
|
4
|
+
export class ConsoleTooltip extends BaseTooltip {
|
|
5
|
+
constructor() {
|
|
6
|
+
super();
|
|
23
7
|
}
|
|
24
|
-
|
|
25
|
-
|
|
8
|
+
construction() {
|
|
9
|
+
super.construction();
|
|
26
10
|
this.bg = new Graphics();
|
|
27
11
|
this.view.addChild(this.bg);
|
|
28
12
|
this.contentCont = new FContainer();
|
|
@@ -41,9 +25,9 @@ var ConsoleTooltip = /** @class */ (function (_super) {
|
|
|
41
25
|
align: Align.CENTER
|
|
42
26
|
});
|
|
43
27
|
this.contentCont.addChild(this.textLabel);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
28
|
+
}
|
|
29
|
+
commitData() {
|
|
30
|
+
super.commitData();
|
|
47
31
|
if (!this.tooltipData) {
|
|
48
32
|
return;
|
|
49
33
|
}
|
|
@@ -56,11 +40,11 @@ var ConsoleTooltip = /** @class */ (function (_super) {
|
|
|
56
40
|
this.textLabel.visible = false;
|
|
57
41
|
}
|
|
58
42
|
this.arrange();
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
43
|
+
}
|
|
44
|
+
arrange() {
|
|
45
|
+
super.arrange();
|
|
62
46
|
if (this.textLabel.visible) {
|
|
63
|
-
|
|
47
|
+
let labelMaxWidth = Math.max(this.titleLabel.width, this.textLabel.width);
|
|
64
48
|
this.titleLabel.x = ((labelMaxWidth - this.titleLabel.width) >> 1);
|
|
65
49
|
this.textLabel.x = ((labelMaxWidth - this.textLabel.width) >> 1);
|
|
66
50
|
this.textLabel.y = this.titleLabel.y + this.titleLabel.height;
|
|
@@ -75,8 +59,6 @@ var ConsoleTooltip = /** @class */ (function (_super) {
|
|
|
75
59
|
this.bg.endFill();
|
|
76
60
|
this.contentCont.x = this.bg.x + ((this.bg.width - this.contentCont.width) >> 1);
|
|
77
61
|
this.contentCont.y = this.bg.y + ((this.bg.height - this.contentCont.height) >> 1);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
}(BaseTooltip));
|
|
81
|
-
export { ConsoleTooltip };
|
|
62
|
+
}
|
|
63
|
+
}
|
|
82
64
|
//# sourceMappingURL=ConsoleTooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsoleTooltip.js","sourceRoot":"","sources":["../../../../src/console/view/tooltip/ConsoleTooltip.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConsoleTooltip.js","sourceRoot":"","sources":["../../../../src/console/view/tooltip/ConsoleTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,QAAQ,EACR,MAAM,EACN,K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E,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QACxF,IAAI,CAAC,EAAE,CAAC,SAAS,CACb,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,WAAW,EACrC,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,WAAW,EACrC,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,WAAW,CACxC,CAAC;QACF,IAAI,CAAC,EAAE,CAAC,QAAQ,CACZ,CAAC,EACD,CAAC,EACD,IAAI,CAAC,WAAW,CAAC,KAAK,GAAG,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,EACrE,IAAI,CAAC,WAAW,CAAC,MAAM,GAAG,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,CACzE,CAAC;QACF,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC;QAElB,IAAI,CAAC,WAAW,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;QACjF,IAAI,CAAC,WAAW,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACvF,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flashist/fconsole",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@flashist/fbuildscripts": "0.0.38",
|
|
34
|
-
"pixi.js": "
|
|
34
|
+
"pixi.js": "7.x",
|
|
35
35
|
"typescript": "^4.9.4"
|
|
36
36
|
},
|
|
37
37
|
"bugs": {
|
package/tooltip/BaseTooltip.js
CHANGED
|
@@ -1,34 +1,13 @@
|
|
|
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
1
|
import { FContainer } from "@flashist/flibs";
|
|
17
2
|
import { BaseObject } from "@flashist/fcore";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
22
|
-
}
|
|
23
|
-
BaseTooltip.prototype.construction = function () {
|
|
24
|
-
_super.prototype.construction.call(this);
|
|
3
|
+
export class BaseTooltip extends BaseObject {
|
|
4
|
+
construction() {
|
|
5
|
+
super.construction();
|
|
25
6
|
this.view = new FContainer();
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
7
|
+
}
|
|
8
|
+
commitData() {
|
|
9
|
+
super.commitData();
|
|
29
10
|
this.tooltipData = this.data;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
}(BaseObject));
|
|
33
|
-
export { BaseTooltip };
|
|
11
|
+
}
|
|
12
|
+
}
|
|
34
13
|
//# sourceMappingURL=BaseTooltip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseTooltip.js","sourceRoot":"","sources":["../../src/tooltip/BaseTooltip.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseTooltip.js","sourceRoot":"","sources":["../../src/tooltip/BaseTooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAC,UAAU,EAAC,MAAM,iBAAiB,CAAC;AAI3C,MAAM,OAAgB,WAAY,SAAQ,UAAU;IAOtC,YAAY;QAClB,KAAK,CAAC,YAAY,EAAE,CAAC;QAErB,IAAI,CAAC,IAAI,GAAG,IAAI,UAAU,EAAE,CAAC;IACjC,CAAC;IAGS,UAAU;QAChB,KAAK,CAAC,UAAU,EAAE,CAAC;QAEnB,IAAI,CAAC,WAAW,GAAI,IAAI,CAAC,IAAqB,CAAC;IACnD,CAAC;CACJ"}
|
|
@@ -1,56 +1,40 @@
|
|
|
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
1
|
import { BaseObject } from "@flashist/fcore";
|
|
17
2
|
import { Point, FApp, FContainer } from "@flashist/flibs";
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return _super.call(this, tooltip) || this;
|
|
3
|
+
export class TooltipManager extends BaseObject {
|
|
4
|
+
constructor(tooltip) {
|
|
5
|
+
super(tooltip);
|
|
22
6
|
}
|
|
23
|
-
|
|
24
|
-
|
|
7
|
+
construction(tooltip) {
|
|
8
|
+
super.construction();
|
|
25
9
|
this.tooltip = tooltip;
|
|
26
10
|
this.mouseShift = new Point();
|
|
27
11
|
this.tooltipInsideCont = new FContainer();
|
|
28
12
|
this.tooltipInsideCont.addChild(this.tooltip.view);
|
|
29
13
|
this.hide();
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
14
|
+
}
|
|
15
|
+
addListeners() {
|
|
16
|
+
super.addListeners();
|
|
33
17
|
FApp.instance.ticker.add(this.onTick, this);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
18
|
+
}
|
|
19
|
+
removeListeners() {
|
|
20
|
+
super.removeListeners();
|
|
37
21
|
FApp.instance.ticker.remove(this.onTick, this);
|
|
38
|
-
}
|
|
39
|
-
|
|
22
|
+
}
|
|
23
|
+
onTick() {
|
|
40
24
|
this.update();
|
|
41
|
-
}
|
|
42
|
-
|
|
25
|
+
}
|
|
26
|
+
show(data) {
|
|
43
27
|
this.visible = true;
|
|
44
28
|
this.tooltip.data = data;
|
|
45
29
|
this.update();
|
|
46
|
-
}
|
|
47
|
-
|
|
30
|
+
}
|
|
31
|
+
hide() {
|
|
48
32
|
this.visible = false;
|
|
49
|
-
}
|
|
33
|
+
}
|
|
50
34
|
/**
|
|
51
35
|
* Обновление подсказки.
|
|
52
36
|
*/
|
|
53
|
-
|
|
37
|
+
update() {
|
|
54
38
|
if (!this.visible) {
|
|
55
39
|
return;
|
|
56
40
|
}
|
|
@@ -59,8 +43,8 @@ var TooltipManager = /** @class */ (function (_super) {
|
|
|
59
43
|
}
|
|
60
44
|
if (!this.tooltip) {
|
|
61
45
|
}
|
|
62
|
-
|
|
63
|
-
|
|
46
|
+
const globalPos = FApp.instance.getGlobalInteractionPosition();
|
|
47
|
+
let tempPos = globalPos.clone();
|
|
64
48
|
tempPos.x += this.mouseShift.x;
|
|
65
49
|
tempPos.y += this.mouseShift.y;
|
|
66
50
|
if (tempPos.x < 0) {
|
|
@@ -77,7 +61,7 @@ var TooltipManager = /** @class */ (function (_super) {
|
|
|
77
61
|
}
|
|
78
62
|
tempPos = this.tooltip.view.parent.toLocal(tempPos);
|
|
79
63
|
this.moveTooltipTo(tempPos.x, tempPos.y);
|
|
80
|
-
}
|
|
64
|
+
}
|
|
81
65
|
/**
|
|
82
66
|
* Move a tooltip to a new position.
|
|
83
67
|
* Might be overridden in subclasses to implement different behavior (e.g. tween movement).
|
|
@@ -85,51 +69,37 @@ var TooltipManager = /** @class */ (function (_super) {
|
|
|
85
69
|
* @param x
|
|
86
70
|
* @param y
|
|
87
71
|
*/
|
|
88
|
-
|
|
72
|
+
moveTooltipTo(x, y) {
|
|
89
73
|
this.tooltip.view.x = x;
|
|
90
74
|
this.tooltip.view.y = y;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
get: function () {
|
|
122
|
-
return this._visible;
|
|
123
|
-
},
|
|
124
|
-
set: function (value) {
|
|
125
|
-
this._visible = value;
|
|
126
|
-
this.tooltipInsideCont.visible = this.visible;
|
|
127
|
-
},
|
|
128
|
-
enumerable: false,
|
|
129
|
-
configurable: true
|
|
130
|
-
});
|
|
131
|
-
TooltipManager.SHOW_DELAY = 0.5;
|
|
132
|
-
return TooltipManager;
|
|
133
|
-
}(BaseObject));
|
|
134
|
-
export { TooltipManager };
|
|
75
|
+
}
|
|
76
|
+
get tooltipCont() {
|
|
77
|
+
return this._tooltipCont;
|
|
78
|
+
}
|
|
79
|
+
set tooltipCont(value) {
|
|
80
|
+
if (this.tooltipCont == value) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
this._tooltipCont = value;
|
|
84
|
+
if (this.tooltipCont) {
|
|
85
|
+
this.tooltipCont.addChild(this.tooltipInsideCont);
|
|
86
|
+
}
|
|
87
|
+
this.update();
|
|
88
|
+
}
|
|
89
|
+
get mouseShift() {
|
|
90
|
+
return this._mouseShift;
|
|
91
|
+
}
|
|
92
|
+
set mouseShift(value) {
|
|
93
|
+
this._mouseShift = value.clone();
|
|
94
|
+
this.update();
|
|
95
|
+
}
|
|
96
|
+
get visible() {
|
|
97
|
+
return this._visible;
|
|
98
|
+
}
|
|
99
|
+
set visible(value) {
|
|
100
|
+
this._visible = value;
|
|
101
|
+
this.tooltipInsideCont.visible = this.visible;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
TooltipManager.SHOW_DELAY = 0.5;
|
|
135
105
|
//# sourceMappingURL=TooltipManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooltipManager.js","sourceRoot":"","sources":["../../src/tooltip/TooltipManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TooltipManager.js","sourceRoot":"","sources":["../../src/tooltip/TooltipManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAA0B,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAKlF,MAAM,OAAO,cAAe,SAAQ,UAAU;IAY1C,YAAY,OAAo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