safex-webgl 1.2.2 → 1.2.4
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/dist/actions/easing/Back.d.ts +7 -64
- package/dist/actions/easing/Back.d.ts.map +1 -1
- package/dist/actions/easing/Back.js +10 -52
- package/dist/actions/easing/Back.js.map +1 -1
- package/dist/actions/easing/Bounce.d.ts +3 -18
- package/dist/actions/easing/Bounce.d.ts.map +1 -1
- package/dist/actions/easing/Bounce.js +6 -6
- package/dist/actions/easing/Bounce.js.map +1 -1
- package/dist/mesh/MeshNode.js +1 -1
- package/package.json +1 -1
- package/dist/actions/ActionEase.d.ts +0 -1298
- package/dist/actions/ActionEase.d.ts.map +0 -1
- package/dist/actions/ActionEase.js +0 -2767
- package/dist/core/DirectorWebGL.js +0 -10
- package/dist/core/labelttf/LabelTTFCacheRenderCmd.d.ts +0 -5
- package/dist/core/labelttf/LabelTTFCacheRenderCmd.d.ts.map +0 -1
- package/dist/core/labelttf/LabelTTFCacheRenderCmd.js +0 -67
- package/dist/core/labelttf/LabelTTFRenderCmd.d.ts +0 -2
- package/dist/core/labelttf/LabelTTFRenderCmd.d.ts.map +0 -1
- package/dist/core/labelttf/LabelTTFRenderCmd.js +0 -305
- package/dist/particle/ParticleExamples.d.ts +0 -27
- package/dist/particle/ParticleExamples.d.ts.map +0 -1
- package/dist/particle/ParticleExamples.js +0 -839
- package/dist/textures/WebGLTextureAtlas.js +0 -5
- package/dist/ui/base/ProtectedNodeRenderCmd.d.ts +0 -6
- package/dist/ui/base/ProtectedNodeRenderCmd.d.ts.map +0 -1
- package/dist/ui/base/ProtectedNodeRenderCmd.js +0 -110
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProtectedNodeRenderCmd.d.ts","sourceRoot":"","sources":["../../../src/ui/base/ProtectedNodeRenderCmd.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;;;CAwGlC,CAAA"}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { Color, Node } from './../..';
|
|
2
|
-
export const ProtectedNodeRenderCmd = {
|
|
3
|
-
_updateDisplayColor: function (parentColor) {
|
|
4
|
-
const node = this._node;
|
|
5
|
-
const locDispColor = this._displayedColor, locRealColor = node._realColor;
|
|
6
|
-
let i, len, selChildren, item;
|
|
7
|
-
if (this._cascadeColorEnabledDirty && !node._cascadeColorEnabled) {
|
|
8
|
-
locDispColor.r = locRealColor.r;
|
|
9
|
-
locDispColor.g = locRealColor.g;
|
|
10
|
-
locDispColor.b = locRealColor.b;
|
|
11
|
-
const whiteColor = new Color(255, 255, 255, 255);
|
|
12
|
-
selChildren = node._children;
|
|
13
|
-
for (i = 0, len = selChildren.length; i < len; i++) {
|
|
14
|
-
item = selChildren[i];
|
|
15
|
-
if (item && item._renderCmd)
|
|
16
|
-
item._renderCmd._updateDisplayColor(whiteColor);
|
|
17
|
-
}
|
|
18
|
-
this._cascadeColorEnabledDirty = false;
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
if (parentColor === undefined) {
|
|
22
|
-
const locParent = node._parent;
|
|
23
|
-
if (locParent && locParent._cascadeColorEnabled)
|
|
24
|
-
parentColor = locParent.getDisplayedColor();
|
|
25
|
-
else
|
|
26
|
-
parentColor = Color.WHITE;
|
|
27
|
-
}
|
|
28
|
-
locDispColor.r = 0 | ((locRealColor.r * parentColor.r) / 255.0);
|
|
29
|
-
locDispColor.g = 0 | ((locRealColor.g * parentColor.g) / 255.0);
|
|
30
|
-
locDispColor.b = 0 | ((locRealColor.b * parentColor.b) / 255.0);
|
|
31
|
-
if (node._cascadeColorEnabled) {
|
|
32
|
-
selChildren = node._children;
|
|
33
|
-
for (i = 0, len = selChildren.length; i < len; i++) {
|
|
34
|
-
item = selChildren[i];
|
|
35
|
-
if (item && item._renderCmd) {
|
|
36
|
-
item._renderCmd._updateDisplayColor(locDispColor);
|
|
37
|
-
item._renderCmd._updateColor();
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
selChildren = node._protectedChildren;
|
|
42
|
-
for (i = 0, len = selChildren.length; i < len; i++) {
|
|
43
|
-
item = selChildren[i];
|
|
44
|
-
if (item && item._renderCmd) {
|
|
45
|
-
item._renderCmd._updateDisplayColor(locDispColor);
|
|
46
|
-
item._renderCmd._updateColor();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
this._dirtyFlag = (this._dirtyFlag & Node._dirtyFlags.colorDirty) ^ this._dirtyFlag;
|
|
51
|
-
},
|
|
52
|
-
_updateDisplayOpacity: function (parentOpacity) {
|
|
53
|
-
const node = this._node;
|
|
54
|
-
let i, len, selChildren, item;
|
|
55
|
-
if (this._cascadeOpacityEnabledDirty && !node._cascadeOpacityEnabled) {
|
|
56
|
-
this._displayedOpacity = node._realOpacity;
|
|
57
|
-
selChildren = node._children;
|
|
58
|
-
for (i = 0, len = selChildren.length; i < len; i++) {
|
|
59
|
-
item = selChildren[i];
|
|
60
|
-
if (item && item._renderCmd)
|
|
61
|
-
item._renderCmd._updateDisplayOpacity(255);
|
|
62
|
-
}
|
|
63
|
-
this._cascadeOpacityEnabledDirty = false;
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
if (parentOpacity === undefined) {
|
|
67
|
-
const locParent = node._parent;
|
|
68
|
-
parentOpacity = 255;
|
|
69
|
-
if (locParent && locParent._cascadeOpacityEnabled)
|
|
70
|
-
parentOpacity = locParent.getDisplayedOpacity();
|
|
71
|
-
}
|
|
72
|
-
this._displayedOpacity = (node._realOpacity * parentOpacity) / 255.0;
|
|
73
|
-
if (node._cascadeOpacityEnabled) {
|
|
74
|
-
selChildren = node._children;
|
|
75
|
-
for (i = 0, len = selChildren.length; i < len; i++) {
|
|
76
|
-
item = selChildren[i];
|
|
77
|
-
if (item && item._renderCmd) {
|
|
78
|
-
item._renderCmd._updateDisplayOpacity(this._displayedOpacity);
|
|
79
|
-
item._renderCmd._updateColor();
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
selChildren = node._protectedChildren;
|
|
84
|
-
for (i = 0, len = selChildren.length; i < len; i++) {
|
|
85
|
-
item = selChildren[i];
|
|
86
|
-
if (item && item._renderCmd) {
|
|
87
|
-
item._renderCmd._updateDisplayOpacity(this._displayedOpacity);
|
|
88
|
-
item._renderCmd._updateColor();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
this._dirtyFlag = (this._dirtyFlag & Node._dirtyFlags.opacityDirty) ^ this._dirtyFlag;
|
|
93
|
-
},
|
|
94
|
-
_changeProtectedChild: function (child) {
|
|
95
|
-
const cmd = child._renderCmd;
|
|
96
|
-
let dirty = cmd._dirtyFlag;
|
|
97
|
-
const flags = Node._dirtyFlags;
|
|
98
|
-
if (this._dirtyFlag & flags.colorDirty)
|
|
99
|
-
dirty |= flags.colorDirty;
|
|
100
|
-
if (this._dirtyFlag & flags.opacityDirty)
|
|
101
|
-
dirty |= flags.opacityDirty;
|
|
102
|
-
const colorDirty = dirty & flags.colorDirty, opacityDirty = dirty & flags.opacityDirty;
|
|
103
|
-
if (colorDirty)
|
|
104
|
-
cmd._updateDisplayColor(this._displayedColor);
|
|
105
|
-
if (opacityDirty)
|
|
106
|
-
cmd._updateDisplayOpacity(this._displayedOpacity);
|
|
107
|
-
if (colorDirty || opacityDirty)
|
|
108
|
-
cmd._updateColor();
|
|
109
|
-
},
|
|
110
|
-
};
|