Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-libs
Commits
92e888cf
Commit
92e888cf
authored
Dec 30, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
d6adfb44
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
264 additions
and
444 deletions
+264
-444
shoot-planet.json
dist/customs/shoot-planet.json
+1
-1
api-request.json
dist/processes/projectX/api-request.json
+1
-1
buried-point.json
dist/scripts/buried-point.json
+1
-1
ShootPlanet.d.ts
libs/ShootPlanet.d.ts
+0
-17
process-context.d.ts
libs/process-context.d.ts
+21
-0
types.d.ts
libs/types.d.ts
+235
-421
meta.json
src/process/projectX/api-request/meta.json
+1
-1
index.ts
src/script/buried-point/index.ts
+1
-1
zeroing-libs.iml
zeroing-libs.iml
+3
-1
No files found.
dist/customs/shoot-planet.json
View file @
92e888cf
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/processes/projectX/api-request.json
View file @
92e888cf
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
"metas"
:
[
"metas"
:
[
{
{
"id"
:
"a4b27753-4cbb-47e3-9b31-51ced475e41a"
,
"id"
:
"a4b27753-4cbb-47e3-9b31-51ced475e41a"
,
"script"
:
"var uri = engine.findVariable('uri', args, props);
\n
var url;
\n
if(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){
\n\t
var projectX = 'projectx';
\n\t
var projectID = engine.env.projectID;
\n
url = engine.joinPath(projectX, projectID, uri);
\n
}else{
\n
url = uri;
\n
}
\n
next('success', {url:url}
);"
,
"script"
:
"var uri = engine.findVariable('uri', args, props);
\n
var url;
\n
if(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){
\n\t
var projectX = 'projectx';
\n\t
var projectID = engine.env.projectID;
\n
url = engine.joinPath(projectX, projectID, uri);
\n
}else{
\n
url = uri;
\n
}
\n
var payload = args || {};
\n
payload.url = url;
\n
next('success', payload
);"
,
"props"
:
{
"props"
:
{
"uri"
:
{
"uri"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
...
...
dist/scripts/buried-point.json
View file @
92e888cf
...
@@ -28,5 +28,5 @@
...
@@ -28,5 +28,5 @@
}
}
},
},
"id"
:
"buried-point"
,
"id"
:
"buried-point"
,
"code"
:
"
\"
use strict
\"
;
\n
Object.defineProperty(exports,
\"
__esModule
\"
, { value: true });
\n
var BuriedPoint = (function (_super) {
\n
__extends(BuriedPoint, _super);
\n
function BuriedPoint() {
\n
var _this = _super !== null && _super.apply(this, arguments) || this;
\n
_this.dpm = '0.0.0.0';
\n
_this.dcm = '0.0.0.0';
\n
_this.dom = '0.0.0.0';
\n
_this.autoExposure = true;
\n
_this.autoClick = true;
\n
return _this;
\n
}
\n
BuriedPoint.prototype.onModify = function (value, key, oldValue) {
\n
switch (key) {
\n
case 'dpm':
\n
case 'dcm':
\n
case 'dom':
\n
this['__' + key] = fill(value);
\n
break;
\n
}
\n
};
\n
BuriedPoint.prototype.mounted = function () {
\n
this.host.addEventListener(engine.MouseEvent.CLICK, this._onClick, this);
\n
};
\n
BuriedPoint.prototype.awake = function () {
\n
if (this.autoExposure) {
\n
this.logExposure();
\n
}
\n
};
\n
BuriedPoint.prototype._onClick = function (e) {
\n
if (this.autoClick) {
\n
this.logClick();
\n
}
\n
};
\n
BuriedPoint.prototype.logExposure = function () {
\n
this.log('exposure');
\n
};
\n
BuriedPoint.prototype.logClick = function () {
\n
this.log('click');
\n
};
\n
BuriedPoint.prototype.log = function (type) {
\n
log(type, {
\n
dpm: this['__dpm'],
\n
dcm: this['__dcm'],
\n
dom: this['__dom'],
\n
});
\n
};
\n
BuriedPoint.id = 'buried-point';
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dpm
\"
, void 0);
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dcm
\"
, void 0);
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dom
\"
, void 0);
\n
return BuriedPoint;
\n
}(engine.ScriptBase));
\n
exports.default = BuriedPoint;
\n
function fill(src) {
\n
var result = src;
\n
for (var key in engine.env) {
\n
result = result.replace(key, engine.env[key]);
\n
}
\n
return result;
\n
}
\n
function log(type, data) {
\n
var dpm = data.dpm, dcm = data.dcm, dom = data.dom;
\n
var params = {
\n
dpm: dpm, dcm: dcm, appId: engine.env.app
_id
\n
};
\n
if (dom !== '0.0.0.0') {
\n
params.dom = dom;
\n
}
\n
var isExposure = type === 'exposure';
\n
engine.httpRequest(isExposure ? '//embedlog.duiba.com.cn/exposure/standard' : '/log/click', 'get', params, isExposure ? 'jsonp' : 'text');
\n
}
\n
"
"code"
:
"
\"
use strict
\"
;
\n
Object.defineProperty(exports,
\"
__esModule
\"
, { value: true });
\n
var BuriedPoint = (function (_super) {
\n
__extends(BuriedPoint, _super);
\n
function BuriedPoint() {
\n
var _this = _super !== null && _super.apply(this, arguments) || this;
\n
_this.dpm = '0.0.0.0';
\n
_this.dcm = '0.0.0.0';
\n
_this.dom = '0.0.0.0';
\n
_this.autoExposure = true;
\n
_this.autoClick = true;
\n
return _this;
\n
}
\n
BuriedPoint.prototype.onModify = function (value, key, oldValue) {
\n
switch (key) {
\n
case 'dpm':
\n
case 'dcm':
\n
case 'dom':
\n
this['__' + key] = fill(value);
\n
break;
\n
}
\n
};
\n
BuriedPoint.prototype.mounted = function () {
\n
this.host.addEventListener(engine.MouseEvent.CLICK, this._onClick, this);
\n
};
\n
BuriedPoint.prototype.awake = function () {
\n
if (this.autoExposure) {
\n
this.logExposure();
\n
}
\n
};
\n
BuriedPoint.prototype._onClick = function (e) {
\n
if (this.autoClick) {
\n
this.logClick();
\n
}
\n
};
\n
BuriedPoint.prototype.logExposure = function () {
\n
this.log('exposure');
\n
};
\n
BuriedPoint.prototype.logClick = function () {
\n
this.log('click');
\n
};
\n
BuriedPoint.prototype.log = function (type) {
\n
log(type, {
\n
dpm: this['__dpm'],
\n
dcm: this['__dcm'],
\n
dom: this['__dom'],
\n
});
\n
};
\n
BuriedPoint.id = 'buried-point';
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dpm
\"
, void 0);
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dcm
\"
, void 0);
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dom
\"
, void 0);
\n
return BuriedPoint;
\n
}(engine.ScriptBase));
\n
exports.default = BuriedPoint;
\n
function fill(src) {
\n
var result = src;
\n
for (var key in engine.env) {
\n
result = result.replace(key, engine.env[key]);
\n
}
\n
return result;
\n
}
\n
function log(type, data) {
\n
var dpm = data.dpm, dcm = data.dcm, dom = data.dom;
\n
var params = {
\n
dpm: dpm, dcm: dcm, appId: engine.env.app
ID
\n
};
\n
if (dom !== '0.0.0.0') {
\n
params.dom = dom;
\n
}
\n
var isExposure = type === 'exposure';
\n
engine.httpRequest(isExposure ? '//embedlog.duiba.com.cn/exposure/standard' : '/log/click', 'get', params, isExposure ? 'jsonp' : 'text');
\n
}
\n
"
}
}
libs/ShootPlanet.d.ts
deleted
100644 → 0
View file @
d6adfb44
declare
namespace
RES
{
function
getRes
(
uuid
:
string
):
engine
.
Texture
;
}
declare
interface
Math
{
clamp
(
target
:
number
,
min
:
number
,
max
:
number
):
number
;
}
declare
namespace
engine
{
interface
Point
{
length
:
number
;
}
interface
DisplayObject
{
destroy
():
void
;
}
}
\ No newline at end of file
libs/process-context.d.ts
0 → 100644
View file @
92e888cf
type
NodeClass
=
any
|
engine
.
Container
|
engine
.
Label
|
engine
.
Image
|
engine
.
ShapeBase
|
engine
.
TextInput
|
engine
.
BitmapText
|
engine
.
ScrollList
;
declare
const
args
:
any
;
declare
const
props
:
any
|
ProcessProps
;
declare
const
target
:
NodeClass
;
declare
const
global
:
any
|
{
gameStage
:
engine
.
GameStage
,
dataCenter
:
engine
.
DataCenter
,
env
:
any
,
};
declare
const
vm
:
engine
.
VM
;
declare
function
next
(
type
:
string
,
payload
?:
any
);
libs/types.d.ts
View file @
92e888cf
import
GameStage
=
engine
.
GameStage
;
import
DataCenter
=
engine
.
DataCenter
;
declare
const
args
:
any
;
declare
const
props
:
any
;
declare
const
target
:
engine
.
Container
;
declare
const
global
:
{
gameStage
:
GameStage
,
dataCenter
:
DataCenter
,
};
declare
const
vm
:
engine
.
VM
;
declare
function
next
(
type
:
string
,
payload
?:
any
);
declare
module
engine
{
declare
module
engine
{
export
const
VERSION
=
"1.0"
;
export
const
VERSION
=
"1.0"
;
export
const
devicePixelRatio
:
number
;
export
const
devicePixelRatio
:
number
;
export
function
playSound
(
uuid
,
options
=
{},
name
?);
export
function
stopSound
(
name
);
export
let
StageScaleMode
:
{
export
let
StageScaleMode
:
{
EXACT_FIT
:
string
;
EXACT_FIT
:
string
;
NO_BORDER
:
string
;
NO_BORDER
:
string
;
...
@@ -43,9 +25,9 @@ declare module engine {
...
@@ -43,9 +25,9 @@ declare module engine {
export
const
DEG_TO_RAD
:
number
;
export
const
DEG_TO_RAD
:
number
;
export
enum
RENDERER_TYPE
{
export
enum
RENDERER_TYPE
{
UNKNOWN
=
0
,
UNKNOWN
=
"unknown"
,
WEBGL
=
1
,
WEBGL
=
"webgl"
,
CANVAS
=
2
CANVAS
=
"canvas"
}
}
export
enum
SHAPES
{
export
enum
SHAPES
{
...
@@ -187,10 +169,20 @@ declare module engine {
...
@@ -187,10 +169,20 @@ declare module engine {
getChildIndex
(
child
:
DisplayObject
):
number
;
getChildIndex
(
child
:
DisplayObject
):
number
;
contains
(
child
:
DisplayObject
):
boolean
;
setChildIndex
(
child
:
DisplayObject
,
index
:
number
):
void
;
setChildIndex
(
child
:
DisplayObject
,
index
:
number
):
void
;
getChildAt
(
index
:
number
):
DisplayObject
;
getChildAt
(
index
:
number
):
DisplayObject
;
getChildByPath
(
path
:
any
,
method
:
string
):
DisplayObject
;
getChildByNamePath
(
path
:
string
):
DisplayObject
;
getChildByIndexPath
(
path
:
string
):
DisplayObject
;
findChildByUUID
(
uuid
:
string
):
any
;
getChildByName
(
name
:
string
|
RegExp
,
isOnlyOne
?:
boolean
,
isRecursive
?:
boolean
):
any
;
getChildByName
(
name
:
string
|
RegExp
,
isOnlyOne
?:
boolean
,
isRecursive
?:
boolean
):
any
;
removeChild
(
child
:
DisplayObject
):
DisplayObject
;
removeChild
(
child
:
DisplayObject
):
DisplayObject
;
...
@@ -225,13 +217,10 @@ declare module engine {
...
@@ -225,13 +217,10 @@ declare module engine {
width
:
number
;
width
:
number
;
height
:
number
;
height
:
number
;
private
static
_getElementsByName
;
findChildByUUID
(
uuid
:
string
)
;
clone
(
withEvents
?:
boolean
,
withScripts
?:
boolean
):
any
;
getChildByNamePath
(
path
:
string
):
DisplayObject
;
private
static
_getElementsByName
;
getChildByIndexPath
(
path
:
string
):
DisplayObject
;
}
}
export
class
DisplayObject
extends
EventDispatcher
{
export
class
DisplayObject
extends
EventDispatcher
{
...
@@ -239,7 +228,7 @@ declare module engine {
...
@@ -239,7 +228,7 @@ declare module engine {
visible
:
boolean
;
visible
:
boolean
;
renderable
:
boolean
;
renderable
:
boolean
;
parent
:
any
;
parent
:
any
;
stage
:
any
;
stage
:
Stage
;
name
:
string
;
name
:
string
;
worldAlpha
:
number
;
worldAlpha
:
number
;
protected
_localBoundsSelf
:
Rectangle
;
protected
_localBoundsSelf
:
Rectangle
;
...
@@ -298,16 +287,16 @@ declare module engine {
...
@@ -298,16 +287,16 @@ declare module engine {
alpha
:
number
;
alpha
:
number
;
x
:
number
;
x
:
number
;
y
:
number
;
y
:
number
;
readonly
worldMatrix
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
rendering
engine/src/2d/math/Matrix"
).
Matrix
;
readonly
worldMatrix
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
zeroing-
engine/src/2d/math/Matrix"
).
Matrix
;
readonly
localMatrix
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
rendering
engine/src/2d/math/Matrix"
).
Matrix
;
readonly
localMatrix
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
zeroing-
engine/src/2d/math/Matrix"
).
Matrix
;
position
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
rendering
engine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
position
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
zeroing-
engine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
scale
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
rendering
engine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
scale
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
zeroing-
engine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
scaleX
:
number
;
scaleX
:
number
;
scaleY
:
number
;
scaleY
:
number
;
anchor
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
rendering
engine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
anchor
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
zeroing-
engine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
anchorX
:
number
;
anchorX
:
number
;
anchorY
:
number
;
anchorY
:
number
;
skew
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
rendering
engine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
skew
:
import
(
"../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/
zeroing-
engine/src/2d/math/ObservablePoint"
).
ObservablePoint
;
rotation
:
number
;
rotation
:
number
;
readonly
worldVisible
:
boolean
;
readonly
worldVisible
:
boolean
;
mask
:
Graphics
;
mask
:
Graphics
;
...
@@ -318,13 +307,15 @@ declare module engine {
...
@@ -318,13 +307,15 @@ declare module engine {
}
}
export
class
FloatDisplay
extends
DisplayObject
{
export
class
FloatDisplay
extends
DisplayObject
{
htmlElement
:
any
;
private
_htmlElement
;
private
_isAdded
;
private
_isAdded
;
private
_transformID
;
private
_transformID
;
constructor
();
constructor
();
init
(
htmlElement
:
any
):
void
;
htmlElement
:
any
;
protected
init
(
htmlElement
:
any
):
void
;
private
getStyle
;
private
getStyle
;
...
@@ -335,6 +326,9 @@ declare module engine {
...
@@ -335,6 +326,9 @@ declare module engine {
export
class
Sprite
extends
Container
{
export
class
Sprite
extends
Container
{
private
_anchorTexture
;
private
_anchorTexture
;
private
_tint
;
_tintRGB
:
number
;
_cachedTint
:
number
;
_texture
:
Texture
;
_texture
:
Texture
;
_width
:
number
;
_width
:
number
;
_height
:
number
;
_height
:
number
;
...
@@ -371,8 +365,11 @@ declare module engine {
...
@@ -371,8 +365,11 @@ declare module engine {
destroy
():
void
;
destroy
():
void
;
width
:
number
;
height
:
number
;
anchorTexture
:
any
;
anchorTexture
:
any
;
texture
:
Texture
;
texture
:
Texture
;
tint
:
number
;
static
from
(
source
:
any
):
Sprite
;
static
from
(
source
:
any
):
Sprite
;
...
@@ -381,12 +378,14 @@ declare module engine {
...
@@ -381,12 +378,14 @@ declare module engine {
static
fromImage
(
imageId
:
string
,
crossorigin
?:
boolean
,
scaleMode
?:
number
):
Sprite
;
static
fromImage
(
imageId
:
string
,
crossorigin
?:
boolean
,
scaleMode
?:
number
):
Sprite
;
}
}
export
const
requestAnimationFrame
:
any
;
export
class
Stage
extends
Container
{
export
class
Stage
extends
Container
{
iosTouchendPreventDefault
:
boolean
;
iosTouchendPreventDefault
:
boolean
;
isPreventDefaultEvent
:
boolean
;
isPreventDefaultEvent
:
boolean
;
rootDiv
:
any
;
rootDiv
:
any
;
renderObj
:
SystemRenderer
;
renderObj
:
SystemRenderer
;
renderType
:
number
;
renderType
:
RENDERER_TYPE
;
static
getStage
(
stageName
?:
string
):
Stage
;
static
getStage
(
stageName
?:
string
):
Stage
;
...
@@ -412,7 +411,7 @@ declare module engine {
...
@@ -412,7 +411,7 @@ declare module engine {
private
_rid
;
private
_rid
;
private
_floatDisplayList
;
private
_floatDisplayList
;
constructor
(
rootDivId
?:
string
,
desW
?:
number
,
desH
?:
number
,
frameRate
?:
number
,
scaleMode
?:
string
,
renderType
?:
number
,
transparent
?:
boolean
,
bgColor
?:
number
);
constructor
(
rootDivId
?:
string
,
desW
?:
number
,
desH
?:
number
,
frameRate
?:
number
,
scaleMode
?:
string
,
renderType
?:
RENDERER_TYPE
,
transparent
?:
boolean
,
bgColor
?:
number
);
render
():
void
;
render
():
void
;
...
@@ -467,11 +466,15 @@ declare module engine {
...
@@ -467,11 +466,15 @@ declare module engine {
static
CALL_FRAME
:
string
;
static
CALL_FRAME
:
string
;
static
COMPLETE
:
string
;
static
COMPLETE
:
string
;
static
PROGRESS
:
string
;
static
PROGRESS
:
string
;
static
FOCUS
:
string
;
static
BLUR
:
string
;
static
CHANGING
:
string
;
static
ERROR
:
string
;
static
ERROR
:
string
;
static
ABORT
:
string
;
static
ABORT
:
string
;
static
START
:
string
;
static
START
:
string
;
static
TIMER
:
string
;
static
TIMER
:
string
;
static
TIMER_COMPLETE
:
string
;
static
TIMER_COMPLETE
:
string
;
static
UPDATE_DATA
:
string
;
type
:
string
;
type
:
string
;
target
:
any
;
target
:
any
;
data
:
any
;
data
:
any
;
...
@@ -611,7 +614,7 @@ declare module engine {
...
@@ -611,7 +614,7 @@ declare module engine {
constructor
();
constructor
();
clone
():
Graphics
;
clone
Self
():
Graphics
;
lineStyle
(
lineWidth
?:
number
,
color
?:
number
,
alpha
?:
number
,
alignment
?:
number
,
native
?:
boolean
):
Graphics
;
lineStyle
(
lineWidth
?:
number
,
color
?:
number
,
alpha
?:
number
,
alignment
?:
number
,
native
?:
boolean
):
Graphics
;
...
@@ -904,7 +907,7 @@ declare module engine {
...
@@ -904,7 +907,7 @@ declare module engine {
constructor
();
constructor
();
loadSheet
(
url
:
string
):
Promise
<
void
>
;
loadSheet
(
url
:
string
):
Promise
<
any
>
;
loadRaw
(
url
:
string
,
uuid
?:
string
,
type
?:
'text'
|
'json'
):
Promise
<
any
>
;
loadRaw
(
url
:
string
,
uuid
?:
string
,
type
?:
'text'
|
'json'
):
Promise
<
any
>
;
...
@@ -917,6 +920,8 @@ declare module engine {
...
@@ -917,6 +920,8 @@ declare module engine {
loadTexture
(
url
:
string
,
uuid
?:
string
):
Promise
<
Texture
>
;
loadTexture
(
url
:
string
,
uuid
?:
string
):
Promise
<
Texture
>
;
cache
(
name
:
string
,
data
:
any
):
void
;
cache
(
name
:
string
,
data
:
any
):
void
;
get
(
name
:
string
):
any
;
}
}
export
const
globalLoader
:
Loader
;
export
const
globalLoader
:
Loader
;
...
@@ -1098,7 +1103,7 @@ declare module engine {
...
@@ -1098,7 +1103,7 @@ declare module engine {
destroy
():
void
;
destroy
():
void
;
}
}
export
function
httpRequest
(
url
:
string
,
method
?:
string
,
params
?:
any
,
type
?:
'text'
|
'json'
|
'jsonp'
,
headers
?):
Promise
<
{}
>
;
export
function
httpRequest
(
url
:
string
,
method
?:
string
,
params
?:
any
,
type
?:
'text'
|
'json'
|
'jsonp'
,
headers
?
:
any
):
Promise
<
{}
>
;
export
function
jsonp
(
url
:
any
,
params
:
any
):
Promise
<
{}
>
;
export
function
jsonp
(
url
:
any
,
params
:
any
):
Promise
<
{}
>
;
...
@@ -1373,7 +1378,7 @@ declare module engine {
...
@@ -1373,7 +1378,7 @@ declare module engine {
export
class
SystemRenderer
extends
EventDispatcher
{
export
class
SystemRenderer
extends
EventDispatcher
{
options
:
RendererOptions
;
options
:
RendererOptions
;
type
:
number
;
type
:
RENDERER_TYPE
;
htmlElement
:
HTMLCanvasElement
;
htmlElement
:
HTMLCanvasElement
;
transparent
:
boolean
;
transparent
:
boolean
;
preserveDrawingBuffer
:
boolean
;
preserveDrawingBuffer
:
boolean
;
...
@@ -1529,331 +1534,6 @@ declare module engine {
...
@@ -1529,331 +1534,6 @@ declare module engine {
static
registerPlugin
(
pluginName
:
string
,
ctor
:
Function
):
void
;
static
registerPlugin
(
pluginName
:
string
,
ctor
:
Function
):
void
;
}
}
export
class
BezierPath
{
_d
:
any
;
_transform
:
any
;
_styles
:
any
;
_shape
:
any
;
constructor
(
d
?:
any
,
transform
?:
any
,
styles
?:
any
);
}
export
class
EllipsePath
extends
BezierPath
{
_x
:
any
;
_y
:
any
;
_radiusX
:
any
;
_radiusY
:
any
;
_transform
:
any
;
_styles
:
any
;
constructor
(
x
:
any
,
y
:
any
,
radiusX
:
any
,
radiusY
:
any
,
transform
:
any
,
styles
:
any
);
}
export
class
FrameEntity
{
alpha
:
number
;
transform
:
{
a
:
number
;
b
:
number
;
c
:
number
;
d
:
number
;
tx
:
number
;
ty
:
number
;
};
layout
:
{
x
:
number
;
y
:
number
;
width
:
number
;
height
:
number
;
};
nx
:
number
;
ny
:
number
;
maskPath
:
any
;
shapes
:
any
[];
constructor
(
spec
:
any
);
static
lastShapes
:
any
;
}
export
const
_default
:
(
data
:
any
,
cb
:
any
,
failure
:
any
)
=>
void
;
export
class
MovieClip
extends
Container
{
lockStep
:
boolean
;
readonly
currentFrame
:
number
;
private
_curFrame
;
readonly
isPlaying
:
boolean
;
private
_isPlaying
;
readonly
isFront
:
boolean
;
private
_isFront
;
totalFrames
:
number
;
loops
:
number
;
private
textures
;
private
timeInterval
;
private
deltaFrame
;
private
frameCount
;
constructor
(
mv
?:
VideoEntity
);
init
(
mv
:
VideoEntity
):
void
;
private
initChildren
;
private
resetTransform
;
resetTransformAll
(
frameIndex
:
number
):
void
;
setImage
(
imagekey
:
any
,
imageUrl
:
string
):
void
;
stop
():
void
;
nextFrame
():
void
;
prevFrame
():
void
;
gotoAndStop
(
frameIndex
:
number
):
void
;
play
(
isFront
?:
boolean
):
void
;
private
_lastFrame
;
readonly
isInTimeFrame
:
boolean
;
gotoAndPlay
(
frameIndex
:
number
,
isFront
?:
boolean
):
void
;
startAniRange
(
beginFrame
?:
number
,
endFrame
?:
number
,
loops
?:
number
,
callback
?:
Function
):
void
;
private
startTime
;
private
startFrame
;
private
lastDeltaFrame
;
private
_endMark
;
commonDeltaTime
:
number
;
updateFrame
():
void
;
private
getCurFrameWhenLockStep
;
update
(
deltaTime
:
number
):
void
;
destroy
():
void
;
}
export
function
inflate
(
input
:
any
,
options
:
any
):
any
;
export
const
_default
:
{
inflate
:
typeof
inflate
;
}
export
function
assign
(
obj
:
any
,
objO
:
any
):
any
;
export
function
shrinkBuf
(
buf
:
any
,
size
:
any
):
any
;
export
const
utils
:
{
assign
:
typeof
assign
;
shrinkBuf
:
typeof
shrinkBuf
;
Buf8
:
any
;
Buf16
:
any
;
Buf32
:
any
;
arraySet
:
any
;
flattenChunks
:
any
;
}
export
{};
export
function
string2buf
(
str
:
any
):
any
;
export
function
buf2binstring
(
buf
:
any
,
len
?:
any
):
any
;
export
function
binstring2buf
(
str
:
any
):
any
;
export
function
buf2string
(
buf
:
any
,
max
:
any
):
any
;
export
function
utf8border
(
buf
:
any
,
max
:
any
):
any
;
export
const
strings
:
{
utf8border
:
typeof
utf8border
;
buf2string
:
typeof
buf2string
;
binstring2buf
:
typeof
binstring2buf
;
buf2binstring
:
typeof
buf2binstring
;
string2buf
:
typeof
string2buf
;
}
export
{};
export
function
adler32
(
adler
:
any
,
buf
:
any
,
len
:
any
,
pos
:
any
):
number
;
export
const
_default
:
{
Z_NO_FLUSH
:
number
;
Z_PARTIAL_FLUSH
:
number
;
Z_SYNC_FLUSH
:
number
;
Z_FULL_FLUSH
:
number
;
Z_FINISH
:
number
;
Z_BLOCK
:
number
;
Z_TREES
:
number
;
Z_OK
:
number
;
Z_STREAM_END
:
number
;
Z_NEED_DICT
:
number
;
Z_ERRNO
:
number
;
Z_STREAM_ERROR
:
number
;
Z_DATA_ERROR
:
number
;
Z_BUF_ERROR
:
number
;
Z_NO_COMPRESSION
:
number
;
Z_BEST_SPEED
:
number
;
Z_BEST_COMPRESSION
:
number
;
Z_DEFAULT_COMPRESSION
:
number
;
Z_FILTERED
:
number
;
Z_HUFFMAN_ONLY
:
number
;
Z_RLE
:
number
;
Z_FIXED
:
number
;
Z_DEFAULT_STRATEGY
:
number
;
Z_BINARY
:
number
;
Z_TEXT
:
number
;
Z_UNKNOWN
:
number
;
Z_DEFLATED
:
number
;
}
export
function
crc32
(
crc
:
any
,
buf
:
any
,
len
:
any
,
pos
:
any
):
number
;
export
function
deflateResetKeep
(
strm
:
any
):
any
;
export
function
deflateReset
(
strm
:
any
):
any
;
export
function
deflateSetHeader
(
strm
:
any
,
head
:
any
):
number
;
export
function
deflateInit2
(
strm
:
any
,
level
:
any
,
method
:
any
,
windowBits
:
any
,
memLevel
:
any
,
strategy
:
any
):
any
;
export
function
deflateInit
(
strm
:
any
,
level
:
any
):
any
;
export
function
deflate
(
strm
:
any
,
flush
:
any
):
any
;
export
function
deflateEnd
(
strm
:
any
):
any
;
export
function
deflateSetDictionary
(
strm
:
any
,
dictionary
:
any
):
number
;
export
const
_default
:
{
deflateInit
:
typeof
deflateInit
;
deflateInit2
:
typeof
deflateInit2
;
deflateReset
:
typeof
deflateReset
;
deflateResetKeep
:
typeof
deflateResetKeep
;
deflateSetHeader
:
typeof
deflateSetHeader
;
deflate
:
typeof
deflate
;
deflateEnd
:
typeof
deflateEnd
;
deflateSetDictionary
:
typeof
deflateSetDictionary
;
deflateInfo
:
string
;
}
export
function
GZheader
():
void
;
export
function
inflateResetKeep
(
strm
:
any
):
number
;
export
function
inflateReset
(
strm
:
any
):
number
;
export
function
inflateReset2
(
strm
:
any
,
windowBits
:
any
):
number
;
export
function
inflateInit2
(
strm
:
any
,
windowBits
:
any
):
any
;
export
function
inflateInit
(
strm
:
any
):
any
;
export
function
inflate
(
strm
:
any
,
flush
:
any
):
any
;
export
function
inflateEnd
(
strm
:
any
):
number
;
export
function
inflateGetHeader
(
strm
:
any
,
head
:
any
):
number
;
export
function
inflateSetDictionary
(
strm
:
any
,
dictionary
:
any
):
number
;
export
const
_default
:
{
inflateReset
:
typeof
inflateReset
;
inflateReset2
:
typeof
inflateReset2
;
inflateResetKeep
:
typeof
inflateResetKeep
;
inflateInit
:
typeof
inflateInit
;
inflateInit2
:
typeof
inflateInit2
;
inflate
:
typeof
inflate
;
inflateEnd
:
typeof
inflateEnd
;
inflateGetHeader
:
typeof
inflateGetHeader
;
inflateSetDictionary
:
typeof
inflateSetDictionary
;
inflateInfo
:
string
;
}
export
const
_default
:
{
2
:
string
;
1
:
string
;
0
:
string
;
'-1'
:
string
;
'-2'
:
string
;
'-3'
:
string
;
'-4'
:
string
;
'-5'
:
string
;
'-6'
:
string
;
}
export
function
_tr_init
(
s
:
any
):
void
;
export
function
_tr_stored_block
(
s
:
any
,
buf
:
any
,
stored_len
:
any
,
last
:
any
):
void
;
export
function
_tr_align
(
s
:
any
):
void
;
export
function
_tr_flush_block
(
s
:
any
,
buf
:
any
,
stored_len
:
any
,
last
:
any
):
void
;
export
function
_tr_tally
(
s
:
any
,
dist
:
any
,
lc
:
any
):
boolean
;
export
const
_default
:
{
_tr_init
:
typeof
_tr_init
;
_tr_stored_block
:
typeof
_tr_stored_block
;
_tr_flush_block
:
typeof
_tr_flush_block
;
_tr_tally
:
typeof
_tr_tally
;
_tr_align
:
typeof
_tr_align
;
}
export
function
ZStream
():
void
;
export
class
Parser
{
load
(
url
:
any
,
success
:
any
,
failure
:
any
):
void
;
loadViaWorker
(
url
:
any
,
success
:
any
,
failure
:
any
):
void
;
}
export
const
proto
:
protobuf
.
Root
;
export
const
ProtoMovieEntity
:
protobuf
.
Type
;
export
class
RectPath
extends
BezierPath
{
_x
:
any
;
_y
:
any
;
_width
:
any
;
_height
:
any
;
_cornerRadius
:
any
;
_transform
:
any
;
_styles
:
any
;
constructor
(
x
:
any
,
y
:
any
,
width
:
any
,
height
:
any
,
cornerRadius
:
any
,
transform
:
any
,
styles
:
any
);
}
export
class
SpriteEntity
{
matteKey
:
any
;
imageKey
:
any
;
frames
:
any
[];
constructor
(
spec
:
any
);
}
export
class
VideoEntity
extends
HashObject
{
version
:
string
;
videoSize
:
{
width
:
number
;
height
:
number
;
};
FPS
:
number
;
frames
:
number
;
images
:
{};
hasBeenCached
:
boolean
;
sprites
:
SpriteEntity
[];
audios
:
any
[];
constructor
(
spec
:
any
,
images
:
any
);
resetSprites
(
spec
:
any
):
void
;
destroy
():
void
;
}
export
class
EditableText
extends
TextField
{
export
class
EditableText
extends
TextField
{
htmlElement
:
any
;
htmlElement
:
any
;
private
_prompt
;
private
_prompt
;
...
@@ -1874,7 +1554,7 @@ declare module engine {
...
@@ -1874,7 +1554,7 @@ declare module engine {
constructor
(
inputType
?:
number
);
constructor
(
inputType
?:
number
);
init
(
htmlElement
:
any
):
void
;
protected
init
(
htmlElement
:
any
):
void
;
initInfo
(
text
:
string
,
color
:
string
,
align
:
string
,
size
:
number
,
font
:
string
,
showBorder
:
boolean
,
lineSpacing
:
number
,
textWidth
:
number
):
void
;
initInfo
(
text
:
string
,
color
:
string
,
align
:
string
,
size
:
number
,
font
:
string
,
showBorder
:
boolean
,
lineSpacing
:
number
,
textWidth
:
number
):
void
;
...
@@ -1912,11 +1592,19 @@ declare module engine {
...
@@ -1912,11 +1592,19 @@ declare module engine {
private
_lineSpacing
;
private
_lineSpacing
;
lineType
:
TEXT_lINETYPE
;
lineType
:
TEXT_lINETYPE
;
private
_lineType
;
private
_lineType
;
protected
_text
:
string
;
text
:
string
;
text
:
string
;
protected
_setText
(
value
:
any
):
void
;
protected
_setText
(
value
:
any
):
void
;
protected
_text
:
string
;
protected
_textFlow
:
any
;
protected
_pureText
:
string
;
textFlow
:
any
;
readonly
isPureText
:
boolean
;
readonly
pureText
:
string
;
protected
getStyle
(
index
:
any
):
any
;
font
:
string
;
font
:
string
;
private
_font
;
private
_font
;
size
:
number
;
size
:
number
;
...
@@ -2316,8 +2004,58 @@ declare module engine {
...
@@ -2316,8 +2004,58 @@ declare module engine {
private
changeTexture
;
private
changeTexture
;
}
}
export
class
ScrollContainer
extends
Container
{
export
abstract
class
ScrollListItemBase
extends
Container
{
private
_direction
;
id
:
number
;
data
:
any
;
sli_id
:
number
;
_initData
(
id
:
number
,
data
:
any
):
void
;
abstract
updateData
(
data
:
any
):
any
;
}
export
class
ScrollListBase
extends
ScrollViewBase
{
private
_items
;
private
_itemRow
;
private
_itemCount
;
private
_isInit
;
data
:
Array
<
any
>
;
private
downL
;
private
_cols
;
private
_disParam
;
private
_lastFirstId
;
private
_updateId
;
itemWidth
:
number
;
itemHeight
:
number
;
itemCol
:
number
;
itemClass
:
any
;
readonly
loadingView
:
DisplayObject
;
constructor
();
protected
onNextFrame
(
event
:
any
):
void
;
onModify
(
value
:
any
,
key
:
any
):
void
;
protected
calMaxDistance
():
any
;
updateData
(
data
:
Array
<
any
>
,
isReset
?:
boolean
):
void
;
private
flushData
;
updateViewRect
():
void
;
protected
_updateViewRect
():
void
;
protected
createItem
():
any
;
setLoading
(
downLoading
:
DisplayObject
):
void
;
destroy
():
void
;
}
export
class
ScrollViewBase
extends
Container
{
protected
_direction
:
SCROLL_DIRECTION
;
protected
distance
:
number
;
protected
distance
:
number
;
private
minDis
;
private
minDis
;
private
maskObj
;
private
maskObj
;
...
@@ -2338,6 +2076,9 @@ declare module engine {
...
@@ -2338,6 +2076,9 @@ declare module engine {
constructor
(
maxDistance
?:
number
,
isFull
?:
boolean
);
constructor
(
maxDistance
?:
number
,
isFull
?:
boolean
);
readonly
maxDistance
:
any
;
readonly
maxDistance
:
any
;
protected
calMaxDistance
():
any
;
direction
:
SCROLL_DIRECTION
;
direction
:
SCROLL_DIRECTION
;
protected
updateDirection
():
void
;
protected
updateDirection
():
void
;
...
@@ -2353,44 +2094,6 @@ declare module engine {
...
@@ -2353,44 +2094,6 @@ declare module engine {
destroy
():
void
;
destroy
():
void
;
}
}
export
interface
IScrollListItem
extends
DisplayObject
{
initData
(
id
:
number
,
data
:
any
):
void
;
id
:
number
;
data
:
number
;
}
export
class
ScrollList
extends
ScrollContainer
{
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
,
cols
?:
number
);
updateData
(
data
:
Array
<
any
>
,
isReset
?:
boolean
):
void
;
private
flushData
;
updateViewRect
():
void
;
private
_updateViewRect
;
setLoading
(
downLoading
:
DisplayObject
):
void
;
destroy
():
void
;
}
export
class
ShowWord
extends
TextField
{
export
class
ShowWord
extends
TextField
{
playWords
(
text
:
string
,
deltaTime
?:
number
,
callback
?:
Function
):
void
;
playWords
(
text
:
string
,
deltaTime
?:
number
,
callback
?:
Function
):
void
;
}
}
...
@@ -2668,6 +2371,7 @@ declare module engine {
...
@@ -2668,6 +2371,7 @@ declare module engine {
export
function
executeBehavior
(
sequence
:
any
,
subEntry
:
string
,
target
:
any
,
args
?:
any
):
void
;
export
function
executeBehavior
(
sequence
:
any
,
subEntry
:
string
,
target
:
any
,
args
?:
any
):
void
;
export
class
Process
{
export
class
Process
{
private
readonly
id
;
private
_config
;
private
_config
;
private
_parent
;
private
_parent
;
private
_vm
;
private
_vm
;
...
@@ -2676,7 +2380,7 @@ declare module engine {
...
@@ -2676,7 +2380,7 @@ declare module engine {
private
_target
;
private
_target
;
private
_originProps
;
private
_originProps
;
constructor
();
constructor
(
id
:
any
);
readonly
processConfig
:
any
;
readonly
processConfig
:
any
;
readonly
parent
:
Process
;
readonly
parent
:
Process
;
...
@@ -2716,6 +2420,7 @@ declare module engine {
...
@@ -2716,6 +2420,7 @@ declare module engine {
_target
:
any
;
_target
:
any
;
_id
:
any
;
_id
:
any
;
_scriptMap
:
any
;
_scriptMap
:
any
;
_pid
:
number
;
setup
(
context
:
any
):
void
;
setup
(
context
:
any
):
void
;
...
@@ -2778,6 +2483,14 @@ declare module engine {
...
@@ -2778,6 +2483,14 @@ declare module engine {
export
function
getAssetByName
(
name
:
any
):
any
;
export
function
getAssetByName
(
name
:
any
):
any
;
export
function
parseSheet
(
sheet
:
any
):
void
;
export
function
parseAssetConfig
(
assetConfig
:
any
,
uuid
?:
any
):
void
;
export
function
parse
(
assetConfig
:
any
,
data
:
any
):
void
;
export
function
getFont
(
name
:
any
):
any
;
export
function
registerCustomModule
(
id
:
any
,
def
:
any
):
void
;
export
function
registerCustomModule
(
id
:
any
,
def
:
any
):
void
;
export
function
registerCustomCodeModule
(
config
:
any
):
void
;
export
function
registerCustomCodeModule
(
config
:
any
):
void
;
...
@@ -2792,7 +2505,7 @@ declare module engine {
...
@@ -2792,7 +2505,7 @@ declare module engine {
constructor
();
constructor
();
registerGroup
(
name
:
any
,
origin
?:
any
):
void
;
registerGroup
(
name
:
any
,
origin
?:
any
):
any
;
unregisterGroup
(
name
:
any
):
void
;
unregisterGroup
(
name
:
any
):
void
;
...
@@ -2817,7 +2530,7 @@ declare module engine {
...
@@ -2817,7 +2530,7 @@ declare module engine {
export
const
dataCenter
:
DataCenter
;
export
const
dataCenter
:
DataCenter
;
export
let
env
:
any
;
export
let
env
:
{}
;
export
function
injectEnv
(
data
:
any
):
void
;
export
function
injectEnv
(
data
:
any
):
void
;
...
@@ -2838,7 +2551,7 @@ declare module engine {
...
@@ -2838,7 +2551,7 @@ declare module engine {
readonly
toast
:
Toast
;
readonly
toast
:
Toast
;
readonly
dataCenter
:
DataCenter
;
readonly
dataCenter
:
DataCenter
;
launch
(
config
:
any
,
onAssetsProgress
?:
any
,
onAssetsComplete
?:
any
):
Promise
<
void
>
;
launch
(
config
:
any
,
onAssetsProgress
?:
any
,
onAssetsComplete
?:
any
,
onStart
?:
any
):
Promise
<
void
>
;
start
():
void
;
start
():
void
;
...
@@ -2851,11 +2564,27 @@ declare module engine {
...
@@ -2851,11 +2564,27 @@ declare module engine {
onPopupContainerChange
(
e
:
any
):
void
;
onPopupContainerChange
(
e
:
any
):
void
;
}
}
export
function
showLoadingView
():
void
;
export
const
_default
:
{
onProgress
(
done
:
any
,
total
:
any
):
void
;
onComplete
():
void
;
}
export
function
hideLoadingView
():
void
;
export
class
BitmapText
extends
Container
{
private
_dirty
;
private
_charCache
;
private
_fontConfig
;
text
:
string
;
font
:
string
;
letterSpacing
:
number
;
export
function
setLoadingViewProgress
(
current
:
any
,
total
:
any
):
void
;
constructor
();
onModify
(
value
:
any
,
key
:
any
):
void
;
onEnterFrame
(
e
:
any
):
void
;
private
addChar
;
}
export
class
Image
extends
Sprite
{
export
class
Image
extends
Sprite
{
private
_originText
;
private
_originText
;
...
@@ -2885,11 +2614,33 @@ declare module engine {
...
@@ -2885,11 +2614,33 @@ declare module engine {
private
onHtmlMutated
;
private
onHtmlMutated
;
}
}
export
class
ScrollView
extends
ScrollContainer
{
export
class
ScrollListItem
extends
ScrollListItemBase
{
view
:
Container
;
setView
(
view
:
any
):
void
;
updateData
(
data
:
any
):
void
;
}
export
class
ScrollList
extends
ScrollListBase
{
firstItem
:
Container
;
cloneEvents
:
boolean
;
cloneScripts
:
boolean
;
constructor
();
constructor
();
protected
onNextFrame
(
event
:
any
):
void
;
protected
createItem
():
any
;
}
}
export
class
ShapeBase
extends
Shape
{
export
const
proxyMethods
:
string
[];
export
class
ScrollView
extends
ScrollViewBase
{
constructor
();
}
export
class
ShapeBase
extends
Graphics
{
protected
__fieldDirty
:
boolean
;
protected
__fieldDirty
:
boolean
;
fillColor
:
any
;
fillColor
:
any
;
strokeColor
:
any
;
strokeColor
:
any
;
...
@@ -2915,6 +2666,49 @@ declare module engine {
...
@@ -2915,6 +2666,49 @@ declare module engine {
export
{};
export
{};
export
class
TextInput
extends
Label
{
private
_floatDisplay
;
private
_placeholderLabel
;
private
_input
;
placeholder
:
string
;
placeholderColor
:
any
;
maxLength
:
number
;
type
:
string
;
pattern
:
string
;
private
_oldFillColor
;
private
_oldStrokeColor
;
constructor
();
onModify
(
value
:
any
,
key
:
any
):
void
;
private
setup
;
protected
_setText
(
value
:
any
):
void
;
private
setMaxLength
;
private
showPlaceholderLabel
;
setFocus
():
void
;
setBlur
():
void
;
private
onBlur
;
private
onInput
;
private
onClickStage
;
private
onClickStatic
;
private
onResize
;
static
_bp
:
Point
;
hitTestPoint
(
globalPoint
:
Point
,
isMouseEvent
?:
boolean
):
this
;
}
export
function
playSound
(
uuid
:
any
,
options
?:
any
,
name
?:
any
):
any
;
export
function
stopSound
(
name
:
any
):
void
;
export
function
destroySound
(
name
:
any
):
void
;
export
class
StackContainer
extends
Container
{
export
class
StackContainer
extends
Container
{
private
_mutex
;
private
_mutex
;
private
_stack
;
private
_stack
;
...
@@ -2947,17 +2741,27 @@ declare module engine {
...
@@ -2947,17 +2741,27 @@ declare module engine {
private
getContent
;
private
getContent
;
}
}
export
function
registerNodeType
(
name
:
any
,
def
:
any
):
void
;
export
function
instantiate
(
config
:
any
):
any
;
export
function
instantiate
(
config
:
any
):
any
;
export
{
instantiate
};
export
{
instantiate
,
registerNodeType
,
};
export
let
gameStage
:
GameStage
;
export
let
gameStage
:
GameStage
;
export
function
launch
(
url
:
any
,
onAssetsProgress
:
any
,
onAssetsComplete
:
any
):
Promise
<
{}
>
;
export
function
launch
(
url
:
any
,
loadingDelegate
?:
any
,
onStart
?:
any
):
Promise
<
{}
>
;
export
function
launchWithLocalStorage
(
id
:
any
,
loadingDelegate
?:
any
,
onStart
?:
any
):
Promise
<
{}
>
;
export
function
launchWith
Config
(
config
:
any
,
loadingDelegate
:
any
,
onStart
:
any
):
Promise
<
{}
>
;
export
function
launchWith
WindowVariable
(
name
:
any
,
loadingDelegate
?:
any
,
onStart
?
:
any
):
Promise
<
{}
>
;
export
function
findNodeByUUID
(
node
:
any
,
uuid
:
any
):
any
;
export
function
launchWithConfig
(
config
:
any
,
loadingDelegate
?:
any
,
onStart
?:
any
):
Promise
<
{}
>
;
export
enum
Logs
{
PROCESS
=
"process"
}
export
function
getLogSwitch
(
id
:
any
):
boolean
;
export
function
md5
(
string
:
any
):
string
;
export
function
md5
(
string
:
any
):
string
;
...
@@ -2992,4 +2796,14 @@ declare module engine {
...
@@ -2992,4 +2796,14 @@ declare module engine {
export
function
findVariable
(
name
:
string
,
...
contexts
:
any
[]):
any
;
export
function
findVariable
(
name
:
string
,
...
contexts
:
any
[]):
any
;
export
function
htmlToPureText
(
htmlText
:
any
):
any
;
export
function
htmlToPureText
(
htmlText
:
any
):
any
;
export
function
strLen
(
str
:
any
):
number
;
export
function
strShort
(
str
:
any
,
limit
:
any
,
replace
?:
string
):
string
;
export
function
instantiateScript
(
node
:
any
,
ScriptConfig
:
any
):
void
;
export
function
injectProperties
(
target
:
any
,
source
:
any
):
void
;
export
let
queryParams
:
any
;
}
}
src/process/projectX/api-request/meta.json
View file @
92e888cf
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
"metas"
:
[
"metas"
:
[
{
{
"id"
:
"a4b27753-4cbb-47e3-9b31-51ced475e41a"
,
"id"
:
"a4b27753-4cbb-47e3-9b31-51ced475e41a"
,
"script"
:
"var uri = engine.findVariable('uri', args, props);
\n
var url;
\n
if(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){
\n\t
var projectX = 'projectx';
\n\t
var projectID = engine.env.projectID;
\n
url = engine.joinPath(projectX, projectID, uri);
\n
}else{
\n
url = uri;
\n
}
\n
next('success', {url:url}
);"
,
"script"
:
"var uri = engine.findVariable('uri', args, props);
\n
var url;
\n
if(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){
\n\t
var projectX = 'projectx';
\n\t
var projectID = engine.env.projectID;
\n
url = engine.joinPath(projectX, projectID, uri);
\n
}else{
\n
url = uri;
\n
}
\n
var payload = args || {};
\n
payload.url = url;
\n
next('success', payload
);"
,
"props"
:
{
"props"
:
{
"uri"
:
{
"uri"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
...
...
src/script/buried-point/index.ts
View file @
92e888cf
...
@@ -70,7 +70,7 @@ function log(type, data) {
...
@@ -70,7 +70,7 @@ function log(type, data) {
let
{
dpm
,
dcm
,
dom
}
=
data
;
let
{
dpm
,
dcm
,
dom
}
=
data
;
const
params
:
any
=
{
const
params
:
any
=
{
dpm
,
dcm
,
appId
:
engine
.
env
.
app
_id
dpm
,
dcm
,
appId
:
engine
.
env
.
app
ID
};
};
if
(
dom
!==
'0.0.0.0'
)
{
if
(
dom
!==
'0.0.0.0'
)
{
params
.
dom
=
dom
;
params
.
dom
=
dom
;
...
...
zeroing-libs.iml
View file @
92e888cf
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
<module
type=
"WEB_MODULE"
version=
"4"
>
<module
type=
"WEB_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
inherit-compiler-output=
"true"
>
<component
name=
"NewModuleRootManager"
inherit-compiler-output=
"true"
>
<exclude-output
/>
<exclude-output
/>
<content
url=
"file://$MODULE_DIR$/../zeroing-libs"
/>
<content
url=
"file://$MODULE_DIR$"
>
<excludeFolder
url=
"file://$MODULE_DIR$/dist"
/>
</content>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</component>
</module>
</module>
\ No newline at end of file
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