targetj 1.0.122 → 1.0.123
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/README.md +1 -1
- package/build/EventListener.js +7 -2
- package/build/PageManager.js +2 -0
- package/build/RunScheduler.js +2 -22
- package/build/TModelManager.js +0 -2
- package/build/TargetManager.js +0 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# TargetJ: JavaScript UI framework and library
|
|
1
|
+
# TargetJ: JavaScript UI framework and library - Programming the Front-End with a New Paradigm
|
|
2
2
|
|
|
3
3
|
Welcome to TargetJ, a powerful JavaScript UI framework and library designed to simplify development and animation, and you might find that it redefines front-end development. (https://targetj.io)
|
|
4
4
|
|
package/build/EventListener.js
CHANGED
|
@@ -520,12 +520,17 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
|
|
|
520
520
|
this.currentTouch.key = event.which || event.keyCode;
|
|
521
521
|
break;
|
|
522
522
|
case 'resize':
|
|
523
|
-
|
|
524
|
-
(0, _App.tRoot)().val('height', (0, _App.tRoot)().targets.height());
|
|
523
|
+
this.resizeRoot();
|
|
525
524
|
break;
|
|
526
525
|
}
|
|
527
526
|
(0, _App.getRunScheduler)().schedule(0, "".concat(originalName, "-").concat(eventName, "-").concat((event.target.tagName || "").toUpperCase()));
|
|
528
527
|
}
|
|
528
|
+
}, {
|
|
529
|
+
key: "resizeRoot",
|
|
530
|
+
value: function resizeRoot() {
|
|
531
|
+
(0, _App.tRoot)().val('width', (0, _App.tRoot)().targets.width());
|
|
532
|
+
(0, _App.tRoot)().val('height', (0, _App.tRoot)().targets.height());
|
|
533
|
+
}
|
|
529
534
|
}, {
|
|
530
535
|
key: "preventDefault",
|
|
531
536
|
value: function preventDefault(tmodel, eventName) {
|
package/build/PageManager.js
CHANGED
|
@@ -85,6 +85,8 @@ var PageManager = exports.PageManager = /*#__PURE__*/function () {
|
|
|
85
85
|
}, {
|
|
86
86
|
key: "onPageClose",
|
|
87
87
|
value: function onPageClose(visibles) {
|
|
88
|
+
(0, _App.getLocationManager)().resizeLastUpdate = _TUtil.TUtil.now();
|
|
89
|
+
(0, _App.getEvents)().resizeRoot();
|
|
88
90
|
visibles.forEach(function (tmodel) {
|
|
89
91
|
(0, _App.getLocationManager)().runEventTargets(tmodel, ['onPageClose', 'onResize']);
|
|
90
92
|
});
|
package/build/RunScheduler.js
CHANGED
|
@@ -32,8 +32,6 @@ var RunScheduler = exports.RunScheduler = /*#__PURE__*/function () {
|
|
|
32
32
|
this.rerunId = '';
|
|
33
33
|
this.delayProcess = undefined;
|
|
34
34
|
this.resetting = false;
|
|
35
|
-
this.rerunQueue = [];
|
|
36
|
-
this.isRunningRerun = false;
|
|
37
35
|
}
|
|
38
36
|
return _createClass(RunScheduler, [{
|
|
39
37
|
key: "resetRuns",
|
|
@@ -60,9 +58,7 @@ var RunScheduler = exports.RunScheduler = /*#__PURE__*/function () {
|
|
|
60
58
|
this.rerunId = '';
|
|
61
59
|
this.delayProcess = undefined;
|
|
62
60
|
this.resetting = false;
|
|
63
|
-
|
|
64
|
-
this.isRunningRerun = false;
|
|
65
|
-
case 14:
|
|
61
|
+
case 12:
|
|
66
62
|
case "end":
|
|
67
63
|
return _context.stop();
|
|
68
64
|
}
|
|
@@ -130,11 +126,8 @@ var RunScheduler = exports.RunScheduler = /*#__PURE__*/function () {
|
|
|
130
126
|
key: "needsRerun",
|
|
131
127
|
value: function needsRerun() {
|
|
132
128
|
this.runningFlag = false;
|
|
133
|
-
if (this.rerunQueue.length > 0) {
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
129
|
if (this.rerunId) {
|
|
137
|
-
this.
|
|
130
|
+
this.schedule(1, "rerun-".concat(this.rerunId));
|
|
138
131
|
} else if (!this.delayProcess || this.delayProcess.delay > 15) {
|
|
139
132
|
if ((0, _App.getEvents)().eventQueue.length > 0) {
|
|
140
133
|
this.schedule(15, "events-".concat((0, _App.getEvents)().eventQueue.length));
|
|
@@ -142,25 +135,12 @@ var RunScheduler = exports.RunScheduler = /*#__PURE__*/function () {
|
|
|
142
135
|
this.schedule(15, 'targetExecutor-needsRerun');
|
|
143
136
|
}
|
|
144
137
|
}
|
|
145
|
-
if (this.rerunQueue.length > 0 && !this.isRunningRerun) {
|
|
146
|
-
this.processRerunQueue();
|
|
147
|
-
}
|
|
148
138
|
}
|
|
149
139
|
}, {
|
|
150
140
|
key: "doesExecuterNeedsRerun",
|
|
151
141
|
value: function doesExecuterNeedsRerun() {
|
|
152
142
|
return _TargetExecutor.TargetExecutor.needsRerun;
|
|
153
143
|
}
|
|
154
|
-
}, {
|
|
155
|
-
key: "processRerunQueue",
|
|
156
|
-
value: function processRerunQueue() {
|
|
157
|
-
this.isRunningRerun = true;
|
|
158
|
-
while (this.rerunQueue.length > 0) {
|
|
159
|
-
var nextRunId = this.rerunQueue.shift();
|
|
160
|
-
this.run(0, nextRunId);
|
|
161
|
-
}
|
|
162
|
-
this.isRunningRerun = false;
|
|
163
|
-
}
|
|
164
144
|
}, {
|
|
165
145
|
key: "domOperations",
|
|
166
146
|
value: function domOperations(runningStep) {
|
package/build/TModelManager.js
CHANGED
|
@@ -143,8 +143,6 @@ var TModelManager = exports.TModelManager = /*#__PURE__*/function () {
|
|
|
143
143
|
if (tmodel.hasDom()) {
|
|
144
144
|
if (tmodel.styleTargetList.length > 0) {
|
|
145
145
|
this.lists.restyle.push(tmodel);
|
|
146
|
-
tmodel.domHeight = undefined;
|
|
147
|
-
tmodel.domWidth = undefined;
|
|
148
146
|
}
|
|
149
147
|
if (tmodel.asyncStyleTargetList.length > 0) {
|
|
150
148
|
this.lists.reasyncStyle.push(tmodel);
|
package/build/TargetManager.js
CHANGED
|
@@ -120,9 +120,6 @@ var TargetManager = exports.TargetManager = /*#__PURE__*/function () {
|
|
|
120
120
|
if (tmodel.isScheduledPending(key)) {
|
|
121
121
|
continue;
|
|
122
122
|
}
|
|
123
|
-
if (!tmodel.hasDom() && tmodel.allStyleTargetMap[key]) {
|
|
124
|
-
continue;
|
|
125
|
-
}
|
|
126
123
|
schedulePeriod = _TargetUtil.TargetUtil.scheduleExecution(tmodel, key);
|
|
127
124
|
if (schedulePeriod > 0) {
|
|
128
125
|
(0, _App.getRunScheduler)().schedule(schedulePeriod, "setActualValues-".concat(tmodel.oid, "__").concat(key, "_").concat(schedulePeriod));
|