Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
renderingEngine
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
王剑峰
renderingEngine
Commits
8b44bc20
Commit
8b44bc20
authored
Nov 08, 2019
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
29783410
Changes
140
Hide whitespace changes
Inline
Side-by-side
Showing
140 changed files
with
20 additions
and
2088 deletions
+20
-2088
Sprite.ts
src/2d/display/Sprite.ts
+6
-10
Graphics.ts
src/2d/graphics/Graphics.ts
+13
-18
tsConfig.json
tsConfig.json
+1
-1
HashObject.d.ts
types/2d/HashObject.d.ts
+0
-9
Component.d.ts
types/2d/component/Component.d.ts
+0
-16
const.d.ts
types/2d/const.d.ts
+0
-112
Container.d.ts
types/2d/display/Container.d.ts
+0
-38
DisplayObject.d.ts
types/2d/display/DisplayObject.d.ts
+0
-76
FloatDisplay.d.ts
types/2d/display/FloatDisplay.d.ts
+0
-11
Sprite.d.ts
types/2d/display/Sprite.d.ts
+0
-37
Stage.d.ts
types/2d/display/Stage.d.ts
+0
-57
index.d.ts
types/2d/display/index.d.ts
+0
-5
Event.d.ts
types/2d/events/Event.d.ts
+0
-31
EventDispatcher.d.ts
types/2d/events/EventDispatcher.d.ts
+0
-18
GDispatcher.d.ts
types/2d/events/GDispatcher.d.ts
+0
-7
MouseEvent.d.ts
types/2d/events/MouseEvent.d.ts
+0
-21
index.d.ts
types/2d/events/index.d.ts
+0
-4
Graphics.d.ts
types/2d/graphics/Graphics.d.ts
+0
-87
GraphicsData.d.ts
types/2d/graphics/GraphicsData.d.ts
+0
-20
Shape.d.ts
types/2d/graphics/Shape.d.ts
+0
-48
buildCircle.d.ts
types/2d/graphics/geomBuild/buildCircle.d.ts
+0
-7
buildLine.d.ts
types/2d/graphics/geomBuild/buildLine.d.ts
+0
-3
buildPoly.d.ts
types/2d/graphics/geomBuild/buildPoly.d.ts
+0
-7
buildRectangle.d.ts
types/2d/graphics/geomBuild/buildRectangle.d.ts
+0
-7
buildRoundedRectangle.d.ts
types/2d/graphics/geomBuild/buildRoundedRectangle.d.ts
+0
-7
earcut.d.ts
types/2d/graphics/geomBuild/earcut.d.ts
+0
-1
Circle.d.ts
types/2d/graphics/shapes/Circle.d.ts
+0
-11
Ellipse.d.ts
types/2d/graphics/shapes/Ellipse.d.ts
+0
-12
Polygon.d.ts
types/2d/graphics/shapes/Polygon.d.ts
+0
-10
RoundedRectangle.d.ts
types/2d/graphics/shapes/RoundedRectangle.d.ts
+0
-12
index.d.ts
types/2d/graphics/shapes/index.d.ts
+0
-4
FillStyle.d.ts
types/2d/graphics/styles/FillStyle.d.ts
+0
-14
LineStyle.d.ts
types/2d/graphics/styles/LineStyle.d.ts
+0
-9
bezierCurveControlPoint.d.ts
types/2d/graphics/utils/bezierCurveControlPoint.d.ts
+0
-4
bezierCurveTo.d.ts
types/2d/graphics/utils/bezierCurveTo.d.ts
+0
-1
index.d.ts
types/2d/graphics/utils/index.d.ts
+0
-11
Loader.d.ts
types/2d/loader/Loader.d.ts
+0
-18
GroupD8.d.ts
types/2d/math/GroupD8.d.ts
+0
-24
Matrix.d.ts
types/2d/math/Matrix.d.ts
+0
-33
ObservablePoint.d.ts
types/2d/math/ObservablePoint.d.ts
+0
-14
Point.d.ts
types/2d/math/Point.d.ts
+0
-9
Rectangle.d.ts
types/2d/math/Rectangle.d.ts
+0
-25
Transform.d.ts
types/2d/math/Transform.d.ts
+0
-27
index.d.ts
types/2d/math/index.d.ts
+0
-6
CanvasRenderer.d.ts
types/2d/renderers/CanvasRenderer.d.ts
+0
-24
RendererOptions.d.ts
types/2d/renderers/RendererOptions.d.ts
+0
-8
SystemRenderer.d.ts
types/2d/renderers/SystemRenderer.d.ts
+0
-21
WebglRenderer.d.ts
types/2d/renderers/WebglRenderer.d.ts
+0
-48
BatchManager.d.ts
types/2d/renderers/managers/BatchManager.d.ts
+0
-11
CanvasMaskManager.d.ts
types/2d/renderers/managers/CanvasMaskManager.d.ts
+0
-11
MaskManager.d.ts
types/2d/renderers/managers/MaskManager.d.ts
+0
-20
StencilManager.d.ts
types/2d/renderers/managers/StencilManager.d.ts
+0
-13
TextureGarbageCollector.d.ts
types/2d/renderers/managers/TextureGarbageCollector.d.ts
+0
-13
TextureManager.d.ts
types/2d/renderers/managers/TextureManager.d.ts
+0
-20
BatchRenderer.d.ts
types/2d/renderers/plugins/BatchRenderer.d.ts
+0
-34
CanvasGraphicsRenderer.d.ts
types/2d/renderers/plugins/CanvasGraphicsRenderer.d.ts
+0
-11
CanvasSpriteRenderer.d.ts
types/2d/renderers/plugins/CanvasSpriteRenderer.d.ts
+0
-7
CanvasRenderTarget.d.ts
types/2d/renderers/renderTarget/CanvasRenderTarget.d.ts
+0
-10
RenderTarget.d.ts
types/2d/renderers/renderTarget/RenderTarget.d.ts
+0
-28
BatchBuffer.d.ts
types/2d/renderers/webgl/BatchBuffer.d.ts
+0
-10
BatchDrawCall.d.ts
types/2d/renderers/webgl/BatchDrawCall.d.ts
+0
-9
ObjectRenderer.d.ts
types/2d/renderers/webgl/ObjectRenderer.d.ts
+0
-12
WebGLState.d.ts
types/2d/renderers/webgl/WebGLState.d.ts
+0
-22
createIndicesForQuads.d.ts
types/2d/renderers/webgl/createIndicesForQuads.d.ts
+0
-1
generateMultiTextureShader.d.ts
types/2d/renderers/webgl/generateMultiTextureShader.d.ts
+0
-2
MovieClip.d.ts
types/2d/svga/MovieClip.d.ts
+0
-41
VideoEntity.d.ts
types/2d/svga/VideoEntity.d.ts
+0
-18
bezierPath.d.ts
types/2d/svga/bezierPath.d.ts
+0
-7
ellipsePath.d.ts
types/2d/svga/ellipsePath.d.ts
+0
-10
frameEntity.d.ts
types/2d/svga/frameEntity.d.ts
+0
-23
index.d.ts
types/2d/svga/index.d.ts
+0
-2
mockWorker.d.ts
types/2d/svga/mockWorker.d.ts
+0
-2
inflate.d.ts
types/2d/svga/pako/inflate.d.ts
+0
-5
common.d.ts
types/2d/svga/pako/utils/common.d.ts
+0
-12
strings.d.ts
types/2d/svga/pako/utils/strings.d.ts
+0
-13
adler32.d.ts
types/2d/svga/pako/zlib/adler32.d.ts
+0
-2
constants.d.ts
types/2d/svga/pako/zlib/constants.d.ts
+0
-30
crc32.d.ts
types/2d/svga/pako/zlib/crc32.d.ts
+0
-2
deflate.d.ts
types/2d/svga/pako/zlib/deflate.d.ts
+0
-20
gzheader.d.ts
types/2d/svga/pako/zlib/gzheader.d.ts
+0
-2
inffast.d.ts
types/2d/svga/pako/zlib/inffast.d.ts
+0
-1
inflate.d.ts
types/2d/svga/pako/zlib/inflate.d.ts
+0
-22
inftrees.d.ts
types/2d/svga/pako/zlib/inftrees.d.ts
+0
-1
messages.d.ts
types/2d/svga/pako/zlib/messages.d.ts
+0
-12
trees.d.ts
types/2d/svga/pako/zlib/trees.d.ts
+0
-13
zstream.d.ts
types/2d/svga/pako/zlib/zstream.d.ts
+0
-2
parser.d.ts
types/2d/svga/parser.d.ts
+0
-4
proto.d.ts
types/2d/svga/proto.d.ts
+0
-3
rectPath.d.ts
types/2d/svga/rectPath.d.ts
+0
-11
spriteEntity.d.ts
types/2d/svga/spriteEntity.d.ts
+0
-6
EditableText.d.ts
types/2d/text/EditableText.d.ts
+0
-11
InputText.d.ts
types/2d/text/InputText.d.ts
+0
-21
TextField.d.ts
types/2d/text/TextField.d.ts
+0
-50
index.d.ts
types/2d/text/index.d.ts
+0
-3
BaseRenderTexture.d.ts
types/2d/texture/BaseRenderTexture.d.ts
+0
-9
BaseTexture.d.ts
types/2d/texture/BaseTexture.d.ts
+0
-33
RenderTexture.d.ts
types/2d/texture/RenderTexture.d.ts
+0
-8
Texture.d.ts
types/2d/texture/Texture.d.ts
+0
-38
TextureSheet.d.ts
types/2d/texture/TextureSheet.d.ts
+0
-16
TextureUvs.d.ts
types/2d/texture/TextureUvs.d.ts
+0
-16
index.d.ts
types/2d/texture/index.d.ts
+0
-4
BitmapNumber.d.ts
types/2d/ui/BitmapNumber.d.ts
+0
-10
BitmapNumbers.d.ts
types/2d/ui/BitmapNumbers.d.ts
+0
-12
Button.d.ts
types/2d/ui/Button.d.ts
+0
-14
FrameAni.d.ts
types/2d/ui/FrameAni.d.ts
+0
-19
ScrollList.d.ts
types/2d/ui/ScrollList.d.ts
+0
-30
ScrollPage.d.ts
types/2d/ui/ScrollPage.d.ts
+0
-27
ShowWord.d.ts
types/2d/ui/ShowWord.d.ts
+0
-4
index.d.ts
types/2d/ui/index.d.ts
+0
-3
DrawAllToCanvas.d.ts
types/2d/utils/DrawAllToCanvas.d.ts
+0
-1
determineCrossOrigin.d.ts
types/2d/utils/determineCrossOrigin.d.ts
+0
-1
index.d.ts
types/2d/utils/index.d.ts
+0
-38
toDisplayDataURL.d.ts
types/2d/utils/toDisplayDataURL.d.ts
+0
-3
twiddle.d.ts
types/2d/utils/twiddle.d.ts
+0
-20
GLBuffer.d.ts
types/glCore/GLBuffer.d.ts
+0
-15
GLFramebuffer.d.ts
types/glCore/GLFramebuffer.d.ts
+0
-18
GLShader.d.ts
types/glCore/GLShader.d.ts
+0
-10
GLTexture.d.ts
types/glCore/GLTexture.d.ts
+0
-26
VertexArrayObject.d.ts
types/glCore/VertexArrayObject.d.ts
+0
-20
checkMaxIfStatementsInShader.d.ts
types/glCore/checkMaxIfStatementsInShader.d.ts
+0
-1
createContext.d.ts
types/glCore/createContext.d.ts
+0
-1
index.d.ts
types/glCore/index.d.ts
+0
-7
setVertexAttribArrays.d.ts
types/glCore/setVertexAttribArrays.d.ts
+0
-1
compileProgram.d.ts
types/glCore/shader/compileProgram.d.ts
+0
-1
defaultValue.d.ts
types/glCore/shader/defaultValue.d.ts
+0
-1
extractAttributes.d.ts
types/glCore/shader/extractAttributes.d.ts
+0
-1
extractUniforms.d.ts
types/glCore/shader/extractUniforms.d.ts
+0
-1
generateUniformAccessObject.d.ts
types/glCore/shader/generateUniformAccessObject.d.ts
+0
-3
index.d.ts
types/glCore/shader/index.d.ts
+0
-8
mapSize.d.ts
types/glCore/shader/mapSize.d.ts
+0
-1
mapType.d.ts
types/glCore/shader/mapType.d.ts
+0
-1
setPrecision.d.ts
types/glCore/shader/setPrecision.d.ts
+0
-1
index.d.ts
types/index.d.ts
+0
-17
GameStage.d.ts
types/zeroing/GameStage.d.ts
+0
-10
RES.d.ts
types/zeroing/RES.d.ts
+0
-2
StackContainer.d.ts
types/zeroing/StackContainer.d.ts
+0
-8
auto-adjust.d.ts
types/zeroing/auto-adjust.d.ts
+0
-11
decorators.d.ts
types/zeroing/decorators.d.ts
+0
-5
index.d.ts
types/zeroing/index.d.ts
+0
-6
shapes.d.ts
types/zeroing/shapes.d.ts
+0
-20
No files found.
src/2d/display/Sprite.ts
View file @
8b44bc20
...
@@ -352,17 +352,13 @@ export default class Sprite extends Container {
...
@@ -352,17 +352,13 @@ export default class Sprite extends Container {
if
(
!
this
.
visible
)
return
null
if
(
!
this
.
visible
)
return
null
if
(
isMouseEvent
&&
!
this
.
mouseEnabled
&&
!
this
.
mouseChildren
)
return
null
;
if
(
isMouseEvent
&&
!
this
.
mouseEnabled
&&
!
this
.
mouseChildren
)
return
null
;
let
hitDisplayObject
;
let
hitDisplayObject
;
//子级可选,先找子级,子级层级更高
//先检查子级,因为子级层级更高
if
(
this
.
mouseChildren
)
{
hitDisplayObject
=
super
.
hitTestPoint
(
globalPoint
,
isMouseEvent
);
hitDisplayObject
=
super
.
hitTestPoint
(
globalPoint
,
isMouseEvent
);
//子级已有,返回
//子级已有,返回
if
(
hitDisplayObject
)
return
hitDisplayObject
;
if
(
hitDisplayObject
)
return
hitDisplayObject
;
}
//检查自己
//检查自己
if
(
this
.
mouseEnabled
)
{
hitDisplayObject
=
this
.
displayObjectHitTestPoint
(
globalPoint
,
isMouseEvent
);
hitDisplayObject
=
this
.
displayObjectHitTestPoint
(
globalPoint
,
isMouseEvent
);
if
(
hitDisplayObject
)
return
hitDisplayObject
;
if
(
hitDisplayObject
)
return
hitDisplayObject
;
}
return
null
;
return
null
;
}
}
...
...
src/2d/graphics/Graphics.ts
View file @
8b44bc20
...
@@ -1155,24 +1155,19 @@ export default class Graphics extends Container {
...
@@ -1155,24 +1155,19 @@ export default class Graphics extends Container {
if
(
!
this
.
visible
)
return
null
if
(
!
this
.
visible
)
return
null
if
(
isMouseEvent
&&
!
this
.
mouseEnabled
&&
!
this
.
mouseChildren
)
return
null
;
if
(
isMouseEvent
&&
!
this
.
mouseEnabled
&&
!
this
.
mouseChildren
)
return
null
;
let
hitDisplayObject
;
let
hitDisplayObject
;
//子级可选,先找子级,子级层级更高
//先检查子级,因为子级层级更高
if
(
this
.
mouseChildren
)
{
hitDisplayObject
=
super
.
hitTestPoint
(
point
,
isMouseEvent
);
hitDisplayObject
=
super
.
hitTestPoint
(
point
,
isMouseEvent
);
//子级已有,返回
//子级已有,返回
if
(
hitDisplayObject
)
return
hitDisplayObject
;
if
(
hitDisplayObject
)
return
hitDisplayObject
;
//再粗略检查自己,先计算自身盒子
}
this
.
updateLocalBoundsSelf
();
//检查自己
hitDisplayObject
=
this
.
displayObjectHitTestPoint
(
point
,
isMouseEvent
);
if
(
this
.
mouseEnabled
)
{
//有的话
//再粗略检查自己,先计算自身盒子
if
(
hitDisplayObject
)
{
this
.
updateLocalBoundsSelf
();
//不需要像素级检测直接返回
hitDisplayObject
=
this
.
displayObjectHitTestPoint
(
point
,
isMouseEvent
);
if
(
!
this
.
hitTestByPixel
)
return
hitDisplayObject
;
//有的话
//精确检测
if
(
hitDisplayObject
)
{
return
this
.
hitTestPointAccuratly
(
point
)
//不需要像素级检测直接返回
if
(
!
this
.
hitTestByPixel
)
return
hitDisplayObject
;
//精确检测
return
this
.
hitTestPointAccuratly
(
point
)
}
}
}
return
null
;
return
null
;
}
}
...
...
tsConfig.json
View file @
8b44bc20
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
"sourceMap"
:
true
,
"sourceMap"
:
true
,
"removeComments"
:
true
,
"removeComments"
:
true
,
"noEmitOnError"
:
true
,
"noEmitOnError"
:
true
,
"declarationDir"
:
"types"
,
//
"declarationDir"
:
"types"
,
"declaration"
:
true
,
"declaration"
:
true
,
"experimentalDecorators"
:
true
,
"experimentalDecorators"
:
true
,
"outDir"
:
"dist"
,
"outDir"
:
"dist"
,
...
...
types/2d/HashObject.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
abstract
class
HashObject
{
protected
_instanceId
:
number
;
protected
_instanceType
:
string
;
protected
static
_object_id
:
number
;
constructor
();
readonly
instanceId
:
number
;
readonly
instanceType
:
string
;
abstract
destroy
():
void
;
}
types/2d/component/Component.d.ts
deleted
100644 → 0
View file @
29783410
import
{
HashObject
}
from
"../HashObject"
;
import
{
DisplayObject
}
from
"../display/DisplayObject"
;
export
declare
class
Component
extends
HashObject
{
entity
:
DisplayObject
;
protected
_enabled
:
boolean
;
constructor
();
enabled
:
boolean
;
_setup
(
entity
:
DisplayObject
):
void
;
_unSetup
():
void
;
onCreate
():
void
;
onEnable
():
void
;
onDisable
():
void
;
onUpdate
():
void
;
onDestroy
():
void
;
destroy
():
void
;
}
types/2d/const.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
const
VERSION
=
"1.0"
;
export
declare
const
devicePixelRatio
:
number
;
export
declare
let
StageScaleMode
:
{
EXACT_FIT
:
string
;
NO_BORDER
:
string
;
NO_SCALE
:
string
;
SHOW_ALL
:
string
;
FIXED_WIDTH
:
string
;
FIXED_HEIGHT
:
string
;
};
export
declare
const
osType
:
string
;
export
declare
function
cos
(
angle
:
number
):
number
;
export
declare
function
sin
(
angle
:
number
):
number
;
export
declare
const
PI_2
:
number
;
export
declare
const
RAD_TO_DEG
:
number
;
export
declare
const
DEG_TO_RAD
:
number
;
export
declare
enum
RENDERER_TYPE
{
UNKNOWN
=
0
,
WEBGL
=
1
,
CANVAS
=
2
}
export
declare
enum
SHAPES
{
POLY
=
0
,
RECT
=
1
,
CIRC
=
2
,
ELIP
=
3
,
RREC
=
4
}
export
declare
enum
PRECISION
{
LOW
=
"lowp"
,
MEDIUM
=
"mediump"
,
HIGH
=
"highp"
}
export
declare
enum
TEXT_GRADIENT
{
LINEAR_VERTICAL
=
0
,
LINEAR_HORIZONTAL
=
1
}
export
declare
enum
TEXT_ALIGN
{
CENTER
=
"center"
,
LEFT
=
"left"
,
RIGHT
=
"right"
}
export
declare
enum
VERTICAL_ALIGN
{
MIDDLE
=
"middle"
,
UP
=
"up"
,
DOWN
=
"down"
}
export
declare
enum
TEXT_lINETYPE
{
SINGLE
=
"single"
,
MULTI
=
"multi"
}
export
declare
enum
LINE_ALIGNMENT
{
middle
=
0.5
,
outter
=
1
,
inner
=
0
}
export
declare
enum
LINE_CAP
{
BUTT
=
"butt"
,
ROUND
=
"round"
,
SQUARE
=
"square"
}
export
declare
enum
LINE_JOIN
{
MITER
=
"miter"
,
ROUND
=
"round"
,
BEVEL
=
"bevel"
}
export
declare
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
declare
enum
DRAW_MODES
{
POINTS
=
0
,
LINES
=
1
,
LINE_LOOP
=
2
,
LINE_STRIP
=
3
,
TRIANGLES
=
4
,
TRIANGLE_STRIP
=
5
,
TRIANGLE_FAN
=
6
}
export
declare
enum
SCALE_MODES
{
LINEAR
=
0
,
NEAREST
=
1
}
export
declare
enum
WRAP_MODES
{
CLAMP
=
33071
,
REPEAT
=
10497
,
MIRRORED_REPEAT
=
33648
}
export
declare
enum
GC_MODES
{
AUTO
=
0
,
MANUAL
=
1
}
export
declare
const
URL_FILE_EXTENSION
:
any
;
export
declare
const
DATA_URI
:
any
;
types/2d/display/Container.d.ts
deleted
100644 → 0
View file @
29783410
import
{
DisplayObject
}
from
'./DisplayObject'
;
import
{
Point
}
from
'../math'
;
import
CanvasRenderer
from
'../renderers/CanvasRenderer'
;
import
{
WebglRenderer
}
from
'../renderers/WebglRenderer'
;
export
default
class
Container
extends
DisplayObject
{
mouseChildren
:
boolean
;
children
:
any
[];
containerUpdateTransform
:
any
;
constructor
();
applyAutoAdjust
():
void
;
applyScripts
():
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
;
}
types/2d/display/DisplayObject.d.ts
deleted
100644 → 0
View file @
29783410
import
{
EventDispatcher
}
from
'../events/EventDispatcher'
;
import
Transform
from
'../math/Transform'
;
import
{
Rectangle
}
from
'../math/Rectangle'
;
import
{
Point
}
from
"../math/Point"
;
import
{
Component
}
from
'../component/Component'
;
import
Graphics
from
'../graphics/Graphics'
;
export
declare
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
;
mouseEnable
:
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
;
private
_components
;
update
(
deltaTime
:
number
):
void
;
addComponent
(
component
:
Component
):
void
;
addComponentAt
(
component
:
Component
,
index
:
number
):
void
;
removeComponent
(
component
:
Component
):
void
;
removeAllComponents
():
void
;
onAddComponent
(
component
:
Component
):
void
;
onRemoveComponent
(
component
:
Component
):
void
;
}
types/2d/display/FloatDisplay.d.ts
deleted
100644 → 0
View file @
29783410
import
{
DisplayObject
}
from
"./DisplayObject"
;
export
declare
class
FloatDisplay
extends
DisplayObject
{
htmlElement
:
any
;
private
_isAdded
;
private
_transformID
;
constructor
();
init
(
htmlElement
:
any
):
void
;
private
getStyle
;
updateStyle
():
void
;
destroy
():
void
;
}
types/2d/display/Sprite.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Point
,
Rectangle
}
from
'../math'
;
import
Texture
from
'../texture/Texture'
;
import
Container
from
'./Container'
;
import
CanvasRenderer
from
'../renderers/CanvasRenderer'
;
import
{
WebglRenderer
}
from
'../renderers/WebglRenderer'
;
export
default
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
;
}
types/2d/display/Stage.d.ts
deleted
100644 → 0
View file @
29783410
import
Container
from
"./Container"
;
import
SystemRenderer
from
"../renderers/SystemRenderer"
;
import
{
Rectangle
}
from
"../math"
;
import
{
DisplayObject
}
from
"./DisplayObject"
;
export
declare
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
;
}
types/2d/display/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
default
as
Container
}
from
'./Container'
;
export
{
DisplayObject
}
from
'./DisplayObject'
;
export
{
FloatDisplay
}
from
"./FloatDisplay"
;
export
{
default
as
Sprite
}
from
"./Sprite"
;
export
{
Stage
}
from
"./Stage"
;
types/2d/events/Event.d.ts
deleted
100644 → 0
View file @
29783410
import
{
HashObject
}
from
"../HashObject"
;
export
declare
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
;
}
types/2d/events/EventDispatcher.d.ts
deleted
100644 → 0
View file @
29783410
import
{
HashObject
}
from
"../HashObject"
;
export
declare
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
;
}
types/2d/events/GDispatcher.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
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
;
}
types/2d/events/MouseEvent.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Event
}
from
"./Event"
;
import
{
DisplayObject
}
from
"../display/DisplayObject"
;
export
declare
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
;
}
types/2d/events/index.d.ts
deleted
100644 → 0
View file @
29783410
export
*
from
'./Event'
;
export
*
from
'./EventDispatcher'
;
export
*
from
'./GDispatcher'
;
export
*
from
'./MouseEvent'
;
types/2d/graphics/Graphics.d.ts
deleted
100644 → 0
View file @
29783410
import
GraphicsData
from
'./GraphicsData'
;
import
{
Matrix
,
Point
}
from
'../math'
;
import
{
Polygon
}
from
"./shapes"
;
import
{
DisplayObject
}
from
'../display/DisplayObject'
;
import
Texture
from
'../texture/Texture'
;
import
CanvasRenderer
from
'../renderers/CanvasRenderer'
;
import
{
WebglRenderer
}
from
'../renderers/WebglRenderer'
;
import
FillStyle
from
'./styles/FillStyle'
;
import
LineStyle
from
'./styles/LineStyle'
;
import
Container
from
'../display/Container'
;
export
default
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
;
}
types/2d/graphics/GraphicsData.d.ts
deleted
100644 → 0
View file @
29783410
import
Circle
from
"./shapes/Circle"
;
import
{
Matrix
,
Rectangle
}
from
"../math"
;
import
Ellipse
from
"./shapes/Ellipse"
;
import
Polygon
from
"./shapes/Polygon"
;
import
RoundedRectangle
from
"./shapes/RoundedRectangle"
;
import
{
HashObject
}
from
"../HashObject"
;
import
LineStyle
from
"./styles/LineStyle"
;
import
FillStyle
from
"./styles/FillStyle"
;
export
default
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
;
}
types/2d/graphics/Shape.d.ts
deleted
100644 → 0
View file @
29783410
import
{
LINE_CAP
,
LINE_JOIN
}
from
"../const"
;
import
{
Point
}
from
"../math"
;
import
{
DisplayObject
}
from
"../display/DisplayObject"
;
import
Sprite
from
"../display/Sprite"
;
export
declare
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
;
}
types/2d/graphics/geomBuild/buildCircle.d.ts
deleted
100644 → 0
View file @
29783410
import
GraphicsData
from
"../GraphicsData"
;
import
Graphics
from
"../Graphics"
;
declare
const
_default
:
{
build
(
graphicsData
:
GraphicsData
):
void
;
triangulate
(
graphicsData
:
any
,
graphicsGeometry
:
Graphics
):
void
;
};
export
default
_default
;
types/2d/graphics/geomBuild/buildLine.d.ts
deleted
100644 → 0
View file @
29783410
import
GraphicsData
from
"../GraphicsData"
;
import
Graphics
from
"../Graphics"
;
export
default
function
(
graphicsData
:
GraphicsData
,
graphicsGeometry
:
Graphics
):
void
;
types/2d/graphics/geomBuild/buildPoly.d.ts
deleted
100644 → 0
View file @
29783410
import
Graphics
from
"../Graphics"
;
import
GraphicsData
from
"../GraphicsData"
;
declare
const
_default
:
{
build
(
graphicsData
:
GraphicsData
):
void
;
triangulate
(
graphicsData
:
GraphicsData
,
graphicsGeometry
:
Graphics
):
void
;
};
export
default
_default
;
types/2d/graphics/geomBuild/buildRectangle.d.ts
deleted
100644 → 0
View file @
29783410
import
GraphicsData
from
"../GraphicsData"
;
import
Graphics
from
"../Graphics"
;
declare
const
_default
:
{
build
(
graphicsData
:
GraphicsData
):
void
;
triangulate
(
graphicsData
:
GraphicsData
,
graphics
:
Graphics
):
void
;
};
export
default
_default
;
types/2d/graphics/geomBuild/buildRoundedRectangle.d.ts
deleted
100644 → 0
View file @
29783410
import
GraphicsData
from
"../GraphicsData"
;
import
Graphics
from
"../Graphics"
;
declare
const
_default
:
{
build
(
graphicsData
:
GraphicsData
):
void
;
triangulate
(
graphicsData
:
GraphicsData
,
graphicsGeometry
:
Graphics
):
void
;
};
export
default
_default
;
types/2d/graphics/geomBuild/earcut.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
earcut
(
data
:
any
,
holeIndices
:
any
,
dim
:
any
):
any
[];
types/2d/graphics/shapes/Circle.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Point
,
Rectangle
}
from
'../../math'
;
export
default
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
;
}
types/2d/graphics/shapes/Ellipse.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Point
,
Rectangle
}
from
'../../math'
;
export
default
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
;
}
types/2d/graphics/shapes/Polygon.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Point
}
from
'../../math/Point'
;
export
default
class
Polygon
{
closed
:
boolean
;
points
:
number
[];
type
:
number
;
constructor
(...
points
:
any
[]);
clone
():
Polygon
;
close
():
void
;
isPointIn
(
point
:
Point
):
boolean
;
}
types/2d/graphics/shapes/RoundedRectangle.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Point
}
from
'../../math'
;
export
default
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
;
}
types/2d/graphics/shapes/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
default
as
Circle
}
from
'./Circle'
;
export
{
default
as
Ellipse
}
from
'./Ellipse'
;
export
{
default
as
Polygon
}
from
'./Polygon'
;
export
{
default
as
RoundedRectangle
}
from
'./RoundedRectangle'
;
types/2d/graphics/styles/FillStyle.d.ts
deleted
100644 → 0
View file @
29783410
import
Texture
from
"../../texture/Texture"
;
import
{
Matrix
}
from
"../../math"
;
export
default
class
FillStyle
{
color
:
number
;
alpha
:
number
;
texture
:
Texture
;
matrix
:
Matrix
;
visible
:
boolean
;
alphaBlock
:
boolean
;
constructor
();
clone
():
FillStyle
;
reset
():
void
;
destroy
():
void
;
}
types/2d/graphics/styles/LineStyle.d.ts
deleted
100644 → 0
View file @
29783410
import
FillStyle
from
'./FillStyle'
;
import
{
LINE_ALIGNMENT
}
from
'../../const'
;
export
default
class
LineStyle
extends
FillStyle
{
native
:
boolean
;
width
:
number
;
alignment
:
LINE_ALIGNMENT
;
clone
():
LineStyle
;
reset
():
void
;
}
types/2d/graphics/utils/bezierCurveControlPoint.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
bezierCurveControlPoint
(
points
:
any
):
{
A
:
any
[];
B
:
any
[];
};
types/2d/graphics/utils/bezierCurveTo.d.ts
deleted
100644 → 0
View file @
29783410
export
default
function
bezierCurveTo
(
fromX
:
number
,
fromY
:
number
,
cpX
:
number
,
cpY
:
number
,
cpX2
:
number
,
cpY2
:
number
,
toX
:
number
,
toY
:
number
,
n
:
number
,
path
?:
number
[]):
number
[];
types/2d/graphics/utils/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
default
as
bezierCurveTo
}
from
'./bezierCurveTo'
;
export
{
bezierCurveControlPoint
}
from
"./bezierCurveControlPoint"
;
export
declare
const
GRAPHICS_CURVES
:
{
adaptive
:
boolean
;
maxLength
:
number
;
minSegments
:
number
;
maxSegments
:
number
;
segmentsCount
:
Function
;
};
export
declare
function
quadraticCurveLength
(
fromX
:
number
,
fromY
:
number
,
cpX
:
number
,
cpY
:
number
,
toX
:
number
,
toY
:
number
):
number
;
export
declare
function
bezierCurveLength
(
fromX
:
number
,
fromY
:
number
,
cpX
:
number
,
cpY
:
number
,
cpX2
:
number
,
cpY2
:
number
,
toX
:
number
,
toY
:
number
):
number
;
types/2d/loader/Loader.d.ts
deleted
100644 → 0
View file @
29783410
import
{
EventDispatcher
}
from
"../events/EventDispatcher"
;
import
{
Parser
}
from
"../svga/parser"
;
import
{
VideoEntity
}
from
"../svga/VideoEntity"
;
export
declare
class
Loader
extends
EventDispatcher
{
caches
:
{};
parser
:
Parser
;
_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
;
loadSvga
(
callback
:
(
suc
:
boolean
,
data
:
VideoEntity
)
=>
void
,
url
:
string
):
void
;
cache
(
name
:
string
,
data
:
any
):
void
;
}
export
declare
const
globalLoader
:
Loader
;
types/2d/math/GroupD8.d.ts
deleted
100644 → 0
View file @
29783410
declare
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
default
GroupD8
;
types/2d/math/Matrix.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Point
}
from
"././Point"
;
import
{
HashObject
}
from
"../HashObject"
;
export
declare
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
;
}
types/2d/math/ObservablePoint.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Point
}
from
"../math/Point"
;
import
{
HashObject
}
from
"../HashObject"
;
export
declare
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
;
}
types/2d/math/Point.d.ts
deleted
100644 → 0
View file @
29783410
import
{
HashObject
}
from
"../HashObject"
;
export
declare
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
;
}
types/2d/math/Rectangle.d.ts
deleted
100644 → 0
View file @
29783410
import
{
HashObject
}
from
"../HashObject"
;
import
{
Point
}
from
"./Point"
;
export
declare
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
;
}
types/2d/math/Transform.d.ts
deleted
100644 → 0
View file @
29783410
import
{
ObservablePoint
}
from
'./ObservablePoint'
;
import
{
Matrix
}
from
"./Matrix"
;
import
{
HashObject
}
from
'../HashObject'
;
export
default
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
;
}
types/2d/math/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
Matrix
}
from
'./Matrix'
;
export
{
Point
}
from
'./Point'
;
export
{
ObservablePoint
}
from
'./ObservablePoint'
;
export
{
Rectangle
}
from
'./Rectangle'
;
export
{
default
as
Transform
}
from
'./Transform'
;
export
{
default
as
GroupD8
}
from
'./GroupD8'
;
types/2d/renderers/CanvasRenderer.d.ts
deleted
100644 → 0
View file @
29783410
import
SystemRenderer
from
'./SystemRenderer'
;
import
CanvasMaskManager
from
'./managers/CanvasMaskManager'
;
import
{
RendererOptions
}
from
'./RendererOptions'
;
import
{
Matrix
}
from
'../math'
;
import
{
DisplayObject
}
from
'../display/DisplayObject'
;
import
CanvasSpriteRenderer
from
'./plugins/CanvasSpriteRenderer'
;
import
{
CanvasGraphicsRenderer
}
from
'./plugins/CanvasGraphicsRenderer'
;
export
default
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
;
}
types/2d/renderers/RendererOptions.d.ts
deleted
100644 → 0
View file @
29783410
export
interface
RendererOptions
{
htmlElement
?:
HTMLCanvasElement
;
transparent
?:
boolean
;
antialias
?:
boolean
;
preserveDrawingBuffer
?:
boolean
;
backgroundColor
?:
number
;
roundPixels
?:
boolean
;
}
types/2d/renderers/SystemRenderer.d.ts
deleted
100644 → 0
View file @
29783410
import
Container
from
'../display/Container'
;
import
{
EventDispatcher
}
from
'../events/EventDispatcher'
;
import
{
DisplayObject
}
from
"../display/DisplayObject"
;
import
{
RendererOptions
}
from
"./RendererOptions"
;
export
default
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
;
}
types/2d/renderers/WebglRenderer.d.ts
deleted
100644 → 0
View file @
29783410
import
SystemRenderer
from
"./SystemRenderer"
;
import
{
RendererOptions
}
from
"./RendererOptions"
;
import
{
GLShader
,
VertexArrayObject
}
from
"../../glCore"
;
import
RenderTarget
from
"./renderTarget/RenderTarget"
;
import
TextureManager
from
"./managers/TextureManager"
;
import
TextureGarbageCollector
from
"./managers/TextureGarbageCollector"
;
import
{
Matrix
}
from
"../math"
;
import
WebGLState
from
"./webgl/WebGLState"
;
import
BatchManager
from
"./managers/BatchManager"
;
import
MaskManager
from
"./managers/MaskManager"
;
import
StencilManager
from
"./managers/StencilManager"
;
import
{
DisplayObject
}
from
"../display/DisplayObject"
;
export
declare
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
;
}
types/2d/renderers/managers/BatchManager.d.ts
deleted
100644 → 0
View file @
29783410
import
ObjectRenderer
from
'../webgl/ObjectRenderer'
;
import
{
WebglRenderer
}
from
'../WebglRenderer'
;
export
default
class
BatchManager
{
renderer
:
WebglRenderer
;
emptyRenderer
:
ObjectRenderer
;
currentRenderer
:
ObjectRenderer
;
constructor
(
renderer
:
WebglRenderer
);
setObjectRenderer
(
objectRenderer
:
ObjectRenderer
):
void
;
flush
():
void
;
reset
():
void
;
}
types/2d/renderers/managers/CanvasMaskManager.d.ts
deleted
100644 → 0
View file @
29783410
import
{
HashObject
}
from
'../../HashObject'
;
import
CanvasRenderer
from
'../CanvasRenderer'
;
import
Graphics
from
'../../graphics/Graphics'
;
export
default
class
CanvasMaskManager
extends
HashObject
{
renderer
:
any
;
constructor
(
renderer
:
CanvasRenderer
);
pushMask
(
maskData
:
Graphics
):
void
;
renderGraphicsShape
(
graphics
:
Graphics
):
void
;
popMask
(
renderer
:
CanvasRenderer
):
void
;
destroy
():
void
;
}
types/2d/renderers/managers/MaskManager.d.ts
deleted
100644 → 0
View file @
29783410
import
Graphics
from
'../../graphics/Graphics'
;
import
{
WebglRenderer
}
from
'../WebglRenderer'
;
import
RenderTarget
from
'../renderTarget/RenderTarget'
;
export
default
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
;
}
types/2d/renderers/managers/StencilManager.d.ts
deleted
100644 → 0
View file @
29783410
import
{
WebglRenderer
}
from
'../WebglRenderer'
;
import
Graphics
from
'../../graphics/Graphics'
;
export
default
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
;
}
types/2d/renderers/managers/TextureGarbageCollector.d.ts
deleted
100644 → 0
View file @
29783410
import
{
WebglRenderer
}
from
'../WebglRenderer'
;
export
default
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
;
}
types/2d/renderers/managers/TextureManager.d.ts
deleted
100644 → 0
View file @
29783410
import
{
GLTexture
}
from
'../../../glCore'
;
import
{
WebglRenderer
}
from
'../WebglRenderer'
;
export
default
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
;
}
types/2d/renderers/plugins/BatchRenderer.d.ts
deleted
100644 → 0
View file @
29783410
import
BatchDrawCall
from
'../webgl/BatchDrawCall'
;
import
ObjectRenderer
from
'../webgl/ObjectRenderer'
;
import
{
WebglRenderer
}
from
'../WebglRenderer'
;
import
{
GLBuffer
,
GLShader
,
VertexArrayObject
}
from
'../../../glCore'
;
export
default
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
;
}
types/2d/renderers/plugins/CanvasGraphicsRenderer.d.ts
deleted
100644 → 0
View file @
29783410
import
CanvasRenderer
from
'../CanvasRenderer'
;
import
Graphics
from
'../../graphics/Graphics'
;
import
GraphicsData
from
'../../graphics/GraphicsData'
;
export
declare
class
CanvasGraphicsRenderer
{
renderer
:
CanvasRenderer
;
constructor
(
renderer
:
CanvasRenderer
);
render
(
graphics
:
Graphics
):
void
;
destroy
():
void
;
}
export
declare
function
holePath
(
graphicsData
:
GraphicsData
,
context
:
CanvasRenderingContext2D
,
ccw
?:
boolean
):
void
;
export
declare
function
judgeCcw
(
points
:
number
[]):
boolean
;
types/2d/renderers/plugins/CanvasSpriteRenderer.d.ts
deleted
100644 → 0
View file @
29783410
import
CanvasRenderer
from
'../CanvasRenderer'
;
export
default
class
CanvasSpriteRenderer
{
renderer
:
CanvasRenderer
;
constructor
(
renderer
:
CanvasRenderer
);
render
(
sprite
:
any
):
void
;
destroy
():
void
;
}
types/2d/renderers/renderTarget/CanvasRenderTarget.d.ts
deleted
100644 → 0
View file @
29783410
export
default
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
;
}
types/2d/renderers/renderTarget/RenderTarget.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Matrix
,
Rectangle
}
from
'../../math'
;
import
{
GLBuffer
,
GLFramebuffer
,
GLTexture
}
from
'../../../glCore'
;
import
Graphics
from
'../../graphics/Graphics'
;
export
default
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
;
}
types/2d/renderers/webgl/BatchBuffer.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
class
BatchBuffer
{
vertices
:
ArrayBuffer
;
float32View
:
Float32Array
;
uint32View
:
Uint32Array
;
positions
:
any
;
uvs
:
any
;
colors
:
any
;
constructor
(
size
:
number
);
destroy
():
void
;
}
types/2d/renderers/webgl/BatchDrawCall.d.ts
deleted
100644 → 0
View file @
29783410
import
BaseTexture
from
"../../texture/BaseTexture"
;
export
default
class
BatchDrawCall
{
textures
:
BaseTexture
[];
textureCount
:
number
;
start
:
number
;
size
:
number
;
type
:
number
;
constructor
();
}
types/2d/renderers/webgl/ObjectRenderer.d.ts
deleted
100644 → 0
View file @
29783410
import
{
DisplayObject
}
from
"../../display/DisplayObject"
;
import
{
WebglRenderer
}
from
"../WebglRenderer"
;
export
default
class
ObjectRenderer
{
renderer
:
WebglRenderer
;
constructor
(
renderer
:
WebglRenderer
);
onContextChange
():
void
;
start
():
void
;
stop
():
void
;
flush
():
void
;
render
(
object
:
DisplayObject
):
void
;
destroy
():
void
;
}
types/2d/renderers/webgl/WebGLState.d.ts
deleted
100644 → 0
View file @
29783410
export
default
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
;
}
types/2d/renderers/webgl/createIndicesForQuads.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
createIndicesForQuads
(
size
:
number
):
Uint16Array
;
types/2d/renderers/webgl/generateMultiTextureShader.d.ts
deleted
100644 → 0
View file @
29783410
import
{
GLShader
}
from
'../../../glCore'
;
export
declare
function
generateMultiTextureShader
(
gl
:
any
,
maxTextures
:
any
):
GLShader
;
types/2d/svga/MovieClip.d.ts
deleted
100644 → 0
View file @
29783410
import
Container
from
"../display/Container"
;
import
{
VideoEntity
}
from
"./VideoEntity"
;
export
declare
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
;
}
types/2d/svga/VideoEntity.d.ts
deleted
100644 → 0
View file @
29783410
import
{
SpriteEntity
}
from
'./spriteEntity'
;
import
{
HashObject
}
from
'../HashObject'
;
export
declare
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
;
}
types/2d/svga/bezierPath.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
class
BezierPath
{
_d
:
any
;
_transform
:
any
;
_styles
:
any
;
_shape
:
any
;
constructor
(
d
?:
any
,
transform
?:
any
,
styles
?:
any
);
}
types/2d/svga/ellipsePath.d.ts
deleted
100644 → 0
View file @
29783410
import
{
BezierPath
}
from
'./bezierPath'
;
export
declare
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
);
}
types/2d/svga/frameEntity.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
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
;
}
types/2d/svga/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
VideoEntity
}
from
"./VideoEntity"
;
export
{
MovieClip
}
from
"./MovieClip"
;
types/2d/svga/mockWorker.d.ts
deleted
100644 → 0
View file @
29783410
declare
const
_default
:
(
data
:
any
,
cb
:
any
,
failure
:
any
)
=>
void
;
export
default
_default
;
types/2d/svga/pako/inflate.d.ts
deleted
100644 → 0
View file @
29783410
declare
function
inflate
(
input
:
any
,
options
:
any
):
any
;
declare
const
_default
:
{
inflate
:
typeof
inflate
;
};
export
default
_default
;
types/2d/svga/pako/utils/common.d.ts
deleted
100644 → 0
View file @
29783410
declare
function
assign
(
obj
:
any
,
objO
:
any
):
any
;
declare
function
shrinkBuf
(
buf
:
any
,
size
:
any
):
any
;
export
declare
const
utils
:
{
assign
:
typeof
assign
;
shrinkBuf
:
typeof
shrinkBuf
;
Buf8
:
any
;
Buf16
:
any
;
Buf32
:
any
;
arraySet
:
any
;
flattenChunks
:
any
;
};
export
{};
types/2d/svga/pako/utils/strings.d.ts
deleted
100644 → 0
View file @
29783410
declare
function
string2buf
(
str
:
any
):
any
;
declare
function
buf2binstring
(
buf
:
any
,
len
?:
any
):
any
;
declare
function
binstring2buf
(
str
:
any
):
any
;
declare
function
buf2string
(
buf
:
any
,
max
:
any
):
any
;
declare
function
utf8border
(
buf
:
any
,
max
:
any
):
any
;
export
declare
const
strings
:
{
utf8border
:
typeof
utf8border
;
buf2string
:
typeof
buf2string
;
binstring2buf
:
typeof
binstring2buf
;
buf2binstring
:
typeof
buf2binstring
;
string2buf
:
typeof
string2buf
;
};
export
{};
types/2d/svga/pako/zlib/adler32.d.ts
deleted
100644 → 0
View file @
29783410
declare
function
adler32
(
adler
:
any
,
buf
:
any
,
len
:
any
,
pos
:
any
):
number
;
export
default
adler32
;
types/2d/svga/pako/zlib/constants.d.ts
deleted
100644 → 0
View file @
29783410
declare
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
default
_default
;
types/2d/svga/pako/zlib/crc32.d.ts
deleted
100644 → 0
View file @
29783410
declare
function
crc32
(
crc
:
any
,
buf
:
any
,
len
:
any
,
pos
:
any
):
number
;
export
default
crc32
;
types/2d/svga/pako/zlib/deflate.d.ts
deleted
100644 → 0
View file @
29783410
declare
function
deflateResetKeep
(
strm
:
any
):
any
;
declare
function
deflateReset
(
strm
:
any
):
any
;
declare
function
deflateSetHeader
(
strm
:
any
,
head
:
any
):
number
;
declare
function
deflateInit2
(
strm
:
any
,
level
:
any
,
method
:
any
,
windowBits
:
any
,
memLevel
:
any
,
strategy
:
any
):
any
;
declare
function
deflateInit
(
strm
:
any
,
level
:
any
):
any
;
declare
function
deflate
(
strm
:
any
,
flush
:
any
):
any
;
declare
function
deflateEnd
(
strm
:
any
):
any
;
declare
function
deflateSetDictionary
(
strm
:
any
,
dictionary
:
any
):
number
;
declare
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
default
_default
;
types/2d/svga/pako/zlib/gzheader.d.ts
deleted
100644 → 0
View file @
29783410
declare
function
GZheader
():
void
;
export
default
GZheader
;
types/2d/svga/pako/zlib/inffast.d.ts
deleted
100644 → 0
View file @
29783410
export
default
function
inflate_fast
(
strm
:
any
,
start
:
any
):
void
;
types/2d/svga/pako/zlib/inflate.d.ts
deleted
100644 → 0
View file @
29783410
declare
function
inflateResetKeep
(
strm
:
any
):
number
;
declare
function
inflateReset
(
strm
:
any
):
number
;
declare
function
inflateReset2
(
strm
:
any
,
windowBits
:
any
):
number
;
declare
function
inflateInit2
(
strm
:
any
,
windowBits
:
any
):
any
;
declare
function
inflateInit
(
strm
:
any
):
any
;
declare
function
inflate
(
strm
:
any
,
flush
:
any
):
any
;
declare
function
inflateEnd
(
strm
:
any
):
number
;
declare
function
inflateGetHeader
(
strm
:
any
,
head
:
any
):
number
;
declare
function
inflateSetDictionary
(
strm
:
any
,
dictionary
:
any
):
number
;
declare
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
default
_default
;
types/2d/svga/pako/zlib/inftrees.d.ts
deleted
100644 → 0
View file @
29783410
export
default
function
inflate_table
(
type
:
any
,
lens
:
any
,
lens_index
:
any
,
codes
:
any
,
table
:
any
,
table_index
:
any
,
work
:
any
,
opts
:
any
):
1
|
0
|
-
1
;
types/2d/svga/pako/zlib/messages.d.ts
deleted
100644 → 0
View file @
29783410
declare
const
_default
:
{
2
:
string
;
1
:
string
;
0
:
string
;
'-1'
:
string
;
'-2'
:
string
;
'-3'
:
string
;
'-4'
:
string
;
'-5'
:
string
;
'-6'
:
string
;
};
export
default
_default
;
types/2d/svga/pako/zlib/trees.d.ts
deleted
100644 → 0
View file @
29783410
declare
function
_tr_init
(
s
:
any
):
void
;
declare
function
_tr_stored_block
(
s
:
any
,
buf
:
any
,
stored_len
:
any
,
last
:
any
):
void
;
declare
function
_tr_align
(
s
:
any
):
void
;
declare
function
_tr_flush_block
(
s
:
any
,
buf
:
any
,
stored_len
:
any
,
last
:
any
):
void
;
declare
function
_tr_tally
(
s
:
any
,
dist
:
any
,
lc
:
any
):
boolean
;
declare
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
default
_default
;
types/2d/svga/pako/zlib/zstream.d.ts
deleted
100644 → 0
View file @
29783410
declare
function
ZStream
():
void
;
export
default
ZStream
;
types/2d/svga/parser.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
class
Parser
{
load
(
url
:
any
,
success
:
any
,
failure
:
any
):
void
;
loadViaWorker
(
url
:
any
,
success
:
any
,
failure
:
any
):
void
;
}
types/2d/svga/proto.d.ts
deleted
100644 → 0
View file @
29783410
import
*
as
protobuf
from
"protobufjs/light"
;
export
declare
const
proto
:
protobuf
.
Root
;
export
declare
const
ProtoMovieEntity
:
protobuf
.
Type
;
types/2d/svga/rectPath.d.ts
deleted
100644 → 0
View file @
29783410
import
{
BezierPath
}
from
'./bezierPath'
;
export
declare
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
);
}
types/2d/svga/spriteEntity.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
class
SpriteEntity
{
matteKey
:
any
;
imageKey
:
any
;
frames
:
any
[];
constructor
(
spec
:
any
);
}
types/2d/text/EditableText.d.ts
deleted
100644 → 0
View file @
29783410
import
{
TextField
}
from
"./TextField"
;
export
declare
class
EditableText
extends
TextField
{
htmlElement
:
any
;
private
_prompt
;
prompt
:
string
;
private
_promptColor
;
promptColor
:
string
;
private
_textColor
;
textColor
:
string
;
constructor
();
}
types/2d/text/InputText.d.ts
deleted
100644 → 0
View file @
29783410
import
{
FloatDisplay
}
from
"../display/FloatDisplay"
;
import
{
TextField
}
from
"./TextField"
;
export
declare
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
;
}
types/2d/text/TextField.d.ts
deleted
100644 → 0
View file @
29783410
import
{
TEXT_ALIGN
,
TEXT_lINETYPE
,
VERTICAL_ALIGN
}
from
"../const"
;
import
Sprite
from
"../display/Sprite"
;
export
declare
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
;
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
;
}
types/2d/text/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
TextField
}
from
"./TextField"
;
export
{
InputText
}
from
"./InputText"
;
export
{
EditableText
}
from
"./EditableText"
;
types/2d/texture/BaseRenderTexture.d.ts
deleted
100644 → 0
View file @
29783410
import
BaseTexture
from
'./BaseTexture'
;
export
default
class
BaseRenderTexture
extends
BaseTexture
{
_glRenderTargets
:
{};
_canvasRenderTarget
:
any
;
valid
:
boolean
;
constructor
(
width
?:
number
,
height
?:
number
,
scaleMode
?:
number
);
resize
(
width
:
number
,
height
:
number
):
void
;
destroy
():
void
;
}
types/2d/texture/BaseTexture.d.ts
deleted
100644 → 0
View file @
29783410
import
{
EventDispatcher
}
from
'../events/EventDispatcher'
;
export
default
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
;
}
types/2d/texture/RenderTexture.d.ts
deleted
100644 → 0
View file @
29783410
import
BaseRenderTexture
from
'./BaseRenderTexture'
;
import
Texture
from
'./Texture'
;
import
{
Rectangle
}
from
'../math'
;
export
default
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
;
}
types/2d/texture/Texture.d.ts
deleted
100644 → 0
View file @
29783410
import
BaseTexture
from
'./BaseTexture'
;
import
TextureUvs
from
'./TextureUvs'
;
import
{
EventDispatcher
}
from
'../events/EventDispatcher'
;
import
{
Event
}
from
"../events/Event"
;
import
{
Point
,
Rectangle
}
from
'../math'
;
export
default
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
;
}
types/2d/texture/TextureSheet.d.ts
deleted
100644 → 0
View file @
29783410
import
BaseTexture
from
'./BaseTexture'
;
export
default
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
;
}
types/2d/texture/TextureUvs.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Rectangle
}
from
"../math"
;
import
BaseTexture
from
"./BaseTexture"
;
export
default
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
;
}
types/2d/texture/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
default
as
Texture
}
from
"./Texture"
;
export
{
default
as
BaseTexture
}
from
"./BaseTexture"
;
export
{
default
as
TextureSheet
}
from
"./TextureSheet"
;
export
declare
function
getTexture
(
str
:
string
):
any
;
types/2d/ui/BitmapNumber.d.ts
deleted
100644 → 0
View file @
29783410
import
Texture
from
"../texture/Texture"
;
import
Sprite
from
"../display/Sprite"
;
export
declare
class
BitmapNumber
extends
Sprite
{
resName
:
string
;
private
textures
;
private
_num
;
num
:
number
;
constructor
(
textures
:
Texture
[]);
reset
(
textures
:
Texture
[]):
void
;
}
types/2d/ui/BitmapNumbers.d.ts
deleted
100644 → 0
View file @
29783410
import
Container
from
"../display/Container"
;
import
{
TEXT_ALIGN
}
from
"../const"
;
import
Texture
from
"../texture/Texture"
;
export
declare
class
BitmapNumbers
extends
Container
{
textures
:
Texture
[];
align
:
TEXT_ALIGN
;
singleWidth
:
number
;
private
_num
;
num
:
number
;
constructor
(
textures
:
Texture
[]);
adaptate
():
void
;
}
types/2d/ui/Button.d.ts
deleted
100644 → 0
View file @
29783410
import
Sprite
from
"../display/Sprite"
;
import
Texture
from
"../texture/Texture"
;
export
declare
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
;
}
types/2d/ui/FrameAni.d.ts
deleted
100644 → 0
View file @
29783410
import
Texture
from
"../texture/Texture"
;
import
Sprite
from
"../display/Sprite"
;
export
declare
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
;
}
types/2d/ui/ScrollList.d.ts
deleted
100644 → 0
View file @
29783410
import
{
ScrollPage
}
from
"./ScrollPage"
;
import
{
DisplayObject
}
from
"../display/DisplayObject"
;
export
interface
IScrollListItem
extends
DisplayObject
{
initData
(
id
:
number
,
data
:
any
):
void
;
id
:
number
;
data
:
number
;
}
export
declare
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
;
}
types/2d/ui/ScrollPage.d.ts
deleted
100644 → 0
View file @
29783410
import
Container
from
"../display/Container"
;
export
declare
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
;
}
types/2d/ui/ShowWord.d.ts
deleted
100644 → 0
View file @
29783410
import
{
TextField
}
from
"../text/TextField"
;
export
declare
class
ShowWord
extends
TextField
{
playWords
(
text
:
string
,
deltaTime
?:
number
,
callback
?:
Function
):
void
;
}
types/2d/ui/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
ScrollList
}
from
"./ScrollList"
;
export
{
ScrollPage
}
from
"./ScrollPage"
;
export
{
Button
}
from
"./Button"
;
types/2d/utils/DrawAllToCanvas.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
DrawAllToCanvas
(
images
:
any
,
callback
:
any
):
void
;
types/2d/utils/determineCrossOrigin.d.ts
deleted
100644 → 0
View file @
29783410
export
default
function
determineCrossOrigin
(
url
:
string
,
loc
?:
any
):
string
;
types/2d/utils/index.d.ts
deleted
100644 → 0
View file @
29783410
import
{
RENDERER_TYPE
}
from
"../const"
;
export
*
from
'./twiddle'
;
export
{
default
as
toDisplayDataURL
}
from
"./toDisplayDataURL"
;
export
{
default
as
determineCrossOrigin
}
from
'./determineCrossOrigin'
;
export
declare
function
uid
():
number
;
export
declare
const
backupCanvas
:
HTMLCanvasElement
;
export
declare
function
getGradientColor
(
points
:
any
,
colors
:
any
):
any
;
export
declare
function
getCanvasBitmapStyle
(
image
:
any
):
any
;
export
declare
function
hex2rgb
(
hex
:
number
,
out
?:
number
[]
|
Float32Array
):
number
[]
|
Float32Array
;
export
declare
function
hex2string
(
hex
:
any
):
string
;
export
declare
function
string2hex
(
string
:
string
):
number
;
export
declare
function
rgb2hex
(
rgb
:
number
[]):
number
;
export
declare
function
getRGBA
(
color
:
string
,
alpha
:
number
):
string
;
export
declare
function
inputFeildIosEnable
():
void
;
export
declare
function
decomposeDataUri
(
dataUri
:
any
):
{
mediaType
:
any
;
subType
:
any
;
charset
:
any
;
encoding
:
any
;
data
:
any
;
};
export
declare
function
getUrlFileExtension
(
url
:
any
):
any
;
export
declare
function
sign
(
n
:
number
):
number
;
export
declare
function
premultiplyTint
(
tint
:
number
,
alpha
:
number
):
number
;
export
declare
const
TextureCache
:
any
;
export
declare
const
BaseTextureCache
:
any
;
export
declare
const
TextureSheetCache
:
any
;
export
declare
function
destroyTextureCache
():
void
;
export
declare
function
clearTextureCache
():
void
;
export
declare
const
GlobalPro
:
{
stageRenderType
:
RENDERER_TYPE
;
dpi
:
number
;
padding
:
number
;
startTime
:
number
;
};
export
declare
function
isWebGLSupported
():
boolean
;
export
declare
function
removeItems
(
arr
:
Array
<
any
>
,
startIdx
:
number
,
removeCount
:
number
):
void
;
export
declare
function
mapWebGLBlendModesToPixi
(
gl
:
any
,
array
?:
any
[]):
any
[];
types/2d/utils/toDisplayDataURL.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Rectangle
}
from
"../math"
;
import
{
DisplayObject
}
from
"../display/DisplayObject"
;
export
default
function
toDisplayDataURL
(
obj
:
DisplayObject
,
rect
?:
Rectangle
,
typeInfo
?:
any
,
bgColor
?:
number
):
string
;
types/2d/utils/twiddle.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
const
INT_BITS1
=
32
;
export
declare
const
INT_MAX
=
2147483647
;
export
declare
const
INT_MIN
:
number
;
export
declare
function
abs
(
v
:
any
):
number
;
export
declare
function
min
(
x
:
any
,
y
:
any
):
number
;
export
declare
function
max
(
x
:
any
,
y
:
any
):
number
;
export
declare
function
isPow2
(
v
:
any
):
boolean
;
export
declare
function
log2
(
v
:
any
):
number
;
export
declare
function
log10
(
v
:
any
):
2
|
1
|
0
|
4
|
3
|
9
|
5
|
6
|
7
|
8
;
export
declare
function
popCount
(
v
:
any
):
number
;
export
declare
function
countTrailingZeros
(
v
:
any
):
number
;
export
declare
function
nextPow2
(
v
:
any
):
any
;
export
declare
function
prevPow2
(
v
:
any
):
number
;
export
declare
function
parity
(
v
:
any
):
number
;
export
declare
function
reverse
(
v
:
any
):
number
;
export
declare
function
interleave2
(
x
:
any
,
y
:
any
):
number
;
export
declare
function
deinterleave2
(
v
:
any
,
n
:
any
):
number
;
export
declare
function
interleave3
(
x
:
any
,
y
:
any
,
z
:
any
):
number
;
export
declare
function
deinterleave3
(
v
:
any
,
n
:
any
):
number
;
export
declare
function
nextCombination
(
v
:
any
):
number
;
types/glCore/GLBuffer.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
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
;
}
types/glCore/GLFramebuffer.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
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
;
}
types/glCore/GLShader.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
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
;
}
types/glCore/GLTexture.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
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
;
}
types/glCore/VertexArrayObject.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
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
;
}
types/glCore/checkMaxIfStatementsInShader.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
checkMaxIfStatementsInShader
(
maxIfs
:
number
,
gl
:
WebGLRenderingContext
):
number
;
types/glCore/createContext.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
createContext
(
canvas
:
HTMLCanvasElement
,
options
?:
any
):
WebGLRenderingContext
;
types/glCore/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
GLTexture
}
from
'./GLTexture'
;
export
{
GLBuffer
}
from
'./GLBuffer'
;
export
{
VertexArrayObject
}
from
'./VertexArrayObject'
;
export
{
GLFramebuffer
}
from
"./GLFramebuffer"
;
export
{
GLShader
}
from
"./GLShader"
;
export
{
createContext
}
from
"./createContext"
;
export
{
checkMaxIfStatementsInShader
}
from
"./checkMaxIfStatementsInShader"
;
types/glCore/setVertexAttribArrays.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
setVertexAttribArrays
(
gl
:
any
,
attribs
:
any
,
state
?:
any
):
void
;
types/glCore/shader/compileProgram.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
compileProgram
(
gl
:
WebGLRenderingContext
,
vertexSrc
:
string
,
fragmentSrc
:
string
,
attributeLocations
?:
any
):
WebGLProgram
;
types/glCore/shader/defaultValue.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
defaultValue
(
type
:
string
,
size
:
number
):
false
|
any
[]
|
0
|
Float32Array
;
types/glCore/shader/extractAttributes.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
extractAttributes
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
types/glCore/shader/extractUniforms.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
extractUniforms
(
gl
:
WebGLRenderingContext
,
program
:
WebGLProgram
):
{};
types/glCore/shader/generateUniformAccessObject.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
generateUniformAccessObject
(
gl
:
WebGLRenderingContext
,
uniformData
:
any
):
{
data
:
{};
};
types/glCore/shader/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
compileProgram
}
from
'./compileProgram'
;
export
{
defaultValue
}
from
'./defaultValue'
;
export
{
extractAttributes
}
from
'./extractAttributes'
;
export
{
extractUniforms
}
from
'./extractUniforms'
;
export
{
generateUniformAccessObject
}
from
'./generateUniformAccessObject'
;
export
{
setPrecision
}
from
'./setPrecision'
;
export
{
mapSize
}
from
'./mapSize'
;
export
{
mapType
}
from
'./mapType'
;
types/glCore/shader/mapSize.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
mapSize
(
type
:
string
):
number
;
types/glCore/shader/mapType.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
mapType
(
gl
:
any
,
type
:
any
):
any
;
types/glCore/shader/setPrecision.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
setPrecision
(
src
:
string
,
precision
:
string
):
string
;
types/index.d.ts
deleted
100644 → 0
View file @
29783410
export
{
Component
}
from
"./2d/component/Component"
;
export
*
from
"./2d/display"
;
export
*
from
"./2d/events"
;
export
{
default
as
Graphics
}
from
"./2d/graphics/Graphics"
;
export
{
Shape
}
from
"./2d/graphics/Shape"
;
export
{
Loader
}
from
"./2d/loader/Loader"
;
export
{
Matrix
}
from
"./2d/math/Matrix"
;
export
{
Point
}
from
"./2d/math/Point"
;
export
{
Rectangle
}
from
"./2d/math/Rectangle"
;
export
*
from
"./2d/svga"
;
export
*
from
"./2d/text"
;
export
*
from
"./2d/texture"
;
export
*
from
"./2d/ui"
;
export
{
default
as
toDisplayDataURL
}
from
"./2d/utils/toDisplayDataURL"
;
export
{
inputFeildIosEnable
}
from
"./2d/utils/index"
;
export
*
from
'./2d/const'
;
export
*
from
'./zeroing'
;
types/zeroing/GameStage.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Container
,
Stage
}
from
"../2d/display"
;
import
{
StackContainer
}
from
"./StackContainer"
;
export
declare
class
GameStage
extends
Container
{
private
_sceneContainer
;
private
_popupContainer
;
private
_stage
;
constructor
(
stage
:
Stage
);
readonly
sceneContainer
:
StackContainer
;
readonly
popupContainer
:
StackContainer
;
}
types/zeroing/RES.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
loadTexture
(
url
:
string
):
void
;
export
declare
function
getRes
():
void
;
types/zeroing/StackContainer.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Container
,
DisplayObject
}
from
"../2d/display"
;
export
declare
class
StackContainer
extends
Container
{
constructor
();
push
(
view
:
DisplayObject
):
void
;
replace
(
view
:
DisplayObject
):
void
;
pop
():
boolean
;
popAll
(
view
:
DisplayObject
):
void
;
}
types/zeroing/auto-adjust.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
class
AdjustData
{
percentWidth
:
number
;
percentHeight
:
number
;
left
:
number
;
top
:
number
;
right
:
number
;
bottom
:
number
;
horizonCenter
:
number
;
verticalCenter
:
number
;
}
export
declare
function
applyAutoAdjust
(
ctor
:
Function
):
void
;
types/zeroing/decorators.d.ts
deleted
100644 → 0
View file @
29783410
export
declare
function
fieldChanged
(
onModify
:
any
):
(
target
:
any
,
key
:
string
)
=>
void
;
export
declare
const
dirtyFieldDetector
:
(
target
:
any
,
key
:
string
)
=>
void
;
export
declare
const
deepDirtyFieldDetector
:
(
target
:
any
,
key
:
string
)
=>
void
;
export
declare
const
dirtyFieldTrigger
:
(
target
:
any
,
key
:
string
)
=>
void
;
export
declare
const
deepDirtyFieldTrigger
:
(
target
:
any
,
key
:
string
)
=>
void
;
types/zeroing/index.d.ts
deleted
100644 → 0
View file @
29783410
export
*
from
'./GameStage'
;
export
*
from
'./StackContainer'
;
export
*
from
'./nodes'
;
export
*
from
'./assets-manager'
;
export
*
from
'./auto-adjust'
;
export
*
from
'./script-manager'
;
types/zeroing/shapes.d.ts
deleted
100644 → 0
View file @
29783410
import
{
Shape
}
from
".."
;
declare
class
ShapeBase
extends
Shape
{
protected
__fieldDirty
:
boolean
;
fillColor
:
any
;
strokeColor
:
any
;
strokeWidth
:
number
;
constructor
();
private
onResize
;
private
onEnterFrame
;
protected
redraw
():
void
;
}
export
declare
class
Rect
extends
ShapeBase
{
borderRadius
:
number
;
protected
redraw
():
void
;
}
export
declare
class
Circle
extends
ShapeBase
{
radius
:
number
;
protected
redraw
():
void
;
}
export
{};
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