Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-libs
Commits
93730d2b
Commit
93730d2b
authored
Feb 16, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d6b49790
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3243 additions
and
105 deletions
+3243
-105
.DS_Store
.DS_Store
+0
-0
engine.2810e0b8a45736f306103ab20853b858531e2450.js
engine.2810e0b8a45736f306103ab20853b858531e2450.js
+339
-105
libs_types.d.ts
libs/libs_types.d.ts
+2904
-0
No files found.
.DS_Store
View file @
93730d2b
No preview for this file type
engine.
81d3d2d95dbb4026d7ba0451928634df09a9efc1
.js
→
engine.
2810e0b8a45736f306103ab20853b858531e2450
.js
100644 → 100755
View file @
93730d2b
...
...
@@ -1132,8 +1132,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
_this
.
_instanceType
=
"DisplayObject"
;
_this
.
tempDisplayObjectParent
=
null
;
_this
.
transform
=
new
Transform
();
_this
.
_
alpha
=
1
;
_this
.
_
visible
=
true
;
_this
.
$
alpha
=
1
;
_this
.
$
visible
=
true
;
_this
.
renderable
=
true
;
_this
.
parent
=
null
;
_this
.
worldAlpha
=
1
;
...
...
@@ -1141,7 +1141,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
_this
.
_bounds
=
new
Rectangle
();
_this
.
_boundsID
=
0
;
_this
.
_lastBoundsID
=
-
1
;
_this
.
_
mask
=
null
;
_this
.
$
mask
=
null
;
_this
.
destroyed
=
false
;
_this
.
addEventListener
(
Event
.
ADDED_TO_STAGE
,
_this
.
attachVisibility
,
_this
);
_this
.
addEventListener
(
Event
.
REMOVED_FROM_STAGE
,
_this
.
attachVisibility
,
_this
);
...
...
@@ -1149,11 +1149,11 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
Object
.
defineProperty
(
DisplayObject
.
prototype
,
"visible"
,
{
get
:
function
()
{
return
this
.
_
visible
;
return
this
.
$
visible
;
},
set
:
function
(
value
)
{
if
(
this
.
_
visible
!==
value
)
{
this
.
_
visible
=
value
;
if
(
this
.
$
visible
!==
value
)
{
this
.
$
visible
=
value
;
this
.
attachVisibility
();
}
},
...
...
@@ -1243,7 +1243,13 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
DisplayObject
.
prototype
.
localToGlobal
=
function
(
point
,
bp
)
{
if
(
bp
===
void
0
)
{
bp
=
null
;
}
return
this
.
worldMatrix
.
transformPoint
(
point
.
x
,
point
.
y
,
bp
||
DisplayObject
.
_bp
);
var
wp
=
this
.
worldMatrix
.
transformPoint
(
point
.
x
,
point
.
y
,
bp
||
DisplayObject
.
_bp
);
if
(
this
.
stage
)
{
return
this
.
stage
.
globalToLocal
(
wp
,
bp
||
DisplayObject
.
_bp
);
}
else
{
return
wp
;
}
};
DisplayObject
.
prototype
.
_onDispatchBubbledEvent
=
function
(
type
)
{
var
s
=
this
;
...
...
@@ -1300,17 +1306,17 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
this
.
_localBoundsSelf
=
null
;
this
.
_bounds
=
null
;
this
.
tempDisplayObjectParent
=
null
;
this
.
_
mask
=
null
;
this
.
$
mask
=
null
;
this
.
mouseEnabled
=
false
;
this
.
destroyed
=
true
;
};
Object
.
defineProperty
(
DisplayObject
.
prototype
,
"alpha"
,
{
get
:
function
()
{
return
this
.
_
alpha
;
return
this
.
$
alpha
;
},
set
:
function
(
value
)
{
if
(
this
.
_
alpha
!=
value
)
{
this
.
_
alpha
=
value
;
if
(
this
.
$
alpha
!=
value
)
{
this
.
$
alpha
=
value
;
}
},
enumerable
:
true
,
...
...
@@ -1459,20 +1465,20 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
Object
.
defineProperty
(
DisplayObject
.
prototype
,
"mask"
,
{
get
:
function
()
{
return
this
.
_
mask
;
return
this
.
$
mask
;
},
set
:
function
(
value
)
{
if
(
this
.
_
mask
)
{
this
.
_
mask
.
renderable
=
true
;
this
.
_
mask
.
isUsedToMask
=
false
;
if
(
this
.
_
mask
.
parent
)
{
this
.
_mask
.
parent
.
removeChild
(
this
.
_
mask
);
if
(
this
.
$
mask
)
{
this
.
$
mask
.
renderable
=
true
;
this
.
$
mask
.
isUsedToMask
=
false
;
if
(
this
.
$
mask
.
parent
)
{
this
.
$mask
.
parent
.
removeChild
(
this
.
$
mask
);
}
}
this
.
_
mask
=
value
;
if
(
this
.
_
mask
)
{
this
.
_
mask
.
renderable
=
false
;
this
.
_
mask
.
isUsedToMask
=
true
;
this
.
$
mask
=
value
;
if
(
this
.
$
mask
)
{
this
.
$
mask
.
renderable
=
false
;
this
.
$
mask
.
isUsedToMask
=
true
;
this
.
_boundsID
++
;
}
},
...
...
@@ -1777,7 +1783,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var
result
=
false
;
for
(
var
key
in
data
)
{
var
value
=
data
[
key
];
if
((
!
ignoreMethod
||
typeof
value
!=
'function'
)
&&
(
!
ignoreNull
||
value
!=
null
)
&&
key
.
indexOf
(
'_'
)
!==
0
&&
key
.
indexOf
(
'$'
)
!==
0
)
{
if
((
!
ignoreMethod
||
typeof
value
!=
'function'
)
&&
(
!
ignoreNull
||
value
!=
null
))
{
if
(
callback
)
{
callback
(
target
,
key
,
value
);
}
...
...
@@ -2141,6 +2147,69 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return
tempValue
.
toLowerCase
();
}
var
ObjectPool
=
(
function
()
{
function
ObjectPool
()
{
}
ObjectPool
.
registerPool
=
function
(
name
,
createMethod
,
initMethod
)
{
if
(
initMethod
===
void
0
)
{
initMethod
=
null
;
}
this
.
createMethods
[
name
]
=
createMethod
;
this
.
initMethods
[
name
]
=
initMethod
;
this
.
pools
[
name
]
=
[];
};
ObjectPool
.
getObject
=
function
(
name
)
{
var
params
=
[];
for
(
var
_i
=
1
;
_i
<
arguments
.
length
;
_i
++
)
{
params
[
_i
-
1
]
=
arguments
[
_i
];
}
var
pool
=
this
.
pools
[
name
];
if
(
!
pool
)
{
console
.
warn
(
name
+
"没有注册在对象池中。"
);
return
null
;
}
var
obj
;
if
(
pool
.
length
>
0
)
{
obj
=
pool
.
pop
();
}
else
{
var
createMethod
=
this
.
createMethods
[
name
];
obj
=
createMethod
.
apply
(
null
,
params
);
}
var
initMethod
=
this
.
initMethods
[
name
];
if
(
initMethod
)
{
params
.
unshift
(
obj
);
initMethod
.
apply
(
null
,
params
);
}
this
.
debug
();
return
obj
;
};
ObjectPool
.
recycleObject
=
function
(
name
,
obj
)
{
if
(
!
obj
)
{
return
;
}
var
pool
=
this
.
pools
[
name
];
if
(
!
pool
)
{
console
.
warn
(
name
+
"没有注册在对象池中。"
);
return
;
}
if
(
pool
.
indexOf
(
obj
)
<
0
&&
pool
.
length
<=
this
.
MAX
)
{
pool
.
push
(
obj
);
}
this
.
debug
();
};
ObjectPool
.
debug
=
function
()
{
var
text
=
""
;
for
(
var
key
in
this
.
pools
)
{
var
pool
=
this
.
pools
[
key
];
text
+=
key
+
":"
+
pool
.
length
+
"
\n
"
;
}
};
ObjectPool
.
MAX
=
50
;
ObjectPool
.
createMethods
=
{};
ObjectPool
.
initMethods
=
{};
ObjectPool
.
pools
=
{};
return
ObjectPool
;
}());
var
scriptDefs
=
{};
function
applyScript
(
ctor
)
{
ctor
.
prototype
.
applyScripts
=
function
()
{
...
...
@@ -2434,10 +2503,28 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
localStorage
.
setItem
(
storeKey
,
JSON
.
stringify
(
store
));
}
function
getLogSwitch
(
id
)
{
return
typeof
store
===
'object'
?
(
!!
store
[
id
])
:
!!
store
;
return
typeof
store
===
'object'
?
store
[
id
]
:
!!
store
;
}
var
log
=
getLogSwitch
(
exports
.
Logs
.
PROCESS
);
var
logConfig
=
getLogSwitch
(
exports
.
Logs
.
PROCESS
);
function
logProcess
(
meta
,
vm
,
process
)
{
var
params
=
[];
for
(
var
_i
=
3
;
_i
<
arguments
.
length
;
_i
++
)
{
params
[
_i
-
3
]
=
arguments
[
_i
];
}
var
ci
=
(
vm
.
id
*
65
)
%
360
;
var
logStyle
=
"color: hsl("
+
ci
+
",65%,75%)"
;
var
showLog
=
false
;
if
(
typeof
logConfig
===
'boolean'
)
{
showLog
=
logConfig
;
}
else
if
(
logConfig
.
indexOf
(
meta
.
id
)
>=
0
||
logConfig
.
indexOf
(
meta
.
name
)
>=
0
)
{
showLog
=
true
;
}
if
(
showLog
)
{
console
.
log
.
apply
(
console
,
[
"%c["
+
vm
.
id
+
":"
+
process
.
id
+
"]"
,
logStyle
].
concat
(
params
));
}
}
var
Process
=
(
function
()
{
function
Process
(
id
)
{
this
.
id
=
id
;
...
...
@@ -2496,9 +2583,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
console
.
warn
(
"meta ["
+
metaConfig
+
"] is not found"
);
return
[
2
];
}
if
(
log
)
{
console
.
log
(
"["
+
this
.
_vm
.
id
+
":"
+
this
.
id
+
"] execute ["
+
(
this
.
_config
.
alias
||
meta
.
name
||
meta
.
id
)
+
"]"
);
}
logProcess
(
meta
,
this
.
_vm
,
this
,
"execute ["
+
(
this
.
_config
.
alias
||
meta
.
name
||
meta
.
id
)
+
"]"
);
if
(
!
meta
.
isDivider
)
return
[
3
,
6
];
p
=
void
0
;
i
=
0
,
li
=
meta
.
output
.
length
;
...
...
@@ -2571,14 +2656,10 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return
[
4
,
func
(
payload
,
this
.
_config
.
props
,
this
.
_target
,
globalContext
,
this
.
_vm
,
this
.
_parent
.
scope
)];
case
1
:
result
=
_a
.
sent
();
if
(
log
)
{
console
.
log
(
"["
+
this
.
_vm
.
id
+
":"
+
this
.
id
+
"] output: <"
+
result
.
type
+
">"
,
result
.
payload
);
}
logProcess
(
metaConfig
,
this
.
_vm
,
this
,
"output: <"
+
result
.
type
+
">"
,
result
.
payload
);
return
[
3
,
3
];
case
2
:
if
(
log
)
{
console
.
log
(
'script lose'
);
}
console
.
warn
(
'script lose:'
,
metaConfig
.
script
);
_a
.
label
=
3
;
case
3
:
return
[
3
,
5
];
case
4
:
...
...
@@ -2783,7 +2864,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return
VM
;
}());
var
log
$1
=
getLogSwitch
(
exports
.
Logs
.
PROCESS
);
var
log
=
getLogSwitch
(
exports
.
Logs
.
PROCESS
);
var
processMetaLibs
=
[];
var
globalContext
=
{};
var
scriptMap
=
{};
...
...
@@ -2819,12 +2900,9 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
vm
.
executeProcess
(
sequence
,
subEntry
,
null
,
args
)
.
then
(
function
(
result
)
{
if
(
log$1
)
{
console
.
log
(
"["
+
vm
.
id
+
"] result:"
,
result
);
}
return
result
;
},
function
(
e
)
{
if
(
log
$1
)
{
if
(
log
)
{
console
.
log
(
"["
+
vm
.
id
+
"] terminate:"
,
e
);
}
});
...
...
@@ -2839,11 +2917,17 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
_a
[
MouseEvent
.
MOUSE_DOWN
]
=
'touchstart'
,
_a
[
MouseEvent
.
MOUSE_MOVE
]
=
'touchmove'
,
_a
[
MouseEvent
.
MOUSE_UP
]
=
'touchend'
,
_a
[
Mouse
Event
.
VISIBLE
]
=
'visible'
,
_a
[
Mouse
Event
.
HIDDEN
]
=
'hidden'
,
_a
[
Event
.
VISIBLE
]
=
'visible'
,
_a
[
Event
.
HIDDEN
]
=
'hidden'
,
_a
);
var
globalEvent
=
new
EventDispatcher
();
var
DATA_CENTER_EVENT
=
'DATA_CENTER_EVENT'
;
var
sendEvents
=
[
'click'
,
'touchstart'
,
'touchmove'
,
'touchend'
,
];
function
applyEvents
(
ctor
)
{
ctor
.
prototype
.
applyEvents
=
function
()
{
var
eventsProxy
=
this
.
eventsProxy
=
new
EventsProxy
(
this
);
...
...
@@ -2893,7 +2977,18 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
EventsProxy
.
prototype
.
onBuiltinEvent
=
function
(
e
)
{
var
eventName
=
eventsMapping
[
e
.
type
];
if
(
eventName
)
{
this
.
invokeBehavior
(
eventName
,
e
.
target
,
e
.
data
);
var
data
=
{};
injectProp
(
data
,
e
.
data
);
if
(
sendEvents
.
indexOf
(
eventName
)
>=
0
)
{
injectProp
(
data
,
{
localX
:
e
.
localX
,
localY
:
e
.
localY
,
stageX
:
e
.
stageX
,
stageY
:
e
.
stageY
,
identifier
:
e
.
identifier
,
});
}
this
.
invokeBehavior
(
eventName
,
e
.
target
,
data
);
}
};
EventsProxy
.
prototype
.
onCustomEvent
=
function
(
e
)
{
...
...
@@ -3175,19 +3270,19 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
continue
;
}
child
.
calculateBounds
();
if
(
child
.
_
mask
)
{
child
.
_
mask
.
calculateBounds
();
if
(
child
.
_bounds
.
x
<
child
.
_
mask
.
_bounds
.
x
)
{
child
.
_bounds
.
x
=
child
.
_
mask
.
_bounds
.
x
;
if
(
child
.
$
mask
)
{
child
.
$
mask
.
calculateBounds
();
if
(
child
.
_bounds
.
x
<
child
.
$
mask
.
_bounds
.
x
)
{
child
.
_bounds
.
x
=
child
.
$
mask
.
_bounds
.
x
;
}
if
(
child
.
_bounds
.
y
<
child
.
_
mask
.
_bounds
.
y
)
{
child
.
_bounds
.
y
=
child
.
_
mask
.
_bounds
.
y
;
if
(
child
.
_bounds
.
y
<
child
.
$
mask
.
_bounds
.
y
)
{
child
.
_bounds
.
y
=
child
.
$
mask
.
_bounds
.
y
;
}
if
(
child
.
_bounds
.
width
>
child
.
_
mask
.
_bounds
.
width
)
{
child
.
_bounds
.
width
=
child
.
_
mask
.
_bounds
.
width
;
if
(
child
.
_bounds
.
width
>
child
.
$
mask
.
_bounds
.
width
)
{
child
.
_bounds
.
width
=
child
.
$
mask
.
_bounds
.
width
;
}
if
(
child
.
_bounds
.
height
>
child
.
_
mask
.
_bounds
.
height
)
{
child
.
_bounds
.
height
=
child
.
_
mask
.
_bounds
.
height
;
if
(
child
.
_bounds
.
height
>
child
.
$
mask
.
_bounds
.
height
)
{
child
.
_bounds
.
height
=
child
.
$
mask
.
_bounds
.
height
;
}
Rectangle
.
createFromRects
(
this
.
_bounds
,
child
.
_bounds
);
}
...
...
@@ -3203,7 +3298,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
if
(
!
this
.
visible
)
return
null
;
if
(
isMouseEvent
&&
!
this
.
mouseChildren
)
return
null
;
return
this
.
hitTestSelf
(
globalPoint
)
;
var
children
=
this
.
children
;
var
length
=
children
.
length
;
var
child
,
hitDisplayObject
;
...
...
@@ -3217,6 +3312,23 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
if
(
hitDisplayObject
)
return
hitDisplayObject
;
}
return
this
.
hitTestSelf
(
globalPoint
);
};
Container
.
prototype
.
hitTestSelf
=
function
(
globalPoint
)
{
if
(
this
.
mouseEnabled
)
{
return
this
.
hitTestSelfBounds
(
globalPoint
);
}
return
null
;
};
Container
.
prototype
.
hitTestSelfBounds
=
function
(
globalPoint
)
{
if
(
this
.
width
&&
this
.
height
)
{
var
lp
=
this
.
globalToLocal
(
globalPoint
,
DisplayObject
.
_bp
);
if
(
lp
.
x
>
0
&&
lp
.
x
<
this
.
width
&&
lp
.
y
>
0
&&
lp
.
y
<
this
.
height
)
return
this
;
}
return
null
;
};
Container
.
prototype
.
renderWebGL
=
function
(
renderer
)
{
...
...
@@ -3382,6 +3494,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Container
.
prototype
.
containerUpdateTransform
=
Container
.
prototype
.
updateTransform
;
var
container
;
var
el$1
;
var
FloatDisplay
=
(
function
(
_super
)
{
tslib_1
.
__extends
(
FloatDisplay
,
_super
);
function
FloatDisplay
()
{
...
...
@@ -3401,6 +3514,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
container
.
style
.
position
=
"absolute"
;
container
.
style
.
left
=
"0"
;
container
.
style
.
top
=
"0"
;
container
.
style
.
fontSize
=
'30px'
;
container
.
style
.
lineHeight
=
'normal'
;
s
.
stage
.
rootDiv
.
appendChild
(
container
);
}
if
(
s
.
_htmlElement
)
{
...
...
@@ -3432,10 +3547,17 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
configurable
:
true
});
FloatDisplay
.
prototype
.
init
=
function
(
htmlElement
)
{
if
(
!
htmlElement
)
{
return
;
}
var
s
=
this
;
var
she
;
if
(
typeof
(
htmlElement
)
==
"string"
)
{
she
=
document
.
getElementById
(
htmlElement
);
if
(
!
el$1
)
{
el$1
=
document
.
createElement
(
'div'
);
}
el$1
.
innerHTML
=
htmlElement
;
she
=
el$1
.
children
[
0
];
}
else
if
(
htmlElement
.
_instanceType
==
"Video"
)
{
she
=
htmlElement
.
media
;
...
...
@@ -10585,6 +10707,19 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return
TextureCache
[
str
]
||
null
;
}
var
queryParams
=
{};
var
search
=
window
.
location
.
search
;
try
{
search
=
top
.
location
.
search
;
}
catch
(
e
)
{
}
for
(
var
_i
=
0
,
_a$1
=
search
.
replace
(
'?'
,
''
).
split
(
'&'
);
_i
<
_a$1
.
length
;
_i
++
)
{
var
item
=
_a$1
[
_i
];
var
arr
=
item
.
split
(
'='
);
queryParams
[
arr
[
0
]]
=
arr
.
length
===
1
?
true
:
arr
[
1
];
}
function
httpRequest
(
url
,
method
,
params
,
type
,
headers
)
{
if
(
method
===
void
0
)
{
method
=
'get'
;
}
if
(
type
===
void
0
)
{
type
=
'text'
;
}
...
...
@@ -10617,7 +10752,29 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
}
}
function
doRequest
(
_a
,
resolve
,
reject
)
{
function
doProxyRequest
(
payload
,
resolve
,
reject
)
{
var
proxyWindow
=
window
[
'proxy_window'
];
window
.
addEventListener
(
'message'
,
function
(
event
)
{
try
{
var
data
=
JSON
.
parse
(
event
.
data
);
switch
(
data
.
action
)
{
case
'http-request-proxy-resolve'
:
resolve
(
data
.
payload
);
break
;
case
'http-request-proxy-reject'
:
reject
(
data
.
payload
);
break
;
}
}
catch
(
e
)
{
}
},
false
);
proxyWindow
.
postMessage
(
JSON
.
stringify
({
action
:
'http-request-proxy'
,
payload
:
payload
,
}),
'*'
);
}
function
doXhrRequest
(
_a
,
resolve
,
reject
)
{
var
url
=
_a
.
url
,
method
=
_a
.
method
,
params
=
_a
.
params
,
type
=
_a
.
type
,
headers
=
_a
.
headers
;
var
xhr
;
if
(
window
[
"XMLHttpRequest"
])
{
...
...
@@ -10664,6 +10821,14 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}
}
}
function
doRequest
(
payload
,
resolve
,
reject
)
{
if
(
window
[
'proxy_window'
]
&&
payload
.
url
.
indexOf
(
'blob'
)
!==
0
)
{
doProxyRequest
(
payload
,
resolve
,
reject
);
}
else
{
doXhrRequest
(
payload
,
resolve
,
reject
);
}
}
function
jsonp
(
url
,
params
)
{
return
new
Promise
(
function
(
resolve
,
reject
)
{
var
src
=
urlJoin
(
url
,
obj2query
(
params
));
...
...
@@ -10690,6 +10855,32 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return
url
;
}
}
if
(
queryParams
.
__proxy_mode__
)
{
window
.
addEventListener
(
'message'
,
function
(
event
)
{
try
{
var
data
=
JSON
.
parse
(
event
.
data
);
switch
(
data
.
action
)
{
case
'http-request-proxy'
:
doRequest
(
data
.
payload
,
resolve
.
bind
(
event
.
source
),
reject
.
bind
(
event
.
source
));
break
;
}
}
catch
(
e
)
{
}
function
resolve
(
resp
)
{
this
.
postMessage
(
JSON
.
stringify
({
action
:
'http-request-proxy-resolve'
,
payload
:
resp
,
}),
'*'
);
}
function
reject
(
reason
)
{
this
.
postMessage
(
JSON
.
stringify
({
action
:
'http-request-proxy-reject'
,
payload
:
reason
,
}),
'*'
);
}
},
false
);
}
function
createTextureSheet
(
baseTexture
,
altaData
)
{
var
frames
=
altaData
;
...
...
@@ -11267,7 +11458,13 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
ctx
.
fillText
(
line
,
0
,
y
,
maxW
);
}
else
{
var
x
=
0
;
var
lineWidth
=
0
;
for
(
var
_a
=
0
,
line_1
=
line
;
_a
<
line_1
.
length
;
_a
++
)
{
var
char
=
line_1
[
_a
];
var
charWidth
=
measureChar
(
char
);
lineWidth
+=
charWidth
;
}
var
x
=
-
lineWidth
/
2
;
for
(
var
j
=
0
,
lj
=
line
.
length
;
j
<
lj
;
j
++
)
{
var
char
=
line
[
j
];
var
style
=
s
.
getStyle
(
index
);
...
...
@@ -15147,18 +15344,23 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
Image
.
prototype
.
updateSource
=
function
()
{
var
url
=
this
.
_source
;
if
(
url
.
indexOf
(
'://'
)
>=
0
)
{
if
(
url
.
indexOf
(
assetScheme
)
===
0
)
{
url
=
url
.
replace
(
assetScheme
,
''
);
if
(
url
)
{
if
(
url
.
indexOf
(
'://'
)
>=
0
)
{
if
(
url
.
indexOf
(
assetScheme
)
===
0
)
{
url
=
url
.
replace
(
assetScheme
,
''
);
}
}
else
{
var
assetConfig
=
getAssetByName
(
url
);
if
(
assetConfig
)
{
url
=
assetConfig
.
url
;
}
}
this
.
texture
=
Texture
.
fromImage
(
url
);
}
else
{
var
assetConfig
=
getAssetByName
(
url
);
if
(
assetConfig
)
{
url
=
assetConfig
.
url
;
}
this
.
texture
=
null
;
}
this
.
texture
=
Texture
.
fromImage
(
url
);
};
Image
.
prototype
.
_setSourceDirect
=
function
(
value
)
{
this
.
_source
=
value
;
...
...
@@ -15167,21 +15369,26 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
Image
.
prototype
.
_setSource
=
function
(
value
)
{
if
(
value
!==
this
.
_source
)
{
var
matchResult
=
value
.
match
(
ESCAPE_REG_EXP
);
if
(
matchResult
)
{
this
.
unregisterEvents
();
this
.
_originText
=
value
;
this
.
_escapes
.
splice
(
0
);
for
(
var
_i
=
0
,
matchResult_1
=
matchResult
;
_i
<
matchResult_1
.
length
;
_i
++
)
{
var
item
=
matchResult_1
[
_i
];
var
escape
=
item
.
substr
(
2
,
item
.
length
-
3
);
var
args
=
escape
.
split
(
'|'
);
var
eventName
=
args
[
0
];
this
.
_escapes
.
push
(
escape
);
dataCenter
.
addEventListener
(
eventName
,
this
.
onDataMutated
,
this
);
this
.
_registeredEvents
.
push
(
eventName
);
if
(
value
)
{
var
matchResult
=
value
.
match
(
ESCAPE_REG_EXP
);
if
(
matchResult
)
{
this
.
unregisterEvents
();
this
.
_originText
=
value
;
this
.
_escapes
.
splice
(
0
);
for
(
var
_i
=
0
,
matchResult_1
=
matchResult
;
_i
<
matchResult_1
.
length
;
_i
++
)
{
var
item
=
matchResult_1
[
_i
];
var
escape
=
item
.
substr
(
2
,
item
.
length
-
3
);
var
args
=
escape
.
split
(
'|'
);
var
eventName
=
args
[
0
];
this
.
_escapes
.
push
(
escape
);
dataCenter
.
addEventListener
(
eventName
,
this
.
onDataMutated
,
this
);
this
.
_registeredEvents
.
push
(
eventName
);
}
this
.
onDataMutated
();
}
else
{
this
.
_setSourceDirect
(
value
);
}
this
.
onDataMutated
();
}
else
{
this
.
_setSourceDirect
(
value
);
...
...
@@ -15252,12 +15459,14 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
set
:
function
(
value
)
{
if
(
this
.
_htmlText
!=
value
)
{
this
.
_htmlText
=
value
;
var
matchResult
=
value
.
match
(
ESCAPE_REG_EXP
);
if
(
matchResult
)
{
this
.
dealEscape
(
value
,
matchResult
,
this
.
onHtmlMutated
);
}
else
{
this
.
text
=
htmlToPureText
(
value
);
if
(
this
.
_htmlText
)
{
var
matchResult
=
value
.
match
(
ESCAPE_REG_EXP
);
if
(
matchResult
)
{
this
.
dealEscape
(
value
,
matchResult
,
this
.
onHtmlMutated
);
}
else
{
this
.
text
=
htmlToPureText
(
value
);
}
}
}
},
...
...
@@ -15358,6 +15567,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
pl
.
font
=
this
.
font
;
this
.
addChildAt
(
pl
,
0
);
}
pl
.
textAlign
=
this
.
textAlign
;
}
};
TextInput
.
prototype
.
setFocus
=
function
()
{
...
...
@@ -15373,6 +15583,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
style
.
width
=
this
.
width
+
'px'
;
style
.
height
=
this
.
height
+
'px'
;
style
.
fontFamily
=
this
.
font
;
style
.
pointerEvents
=
'auto'
;
style
.
textAlign
=
this
.
textAlign
;
this
.
_oldFillColor
=
this
.
fillColor
;
this
.
_oldStrokeColor
=
this
.
strokeColor
;
this
.
fillColor
=
'transparent'
;
...
...
@@ -15381,7 +15593,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
pl
.
parent
.
removeChild
(
pl
);
}
this
.
_floatDisplay
.
alpha
=
1
;
input
.
style
.
pointerEvents
=
'auto'
;
var
maxLength
=
this
.
maxLength
;
if
(
maxLength
>
0
)
{
input
.
maxLength
=
maxLength
;
...
...
@@ -15623,6 +15834,24 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return
BitmapText
;
}(
Container
));
var
HtmlView
=
(
function
(
_super
)
{
tslib_1
.
__extends
(
HtmlView
,
_super
);
function
HtmlView
()
{
var
_this
=
_super
.
call
(
this
)
||
this
;
_this
.
afterConstructor
();
return
_this
;
}
HtmlView
.
prototype
.
afterConstructor
=
function
()
{
};
HtmlView
=
tslib_1
.
__decorate
([
afterConstructor
,
applyAutoAdjust
,
applyScript
,
applyEvents
],
HtmlView
);
return
HtmlView
;
}(
FloatDisplay
));
var
nodeTypeMapping
=
{
node
:
Container
,
rect
:
Rect
,
...
...
@@ -15633,6 +15862,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
scrollView
:
ScrollView
,
scrollList
:
ScrollList
,
bitmapText
:
BitmapText
,
htmlView
:
HtmlView
,
};
function
registerNodeType
(
name
,
def
)
{
nodeTypeMapping
[
name
]
=
def
;
...
...
@@ -15653,24 +15883,24 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
node
.
uuid
=
uuid
;
node
.
__originConfig
=
config
;
injectProperties
(
node
,
properties
);
if
(
scripts
&&
scripts
.
length
>
0
)
{
for
(
var
_i
=
0
,
scripts_1
=
scripts
;
_i
<
scripts_1
.
length
;
_i
++
)
{
var
scriptConfig
=
scripts_1
[
_i
];
instantiateScript
(
node
,
scriptConfig
);
}
}
if
(
events
)
{
node
.
eventsProxy
.
start
(
events
);
}
if
(
children
&&
children
.
length
>
0
)
{
for
(
var
_
a
=
0
,
children_1
=
children
;
_a
<
children_1
.
length
;
_a
++
)
{
var
childConfig
=
children_1
[
_
a
];
for
(
var
_
i
=
0
,
children_1
=
children
;
_i
<
children_1
.
length
;
_i
++
)
{
var
childConfig
=
children_1
[
_
i
];
var
childNode
=
instantiateView
(
childConfig
);
if
(
childNode
)
{
node
.
addChild
(
childNode
);
}
}
}
if
(
scripts
&&
scripts
.
length
>
0
)
{
for
(
var
_a
=
0
,
scripts_1
=
scripts
;
_a
<
scripts_1
.
length
;
_a
++
)
{
var
scriptConfig
=
scripts_1
[
_a
];
instantiateScript
(
node
,
scriptConfig
);
}
}
if
(
events
&&
node
.
eventsProxy
)
{
node
.
eventsProxy
.
start
(
events
);
}
return
node
;
}
...
...
@@ -15679,6 +15909,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
function
Toast
(
gameStage
)
{
var
_this
=
_super
.
call
(
this
)
||
this
;
_this
.
_gameStage
=
gameStage
;
_this
.
mouseEnabled
=
_this
.
mouseChildren
=
false
;
_this
.
horizonCenter
=
0
;
_this
.
verticalCenter
=
0
;
return
_this
;
...
...
@@ -15880,7 +16111,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
var
_a
=
this
.
_config
,
_b
=
_a
.
options
,
entrySceneView
=
_b
.
entrySceneView
,
env
=
_b
.
env
,
dataMapping
=
_a
.
dataMapping
,
processes
=
_a
.
processes
,
builtinProcesses
=
_a
.
builtinProcesses
,
scripts
=
_a
.
scripts
,
customs
=
_a
.
customs
;
Stage
.
addUpdateObj
(
Tween
);
injectEnv
(
env
);
registerCustomModule
Asset
s
(
customs
);
registerCustomModules
(
customs
);
if
(
dataMapping
)
{
this
.
dataCenter
.
registerDataMapping
(
dataMapping
);
}
...
...
@@ -15936,10 +16167,11 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
}(
Container
));
var
customMap
=
{};
function
registerCustomModule
Asset
s
(
customs
)
{
function
registerCustomModules
(
customs
)
{
for
(
var
_i
=
0
,
customs_1
=
customs
;
_i
<
customs_1
.
length
;
_i
++
)
{
var
custom
=
customs_1
[
_i
];
customMap
[
custom
.
id
].
assets
=
custom
.
assets
;
customMap
[
custom
.
id
].
props
=
custom
.
props
;
}
}
function
registerCustomModule
(
id
,
def
)
{
...
...
@@ -15985,6 +16217,9 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return
config
;
}
}
function
getProps
(
id
)
{
return
customMap
[
id
].
props
||
{};
}
var
howler
=
createCommonjsModule
(
function
(
module
,
exports
)
{
/*!
...
...
@@ -19199,6 +19434,9 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
};
function
launch
(
url
,
loadingDelegate
,
onStart
)
{
if
(
queryParams
.
__proxy_mode__
)
{
return
Promise
.
resolve
(
'cancel launch'
);
}
return
globalLoader
.
loadJson
(
url
)
.
then
(
function
(
config
)
{
return
launchWithConfig
(
config
,
loadingDelegate
,
onStart
);
...
...
@@ -19242,13 +19480,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
});
}
var
queryParams
=
{};
for
(
var
_i
=
0
,
_a$1
=
top
.
location
.
search
.
replace
(
'?'
,
''
).
split
(
'&'
);
_i
<
_a$1
.
length
;
_i
++
)
{
var
item
=
_a$1
[
_i
];
var
arr
=
item
.
split
(
'='
);
queryParams
[
arr
[
0
]]
=
arr
.
length
===
1
?
true
:
arr
[
1
];
}
var
emojiRegex
=
function
()
{
// https://mths.be/emoji
return
/
\u
D83C
\u
DFF4
\u
DB40
\u
DC67
\u
DB40
\u
DC62
(?:\u
DB40
\u
DC65
\u
DB40
\u
DC6E
\u
DB40
\u
DC67|
\u
DB40
\u
DC73
\u
DB40
\u
DC63
\u
DB40
\u
DC74|
\u
DB40
\u
DC77
\u
DB40
\u
DC6C
\u
DB40
\u
DC73
)\u
DB40
\u
DC7F|
\u
D83D
\u
DC68
(?:\u
D83C
\u
DFFC
\u
200D
(?:\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC68
\u
D83C
\u
DFFB|
\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
\u
D83C
\u
DFFF
\u
200D
(?:\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC68
(?:\u
D83C
[\u
DFFB-
\u
DFFE
])
|
\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
\u
D83C
\u
DFFE
\u
200D
(?:\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC68
(?:\u
D83C
[\u
DFFB-
\u
DFFD
])
|
\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
\u
D83C
\u
DFFD
\u
200D
(?:\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC68
(?:\u
D83C
[\u
DFFB
\u
DFFC
])
|
\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
\u
200D
(?:\u
2764
\u
FE0F
\u
200D
(?:\u
D83D
\u
DC8B
\u
200D
)?\u
D83D
\u
DC68|
(?:\u
D83D
[\u
DC68
\u
DC69
])\u
200D
(?:\u
D83D
\u
DC66
\u
200D
\u
D83D
\u
DC66|
\u
D83D
\u
DC67
\u
200D
(?:\u
D83D
[\u
DC66
\u
DC67
]))
|
\u
D83D
\u
DC66
\u
200D
\u
D83D
\u
DC66|
\u
D83D
\u
DC67
\u
200D
(?:\u
D83D
[\u
DC66
\u
DC67
])
|
(?:\u
D83D
[\u
DC68
\u
DC69
])\u
200D
(?:\u
D83D
[\u
DC66
\u
DC67
])
|
[\u
2695
\u
2696
\u
2708
]\u
FE0F|
\u
D83D
[\u
DC66
\u
DC67
]
|
\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
(?:\u
D83C
\u
DFFB
\u
200D
[\u
2695
\u
2696
\u
2708
]
|
\u
D83C
\u
DFFF
\u
200D
[\u
2695
\u
2696
\u
2708
]
|
\u
D83C
\u
DFFE
\u
200D
[\u
2695
\u
2696
\u
2708
]
|
\u
D83C
\u
DFFD
\u
200D
[\u
2695
\u
2696
\u
2708
]
|
\u
D83C
\u
DFFC
\u
200D
[\u
2695
\u
2696
\u
2708
])\u
FE0F|
\u
D83C
\u
DFFB
\u
200D
(?:\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
\u
D83C
[\u
DFFB-
\u
DFFF
])
|
(?:\u
D83E
\u
DDD1
\u
D83C
\u
DFFB
\u
200D
\u
D83E
\u
DD1D
\u
200D
\u
D83E
\u
DDD1|
\u
D83D
\u
DC69
\u
D83C
\u
DFFC
\u
200D
\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC69
)\u
D83C
\u
DFFB|
\u
D83E
\u
DDD1
(?:\u
D83C
\u
DFFF
\u
200D
\u
D83E
\u
DD1D
\u
200D
\u
D83E
\u
DDD1
(?:\u
D83C
[\u
DFFB-
\u
DFFF
])
|
\u
200D
\u
D83E
\u
DD1D
\u
200D
\u
D83E
\u
DDD1
)
|
(?:\u
D83E
\u
DDD1
\u
D83C
\u
DFFE
\u
200D
\u
D83E
\u
DD1D
\u
200D
\u
D83E
\u
DDD1|
\u
D83D
\u
DC69
\u
D83C
\u
DFFF
\u
200D
\u
D83E
\u
DD1D
\u
200D
(?:\u
D83D
[\u
DC68
\u
DC69
]))(?:\u
D83C
[\u
DFFB-
\u
DFFE
])
|
(?:\u
D83E
\u
DDD1
\u
D83C
\u
DFFC
\u
200D
\u
D83E
\u
DD1D
\u
200D
\u
D83E
\u
DDD1|
\u
D83D
\u
DC69
\u
D83C
\u
DFFD
\u
200D
\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC69
)(?:\u
D83C
[\u
DFFB
\u
DFFC
])
|
\u
D83D
\u
DC69
(?:\u
D83C
\u
DFFE
\u
200D
(?:\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC68
(?:\u
D83C
[\u
DFFB-
\u
DFFD
\u
DFFF
])
|
\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
\u
D83C
\u
DFFC
\u
200D
(?:\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC68
(?:\u
D83C
[\u
DFFB
\u
DFFD-
\u
DFFF
])
|
\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
\u
D83C
\u
DFFB
\u
200D
(?:\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC68
(?:\u
D83C
[\u
DFFC-
\u
DFFF
])
|
\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
\u
D83C
\u
DFFD
\u
200D
(?:\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC68
(?:\u
D83C
[\u
DFFB
\u
DFFC
\u
DFFE
\u
DFFF
])
|
\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
\u
200D
(?:\u
2764
\u
FE0F
\u
200D
(?:\u
D83D
\u
DC8B
\u
200D
(?:\u
D83D
[\u
DC68
\u
DC69
])
|
\u
D83D
[\u
DC68
\u
DC69
])
|
\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
])
|
\u
D83C
\u
DFFF
\u
200D
(?:\u
D83C
[\u
DF3E
\u
DF73
\u
DF93
\u
DFA4
\u
DFA8
\u
DFEB
\u
DFED
]
|
\u
D83D
[\u
DCBB
\u
DCBC
\u
DD27
\u
DD2C
\u
DE80
\u
DE92
]
|
\u
D83E
[\u
DDAF-
\u
DDB3
\u
DDBC
\u
DDBD
]))
|
\u
D83D
\u
DC69
\u
200D
\u
D83D
\u
DC69
\u
200D
(?:\u
D83D
\u
DC66
\u
200D
\u
D83D
\u
DC66|
\u
D83D
\u
DC67
\u
200D
(?:\u
D83D
[\u
DC66
\u
DC67
]))
|
(?:\u
D83E
\u
DDD1
\u
D83C
\u
DFFD
\u
200D
\u
D83E
\u
DD1D
\u
200D
\u
D83E
\u
DDD1|
\u
D83D
\u
DC69
\u
D83C
\u
DFFE
\u
200D
\u
D83E
\u
DD1D
\u
200D
\u
D83D
\u
DC69
)(?:\u
D83C
[\u
DFFB-
\u
DFFD
])
|
\u
D83D
\u
DC69
\u
200D
\u
D83D
\u
DC66
\u
200D
\u
D83D
\u
DC66|
\u
D83D
\u
DC69
\u
200D
\u
D83D
\u
DC69
\u
200D
(?:\u
D83D
[\u
DC66
\u
DC67
])
|
(?:\u
D83D
\u
DC41
\u
FE0F
\u
200D
\u
D83D
\u
DDE8|
\u
D83D
\u
DC69
(?:\u
D83C
\u
DFFF
\u
200D
[\u
2695
\u
2696
\u
2708
]
|
\u
D83C
\u
DFFE
\u
200D
[\u
2695
\u
2696
\u
2708
]
|
\u
D83C
\u
DFFC
\u
200D
[\u
2695
\u
2696
\u
2708
]
|
\u
D83C
\u
DFFB
\u
200D
[\u
2695
\u
2696
\u
2708
]
|
\u
D83C
\u
DFFD
\u
200D
[\u
2695
\u
2696
\u
2708
]
|
\u
200D
[\u
2695
\u
2696
\u
2708
])
|
(?:(?:\u
26F9|
\u
D83C
[\u
DFCB
\u
DFCC
]
|
\u
D83D
\u
DD75
)\u
FE0F|
\u
D83D
\u
DC6F|
\u
D83E
[\u
DD3C
\u
DDDE
\u
DDDF
])\u
200D
[\u
2640
\u
2642
]
|
(?:\u
26F9|
\u
D83C
[\u
DFCB
\u
DFCC
]
|
\u
D83D
\u
DD75
)(?:\u
D83C
[\u
DFFB-
\u
DFFF
])\u
200D
[\u
2640
\u
2642
]
|
(?:\u
D83C
[\u
DFC3
\u
DFC4
\u
DFCA
]
|
\u
D83D
[\u
DC6E
\u
DC71
\u
DC73
\u
DC77
\u
DC81
\u
DC82
\u
DC86
\u
DC87
\u
DE45-
\u
DE47
\u
DE4B
\u
DE4D
\u
DE4E
\u
DEA3
\u
DEB4-
\u
DEB6
]
|
\u
D83E
[\u
DD26
\u
DD37-
\u
DD39
\u
DD3D
\u
DD3E
\u
DDB8
\u
DDB9
\u
DDCD-
\u
DDCF
\u
DDD6-
\u
DDDD
])(?:(?:\u
D83C
[\u
DFFB-
\u
DFFF
])\u
200D
[\u
2640
\u
2642
]
|
\u
200D
[\u
2640
\u
2642
])
|
\u
D83C
\u
DFF4
\u
200D
\u
2620
)\u
FE0F|
\u
D83D
\u
DC69
\u
200D
\u
D83D
\u
DC67
\u
200D
(?:\u
D83D
[\u
DC66
\u
DC67
])
|
\u
D83C
\u
DFF3
\u
FE0F
\u
200D
\u
D83C
\u
DF08|
\u
D83D
\u
DC15
\u
200D
\u
D83E
\u
DDBA|
\u
D83D
\u
DC69
\u
200D
\u
D83D
\u
DC66|
\u
D83D
\u
DC69
\u
200D
\u
D83D
\u
DC67|
\u
D83C
\u
DDFD
\u
D83C
\u
DDF0|
\u
D83C
\u
DDF4
\u
D83C
\u
DDF2|
\u
D83C
\u
DDF6
\u
D83C
\u
DDE6|
[
#
\*
0-9
]\u
FE0F
\u
20E3|
\u
D83C
\u
DDE7
(?:\u
D83C
[\u
DDE6
\u
DDE7
\u
DDE9-
\u
DDEF
\u
DDF1-
\u
DDF4
\u
DDF6-
\u
DDF9
\u
DDFB
\u
DDFC
\u
DDFE
\u
DDFF
])
|
\u
D83C
\u
DDF9
(?:\u
D83C
[\u
DDE6
\u
DDE8
\u
DDE9
\u
DDEB-
\u
DDED
\u
DDEF-
\u
DDF4
\u
DDF7
\u
DDF9
\u
DDFB
\u
DDFC
\u
DDFF
])
|
\u
D83C
\u
DDEA
(?:\u
D83C
[\u
DDE6
\u
DDE8
\u
DDEA
\u
DDEC
\u
DDED
\u
DDF7-
\u
DDFA
])
|
\u
D83E
\u
DDD1
(?:\u
D83C
[\u
DFFB-
\u
DFFF
])
|
\u
D83C
\u
DDF7
(?:\u
D83C
[\u
DDEA
\u
DDF4
\u
DDF8
\u
DDFA
\u
DDFC
])
|
\u
D83D
\u
DC69
(?:\u
D83C
[\u
DFFB-
\u
DFFF
])
|
\u
D83C
\u
DDF2
(?:\u
D83C
[\u
DDE6
\u
DDE8-
\u
DDED
\u
DDF0-
\u
DDFF
])
|
\u
D83C
\u
DDE6
(?:\u
D83C
[\u
DDE8-
\u
DDEC
\u
DDEE
\u
DDF1
\u
DDF2
\u
DDF4
\u
DDF6-
\u
DDFA
\u
DDFC
\u
DDFD
\u
DDFF
])
|
\u
D83C
\u
DDF0
(?:\u
D83C
[\u
DDEA
\u
DDEC-
\u
DDEE
\u
DDF2
\u
DDF3
\u
DDF5
\u
DDF7
\u
DDFC
\u
DDFE
\u
DDFF
])
|
\u
D83C
\u
DDED
(?:\u
D83C
[\u
DDF0
\u
DDF2
\u
DDF3
\u
DDF7
\u
DDF9
\u
DDFA
])
|
\u
D83C
\u
DDE9
(?:\u
D83C
[\u
DDEA
\u
DDEC
\u
DDEF
\u
DDF0
\u
DDF2
\u
DDF4
\u
DDFF
])
|
\u
D83C
\u
DDFE
(?:\u
D83C
[\u
DDEA
\u
DDF9
])
|
\u
D83C
\u
DDEC
(?:\u
D83C
[\u
DDE6
\u
DDE7
\u
DDE9-
\u
DDEE
\u
DDF1-
\u
DDF3
\u
DDF5-
\u
DDFA
\u
DDFC
\u
DDFE
])
|
\u
D83C
\u
DDF8
(?:\u
D83C
[\u
DDE6-
\u
DDEA
\u
DDEC-
\u
DDF4
\u
DDF7-
\u
DDF9
\u
DDFB
\u
DDFD-
\u
DDFF
])
|
\u
D83C
\u
DDEB
(?:\u
D83C
[\u
DDEE-
\u
DDF0
\u
DDF2
\u
DDF4
\u
DDF7
])
|
\u
D83C
\u
DDF5
(?:\u
D83C
[\u
DDE6
\u
DDEA-
\u
DDED
\u
DDF0-
\u
DDF3
\u
DDF7-
\u
DDF9
\u
DDFC
\u
DDFE
])
|
\u
D83C
\u
DDFB
(?:\u
D83C
[\u
DDE6
\u
DDE8
\u
DDEA
\u
DDEC
\u
DDEE
\u
DDF3
\u
DDFA
])
|
\u
D83C
\u
DDF3
(?:\u
D83C
[\u
DDE6
\u
DDE8
\u
DDEA-
\u
DDEC
\u
DDEE
\u
DDF1
\u
DDF4
\u
DDF5
\u
DDF7
\u
DDFA
\u
DDFF
])
|
\u
D83C
\u
DDE8
(?:\u
D83C
[\u
DDE6
\u
DDE8
\u
DDE9
\u
DDEB-
\u
DDEE
\u
DDF0-
\u
DDF5
\u
DDF7
\u
DDFA-
\u
DDFF
])
|
\u
D83C
\u
DDF1
(?:\u
D83C
[\u
DDE6-
\u
DDE8
\u
DDEE
\u
DDF0
\u
DDF7-
\u
DDFB
\u
DDFE
])
|
\u
D83C
\u
DDFF
(?:\u
D83C
[\u
DDE6
\u
DDF2
\u
DDFC
])
|
\u
D83C
\u
DDFC
(?:\u
D83C
[\u
DDEB
\u
DDF8
])
|
\u
D83C
\u
DDFA
(?:\u
D83C
[\u
DDE6
\u
DDEC
\u
DDF2
\u
DDF3
\u
DDF8
\u
DDFE
\u
DDFF
])
|
\u
D83C
\u
DDEE
(?:\u
D83C
[\u
DDE8-
\u
DDEA
\u
DDF1-
\u
DDF4
\u
DDF6-
\u
DDF9
])
|
\u
D83C
\u
DDEF
(?:\u
D83C
[\u
DDEA
\u
DDF2
\u
DDF4
\u
DDF5
])
|
(?:\u
D83C
[\u
DFC3
\u
DFC4
\u
DFCA
]
|
\u
D83D
[\u
DC6E
\u
DC71
\u
DC73
\u
DC77
\u
DC81
\u
DC82
\u
DC86
\u
DC87
\u
DE45-
\u
DE47
\u
DE4B
\u
DE4D
\u
DE4E
\u
DEA3
\u
DEB4-
\u
DEB6
]
|
\u
D83E
[\u
DD26
\u
DD37-
\u
DD39
\u
DD3D
\u
DD3E
\u
DDB8
\u
DDB9
\u
DDCD-
\u
DDCF
\u
DDD6-
\u
DDDD
])(?:\u
D83C
[\u
DFFB-
\u
DFFF
])
|
(?:\u
26F9|
\u
D83C
[\u
DFCB
\u
DFCC
]
|
\u
D83D
\u
DD75
)(?:\u
D83C
[\u
DFFB-
\u
DFFF
])
|
(?:[\u
261D
\u
270A-
\u
270D
]
|
\u
D83C
[\u
DF85
\u
DFC2
\u
DFC7
]
|
\u
D83D
[\u
DC42
\u
DC43
\u
DC46-
\u
DC50
\u
DC66
\u
DC67
\u
DC6B-
\u
DC6D
\u
DC70
\u
DC72
\u
DC74-
\u
DC76
\u
DC78
\u
DC7C
\u
DC83
\u
DC85
\u
DCAA
\u
DD74
\u
DD7A
\u
DD90
\u
DD95
\u
DD96
\u
DE4C
\u
DE4F
\u
DEC0
\u
DECC
]
|
\u
D83E
[\u
DD0F
\u
DD18-
\u
DD1C
\u
DD1E
\u
DD1F
\u
DD30-
\u
DD36
\u
DDB5
\u
DDB6
\u
DDBB
\u
DDD2-
\u
DDD5
])(?:\u
D83C
[\u
DFFB-
\u
DFFF
])
|
(?:[\u
231A
\u
231B
\u
23E9-
\u
23EC
\u
23F0
\u
23F3
\u
25FD
\u
25FE
\u
2614
\u
2615
\u
2648-
\u
2653
\u
267F
\u
2693
\u
26A1
\u
26AA
\u
26AB
\u
26BD
\u
26BE
\u
26C4
\u
26C5
\u
26CE
\u
26D4
\u
26EA
\u
26F2
\u
26F3
\u
26F5
\u
26FA
\u
26FD
\u
2705
\u
270A
\u
270B
\u
2728
\u
274C
\u
274E
\u
2753-
\u
2755
\u
2757
\u
2795-
\u
2797
\u
27B0
\u
27BF
\u
2B1B
\u
2B1C
\u
2B50
\u
2B55
]
|
\u
D83C
[\u
DC04
\u
DCCF
\u
DD8E
\u
DD91-
\u
DD9A
\u
DDE6-
\u
DDFF
\u
DE01
\u
DE1A
\u
DE2F
\u
DE32-
\u
DE36
\u
DE38-
\u
DE3A
\u
DE50
\u
DE51
\u
DF00-
\u
DF20
\u
DF2D-
\u
DF35
\u
DF37-
\u
DF7C
\u
DF7E-
\u
DF93
\u
DFA0-
\u
DFCA
\u
DFCF-
\u
DFD3
\u
DFE0-
\u
DFF0
\u
DFF4
\u
DFF8-
\u
DFFF
]
|
\u
D83D
[\u
DC00-
\u
DC3E
\u
DC40
\u
DC42-
\u
DCFC
\u
DCFF-
\u
DD3D
\u
DD4B-
\u
DD4E
\u
DD50-
\u
DD67
\u
DD7A
\u
DD95
\u
DD96
\u
DDA4
\u
DDFB-
\u
DE4F
\u
DE80-
\u
DEC5
\u
DECC
\u
DED0-
\u
DED2
\u
DED5
\u
DEEB
\u
DEEC
\u
DEF4-
\u
DEFA
\u
DFE0-
\u
DFEB
]
|
\u
D83E
[\u
DD0D-
\u
DD3A
\u
DD3C-
\u
DD45
\u
DD47-
\u
DD71
\u
DD73-
\u
DD76
\u
DD7A-
\u
DDA2
\u
DDA5-
\u
DDAA
\u
DDAE-
\u
DDCA
\u
DDCD-
\u
DDFF
\u
DE70-
\u
DE73
\u
DE78-
\u
DE7A
\u
DE80-
\u
DE82
\u
DE90-
\u
DE95
])
|
(?:[
#
\*
0-9
\x
A9
\x
AE
\u
203C
\u
2049
\u
2122
\u
2139
\u
2194-
\u
2199
\u
21A9
\u
21AA
\u
231A
\u
231B
\u
2328
\u
23CF
\u
23E9-
\u
23F3
\u
23F8-
\u
23FA
\u
24C2
\u
25AA
\u
25AB
\u
25B6
\u
25C0
\u
25FB-
\u
25FE
\u
2600-
\u
2604
\u
260E
\u
2611
\u
2614
\u
2615
\u
2618
\u
261D
\u
2620
\u
2622
\u
2623
\u
2626
\u
262A
\u
262E
\u
262F
\u
2638-
\u
263A
\u
2640
\u
2642
\u
2648-
\u
2653
\u
265F
\u
2660
\u
2663
\u
2665
\u
2666
\u
2668
\u
267B
\u
267E
\u
267F
\u
2692-
\u
2697
\u
2699
\u
269B
\u
269C
\u
26A0
\u
26A1
\u
26AA
\u
26AB
\u
26B0
\u
26B1
\u
26BD
\u
26BE
\u
26C4
\u
26C5
\u
26C8
\u
26CE
\u
26CF
\u
26D1
\u
26D3
\u
26D4
\u
26E9
\u
26EA
\u
26F0-
\u
26F5
\u
26F7-
\u
26FA
\u
26FD
\u
2702
\u
2705
\u
2708-
\u
270D
\u
270F
\u
2712
\u
2714
\u
2716
\u
271D
\u
2721
\u
2728
\u
2733
\u
2734
\u
2744
\u
2747
\u
274C
\u
274E
\u
2753-
\u
2755
\u
2757
\u
2763
\u
2764
\u
2795-
\u
2797
\u
27A1
\u
27B0
\u
27BF
\u
2934
\u
2935
\u
2B05-
\u
2B07
\u
2B1B
\u
2B1C
\u
2B50
\u
2B55
\u
3030
\u
303D
\u
3297
\u
3299
]
|
\u
D83C
[\u
DC04
\u
DCCF
\u
DD70
\u
DD71
\u
DD7E
\u
DD7F
\u
DD8E
\u
DD91-
\u
DD9A
\u
DDE6-
\u
DDFF
\u
DE01
\u
DE02
\u
DE1A
\u
DE2F
\u
DE32-
\u
DE3A
\u
DE50
\u
DE51
\u
DF00-
\u
DF21
\u
DF24-
\u
DF93
\u
DF96
\u
DF97
\u
DF99-
\u
DF9B
\u
DF9E-
\u
DFF0
\u
DFF3-
\u
DFF5
\u
DFF7-
\u
DFFF
]
|
\u
D83D
[\u
DC00-
\u
DCFD
\u
DCFF-
\u
DD3D
\u
DD49-
\u
DD4E
\u
DD50-
\u
DD67
\u
DD6F
\u
DD70
\u
DD73-
\u
DD7A
\u
DD87
\u
DD8A-
\u
DD8D
\u
DD90
\u
DD95
\u
DD96
\u
DDA4
\u
DDA5
\u
DDA8
\u
DDB1
\u
DDB2
\u
DDBC
\u
DDC2-
\u
DDC4
\u
DDD1-
\u
DDD3
\u
DDDC-
\u
DDDE
\u
DDE1
\u
DDE3
\u
DDE8
\u
DDEF
\u
DDF3
\u
DDFA-
\u
DE4F
\u
DE80-
\u
DEC5
\u
DECB-
\u
DED2
\u
DED5
\u
DEE0-
\u
DEE5
\u
DEE9
\u
DEEB
\u
DEEC
\u
DEF0
\u
DEF3-
\u
DEFA
\u
DFE0-
\u
DFEB
]
|
\u
D83E
[\u
DD0D-
\u
DD3A
\u
DD3C-
\u
DD45
\u
DD47-
\u
DD71
\u
DD73-
\u
DD76
\u
DD7A-
\u
DDA2
\u
DDA5-
\u
DDAA
\u
DDAE-
\u
DDCA
\u
DDCD-
\u
DDFF
\u
DE70-
\u
DE73
\u
DE78-
\u
DE7A
\u
DE80-
\u
DE82
\u
DE90-
\u
DE95
])\u
FE0F|
(?:[\u
261D
\u
26F9
\u
270A-
\u
270D
]
|
\u
D83C
[\u
DF85
\u
DFC2-
\u
DFC4
\u
DFC7
\u
DFCA-
\u
DFCC
]
|
\u
D83D
[\u
DC42
\u
DC43
\u
DC46-
\u
DC50
\u
DC66-
\u
DC78
\u
DC7C
\u
DC81-
\u
DC83
\u
DC85-
\u
DC87
\u
DC8F
\u
DC91
\u
DCAA
\u
DD74
\u
DD75
\u
DD7A
\u
DD90
\u
DD95
\u
DD96
\u
DE45-
\u
DE47
\u
DE4B-
\u
DE4F
\u
DEA3
\u
DEB4-
\u
DEB6
\u
DEC0
\u
DECC
]
|
\u
D83E
[\u
DD0F
\u
DD18-
\u
DD1F
\u
DD26
\u
DD30-
\u
DD39
\u
DD3C-
\u
DD3E
\u
DDB5
\u
DDB6
\u
DDB8
\u
DDB9
\u
DDBB
\u
DDCD-
\u
DDCF
\u
DDD1-
\u
DDDD
])
/g
;
...
...
@@ -19280,12 +19511,14 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
exports
.
HashObject
=
HashObject
;
exports
.
Howl
=
howler_2
;
exports
.
Howler
=
howler_1
;
exports
.
HtmlView
=
HtmlView
;
exports
.
Image
=
Image$1
;
exports
.
InputText
=
InputText
;
exports
.
Label
=
Label
;
exports
.
Loader
=
Loader
;
exports
.
Matrix
=
Matrix
;
exports
.
MouseEvent
=
MouseEvent
;
exports
.
ObjectPool
=
ObjectPool
;
exports
.
PI_2
=
PI_2
;
exports
.
Point
=
Point
;
exports
.
RAD_TO_DEG
=
RAD_TO_DEG
;
...
...
@@ -19330,6 +19563,7 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
exports
.
getAssetByUUID
=
getAssetByUUID
;
exports
.
getDataByPath
=
getDataByPath
;
exports
.
getLogSwitch
=
getLogSwitch
;
exports
.
getProps
=
getProps
;
exports
.
getTexture
=
getTexture
;
exports
.
globalEvent
=
globalEvent
;
exports
.
globalLoader
=
globalLoader
;
...
...
@@ -19363,8 +19597,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
exports
.
queryParams
=
queryParams
;
exports
.
registerCustomCodeModule
=
registerCustomCodeModule
;
exports
.
registerCustomModule
=
registerCustomModule
;
exports
.
registerCustomModuleAssets
=
registerCustomModuleAssets
;
exports
.
registerCustomModuleFromConfig
=
registerCustomModuleFromConfig
;
exports
.
registerCustomModules
=
registerCustomModules
;
exports
.
registerNodeType
=
registerNodeType
;
exports
.
registerScriptDef
=
registerScriptDef
;
exports
.
registerScripts
=
registerScripts
;
...
...
libs/libs_types.d.ts
0 → 100644
View file @
93730d2b
declare
const
args
:
any
;
declare
const
props
:
any
;
declare
const
target
:
engine
.
Container
;
declare
const
global
:
any
;
declare
const
vm
:
engine
.
VM
;
declare
function
next
(
type
:
string
,
payload
?:
any
);
declare
module
engine
{
export
const
VERSION
=
"1.0"
;
export
function
addCustomModule
(
id
,
container
:
Container
,
options
?):
Container
;
export
function
findVariable
(
name
,
...
contexts
);
export
function
joinPath
(...
segments
);
export
function
trimChar
(
str
,
char
);
export
const
devicePixelRatio
:
number
;
export
let
StageScaleMode
:
{
EXACT_FIT
:
string
;
NO_BORDER
:
string
;
NO_SCALE
:
string
;
SHOW_ALL
:
string
;
FIXED_WIDTH
:
string
;
FIXED_HEIGHT
:
string
;
}
export
const
osType
:
string
;
export
function
cos
(
angle
:
number
):
number
;
export
function
sin
(
angle
:
number
):
number
;
export
const
PI_2
:
number
;
export
const
RAD_TO_DEG
:
number
;
export
const
DEG_TO_RAD
:
number
;
export
enum
RENDERER_TYPE
{
UNKNOWN
=
0
,
WEBGL
=
1
,
CANVAS
=
2
}
export
enum
SHAPES
{
POLY
=
0
,
RECT
=
1
,
CIRC
=
2
,
ELIP
=
3
,
RREC
=
4
}
export
enum
PRECISION
{
LOW
=
"lowp"
,
MEDIUM
=
"mediump"
,
HIGH
=
"highp"
}
export
enum
TEXT_GRADIENT
{
LINEAR_VERTICAL
=
0
,
LINEAR_HORIZONTAL
=
1
}
export
enum
TEXT_ALIGN
{
CENTER
=
"center"
,
LEFT
=
"left"
,
RIGHT
=
"right"
}
export
enum
VERTICAL_ALIGN
{
MIDDLE
=
"middle"
,
UP
=
"up"
,
DOWN
=
"down"
}
export
enum
TEXT_lINETYPE
{
SINGLE
=
"single"
,
MULTI
=
"multi"
}
export
enum
LINE_ALIGNMENT
{
middle
=
0.5
,
outter
=
1
,
inner
=
0
}
export
enum
LINE_CAP
{
BUTT
=
"butt"
,
ROUND
=
"round"
,
SQUARE
=
"square"
}
export
enum
LINE_JOIN
{
MITER
=
"miter"
,
ROUND
=
"round"
,
BEVEL
=
"bevel"
}
export
enum
BLEND_MODES
{
NORMAL
=
0
,
ADD
=
1
,
MULTIPLY
=
2
,
SCREEN
=
3
,
OVERLAY
=
4
,
DARKEN
=
5
,
LIGHTEN
=
6
,
COLOR_DODGE
=
7
,
COLOR_BURN
=
8
,
HARD_LIGHT
=
9
,
SOFT_LIGHT
=
10
,
DIFFERENCE
=
11
,
EXCLUSION
=
12
,
HUE
=
13
,
SATURATION
=
14
,
COLOR
=
15
,
LUMINOSITY
=
16
,
NORMAL_NPM
=
17
,
ADD_NPM
=
18
,
SCREEN_NPM
=
19
}
export
enum
DRAW_MODES
{
POINTS
=
0
,
LINES
=
1
,
LINE_LOOP
=
2
,
LINE_STRIP
=
3
,
TRIANGLES
=
4
,
TRIANGLE_STRIP
=
5
,
TRIANGLE_FAN
=
6
}
export
enum
SCALE_MODES
{
LINEAR
=
0
,
NEAREST
=
1
}
export
enum
WRAP_MODES
{
CLAMP
=
33071
,
REPEAT
=
10497
,
MIRRORED_REPEAT
=
33648
}
export
enum
GC_MODES
{
AUTO
=
0
,
MANUAL
=
1
}
export
const
URL_FILE_EXTENSION
:
any
;
export
const
DATA_URI
:
any
;
export
class
Container
extends
DisplayObject
{
mouseChildren
:
boolean
;
children
:
any
[];
containerUpdateTransform
:
any
;
constructor
();
afterConstructor
():
void
;
onChildrenChange
(
index
:
any
):
void
;
addChild
(
child
:
DisplayObject
):
DisplayObject
;
addChildAt
(
child
:
DisplayObject
,
index
:
number
):
DisplayObject
;
swapChildren
(
child1
:
DisplayObject
,
child2
:
DisplayObject
):
boolean
;
getChildIndex
(
child
:
DisplayObject
):
number
;
setChildIndex
(
child
:
DisplayObject
,
index
:
number
):
void
;
getChildAt
(
index
:
number
):
DisplayObject
;
getChildByName
(
name
:
string
|
RegExp
,
isOnlyOne
?:
boolean
,
isRecursive
?:
boolean
):
any
;
removeChild
(
child
:
DisplayObject
):
DisplayObject
;
removeChildAt
(
index
:
number
):
DisplayObject
;
removeChildren
(
beginIndex
?:
number
,
endIndex
?:
number
):
DisplayObject
[];
updateTransform
():
void
;
calculateBounds
():
void
;
protected
_calculateBounds
():
void
;
hitTestPoint
(
globalPoint
:
Point
,
isMouseEvent
?:
boolean
):
any
;
renderWebGL
(
renderer
:
WebglRenderer
):
void
;
private
renderAdvancedWebGL
;
protected
_renderWebGL
(
renderer
:
WebglRenderer
):
void
;
renderCanvas
(
renderer
:
CanvasRenderer
):
void
;
protected
_renderCanvas
(
renderer
:
CanvasRenderer
):
void
;
update
(
deltaTime
:
number
):
void
;
_onDispatchBubbledEvent
(
type
:
string
):
void
;
destroy
():
void
;
width
:
number
;
height
:
number
;
private
static
_getElementsByName
;
}
export
class
DisplayObject
extends
EventDispatcher
{
transform
:
Transform
;
visible
:
boolean
;
renderable
:
boolean
;
parent
:
any
;
stage
:
any
;
name
:
string
;
worldAlpha
:
number
;
protected
_localBoundsSelf
:
Rectangle
;
protected
_bounds
:
Rectangle
;
protected
_boundsID
:
number
;
protected
_lastBoundsID
:
number
;
private
_mask
;
private
_alpha
;
destroyed
:
boolean
;
mouseEnabled
:
boolean
;
tempDisplayObjectParent
:
DisplayObject
;
displayObjectUpdateTransform
:
any
;
displayObjectHitTestPoint
:
any
;
protected
_width
:
number
;
protected
_height
:
number
;
constructor
();
private
readonly
_tempDisplayObjectParent
;
updateTransform
():
void
;
static
_bp
:
Point
;
static
_p1
:
Point
;
static
_p2
:
Point
;
static
_p3
:
Point
;
static
_p4
:
Point
;
static
temBounds
:
Rectangle
;
hitTestPoint
(
point
:
Point
,
isMouseEvent
?:
boolean
):
DisplayObject
;
private
_recursivePostUpdateTransform
;
getBounds
(
skipUpdate
?:
boolean
,
rect
?:
Rectangle
):
Rectangle
;
getLocalBounds
(
rect
?:
Rectangle
):
Rectangle
;
calculateBounds
():
void
;
globalToLocal
(
point
:
Point
,
bp
?:
Point
):
Point
;
localToGlobal
(
point
:
Point
,
bp
?:
Point
):
Point
;
_onDispatchBubbledEvent
(
type
:
string
):
void
;
renderWebGL
(
renderer
:
any
):
void
;
renderCanvas
(
renderer
:
any
):
void
;
setParent
(
container
:
any
):
any
;
setTransform
(
x
?:
number
,
y
?:
number
,
scaleX
?:
number
,
scaleY
?:
number
,
rotation
?:
number
,
skewX
?:
number
,
skewY
?:
number
,
anchorX
?:
number
,
anchorY
?:
number
):
DisplayObject
;
destroy
():
void
;
alpha
:
number
;
x
:
number
;
y
:
number
;
readonly
worldMatrix
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/renderingengine/src/2d/math/Matrix"
).
Matrix
;
readonly
localMatrix
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/renderingengine/src/2d/math/Matrix"
).
Matrix
;
position
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/renderingengine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
scale
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/renderingengine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
scaleX
:
number
;
scaleY
:
number
;
anchor
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/renderingengine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
anchorX
:
number
;
anchorY
:
number
;
skew
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/renderingengine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
rotation
:
number
;
readonly
worldVisible
:
boolean
;
mask
:
Graphics
;
width
:
number
;
height
:
number
;
update
(
deltaTime
:
number
):
void
;
}
export
class
FloatDisplay
extends
DisplayObject
{
htmlElement
:
any
;
private
_isAdded
;
private
_transformID
;
constructor
();
init
(
htmlElement
:
any
):
void
;
private
getStyle
;
updateStyle
():
void
;
destroy
():
void
;
}
export
class
Sprite
extends
Container
{
private
_anchorTexture
;
_texture
:
Texture
;
_width
:
number
;
_height
:
number
;
_transformID
:
number
;
_textureID
:
number
;
_transformTrimmedID
:
number
;
_textureTrimmedID
:
number
;
pluginName
:
string
;
indices
:
Uint16Array
;
start
:
number
;
uvs
:
Float32Array
;
vertexData
:
Float32Array
;
vertexTrimmedData
:
Float32Array
;
constructor
(
texture
?:
Texture
);
_onTextureUpdate
():
void
;
_onAnchorUpdate
():
void
;
calculateVertices
():
void
;
calculateTrimmedVertices
():
void
;
_renderWebGL
(
renderer
:
WebglRenderer
):
void
;
_renderCanvas
(
renderer
:
CanvasRenderer
):
void
;
_calculateBounds
():
void
;
getLocalBounds
(
rect
?:
Rectangle
):
Rectangle
;
hitTestPoint
(
globalPoint
:
Point
,
isMouseEvent
?:
boolean
):
any
;
destroy
():
void
;
anchorTexture
:
any
;
texture
:
Texture
;
static
from
(
source
:
any
):
Sprite
;
static
fromFrame
(
frameId
:
string
):
Sprite
;
static
fromImage
(
imageId
:
string
,
crossorigin
?:
boolean
,
scaleMode
?:
number
):
Sprite
;
}
export
class
Stage
extends
Container
{
iosTouchendPreventDefault
:
boolean
;
isPreventDefaultEvent
:
boolean
;
rootDiv
:
any
;
renderObj
:
SystemRenderer
;
renderType
:
number
;
static
getStage
(
stageName
?:
string
):
Stage
;
private
static
_stageList
;
static
pause
:
boolean
;
private
static
_pause
;
viewRect
:
Rectangle
;
autoSteering
:
boolean
;
autoResize
:
boolean
;
desWidth
:
number
;
desHeight
:
number
;
divHeight
:
number
;
divWidth
:
number
;
private
_bgColor
;
bgColor
:
number
;
scaleMode
:
string
;
private
_scaleMode
;
private
_flush
;
private
_currentFlush
;
static
_dragDisplay
:
DisplayObject
;
private
static
_isLoadedVConsole
;
private
_lastDpList
;
private
_rid
;
private
_floatDisplayList
;
constructor
(
rootDivId
?:
string
,
desW
?:
number
,
desH
?:
number
,
frameRate
?:
number
,
scaleMode
?:
string
,
renderType
?:
number
,
transparent
?:
boolean
,
bgColor
?:
number
);
render
():
void
;
private
_ml
;
private
_mp
;
private
_initMouseEvent
;
private
_mouseDownPoint
;
flush
():
void
;
setFrameRate
(
fps
:
number
):
void
;
getFrameRate
():
number
;
getRootDivWH
(
div
:
HTMLDivElement
):
{
w
:
number
;
h
:
number
;
};
kill
():
void
;
private
_mouseEventTypes
;
private
onMouseEvent
;
private
setAlign
;
resize
():
void
;
getBounds
():
Rectangle
;
private
static
allUpdateObjList
;
static
flushAll
():
void
;
static
addUpdateObj
(
target
:
any
):
void
;
static
removeUpdateObj
(
target
:
any
):
void
;
destroy
():
void
;
}
export
class
Event
extends
HashObject
{
static
RESIZE
:
string
;
static
ON_SCROLL_TO_HEAD
:
string
;
static
ON_SCROLL_STOP
:
string
;
static
ON_SCROLL_START
:
string
;
static
ON_SCROLL_TO_END
:
string
;
static
ON_INIT_STAGE
:
string
;
static
ADDED_TO_STAGE
:
string
;
static
REMOVED_FROM_STAGE
:
string
;
static
ENTER_FRAME
:
string
;
static
END_FRAME
:
string
;
static
CALL_FRAME
:
string
;
static
COMPLETE
:
string
;
static
PROGRESS
:
string
;
static
ERROR
:
string
;
static
ABORT
:
string
;
static
START
:
string
;
static
TIMER
:
string
;
static
TIMER_COMPLETE
:
string
;
type
:
string
;
target
:
any
;
data
:
any
;
constructor
(
type
:
string
);
stopImmediatePropagation
():
void
;
stopPropagation
():
void
;
private
_bpd
;
private
_pd
;
destroy
():
void
;
reset
(
type
:
string
,
target
:
any
):
void
;
}
export
class
EventDispatcher
extends
HashObject
{
protected
eventTypes
:
any
;
protected
eventTypes1
:
any
;
constructor
();
private
static
_MECO
;
static
_totalMEC
:
number
;
static
getMouseEventCount
(
type
?:
string
):
number
;
addEventListener
(
type
:
string
,
listener
:
Function
,
context
?:
any
,
useCapture
?:
boolean
):
void
;
once
(
type
:
string
,
listener
:
Function
,
context
?:
any
,
useCapture
?:
boolean
):
void
;
private
_changeMouseCount
;
private
_defaultEvent
;
dispatchEvent
(
event
:
any
,
data
?:
any
,
useCapture
?:
boolean
):
boolean
;
hasEventListener
(
type
:
string
,
useCapture
?:
boolean
):
boolean
;
removeEventListener
(
type
:
string
,
listener
:
Function
,
context
?:
any
,
useCapture
?:
boolean
):
void
;
removeAllEventListener
():
void
;
destroy
():
void
;
}
export
class
GDispatcher
{
private
static
callbackPool
;
private
static
thisObjPool
;
static
addEvent
(
name
:
string
,
callback
:
any
,
thisObj
:
any
):
void
;
static
removeEvent
(
name
:
string
,
callback
:
any
,
thisObj
?:
any
):
void
;
static
dispatchEvent
(
name
:
string
,
...
args
:
any
[]):
void
;
}
export
class
MouseEvent
extends
Event
{
static
MOUSE_DOWN
:
string
;
static
MOUSE_UP
:
string
;
static
CLICK
:
string
;
static
MOUSE_MOVE
:
string
;
static
MOUSE_OVER
:
string
;
static
MOUSE_OUT
:
string
;
clientX
:
number
;
clientY
:
number
;
stageX
:
number
;
stageY
:
number
;
localX
:
number
;
localY
:
number
;
currentTarget
:
DisplayObject
;
identifier
:
any
;
constructor
(
type
:
string
);
updateAfterEvent
():
void
;
destroy
():
void
;
}
export
const
_default
:
{
build
(
graphicsData
:
GraphicsData
):
void
;
triangulate
(
graphicsData
:
any
,
graphicsGeometry
:
Graphics
):
void
;
}
export
const
_default
:
{
build
(
graphicsData
:
GraphicsData
):
void
;
triangulate
(
graphicsData
:
GraphicsData
,
graphicsGeometry
:
Graphics
):
void
;
}
export
const
_default
:
{
build
(
graphicsData
:
GraphicsData
):
void
;
triangulate
(
graphicsData
:
GraphicsData
,
graphics
:
Graphics
):
void
;
}
export
const
_default
:
{
build
(
graphicsData
:
GraphicsData
):
void
;
triangulate
(
graphicsData
:
GraphicsData
,
graphicsGeometry
:
Graphics
):
void
;
}
export
function
earcut
(
data
:
any
,
holeIndices
:
any
,
dim
:
any
):
any
[];
export
class
Graphics
extends
Container
{
private
_fillStyle
;
private
_lineStyle
;
readonly
fill
:
FillStyle
;
readonly
line
:
LineStyle
;
private
_tint
;
tint
:
number
;
private
batchTint
;
private
_matrix
;
matrix
:
Matrix
;
hitTestByPixel
:
boolean
;
private
_holeMode
;
private
_currentPath
;
graphicsData
:
GraphicsData
[];
isUsedToMask
:
boolean
;
boundsPadding
:
number
;
private
dirty
;
private
boundsDirty
;
cacheAsBitmap
:
boolean
;
private
cacheDirty
;
private
_canvasBuffer
;
_texture
:
Texture
;
offsetX
:
number
;
offsetY
:
number
;
verts
:
any
;
indices
:
any
;
private
batches
;
private
geoBatches
;
private
batchDirty
;
private
uvs
;
private
vertexData
;
private
shapeIndex
;
private
_transformID
;
constructor
();
clone
():
Graphics
;
lineStyle
(
lineWidth
?:
number
,
color
?:
number
,
alpha
?:
number
,
alignment
?:
number
,
native
?:
boolean
):
Graphics
;
lineTextureStyle
(
width
?:
number
,
texture
?:
Texture
,
color
?:
number
,
alpha
?:
number
,
matrix
?:
any
,
alignment
?:
number
,
native
?:
boolean
):
this
;
private
startPoly
;
private
finishPoly
;
moveTo
(
x
:
number
,
y
:
number
):
Graphics
;
lineTo
(
x
:
number
,
y
:
number
):
Graphics
;
private
_initCurve
;
quadraticCurveTo
(
cpX
:
number
,
cpY
:
number
,
toX
:
number
,
toY
:
number
):
Graphics
;
bezierCurveTo
(
cpX
:
number
,
cpY
:
number
,
cpX2
:
number
,
cpY2
:
number
,
toX
:
number
,
toY
:
number
):
Graphics
;
arcTo
(
x1
:
number
,
y1
:
number
,
x2
:
number
,
y2
:
number
,
radius
:
number
):
Graphics
;
arc
(
cx
:
number
,
cy
:
number
,
radius
:
number
,
startAngle
:
number
,
endAngle
:
number
,
anticlockwise
?:
boolean
):
Graphics
;
beginFill
(
color
?:
number
|
string
,
alpha
?:
number
):
Graphics
;
beginTextureFill
(
texture
?:
Texture
,
color
?:
number
,
alpha
?:
number
,
matrix
?:
Matrix
):
this
;
endFill
():
Graphics
;
closePath
():
Graphics
;
beginHole
():
this
;
endHole
():
this
;
drawRect
(
x
:
number
,
y
:
number
,
width
:
number
,
height
:
number
):
Graphics
;
drawRoundedRect
(
x
:
number
,
y
:
number
,
width
:
number
,
height
:
number
,
radius
:
number
):
Graphics
;
drawCircle
(
x
:
number
,
y
:
number
,
radius
:
number
):
Graphics
;
drawEllipse
(
x
:
number
,
y
:
number
,
width
:
number
,
height
:
number
):
Graphics
;
drawPolygon
(
path
:
number
[]
|
Point
[]
|
Polygon
):
Graphics
;
drawStar
(
x
:
number
,
y
:
number
,
points
:
number
,
radius
:
number
,
innerRadius
:
number
,
rotation
?:
number
):
Graphics
;
private
drawShape
;
clear
():
Graphics
;
isFastRect
():
boolean
;
_renderWebGL
(
renderer
:
WebglRenderer
):
void
;
private
updateBatch
;
private
calculateTints
;
private
calculateVertices
;
private
transformPoints
;
_renderCanvas
(
renderer
:
CanvasRenderer
):
void
;
_calculateBounds
():
void
;
hitTestPoint
(
point
:
Point
,
isMouseEvent
?:
boolean
):
DisplayObject
;
private
hitTestPointAccuratly
;
updateLocalBoundsSelf
():
void
;
private
generateCanvasTexture
;
destroy
():
void
;
private
proccessHoles
;
private
addUvs
;
private
adjustUvs
;
}
export
class
GraphicsData
extends
HashObject
{
fillStyle
:
FillStyle
;
lineStyle
:
LineStyle
;
matrix
:
Matrix
;
holes
:
any
[];
shape
:
any
;
type
:
number
;
points
:
number
[];
constructor
(
shape
:
Circle
|
Rectangle
|
Ellipse
|
Polygon
|
RoundedRectangle
,
fillStyle
?:
FillStyle
,
lineStyle
?:
LineStyle
,
matrix
?:
Matrix
);
clone
():
GraphicsData
;
destroy
():
void
;
}
export
class
Shape
extends
Sprite
{
canvas
:
HTMLCanvasElement
;
context
:
CanvasRenderingContext2D
;
dirty
:
boolean
;
offsetX
:
number
;
offsetY
:
number
;
constructor
();
private
_command
;
private
_isBitmapStroke
;
private
_isBitmapFill
;
hitTestByPixel
:
boolean
;
drawRoundRect
(
x
:
number
,
y
:
number
,
w
:
number
,
h
:
number
,
rTL
?:
number
,
rTR
?:
number
,
rBL
?:
number
,
rBR
?:
number
):
void
;
moveTo
(
x
:
number
,
y
:
number
):
void
;
lineTo
(
x
:
number
,
y
:
number
):
void
;
arcTo
(
x1
:
number
,
y1
:
number
,
x2
:
number
,
y2
:
number
,
radius
:
number
):
void
;
quadraticCurveTo
(
cpX
:
number
,
cpY
:
number
,
x
:
number
,
y
:
number
):
void
;
bezierCurveTo
(
cp1X
:
number
,
cp1Y
:
number
,
cp2X
:
number
,
cp2Y
:
number
,
x
:
number
,
y
:
number
):
void
;
closePath
():
void
;
drawRect
(
x
:
number
,
y
:
number
,
w
:
number
,
h
:
number
):
void
;
arc
(
x
:
number
,
y
:
number
,
radius
:
number
,
startAngle
:
number
,
endAngle
:
number
,
counterclockwise
?:
boolean
):
void
;
drawCircle
(
x
:
number
,
y
:
number
,
radius
:
number
,
counterclockwise
?:
boolean
):
void
;
drawEllipse
(
x
:
number
,
y
:
number
,
w
:
number
,
h
:
number
):
void
;
clear
():
void
;
beginFill
(
color
:
number
,
alpha
?:
number
):
void
;
beginLinearGradientFill
(
points
:
any
,
colors
:
any
):
void
;
beginRadialGradientFill
:
(
points
:
any
,
colors
:
any
)
=>
void
;
beginBitmapFill
(
image
:
any
,
matrix
:
Array
<
number
>
):
void
;
private
_fill
;
beginStroke
(
color
:
number
,
lineWidth
?:
number
,
cap
?:
LINE_CAP
,
join
?:
LINE_JOIN
,
miter
?:
number
,
alpha
?:
number
):
void
;
beginLinearGradientStroke
(
points
:
Array
<
number
>
,
colors
:
any
,
lineWidth
?:
number
,
cap
?:
LINE_CAP
,
join
?:
LINE_JOIN
,
miter
?:
number
):
void
;
beginRadialGradientStroke
(
points
:
Array
<
number
>
,
colors
:
any
,
lineWidth
?:
number
,
cap
?:
LINE_CAP
,
join
?:
LINE_JOIN
,
miter
?:
number
):
void
;
beginBitmapStroke
(
image
:
any
,
matrix
:
Array
<
number
>
,
lineWidth
?:
number
,
cap
?:
LINE_CAP
,
join
?:
LINE_JOIN
,
miter
?:
number
):
void
;
private
_stroke
;
endFill
():
void
;
endStroke
():
void
;
updateShape
():
void
;
private
_drawShape
;
hitTestPoint
(
globalPoint
:
Point
,
isMouseEvent
?:
boolean
):
DisplayObject
;
changeColor
(
infoObj
:
any
):
void
;
updateTexture
():
void
;
_renderCanvas
(
renderer
:
any
):
void
;
_renderWebGL
(
renderer
:
any
):
void
;
destroy
():
void
;
}
export
class
Circle
{
x
:
number
;
y
:
number
;
radius
:
number
;
type
:
number
;
constructor
(
x
?:
number
,
y
?:
number
,
radius
?:
number
);
clone
():
Circle
;
isPointIn
(
point
:
Point
):
boolean
;
getBounds
():
Rectangle
;
}
export
class
Ellipse
{
x
:
number
;
y
:
number
;
width
:
number
;
height
:
number
;
type
:
number
;
constructor
(
x
?:
number
,
y
?:
number
,
width
?:
number
,
height
?:
number
);
clone
():
Ellipse
;
isPointIn
(
point
:
Point
):
boolean
;
getBounds
():
Rectangle
;
}
export
class
Polygon
{
closed
:
boolean
;
points
:
number
[];
type
:
number
;
constructor
(...
points
:
any
[]);
clone
():
Polygon
;
close
():
void
;
isPointIn
(
point
:
Point
):
boolean
;
}
export
class
RoundedRectangle
{
x
:
number
;
y
:
number
;
width
:
number
;
height
:
number
;
radius
:
number
;
type
:
number
;
constructor
(
x
?:
number
,
y
?:
number
,
width
?:
number
,
height
?:
number
,
radius
?:
number
);
clone
():
RoundedRectangle
;
isPointIn
(
point
:
Point
):
boolean
;
}
export
class
FillStyle
{
color
:
number
;
alpha
:
number
;
texture
:
Texture
;
matrix
:
Matrix
;
visible
:
boolean
;
alphaBlock
:
boolean
;
constructor
();
clone
():
FillStyle
;
reset
():
void
;
destroy
():
void
;
}
export
class
LineStyle
extends
FillStyle
{
native
:
boolean
;
width
:
number
;
alignment
:
LINE_ALIGNMENT
;
clone
():
LineStyle
;
reset
():
void
;
}
export
function
bezierCurveControlPoint
(
points
:
any
):
{
A
:
any
[];
B
:
any
[];
}
export
const
GRAPHICS_CURVES
:
{
adaptive
:
boolean
;
maxLength
:
number
;
minSegments
:
number
;
maxSegments
:
number
;
segmentsCount
:
Function
;
}
export
abstract
class
HashObject
{
protected
_instanceId
:
number
;
protected
_instanceType
:
string
;
protected
static
_object_id
:
number
;
constructor
();
readonly
instanceId
:
number
;
readonly
instanceType
:
string
;
abstract
destroy
():
void
;
}
export
class
Loader
extends
EventDispatcher
{
caches
:
{};
_req
:
XMLHttpRequest
;
constructor
();
loadSheet
(
callback
:
Function
,
url
:
string
):
void
;
loadRaw
(
callback
:
Function
,
url
:
string
,
type
:
'text'
|
'json'
):
void
;
loadJson
(
callback
:
Function
,
url
:
string
):
void
;
loadText
(
callback
:
Function
,
url
:
string
):
void
;
loadTexture
(
callback
:
Function
,
url
:
string
):
void
;
loadImage
(
callback
:
Function
,
url
:
string
,
crossOrigin
?:
boolean
):
HTMLImageElement
;
cache
(
name
:
string
,
data
:
any
):
void
;
}
export
const
globalLoader
:
Loader
;
export
const
GroupD8
:
{
E
:
number
;
SE
:
number
;
S
:
number
;
SW
:
number
;
W
:
number
;
NW
:
number
;
N
:
number
;
NE
:
number
;
MIRROR_VERTICAL
:
number
;
MIRROR_HORIZONTAL
:
number
;
uX
:
(
ind
:
any
)
=>
number
;
uY
:
(
ind
:
any
)
=>
number
;
vX
:
(
ind
:
any
)
=>
number
;
vY
:
(
ind
:
any
)
=>
number
;
inv
:
(
rotation
:
any
)
=>
number
;
add
:
(
rotationSecond
:
any
,
rotationFirst
:
any
)
=>
any
;
sub
:
(
rotationSecond
:
any
,
rotationFirst
:
any
)
=>
any
;
rotate180
:
(
rotation
:
any
)
=>
number
;
isVertical
:
(
rotation
:
any
)
=>
boolean
;
byDirection
:
(
dx
:
any
,
dy
:
any
)
=>
number
;
matrixAppendRotationInv
:
(
matrix
:
any
,
rotation
:
any
,
tx
?:
number
,
ty
?:
number
)
=>
void
;
}
export
class
Matrix
extends
HashObject
{
a
:
number
;
b
:
number
;
c
:
number
;
d
:
number
;
tx
:
number
;
ty
:
number
;
array
:
any
;
constructor
(
a
?:
number
,
b
?:
number
,
c
?:
number
,
d
?:
number
,
tx
?:
number
,
ty
?:
number
);
clone
():
Matrix
;
copy
(
matrix
:
Matrix
|
any
):
this
;
transformPoint
(
x
:
number
,
y
:
number
,
bp
?:
Point
):
Point
;
transformPointInverse
(
x
:
number
,
y
:
number
,
bp
?:
Point
):
Point
;
setFrom
(
mtx
:
Matrix
):
void
;
identity
():
void
;
invert
():
Matrix
;
createBox
(
x
:
number
,
y
:
number
,
scaleX
:
number
,
scaleY
:
number
,
rotation
:
number
,
skewX
:
number
,
skewY
:
number
,
ax
:
number
,
ay
:
number
):
void
;
prepend
:
(
mtx
:
Matrix
)
=>
void
;
append
(
matrix
:
Matrix
):
void
;
static
isEqual
(
m1
:
Matrix
,
m2
:
Matrix
):
boolean
;
concat
(
mtx
:
Matrix
):
void
;
rotate
(
angle
:
number
):
void
;
scale
(
sx
:
number
,
sy
:
number
):
void
;
translate
(
dx
:
number
,
dy
:
number
):
void
;
set
(
a
:
any
,
b
:
any
,
c
:
any
,
d
:
any
,
tx
:
any
,
ty
:
any
):
this
;
getRotation
():
number
;
toArray
(
transpose
?:
boolean
,
out
?:
any
):
any
;
static
readonly
IDENTITY
:
Matrix
;
static
readonly
TEMP_MATRIX
:
Matrix
;
destroy
():
void
;
}
export
class
ObservablePoint
extends
HashObject
{
_x
:
number
;
_y
:
number
;
cb
:
any
;
scope
:
any
;
constructor
(
cb
:
Function
,
scope
:
any
,
x
?:
number
,
y
?:
number
);
set
(
x
?:
number
,
y
?:
number
):
void
;
copy
(
point
:
Point
|
ObservablePoint
):
void
;
x
:
number
;
y
:
number
;
destroy
():
void
;
}
export
class
Point
extends
HashObject
{
destroy
():
void
;
constructor
(
x
?:
number
,
y
?:
number
);
x
:
number
;
y
:
number
;
static
distance
(...
args
:
any
[]):
number
;
set
(
x
:
number
,
y
:
number
):
void
;
}
export
class
Rectangle
extends
HashObject
{
type
:
number
;
constructor
(
x
?:
number
,
y
?:
number
,
width
?:
number
,
height
?:
number
);
clear
():
void
;
copy
(
rect
:
Rectangle
):
this
;
clone
():
Rectangle
;
x
:
number
;
y
:
number
;
width
:
number
;
height
:
number
;
readonly
left
:
number
;
readonly
right
:
number
;
readonly
top
:
number
;
readonly
bottom
:
number
;
isPointIn
(
point
:
Point
):
boolean
;
fit
(
rectangle
:
Rectangle
):
void
;
static
createFromRects
(...
arg
:
Rectangle
[]):
Rectangle
;
static
createFromPoints
(
rect
:
Rectangle
,
...
arg
:
Point
[]):
Rectangle
;
static
createFromVertexData
(
rect
:
Rectangle
,
vertexData
:
Float32Array
):
Rectangle
;
static
createRectfrom2Point
(
rect
:
Rectangle
,
p1
:
Point
,
p2
:
Point
):
Rectangle
;
static
testRectCross
(
ra
:
Rectangle
,
rb
:
Rectangle
):
boolean
;
destroy
():
void
;
}
export
class
Transform
extends
HashObject
{
worldMatrix
:
Matrix
;
localMatrix
:
Matrix
;
_worldID
:
number
;
_parentID
:
number
;
position
:
ObservablePoint
;
scale
:
ObservablePoint
;
anchor
:
ObservablePoint
;
skew
:
ObservablePoint
;
_rotation
:
number
;
_cx
:
number
;
_sx
:
number
;
_cy
:
number
;
_sy
:
number
;
_localID
:
number
;
_currentLocalID
:
number
;
constructor
();
onChange
():
void
;
updateSkew
():
void
;
updateLocalMatrix
():
void
;
updateWorldMatrix
(
parentTransform
:
Transform
):
void
;
rotation
:
number
;
destroy
():
void
;
}
export
function
httpRequest
(
callback
:
Function
,
url
:
string
,
method
?:
string
,
params
?:
any
,
type
?:
'text'
|
'json'
|
'jsonp'
):
void
;
export
function
jsonp
(
callback
:
any
,
url
:
any
,
params
:
any
):
void
;
export
function
urlJoin
(
url
:
any
,
query
:
any
):
any
;
export
class
CanvasRenderer
extends
SystemRenderer
{
rootContext
:
CanvasRenderingContext2D
;
context
:
CanvasRenderingContext2D
;
maskManager
:
CanvasMaskManager
;
smoothProperty
:
string
;
plugins
:
{
sprite
:
CanvasSpriteRenderer
;
graphics
:
CanvasGraphicsRenderer
;
};
renderingToScreen
:
boolean
;
constructor
(
options
:
RendererOptions
);
render
(
displayObject
:
DisplayObject
,
renderTexture
?:
any
,
transform
?:
Matrix
):
void
;
clear
(
clearColor
:
string
):
void
;
destroy
():
void
;
resize
(
screenWidth
:
number
,
screenHeight
:
number
):
void
;
destroyPlugins
():
void
;
}
export
class
BatchManager
{
renderer
:
WebglRenderer
;
emptyRenderer
:
ObjectRenderer
;
currentRenderer
:
ObjectRenderer
;
constructor
(
renderer
:
WebglRenderer
);
setObjectRenderer
(
objectRenderer
:
ObjectRenderer
):
void
;
flush
():
void
;
reset
():
void
;
}
export
class
CanvasMaskManager
extends
HashObject
{
renderer
:
any
;
constructor
(
renderer
:
CanvasRenderer
);
pushMask
(
maskData
:
Graphics
):
void
;
renderGraphicsShape
(
graphics
:
Graphics
):
void
;
popMask
(
renderer
:
CanvasRenderer
):
void
;
destroy
():
void
;
}
export
class
MaskManager
{
renderer
:
WebglRenderer
;
scissor
:
boolean
;
scissorData
:
any
;
scissorRenderTarget
:
RenderTarget
;
enableScissor
:
boolean
;
alphaMaskPool
:
any
[];
alphaMaskIndex
:
number
;
constructor
(
renderer
:
WebglRenderer
);
pushMask
(
target
:
any
,
maskData
:
any
):
void
;
popMask
(
target
:
any
,
maskData
:
any
):
void
;
pushStencilMask
(
maskData
:
Graphics
):
void
;
popStencilMask
():
void
;
pushScissorMask
(
target
:
any
,
maskData
:
Graphics
):
void
;
popScissorMask
():
void
;
destroy
():
void
;
}
export
class
StencilManager
{
renderer
:
WebglRenderer
;
stencilMaskStack
:
Graphics
[];
constructor
(
renderer
:
WebglRenderer
);
setMaskStack
(
stencilMaskStack
:
Graphics
[]):
void
;
pushStencil
(
graphics
:
Graphics
):
void
;
popStencil
():
void
;
_useCurrent
():
void
;
_getBitwiseMask
():
number
;
destroy
():
void
;
}
export
class
TextureGarbageCollector
{
renderer
:
WebglRenderer
;
count
:
number
;
checkCount
:
number
;
maxIdle
:
number
;
checkCountMax
:
number
;
mode
:
number
;
constructor
(
renderer
:
WebglRenderer
);
update
():
void
;
run
():
void
;
unload
(
displayObject
:
any
):
void
;
}
export
class
TextureManager
{
boundTextures
:
any
;
renderer
:
WebglRenderer
;
emptyTextures
:
any
;
_nextTextureLocation
:
number
;
currentLocation
:
number
;
gl
:
WebGLRenderingContext
;
_managedTextures
:
Array
<
any
>
;
constructor
(
renderer
:
WebglRenderer
);
onContextChange
():
void
;
bindTexture
(
texture
:
any
,
location
?:
number
,
forceLocation
?:
boolean
):
number
;
getTexture
():
void
;
updateTexture
(
texture
:
any
,
location
?:
number
):
GLTexture
;
unbindTexture
(
texture
:
any
):
void
;
destroyTexture
(
texture
:
any
,
skipRemove
:
any
):
void
;
removeAll
():
void
;
destroy
():
void
;
}
export
class
BatchRenderer
extends
ObjectRenderer
{
vertSize
:
number
;
vertByteSize
:
number
;
size
:
number
;
currentSize
:
number
;
currentIndexSize
:
number
;
aBuffers
:
{};
iBuffers
:
{};
shader
:
GLShader
;
currentIndex
:
number
;
groups
:
BatchDrawCall
[];
elements
:
any
[];
vaos
:
VertexArrayObject
[];
vaoMax
:
number
;
vertexCount
:
number
;
MAX_TEXTURES
:
number
;
vertexBuffers
:
GLBuffer
[];
indexBuffers
:
GLBuffer
[];
constructor
(
renderer
:
WebglRenderer
);
onContextChange
():
void
;
onPreRender
():
void
;
render
(
element
:
any
):
void
;
getIndexBuffer
(
size
:
any
):
any
;
getAttributeBuffer
(
size
:
number
):
any
;
flush
():
void
;
packGeometry
(
element
:
any
,
float32View
:
any
,
uint32View
:
any
,
indexBuffer
:
any
,
index
:
any
,
indexCount
:
any
):
void
;
start
():
void
;
stop
():
void
;
destroy
():
void
;
}
export
class
CanvasGraphicsRenderer
{
renderer
:
CanvasRenderer
;
constructor
(
renderer
:
CanvasRenderer
);
render
(
graphics
:
Graphics
):
void
;
destroy
():
void
;
}
export
function
holePath
(
graphicsData
:
GraphicsData
,
context
:
CanvasRenderingContext2D
,
ccw
?:
boolean
):
void
;
export
function
judgeCcw
(
points
:
number
[]):
boolean
;
export
class
CanvasSpriteRenderer
{
renderer
:
CanvasRenderer
;
constructor
(
renderer
:
CanvasRenderer
);
render
(
sprite
:
any
):
void
;
destroy
():
void
;
}
export
interface
RendererOptions
{
htmlElement
?:
HTMLCanvasElement
;
transparent
?:
boolean
;
antialias
?:
boolean
;
preserveDrawingBuffer
?:
boolean
;
backgroundColor
?:
number
;
roundPixels
?:
boolean
;
}
export
class
CanvasRenderTarget
{
canvas
:
HTMLCanvasElement
;
context
:
CanvasRenderingContext2D
;
constructor
(
width
:
number
,
height
:
number
);
clear
():
void
;
resize
(
width
:
number
,
height
:
number
):
void
;
destroy
():
void
;
width
:
number
;
height
:
number
;
}
export
class
RenderTarget
{
gl
:
WebGLRenderingContext
;
frameBuffer
:
GLFramebuffer
;
texture
:
GLTexture
;
clearColor
:
number
[];
size
:
Rectangle
;
projectionMatrix
:
Matrix
;
transform
:
Matrix
;
frame
:
Rectangle
;
defaultFrame
:
Rectangle
;
destinationFrame
:
any
;
sourceFrame
:
any
;
stencilBuffer
:
GLBuffer
;
stencilMaskStack
:
Graphics
[];
scaleMode
:
number
;
root
:
boolean
;
constructor
(
gl
:
WebGLRenderingContext
,
width
?:
number
,
height
?:
number
,
scaleMode
?:
number
,
root
?:
boolean
);
clear
(
clearColor
?:
number
[]):
void
;
attachStencilBuffer
():
void
;
setFrame
(
destinationFrame
?:
Rectangle
,
sourceFrame
?:
Rectangle
):
void
;
activate
():
void
;
calculateProjection
(
destinationFrame
:
Rectangle
,
sourceFrame
?:
Rectangle
):
void
;
resize
(
width
:
number
,
height
:
number
):
void
;
destroy
():
void
;
}
export
class
SystemRenderer
extends
EventDispatcher
{
options
:
RendererOptions
;
type
:
number
;
htmlElement
:
HTMLCanvasElement
;
transparent
:
boolean
;
preserveDrawingBuffer
:
boolean
;
_backgroundColor
:
number
;
_backgroundColorRgba
:
number
[];
_backgroundColorString
:
string
;
_tempDisplayObjectParent
:
Container
;
_lastObjectRendered
:
DisplayObject
;
constructor
(
options
:
RendererOptions
);
resize
(
width
:
number
,
height
:
number
):
void
;
render
(
displayObject
:
any
,
renderTexture
?:
any
,
transform
?:
any
):
void
;
destroy
():
void
;
backgroundColor
:
number
;
}
export
class
BatchBuffer
{
vertices
:
ArrayBuffer
;
float32View
:
Float32Array
;
uint32View
:
Uint32Array
;
positions
:
any
;
uvs
:
any
;
colors
:
any
;
constructor
(
size
:
number
);
destroy
():
void
;
}
export
class
BatchDrawCall
{
textures
:
BaseTexture
[];
textureCount
:
number
;
start
:
number
;
size
:
number
;
type
:
number
;
constructor
();
}
export
function
createIndicesForQuads
(
size
:
number
):
Uint16Array
;
export
function
generateMultiTextureShader
(
gl
:
any
,
maxTextures
:
any
):
GLShader
;
export
class
ObjectRenderer
{
renderer
:
WebglRenderer
;
constructor
(
renderer
:
WebglRenderer
);
onContextChange
():
void
;
start
():
void
;
stop
():
void
;
flush
():
void
;
render
(
object
:
DisplayObject
):
void
;
destroy
():
void
;
}
export
class
WebGLState
{
blendModes
:
any
;
activeState
:
Uint8Array
;
defaultState
:
Uint8Array
;
gl
:
any
;
maxAttribs
:
any
;
attribState
:
{
tempAttribState
:
any
[];
attribState
:
any
[];
};
nativeVaoExtension
:
any
;
constructor
(
gl
:
WebGLRenderingContext
);
setState
(
state
:
any
):
void
;
setBlend
(
value
:
any
):
void
;
setBlendMode
(
value
:
any
):
void
;
setDepthTest
(
value
:
any
):
void
;
setCullFace
(
value
:
any
):
void
;
setFrontFace
(
value
:
any
):
void
;
resetAttributes
():
void
;
resetToDefault
():
void
;
resetTo3D
():
void
;
}
export
class
WebglRenderer
extends
SystemRenderer
{
plugins
:
{};
gl
:
WebGLRenderingContext
;
CONTEXT_UID
:
number
;
maskManager
:
MaskManager
;
stencilManager
:
StencilManager
;
batchManager
:
BatchManager
;
textureManager
:
TextureManager
;
textureGC
:
TextureGarbageCollector
;
state
:
WebGLState
;
renderingToScreen
:
boolean
;
_activeShader
:
GLShader
;
_activeVao
:
VertexArrayObject
;
_activeRenderTarget
:
RenderTarget
;
rootRenderTarget
:
RenderTarget
;
constructor
(
options
:
RendererOptions
);
_initContext
():
void
;
render
(
displayObject
:
DisplayObject
,
renderTexture
?:
any
,
transform
?:
any
):
void
;
clear
(
clearColor
:
number
[]):
void
;
setTransform
(
matrix
:
Matrix
):
void
;
clearRenderTexture
(
renderTexture
:
any
,
clearColor
:
any
):
this
;
bindShader
(
shader
:
GLShader
,
autoProject
?:
boolean
):
WebglRenderer
;
createVao
():
VertexArrayObject
;
bindVao
(
vao
:
VertexArrayObject
):
WebglRenderer
;
reset
():
WebglRenderer
;
bindRenderTexture
(
renderTexture
:
any
,
transform
?:
Matrix
):
WebglRenderer
;
bindRenderTarget
(
renderTarget
:
RenderTarget
):
WebglRenderer
;
resize
(
screenWidth
:
any
,
screenHeight
:
any
):
void
;
destroy
():
void
;
handleContextRestored
():
void
;
handleContextLost
(
event
:
WebGLContextEvent
):
void
;
initPlugins
(
staticMap
:
any
):
void
;
destroyPlugins
():
void
;
static
__plugins
:
any
;
static
registerPlugin
(
pluginName
:
string
,
ctor
:
Function
):
void
;
}
export
class
BezierPath
{
_d
:
any
;
_transform
:
any
;
_styles
:
any
;
_shape
:
any
;
constructor
(
d
?:
any
,
transform
?:
any
,
styles
?:
any
);
}
export
class
EllipsePath
extends
BezierPath
{
_x
:
any
;
_y
:
any
;
_radiusX
:
any
;
_radiusY
:
any
;
_transform
:
any
;
_styles
:
any
;
constructor
(
x
:
any
,
y
:
any
,
radiusX
:
any
,
radiusY
:
any
,
transform
:
any
,
styles
:
any
);
}
export
class
FrameEntity
{
alpha
:
number
;
transform
:
{
a
:
number
;
b
:
number
;
c
:
number
;
d
:
number
;
tx
:
number
;
ty
:
number
;
};
layout
:
{
x
:
number
;
y
:
number
;
width
:
number
;
height
:
number
;
};
nx
:
number
;
ny
:
number
;
maskPath
:
any
;
shapes
:
any
[];
constructor
(
spec
:
any
);
static
lastShapes
:
any
;
}
export
const
_default
:
(
data
:
any
,
cb
:
any
,
failure
:
any
)
=>
void
;
export
class
MovieClip
extends
Container
{
lockStep
:
boolean
;
readonly
currentFrame
:
number
;
private
_curFrame
;
readonly
isPlaying
:
boolean
;
private
_isPlaying
;
readonly
isFront
:
boolean
;
private
_isFront
;
totalFrames
:
number
;
loops
:
number
;
private
textures
;
private
timeInterval
;
private
deltaFrame
;
private
frameCount
;
constructor
(
mv
?:
VideoEntity
);
init
(
mv
:
VideoEntity
):
void
;
private
initChildren
;
private
resetTransform
;
resetTransformAll
(
frameIndex
:
number
):
void
;
setImage
(
imagekey
:
any
,
imageUrl
:
string
):
void
;
stop
():
void
;
nextFrame
():
void
;
prevFrame
():
void
;
gotoAndStop
(
frameIndex
:
number
):
void
;
play
(
isFront
?:
boolean
):
void
;
private
_lastFrame
;
readonly
isInTimeFrame
:
boolean
;
gotoAndPlay
(
frameIndex
:
number
,
isFront
?:
boolean
):
void
;
startAniRange
(
beginFrame
?:
number
,
endFrame
?:
number
,
loops
?:
number
,
callback
?:
Function
):
void
;
private
startTime
;
private
startFrame
;
private
lastDeltaFrame
;
private
_endMark
;
commonDeltaTime
:
number
;
updateFrame
():
void
;
private
getCurFrameWhenLockStep
;
update
(
deltaTime
:
number
):
void
;
destroy
():
void
;
}
export
function
inflate
(
input
:
any
,
options
:
any
):
any
;
export
const
_default
:
{
inflate
:
typeof
inflate
;
}
export
function
assign
(
obj
:
any
,
objO
:
any
):
any
;
export
function
shrinkBuf
(
buf
:
any
,
size
:
any
):
any
;
export
const
utils
:
{
assign
:
typeof
assign
;
shrinkBuf
:
typeof
shrinkBuf
;
Buf8
:
any
;
Buf16
:
any
;
Buf32
:
any
;
arraySet
:
any
;
flattenChunks
:
any
;
}
export
{};
export
function
string2buf
(
str
:
any
):
any
;
export
function
buf2binstring
(
buf
:
any
,
len
?:
any
):
any
;
export
function
binstring2buf
(
str
:
any
):
any
;
export
function
buf2string
(
buf
:
any
,
max
:
any
):
any
;
export
function
utf8border
(
buf
:
any
,
max
:
any
):
any
;
export
const
strings
:
{
utf8border
:
typeof
utf8border
;
buf2string
:
typeof
buf2string
;
binstring2buf
:
typeof
binstring2buf
;
buf2binstring
:
typeof
buf2binstring
;
string2buf
:
typeof
string2buf
;
}
export
{};
export
function
adler32
(
adler
:
any
,
buf
:
any
,
len
:
any
,
pos
:
any
):
number
;
export
const
_default
:
{
Z_NO_FLUSH
:
number
;
Z_PARTIAL_FLUSH
:
number
;
Z_SYNC_FLUSH
:
number
;
Z_FULL_FLUSH
:
number
;
Z_FINISH
:
number
;
Z_BLOCK
:
number
;
Z_TREES
:
number
;
Z_OK
:
number
;
Z_STREAM_END
:
number
;
Z_NEED_DICT
:
number
;
Z_ERRNO
:
number
;
Z_STREAM_ERROR
:
number
;
Z_DATA_ERROR
:
number
;
Z_BUF_ERROR
:
number
;
Z_NO_COMPRESSION
:
number
;
Z_BEST_SPEED
:
number
;
Z_BEST_COMPRESSION
:
number
;
Z_DEFAULT_COMPRESSION
:
number
;
Z_FILTERED
:
number
;
Z_HUFFMAN_ONLY
:
number
;
Z_RLE
:
number
;
Z_FIXED
:
number
;
Z_DEFAULT_STRATEGY
:
number
;
Z_BINARY
:
number
;
Z_TEXT
:
number
;
Z_UNKNOWN
:
number
;
Z_DEFLATED
:
number
;
}
export
function
crc32
(
crc
:
any
,
buf
:
any
,
len
:
any
,
pos
:
any
):
number
;
export
function
deflateResetKeep
(
strm
:
any
):
any
;
export
function
deflateReset
(
strm
:
any
):
any
;
export
function
deflateSetHeader
(
strm
:
any
,
head
:
any
):
number
;
export
function
deflateInit2
(
strm
:
any
,
level
:
any
,
method
:
any
,
windowBits
:
any
,
memLevel
:
any
,
strategy
:
any
):
any
;
export
function
deflateInit
(
strm
:
any
,
level
:
any
):
any
;
export
function
deflate
(
strm
:
any
,
flush
:
any
):
any
;
export
function
deflateEnd
(
strm
:
any
):
any
;
export
function
deflateSetDictionary
(
strm
:
any
,
dictionary
:
any
):
number
;
export
const
_default
:
{
deflateInit
:
typeof
deflateInit
;
deflateInit2
:
typeof
deflateInit2
;
deflateReset
:
typeof
deflateReset
;
deflateResetKeep
:
typeof
deflateResetKeep
;
deflateSetHeader
:
typeof
deflateSetHeader
;
deflate
:
typeof
deflate
;
deflateEnd
:
typeof
deflateEnd
;
deflateSetDictionary
:
typeof
deflateSetDictionary
;
deflateInfo
:
string
;
}
export
function
GZheader
():
void
;
export
function
inflateResetKeep
(
strm
:
any
):
number
;
export
function
inflateReset
(
strm
:
any
):
number
;
export
function
inflateReset2
(
strm
:
any
,
windowBits
:
any
):
number
;
export
function
inflateInit2
(
strm
:
any
,
windowBits
:
any
):
any
;
export
function
inflateInit
(
strm
:
any
):
any
;
export
function
inflate
(
strm
:
any
,
flush
:
any
):
any
;
export
function
inflateEnd
(
strm
:
any
):
number
;
export
function
inflateGetHeader
(
strm
:
any
,
head
:
any
):
number
;
export
function
inflateSetDictionary
(
strm
:
any
,
dictionary
:
any
):
number
;
export
const
_default
:
{
inflateReset
:
typeof
inflateReset
;
inflateReset2
:
typeof
inflateReset2
;
inflateResetKeep
:
typeof
inflateResetKeep
;
inflateInit
:
typeof
inflateInit
;
inflateInit2
:
typeof
inflateInit2
;
inflate
:
typeof
inflate
;
inflateEnd
:
typeof
inflateEnd
;
inflateGetHeader
:
typeof
inflateGetHeader
;
inflateSetDictionary
:
typeof
inflateSetDictionary
;
inflateInfo
:
string
;
}
export
const
_default
:
{
2
:
string
;
1
:
string
;
0
:
string
;
'-1'
:
string
;
'-2'
:
string
;
'-3'
:
string
;
'-4'
:
string
;
'-5'
:
string
;
'-6'
:
string
;
}
export
function
_tr_init
(
s
:
any
):
void
;
export
function
_tr_stored_block
(
s
:
any
,
buf
:
any
,
stored_len
:
any
,
last
:
any
):
void
;
export
function
_tr_align
(
s
:
any
):
void
;
export
function
_tr_flush_block
(
s
:
any
,
buf
:
any
,
stored_len
:
any
,
last
:
any
):
void
;
export
function
_tr_tally
(
s
:
any
,
dist
:
any
,
lc
:
any
):
boolean
;
export
const
_default
:
{
_tr_init
:
typeof
_tr_init
;
_tr_stored_block
:
typeof
_tr_stored_block
;
_tr_flush_block
:
typeof
_tr_flush_block
;
_tr_tally
:
typeof
_tr_tally
;
_tr_align
:
typeof
_tr_align
;
}
export
function
ZStream
():
void
;
export
class
Parser
{
load
(
url
:
any
,
success
:
any
,
failure
:
any
):
void
;
loadViaWorker
(
url
:
any
,
success
:
any
,
failure
:
any
):
void
;
}
export
const
proto
:
protobuf
.
Root
;
export
const
ProtoMovieEntity
:
protobuf
.
Type
;
export
class
RectPath
extends
BezierPath
{
_x
:
any
;
_y
:
any
;
_width
:
any
;
_height
:
any
;
_cornerRadius
:
any
;
_transform
:
any
;
_styles
:
any
;
constructor
(
x
:
any
,
y
:
any
,
width
:
any
,
height
:
any
,
cornerRadius
:
any
,
transform
:
any
,
styles
:
any
);
}
export
class
SpriteEntity
{
matteKey
:
any
;
imageKey
:
any
;
frames
:
any
[];
constructor
(
spec
:
any
);
}
export
class
VideoEntity
extends
HashObject
{
version
:
string
;
videoSize
:
{
width
:
number
;
height
:
number
;
};
FPS
:
number
;
frames
:
number
;
images
:
{};
hasBeenCached
:
boolean
;
sprites
:
SpriteEntity
[];
audios
:
any
[];
constructor
(
spec
:
any
,
images
:
any
);
resetSprites
(
spec
:
any
):
void
;
destroy
():
void
;
}
export
class
EditableText
extends
TextField
{
htmlElement
:
any
;
private
_prompt
;
prompt
:
string
;
private
_promptColor
;
promptColor
:
string
;
private
_textColor
;
textColor
:
string
;
constructor
();
}
export
class
InputText
extends
FloatDisplay
{
private
_view
;
inputType
:
number
;
isAutoDownKeyBoard
:
boolean
;
private
static
_inputTypeList
;
constructor
(
inputType
?:
number
);
init
(
htmlElement
:
any
):
void
;
initInfo
(
text
:
string
,
color
:
string
,
align
:
string
,
size
:
number
,
font
:
string
,
showBorder
:
boolean
,
lineSpacing
:
number
,
textWidth
:
number
):
void
;
lineSpacing
:
number
;
bold
:
boolean
;
italic
:
boolean
;
textHeight
:
number
;
textWidth
:
number
;
color
:
string
;
border
:
boolean
;
text
:
string
;
maxCharacters
:
number
;
convertToTextField
(
textField
?:
TextField
):
TextField
;
}
export
class
TextField
extends
Sprite
{
canvas
:
HTMLCanvasElement
;
context
:
CanvasRenderingContext2D
;
dirty
:
boolean
;
offsetX
:
number
;
offsetY
:
number
;
constructor
();
textAlpha
:
number
;
private
_textAlpha
;
textAlign
:
TEXT_ALIGN
;
private
_textAlign
;
verticalAlign
:
VERTICAL_ALIGN
;
private
_verticalAlign
;
width
:
number
;
height
:
number
;
lineSpacing
:
number
;
private
_lineSpacing
;
lineType
:
TEXT_lINETYPE
;
private
_lineType
;
text
:
string
;
protected
_setText
(
value
:
any
):
void
;
private
_text
;
font
:
string
;
private
_font
;
size
:
number
;
private
_size
;
fillColor
:
any
;
private
_fillColor
;
strokeColor
:
string
;
private
_strokeColor
;
stroke
:
number
;
private
_stroke
;
italic
:
boolean
;
private
_italic
;
bold
:
boolean
;
_bold
:
boolean
;
border
:
boolean
;
private
_border
;
private
_prepContext
;
getTextWidth
(
lineIndex
?:
number
):
number
;
readonly
lines
:
number
;
private
_getMeasuredWidth
;
private
realLines
;
updateText
():
void
;
updateTexture
():
void
;
_renderCanvas
(
renderer
:
any
):
void
;
_renderWebGL
(
renderer
:
any
):
void
;
destroy
():
void
;
}
export
class
BaseRenderTexture
extends
BaseTexture
{
_glRenderTargets
:
{};
_canvasRenderTarget
:
any
;
valid
:
boolean
;
constructor
(
width
?:
number
,
height
?:
number
,
scaleMode
?:
number
);
resize
(
width
:
number
,
height
:
number
):
void
;
destroy
():
void
;
}
export
class
BaseTexture
extends
EventDispatcher
{
touched
:
number
;
width
:
number
;
height
:
number
;
scaleMode
:
number
;
hasLoaded
:
boolean
;
isLoading
:
boolean
;
source
:
HTMLImageElement
|
HTMLCanvasElement
;
imageType
:
string
;
premultipliedAlpha
:
boolean
;
imageUrl
:
string
;
isPowerOfTwo
:
boolean
;
mipmap
:
boolean
;
wrapMode
:
number
;
_glTextures
:
{};
_enabled
:
number
;
_destroyed
:
boolean
;
textureCacheIds
:
string
[];
constructor
(
source
?:
HTMLImageElement
|
HTMLCanvasElement
,
scaleMode
?:
number
);
update
():
void
;
loadSource
(
source
:
any
):
void
;
private
_updateImageType
;
private
_sourceLoaded
;
destroy
():
void
;
dispose
():
void
;
updateSourceImage
(
newSrc
:
string
):
void
;
static
fromImage
(
imageUrl
:
string
,
crossorigin
?:
any
,
scaleMode
?:
number
):
BaseTexture
;
static
fromCanvas
(
canvas
:
HTMLCanvasElement
,
scaleMode
?:
number
,
origin
?:
string
):
BaseTexture
;
static
from
(
source
:
any
,
scaleMode
?:
number
):
BaseTexture
;
static
addToCache
(
baseTexture
:
BaseTexture
,
id
:
string
):
void
;
static
removeFromCache
(
baseTexture
:
string
|
BaseTexture
):
BaseTexture
|
null
;
}
export
function
getTexture
(
str
:
string
):
any
;
export
class
RenderTexture
extends
Texture
{
constructor
(
baseRenderTexture
:
BaseRenderTexture
,
frame
?:
Rectangle
);
resize
(
width
:
number
,
height
:
number
,
doNotResizeBaseTexture
?:
boolean
):
void
;
static
create
(
width
:
number
,
height
:
number
,
scaleMode
?:
number
):
RenderTexture
;
}
export
class
Texture
extends
EventDispatcher
{
noFrame
:
boolean
;
baseTexture
:
BaseTexture
;
_frame
:
Rectangle
;
trim
:
Rectangle
;
valid
:
boolean
;
_uvs
:
TextureUvs
;
orig
:
Rectangle
;
_rotate
:
number
;
defaultAnchor
:
Point
;
_updateID
:
number
;
transform
:
any
;
textureCacheIds
:
string
[];
static
EMPTY
:
Texture
;
static
WHITE
:
Texture
;
constructor
(
baseTexture
:
BaseTexture
|
Texture
,
frame
?:
Rectangle
,
orig
?:
Rectangle
,
trim
?:
Rectangle
,
rotate
?:
number
,
anchor
?:
Point
);
update
():
void
;
onBaseTextureLoaded
(
e
:
Event
):
void
;
onBaseTextureUpdated
(
e
:
Event
):
void
;
destroy
():
void
;
clone
():
Texture
;
_updateUvs
():
void
;
frame
:
Rectangle
;
rotate
:
number
;
readonly
width
:
number
;
readonly
height
:
number
;
static
fromImage
(
imageUrl
:
string
,
crossorigin
?:
boolean
,
scaleMode
?:
number
):
Texture
;
static
fromFrame
(
frameId
:
string
):
Texture
;
static
fromCanvas
(
canvas
:
HTMLCanvasElement
,
scaleMode
?:
number
,
origin
?:
string
):
Texture
;
static
from
(
source
:
any
):
Texture
;
static
addToCache
(
texture
:
Texture
,
id
:
string
):
void
;
static
removeFromCache
(
texture
:
any
):
Texture
;
}
export
class
TextureSheet
{
baseTexture
:
BaseTexture
;
textures
:
{};
animations
:
{};
data
:
any
;
_frames
:
any
;
_frameKeys
:
string
[];
_callback
:
Function
;
constructor
(
baseTexture
:
BaseTexture
,
data
:
any
);
parse
(
callback
:
Function
):
void
;
_processFrames
(
initialFrameIndex
:
number
):
void
;
_processAnimations
():
void
;
_parseComplete
():
void
;
destroy
(
destroyBase
?:
boolean
):
void
;
}
export
class
TextureUvs
{
x0
:
number
;
y0
:
number
;
x1
:
number
;
y1
:
number
;
x2
:
number
;
y2
:
number
;
x3
:
number
;
y3
:
number
;
uvsUint32
:
Uint32Array
;
uvsFloat32
:
Float32Array
;
constructor
();
set
(
frame
:
Rectangle
,
baseFrame
:
Rectangle
|
BaseTexture
,
rotate
:
number
):
void
;
}
export
class
Ease
{
constructor
();
static
get
(
amount
:
number
):
(
t
:
number
)
=>
number
;
static
getPowIn
(
pow
:
number
):
(
t
:
number
)
=>
number
;
static
getPowOut
(
pow
:
number
):
(
t
:
number
)
=>
number
;
static
getPowInOut
(
pow
:
number
):
(
t
:
number
)
=>
number
;
static
quadIn
:
(
t
:
number
)
=>
number
;
static
quadOut
:
(
t
:
number
)
=>
number
;
static
quadInOut
:
(
t
:
number
)
=>
number
;
static
cubicIn
:
(
t
:
number
)
=>
number
;
static
cubicOut
:
(
t
:
number
)
=>
number
;
static
cubicInOut
:
(
t
:
number
)
=>
number
;
static
quartIn
:
(
t
:
number
)
=>
number
;
static
quartOut
:
(
t
:
number
)
=>
number
;
static
quartInOut
:
(
t
:
number
)
=>
number
;
static
quintIn
:
(
t
:
number
)
=>
number
;
static
quintOut
:
(
t
:
number
)
=>
number
;
static
quintInOut
:
(
t
:
number
)
=>
number
;
static
sineIn
(
t
:
number
):
number
;
static
sineOut
(
t
:
number
):
number
;
static
sineInOut
(
t
:
number
):
number
;
static
getBackIn
(
amount
:
number
):
(
t
:
number
)
=>
number
;
static
backIn
:
(
t
:
number
)
=>
number
;
static
getBackOut
(
amount
:
number
):
(
t
:
any
)
=>
number
;
static
backOut
:
(
t
:
any
)
=>
number
;
static
getBackInOut
(
amount
:
number
):
(
t
:
number
)
=>
number
;
static
backInOut
:
(
t
:
number
)
=>
number
;
static
circIn
(
t
:
number
):
number
;
static
circOut
(
t
:
number
):
number
;
static
circInOut
(
t
:
number
):
number
;
static
bounceIn
(
t
:
number
):
number
;
static
bounceOut
(
t
:
number
):
number
;
static
bounceInOut
(
t
:
number
):
number
;
static
getElasticIn
(
amplitude
:
number
,
period
:
number
):
(
t
:
number
)
=>
number
;
static
elasticIn
:
(
t
:
number
)
=>
number
;
static
getElasticOut
(
amplitude
:
number
,
period
:
number
):
(
t
:
number
)
=>
number
;
static
elasticOut
:
(
t
:
number
)
=>
number
;
static
getElasticInOut
(
amplitude
:
number
,
period
:
number
):
(
t
:
number
)
=>
number
;
static
elasticInOut
:
(
t
:
number
)
=>
number
;
}
export
class
Tween
{
private
static
NONE
;
private
static
LOOP
;
private
static
REVERSE
;
private
static
_tweens
;
private
static
IGNORE
;
private
static
_plugins
;
private
static
_inited
;
private
_target
;
private
_useTicks
;
private
ignoreGlobalPause
;
private
loop
;
private
pluginData
;
private
_curQueueProps
;
private
_initQueueProps
;
private
_steps
;
private
paused
;
private
duration
;
private
_prevPos
;
private
position
;
private
_prevPosition
;
private
_stepPosition
;
private
passive
;
static
get
(
target
:
any
,
props
?:
{
loop
?:
boolean
;
onChange
?:
Function
;
onChangeObj
?:
any
;
},
pluginData
?:
any
,
override
?:
boolean
):
Tween
;
static
removeTweens
(
target
:
any
):
void
;
static
pauseTweens
(
target
:
any
):
void
;
static
resumeTweens
(
target
:
any
):
void
;
private
static
tick
;
static
flush
():
void
;
private
static
_lastTime
;
private
static
_register
;
static
removeAllTweens
():
void
;
constructor
(
target
:
any
,
props
:
any
,
pluginData
:
any
);
onChange
:
Function
;
private
initialize
;
setPosition
(
value
:
number
,
actionsMode
?:
number
):
boolean
;
private
_runAction
;
private
_updateTargetProps
;
setPaused
(
value
:
boolean
):
Tween
;
private
_cloneProps
;
private
_addStep
;
private
_appendQueueProps
;
private
_addAction
;
private
_set
;
wait
(
duration
:
number
,
passive
?:
boolean
):
Tween
;
to
(
props
:
any
,
duration
?:
number
,
ease
?:
Function
):
Tween
;
call
(
callback
:
Function
,
thisObj
?:
any
,
params
?:
any
[]):
Tween
;
set
(
props
:
any
,
target
?:
any
):
Tween
;
play
(
tween
?:
Tween
):
Tween
;
pause
(
tween
?:
Tween
):
Tween
;
$tick
(
delta
:
number
):
void
;
}
export
class
BitmapNumber
extends
Sprite
{
resName
:
string
;
private
textures
;
private
_num
;
num
:
number
;
constructor
(
textures
:
Texture
[]);
reset
(
textures
:
Texture
[]):
void
;
}
export
class
BitmapNumbers
extends
Container
{
textures
:
Texture
[];
align
:
TEXT_ALIGN
;
singleWidth
:
number
;
private
_num
;
num
:
number
;
constructor
(
textures
:
Texture
[]);
adaptate
():
void
;
}
export
class
Button
extends
Sprite
{
textureUp
:
any
;
textureDown
:
any
;
textureDisable
:
any
;
constructor
(
tUp
:
Texture
,
tDown
?:
Texture
,
tDisable
?:
Texture
);
private
_mouseEvent
;
initButton
():
void
;
clicked
:
boolean
;
private
_clicked
;
textureStatusEnable
:
boolean
;
destroy
():
void
;
}
export
class
FrameAni
extends
Sprite
{
texturesAll
:
Texture
[];
currentFrame
:
number
;
totalFrames
:
number
;
isPlay
:
boolean
;
startTime
:
number
;
allTime
:
number
;
callback
:
Function
;
_frameRate
:
number
;
frameRate
:
number
;
constructor
(
texturesAll
:
Texture
[]);
private
count
;
onEnterFrame
():
void
;
play
(
callback
:
any
):
void
;
reset
():
void
;
private
changeTexture
;
}
export
interface
IScrollListItem
extends
DisplayObject
{
initData
(
id
:
number
,
data
:
any
):
void
;
id
:
number
;
data
:
number
;
}
export
class
ScrollList
extends
ScrollPage
{
private
_items
;
private
_itemW
;
private
_itemH
;
private
_itemRow
;
private
_itemCol
;
private
_itemCount
;
private
_itemClass
;
private
_isInit
;
data
:
Array
<
any
>
;
private
downL
;
private
_cols
;
private
_disParam
;
private
_lastFirstId
;
readonly
loadingView
:
DisplayObject
;
constructor
(
itemClassName
:
any
,
itemWidth
:
number
,
itemHeight
:
number
,
vW
:
number
,
vH
:
number
,
isVertical
?:
boolean
,
cols
?:
number
);
updateData
(
data
:
Array
<
any
>
,
isReset
?:
boolean
):
void
;
private
flushData
;
setViewRect
(
w
:
number
,
h
:
number
,
isVertical
:
boolean
):
void
;
private
_updateViewRect
;
setLoading
(
downLoading
:
DisplayObject
):
void
;
destroy
():
void
;
}
export
class
ScrollPage
extends
Container
{
protected
isVertical
:
boolean
;
private
viewWidth
;
private
viewHeight
;
maxDistance
:
number
;
protected
distance
:
number
;
private
minDis
;
private
maskObj
;
view
:
Container
;
private
lastValue
;
protected
speed
:
number
;
private
addSpeed
;
isStop
:
boolean
;
maxSpeed
:
number
;
fSpeed
:
number
;
protected
paramXY
:
string
;
private
stopTimes
;
private
isMouseDownState
;
private
autoScroll
;
isSpringBack
:
boolean
;
constructor
(
vW
:
number
,
vH
:
number
,
maxDistance
:
number
,
isVertical
?:
boolean
,
isFull
?:
boolean
);
setViewRect
(
w
:
number
,
h
:
number
,
isVertical
:
boolean
):
void
;
private
onMouseEvent
;
scrollTo
(
dis
:
number
,
time
?:
number
):
void
;
destroy
():
void
;
}
export
class
ShowWord
extends
TextField
{
playWords
(
text
:
string
,
deltaTime
?:
number
,
callback
?:
Function
):
void
;
}
export
function
DrawAllToCanvas
(
images
:
any
,
callback
:
any
):
void
;
export
function
uid
():
number
;
export
const
backupCanvas
:
HTMLCanvasElement
;
export
function
getGradientColor
(
points
:
any
,
colors
:
any
):
any
;
export
function
getCanvasBitmapStyle
(
image
:
any
):
any
;
export
function
hex2rgb
(
hex
:
number
,
out
?:
number
[]
|
Float32Array
):
number
[]
|
Float32Array
;
export
function
hex2string
(
hex
:
any
):
string
;
export
function
string2hex
(
string
:
string
):
number
;
export
function
rgb2hex
(
rgb
:
number
[]):
number
;
export
function
getRGBA
(
color
:
string
,
alpha
:
number
):
string
;
export
function
inputFeildIosEnable
():
void
;
export
function
decomposeDataUri
(
dataUri
:
any
):
{
mediaType
:
any
;
subType
:
any
;
charset
:
any
;
encoding
:
any
;
data
:
any
;
}
export
function
getUrlFileExtension
(
url
:
any
):
any
;
export
function
sign
(
n
:
number
):
number
;
export
function
premultiplyTint
(
tint
:
number
,
alpha
:
number
):
number
;
export
const
TextureCache
:
any
;
export
const
BaseTextureCache
:
any
;
export
const
TextureSheetCache
:
any
;
export
function
destroyTextureCache
():
void
;
export
function
clearTextureCache
():
void
;
export
const
GlobalPro
:
{
stageRenderType
:
RENDERER_TYPE
;
dpi
:
number
;
padding
:
number
;
startTime
:
number
;
}
export
function
isWebGLSupported
():
boolean
;
export
function
removeItems
(
arr
:
Array
<
any
>
,
startIdx
:
number
,
removeCount
:
number
):
void
;
export
function
mapWebGLBlendModesToPixi
(
gl
:
any
,
array
?:
any
[]):
any
[];
export
const
INT_BITS1
=
32
;
export
const
INT_MAX
=
2147483647
;
export
const
INT_MIN
:
number
;
export
function
abs
(
v
:
any
):
number
;
export
function
min
(
x
:
any
,
y
:
any
):
number
;
export
function
max
(
x
:
any
,
y
:
any
):
number
;
export
function
isPow2
(
v
:
any
):
boolean
;
export
function
log2
(
v
:
any
):
number
;
export
function
log10
(
v
:
any
):
1
|
4
|
3
|
2
|
9
|
8
|
7
|
6
|
5
|
0
;
export
function
popCount
(
v
:
any
):
number
;
export
function
countTrailingZeros
(
v
:
any
):
number
;
export
function
nextPow2
(
v
:
any
):
any
;
export
function
prevPow2
(
v
:
any
):
number
;
export
function
parity
(
v
:
any
):
number
;
export
function
reverse
(
v
:
any
):
number
;
export
function
interleave2
(
x
:
any
,
y
:
any
):
number
;
export
function
deinterleave2
(
v
:
any
,
n
:
any
):
number
;
export
function
interleave3
(
x
:
any
,
y
:
any
,
z
:
any
):
number
;
export
function
deinterleave3
(
v
:
any
,
n
:
any
):
number
;
export
function
nextCombination
(
v
:
any
):
number
;
export
function
checkMaxIfStatementsInShader
(
maxIfs
:
number
,
gl
:
WebGLRenderingContext
):
number
;
export
function
createContext
(
canvas
:
HTMLCanvasElement
,
options
?:
any
):
WebGLRenderingContext
;
export
class
GLBuffer
{
gl
:
any
;
buffer
:
any
;
type
:
any
;
drawType
:
any
;
data
:
any
;
_updateID
:
number
;
constructor
(
gl
:
any
,
type
?:
any
,
data
?:
any
,
drawType
?:
any
);
upload
(
data
:
any
,
offset
?:
number
,
dontBind
?:
boolean
):
void
;
bind
():
void
;
destroy
:
()
=>
void
;
static
createVertexBuffer
(
gl
:
any
,
data
?:
any
,
drawType
?:
any
):
GLBuffer
;
static
createIndexBuffer
(
gl
:
any
,
data
?:
any
,
drawType
?:
any
):
GLBuffer
;
static
create
(
gl
:
any
,
type
:
any
,
data
:
any
,
drawType
:
any
):
GLBuffer
;
}
export
class
GLFramebuffer
{
gl
:
any
;
framebuffer
:
any
;
stencil
:
any
;
texture
:
any
;
width
:
any
;
height
:
any
;
constructor
(
gl
:
any
,
width
:
any
,
height
:
any
);
enableTexture
(
texture
:
any
):
void
;
enableStencil
():
void
;
clear
(
r
:
any
,
g
:
any
,
b
:
any
,
a
:
any
):
void
;
bind
():
void
;
unbind
():
void
;
resize
(
width
:
any
,
height
:
any
):
void
;
destroy
():
void
;
static
createRGBA
(
gl
:
any
,
width
:
any
,
height
:
any
,
data
?:
any
):
GLFramebuffer
;
static
createFloat32
(
gl
:
any
,
width
:
any
,
height
:
any
,
data
:
any
):
GLFramebuffer
;
}
export
class
GLShader
{
gl
:
WebGLRenderingContext
;
program
:
WebGLProgram
;
attributes
:
any
;
uniformData
:
any
;
uniforms
:
any
;
constructor
(
gl
:
WebGLRenderingContext
,
vertexSrc
:
string
,
fragmentSrc
:
string
,
precision
?:
string
,
attributeLocations
?:
any
);
bind
():
this
;
destroy
():
void
;
}
export
class
GLTexture
{
gl
:
WebGLRenderingContext
;
texture
:
WebGLTexture
;
mipmap
:
boolean
;
premultiplyAlpha
:
any
;
width
:
number
;
height
:
number
;
format
:
any
;
type
:
any
;
constructor
(
gl
:
WebGLRenderingContext
,
width
?:
number
,
height
?:
number
,
format
?:
any
,
type
?:
any
);
upload
(
source
:
any
):
void
;
uploadData
:
(
data
:
any
,
width
:
any
,
height
:
any
)
=>
void
;
bind
(
location
?:
number
):
void
;
unbind
():
void
;
minFilter
(
linear
:
boolean
):
void
;
magFilter
(
linear
:
boolean
):
void
;
enableMipmap
():
void
;
enableLinearScaling
():
void
;
enableNearestScaling
():
void
;
enableWrapClamp
():
void
;
enableWrapRepeat
():
void
;
enableWrapMirrorRepeat
():
void
;
destroy
():
void
;
static
fromSource
(
gl
:
WebGLRenderingContext
,
source
:
HTMLImageElement
|
ImageData
,
premultiplyAlpha
?:
boolean
):
GLTexture
;
static
fromData
(
gl
:
any
,
data
:
any
,
width
:
any
,
height
:
any
):
GLTexture
;
}
export
function
setVertexAttribArrays
(
gl
:
any
,
attribs
:
any
,
state
?:
any
):
void
;
export
function
compileProgram
(
gl
:
WebGLRenderingContext
,
vertexSrc
:
string
,
fragmentSrc
:
string
,
attributeLocations
?:
any
):
WebGLProgram
;
export
function
defaultValue
(
type
:
string
,
size
:
number
):
false
|
any
[]
|
0
|
Float32Array
;
export
function
extractAttributes
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
export
function
extractUniforms
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
export
function
generateUniformAccessObject
(
gl
:
WebGLRenderingContext
,
uniformData
:
any
):
{
data
:
{};
}
export
function
mapSize
(
type
:
string
):
number
;
export
function
mapType
(
gl
:
any
,
type
:
any
):
any
;
export
function
setPrecision
(
src
:
string
,
precision
:
string
):
string
;
export
class
VertexArrayObject
{
nativeVaoExtension
:
any
;
nativeState
:
any
;
nativeVao
:
any
;
gl
:
WebGLRenderingContext
;
attributes
:
any
[];
indexBuffer
:
any
;
dirty
:
boolean
;
constructor
(
gl
:
WebGLRenderingContext
,
state
:
any
);
bind
():
this
;
unbind
():
this
;
activate
():
this
;
addAttribute
(
buffer
:
any
,
attribute
:
any
,
type
?:
any
,
normalized
?:
any
,
stride
?:
any
,
start
?:
any
):
this
;
addIndex
(
buffer
:
any
):
this
;
clear
():
this
;
draw
(
type
:
any
,
size
?:
any
,
start
?:
any
):
this
;
destroy
():
void
;
getSize
():
number
;
static
FORCE_NATIVE
:
boolean
;
}
export
function
setProcessMetaLibs
(...
metaContexts
:
any
[]):
void
;
export
function
setGlobalContext
(
context
:
any
):
void
;
export
function
executeBehavior
(
sequence
:
any
,
subEntry
:
string
,
target
:
any
,
args
?:
any
):
void
;
export
class
Process
{
private
_config
;
private
_parent
;
private
_vm
;
private
_sequence
;
private
_meta
;
private
_target
;
private
_originProps
;
constructor
();
readonly
processConfig
:
any
;
readonly
parent
:
Process
;
readonly
sequence
:
any
;
init
(
context
:
any
):
void
;
execute
(
args
:
any
):
Promise
<
any
>
;
_executeMetaScript
(
type
:
any
,
payload
:
any
,
meta
:
any
):
Promise
<
{
type
:
any
;
payload
:
any
;
}
>
;
_executeSubProcess
(
type
:
any
,
payload
:
any
):
Promise
<
{
type
:
any
;
payload
:
any
;
}
>
;
_executeNextProcess
(
type
:
any
,
payload
:
any
):
Promise
<
{
type
:
any
;
payload
:
any
;
}
>
;
getProcessMeta
(
id
:
any
):
any
;
getProps
(
key
?:
any
):
any
;
updateProps
(
args
:
any
):
void
;
resolveLinkedProp
(
data
:
any
,
key
:
any
):
any
;
}
export
class
VM
{
_processMetaLibs
:
any
;
_globalContext
:
any
;
_target
:
any
;
_id
:
any
;
setup
(
context
:
any
):
void
;
executeProcess
(
sequence
:
any
,
id
:
any
,
parentProcess
:
any
,
args
:
any
):
Promise
<
any
>
;
getMeta
(
id
:
any
):
any
;
readonly
globalContext
:
any
;
readonly
id
:
any
;
}
export
function
fieldChanged
(
onModify
:
any
):
(
target
:
any
,
key
:
string
)
=>
void
;
export
const
dirtyFieldDetector
:
(
target
:
any
,
key
:
string
)
=>
void
;
export
const
deepDirtyFieldDetector
:
(
target
:
any
,
key
:
string
)
=>
void
;
export
const
dirtyFieldTrigger
:
(
target
:
any
,
key
:
string
)
=>
void
;
export
const
deepDirtyFieldTrigger
:
(
target
:
any
,
key
:
string
)
=>
void
;
export
function
afterConstructor
(
ctor
:
Function
):
void
;
export
function
applyAutoAdjust
(
ctor
:
Function
):
void
;
export
const
globalEvent
:
EventDispatcher
;
export
const
DATA_CENTER_EVENT
:
string
;
export
function
applyEvents
(
ctor
:
Function
):
void
;
export
function
applyScript
(
ctor
:
Function
):
void
;
export
class
ScriptBase
{
private
_host
;
disabled
:
boolean
;
readonly
host
:
Container
;
mounted
():
void
;
destroy
():
void
;
update
(
t
:
number
):
void
;
awake
():
void
;
sleep
():
void
;
}
export
function
registerScriptDef
(
id
:
any
,
def
:
any
):
void
;
export
function
registerScripts
(
scripts
:
any
):
void
;
export
function
loadAssets
(
config
:
any
,
onProgress
?:
any
,
onComplete
?:
any
):
Promise
<
never
>
;
export
function
getAssetByUUID
(
uuid
:
any
):
any
;
export
function
getAssetByName
(
name
:
any
):
any
;
export
class
DataCenter
extends
EventDispatcher
{
store
:
{};
watchers
:
any
[];
constructor
();
registerGroup
(
name
:
any
,
origin
?:
any
):
void
;
unregisterGroup
(
name
:
any
):
void
;
getGroup
(
name
:
any
):
any
;
getDataByPath
(
path
:
any
,
throwException
?:
any
):
any
;
getDataByName
(
name
:
any
,
throwException
?:
any
):
any
;
formatString
(
str
:
any
,
escapes
:
any
):
any
;
mutate
(
name
:
any
,
data
?:
any
,
path
?:
any
,
dispatch
?:
boolean
):
void
;
watch
(
name
:
any
,
path
:
any
):
void
;
getWatcher
(
name
:
any
):
any
;
registerDataMapping
(
dataMapping
:
any
):
void
;
}
export
const
dataCenter
:
DataCenter
;
export
let
env
:
any
;
export
function
injectEnv
(
data
:
any
):
void
;
export
class
GameStage
extends
Container
{
private
_sceneContainer
;
private
_popupContainer
;
private
_blackLayer
;
private
_stage
;
private
_dataCenter
;
private
_config
;
constructor
(
stage
:
Stage
);
readonly
sceneContainer
:
StackContainer
;
readonly
popupContainer
:
StackContainer
;
readonly
dataCenter
:
DataCenter
;
launch
(
config
:
any
,
onAssetsProgress
:
any
,
onAssetsComplete
:
any
):
void
;
start
():
void
;
getViewConfigByName
(
name
:
any
):
any
;
instantiateView
(
name
,
cache
=
true
):
any
;
setBlackLayerVisible
(
visible
:
any
):
void
;
onPopupContainerChange
(
e
:
any
):
void
;
}
export
class
Image
extends
Sprite
{
private
_originText
;
private
_escapes
;
private
_registeredEvents
;
private
_source
;
source
:
string
;
private
updateSource
;
private
_setSourceDirect
;
private
_setSource
;
private
unregisterEvents
;
private
onDataMutated
;
}
export
class
Label
extends
TextField
{
private
_originText
;
private
_escapes
;
private
_registeredEvents
;
protected
_setText
(
value
:
any
):
void
;
private
unregisterEvents
;
private
onDataMutated
;
}
export
class
ShapeBase
extends
Shape
{
protected
__fieldDirty
:
boolean
;
fillColor
:
any
;
strokeColor
:
any
;
strokeWidth
:
number
;
constructor
();
private
onResize
;
private
onEnterFrame
;
protected
redraw
():
void
;
}
export
class
Rect
extends
ShapeBase
{
borderRadius
:
number
;
protected
redraw
():
void
;
}
export
class
Circle
extends
ShapeBase
{
protected
redraw
():
void
;
}
export
{};
export
class
StackContainer
extends
Container
{
private
_mutex
;
constructor
(
mutex
?:
boolean
);
push
(
view
:
DisplayObject
,
options
?:
any
,
dispatch
?:
boolean
):
void
;
replace
(
view
:
DisplayObject
,
options
?:
any
):
void
;
pop
():
boolean
;
popAll
(
view
?:
DisplayObject
,
options
?:
any
):
void
;
}
export
function
instantiate
(
config
:
any
):
any
;
export
{
instantiate
};
export
let
gameStage
:
any
;
export
function
launch
(
url
:
any
,
onAssetsProgress
:
any
,
onAssetsComplete
:
any
):
Promise
<
{}
>
;
export
function
launchWithConfig
(
config
:
any
,
onAssetsProgress
:
any
,
onAssetsComplete
:
any
):
Promise
<
{}
>
;
export
function
findNodeByUUID
(
node
:
any
,
uuid
:
any
):
any
;
export
const
ESCAPE_REG_EXP
:
RegExp
;
export
const
linkedFlag
=
"$_linked_$"
;
export
const
nodeScheme
=
"node://"
;
export
function
arrayFind
(
arr
:
any
,
callback
:
any
):
any
;
export
function
objClone
(
obj
:
any
):
any
;
export
function
propertyParse
(
key
:
any
,
node
:
any
,
properties
:
any
):
void
;
export
function
getDataByPath
(
scope
:
any
,
path
:
any
,
throwException
?:
any
):
any
;
export
function
injectProp
(
target
:
any
,
data
?:
any
,
callback
?:
Function
,
ignoreMethod
?:
boolean
,
ignoreNull
?:
boolean
):
boolean
;
export
function
copyProp
(
target
:
any
,
data
:
any
,
config
?:
any
):
void
;
export
function
obj2query
(
obj
:
any
):
string
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment