targetj 1.0.38 → 1.0.39
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/package.json +1 -1
- package/src/PageManager.js +1 -1
- package/src/TModel.js +30 -9
- package/src/TargetUtil.js +0 -33
package/package.json
CHANGED
package/src/PageManager.js
CHANGED
|
@@ -40,7 +40,7 @@ PageManager.prototype.openPage = function(link, isPageFetchNeeded) {
|
|
|
40
40
|
|
|
41
41
|
} else if (!this.pageCache[link]) {
|
|
42
42
|
tapp.$dom.innerHTML("");
|
|
43
|
-
|
|
43
|
+
tapp.ui = tapp.uiFactory();
|
|
44
44
|
self.lastLink = link;
|
|
45
45
|
setTimeout(tapp.start);
|
|
46
46
|
} else {
|
package/src/TModel.js
CHANGED
|
@@ -20,8 +20,36 @@ function TModel(type, targets) {
|
|
|
20
20
|
|
|
21
21
|
this.targetValues = {};
|
|
22
22
|
|
|
23
|
-
this.actualValues =
|
|
24
|
-
|
|
23
|
+
this.actualValues = {
|
|
24
|
+
x: 0,
|
|
25
|
+
y: 0,
|
|
26
|
+
width: 0,
|
|
27
|
+
height: 0,
|
|
28
|
+
leftMargin: 0,
|
|
29
|
+
rightMargin: 0,
|
|
30
|
+
topMargin: 0,
|
|
31
|
+
bottomMargin: 0,
|
|
32
|
+
opacity: 1,
|
|
33
|
+
zIndex: 1,
|
|
34
|
+
scale: 1,
|
|
35
|
+
rotate: 0,
|
|
36
|
+
scrollLeft: 0,
|
|
37
|
+
scrollTop: 0,
|
|
38
|
+
textOnly: true,
|
|
39
|
+
html: undefined,
|
|
40
|
+
css: '',
|
|
41
|
+
style: null,
|
|
42
|
+
children: [],
|
|
43
|
+
addedChildren: [],
|
|
44
|
+
allChildren: [],
|
|
45
|
+
isInFlow: true,
|
|
46
|
+
canHaveDom: true,
|
|
47
|
+
canHandleEvents: false,
|
|
48
|
+
isOverflowHidden: false,
|
|
49
|
+
canBeVisible: true,
|
|
50
|
+
canBeBracketed: true,
|
|
51
|
+
isDomDeletable: true
|
|
52
|
+
};
|
|
25
53
|
this.activeTargetKeyMap = {};
|
|
26
54
|
|
|
27
55
|
this.targetUpdatingMap = {};
|
|
@@ -727,13 +755,6 @@ TModel.prototype.deleteTargetValue = function(key) {
|
|
|
727
755
|
tapp.manager.scheduleRun(10, 'deleteTargetValue-' + this.oid + "-" + key);
|
|
728
756
|
};
|
|
729
757
|
|
|
730
|
-
TModel.prototype.resetAllTargetValues = function() {
|
|
731
|
-
this.targetValues = {};
|
|
732
|
-
this.actualValues = TargetUtil.getDefaultActualValues();
|
|
733
|
-
|
|
734
|
-
tapp.manager.scheduleRun(10, 'resetAllTargetValues-' + this.oid);
|
|
735
|
-
};
|
|
736
|
-
|
|
737
758
|
TModel.prototype.getTargetHeight = function() {
|
|
738
759
|
return this.getTargetValue('height') || 1;
|
|
739
760
|
};
|
package/src/TargetUtil.js
CHANGED
|
@@ -4,39 +4,6 @@ import { TUtil } from "./TUtil.js";
|
|
|
4
4
|
|
|
5
5
|
function TargetUtil() {}
|
|
6
6
|
|
|
7
|
-
TargetUtil.getDefaultActualValues = function() {
|
|
8
|
-
return {
|
|
9
|
-
x: 0,
|
|
10
|
-
y: 0,
|
|
11
|
-
width: 0,
|
|
12
|
-
height: 0,
|
|
13
|
-
leftMargin: 0,
|
|
14
|
-
rightMargin: 0,
|
|
15
|
-
topMargin: 0,
|
|
16
|
-
bottomMargin: 0,
|
|
17
|
-
opacity: 1,
|
|
18
|
-
zIndex: 1,
|
|
19
|
-
scale: 1,
|
|
20
|
-
rotate: 0,
|
|
21
|
-
scrollLeft: 0,
|
|
22
|
-
scrollTop: 0,
|
|
23
|
-
textOnly: true,
|
|
24
|
-
html: undefined,
|
|
25
|
-
css: '',
|
|
26
|
-
style: null,
|
|
27
|
-
children: [],
|
|
28
|
-
addedChildren: [],
|
|
29
|
-
allChildren: [],
|
|
30
|
-
isInFlow: true,
|
|
31
|
-
canHaveDom: true,
|
|
32
|
-
canHandleEvents: false,
|
|
33
|
-
isOverflowHidden: false,
|
|
34
|
-
canBeVisible: true,
|
|
35
|
-
canBeBracketed: true,
|
|
36
|
-
isDomDeletable: true
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
|
|
40
7
|
TargetUtil.extractInvisibles = function(tmodel, target, key) {
|
|
41
8
|
if (typeof target === 'object' && target) {
|
|
42
9
|
Object.keys(target).forEach(function(k) {
|