Commit 92e888cf authored by rockyl's avatar rockyl

更新

parent d6adfb44
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -98,7 +98,7 @@
"metas": [
{
"id": "a4b27753-4cbb-47e3-9b31-51ced475e41a",
"script": "var uri = engine.findVariable('uri', args, props);\nvar url;\nif(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){\n\tvar projectX = 'projectx';\n\tvar projectID = engine.env.projectID;\n url = engine.joinPath(projectX, projectID, uri);\n}else{\n url = uri;\n}\nnext('success', {url:url});",
"script": "var uri = engine.findVariable('uri', args, props);\nvar url;\nif(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){\n\tvar projectX = 'projectx';\n\tvar projectID = engine.env.projectID;\n url = engine.joinPath(projectX, projectID, uri);\n}else{\n url = uri;\n}\nvar payload = args || {};\npayload.url = url;\nnext('success', payload);",
"props": {
"uri": {
"type": "string",
......
......@@ -28,5 +28,5 @@
}
},
"id": "buried-point",
"code": "\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar 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));\nexports.default = BuriedPoint;\nfunction 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}\nfunction 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\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar 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));\nexports.default = BuriedPoint;\nfunction 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}\nfunction 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.appID\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"
}
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
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);
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 {
export const VERSION = "1.0";
export const devicePixelRatio: number;
export function playSound(uuid, options = {}, name?);
export function stopSound(name);
export let StageScaleMode: {
EXACT_FIT: string;
NO_BORDER: string;
......@@ -43,9 +25,9 @@ declare module engine {
export const DEG_TO_RAD: number;
export enum RENDERER_TYPE {
UNKNOWN = 0,
WEBGL = 1,
CANVAS = 2
UNKNOWN = "unknown",
WEBGL = "webgl",
CANVAS = "canvas"
}
export enum SHAPES {
......@@ -187,10 +169,20 @@ declare module engine {
getChildIndex(child: DisplayObject): number;
contains(child: DisplayObject): boolean;
setChildIndex(child: DisplayObject, index: number): void;
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;
removeChild(child: DisplayObject): DisplayObject;
......@@ -225,13 +217,10 @@ declare module engine {
width: number;
height: number;
private static _getElementsByName;
findChildByUUID(uuid: string);
clone(withEvents?: boolean, withScripts?: boolean): any;
getChildByNamePath(path: string): DisplayObject;
getChildByIndexPath(path: string): DisplayObject;
private static _getElementsByName;
}
export class DisplayObject extends EventDispatcher {
......@@ -239,7 +228,7 @@ declare module engine {
visible: boolean;
renderable: boolean;
parent: any;
stage: any;
stage: Stage;
name: string;
worldAlpha: number;
protected _localBoundsSelf: Rectangle;
......@@ -298,16 +287,16 @@ declare module engine {
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;
readonly worldMatrix: import("../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/zeroing-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/zeroing-engine/src/2d/math/ObservablePoint").ObservablePoint;
scale: import("../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/zeroing-engine/src/2d/math/ObservablePoint").ObservablePoint;
scaleX: number;
scaleY: number;
anchor: import("../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/renderingengine/src/2d/math/ObservablePoint").ObservablePoint;
anchor: import("../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/zeroing-engine/src/2d/math/ObservablePoint").ObservablePoint;
anchorX: number;
anchorY: number;
skew: import("../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/renderingengine/src/2d/math/ObservablePoint").ObservablePoint;
skew: import("../../../../../../../../Users/rockyl/WorkSpaces/VisualEditor/zeroing-engine/src/2d/math/ObservablePoint").ObservablePoint;
rotation: number;
readonly worldVisible: boolean;
mask: Graphics;
......@@ -318,13 +307,15 @@ declare module engine {
}
export class FloatDisplay extends DisplayObject {
htmlElement: any;
private _htmlElement;
private _isAdded;
private _transformID;
constructor();
init(htmlElement: any): void;
htmlElement: any;
protected init(htmlElement: any): void;
private getStyle;
......@@ -335,6 +326,9 @@ declare module engine {
export class Sprite extends Container {
private _anchorTexture;
private _tint;
_tintRGB: number;
_cachedTint: number;
_texture: Texture;
_width: number;
_height: number;
......@@ -371,8 +365,11 @@ declare module engine {
destroy(): void;
width: number;
height: number;
anchorTexture: any;
texture: Texture;
tint: number;
static from(source: any): Sprite;
......@@ -381,12 +378,14 @@ declare module engine {
static fromImage(imageId: string, crossorigin?: boolean, scaleMode?: number): Sprite;
}
export const requestAnimationFrame: any;
export class Stage extends Container {
iosTouchendPreventDefault: boolean;
isPreventDefaultEvent: boolean;
rootDiv: any;
renderObj: SystemRenderer;
renderType: number;
renderType: RENDERER_TYPE;
static getStage(stageName?: string): Stage;
......@@ -412,7 +411,7 @@ declare module engine {
private _rid;
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;
......@@ -467,11 +466,15 @@ declare module engine {
static CALL_FRAME: string;
static COMPLETE: string;
static PROGRESS: string;
static FOCUS: string;
static BLUR: string;
static CHANGING: string;
static ERROR: string;
static ABORT: string;
static START: string;
static TIMER: string;
static TIMER_COMPLETE: string;
static UPDATE_DATA: string;
type: string;
target: any;
data: any;
......@@ -611,7 +614,7 @@ declare module engine {
constructor();
clone(): Graphics;
cloneSelf(): Graphics;
lineStyle(lineWidth?: number, color?: number, alpha?: number, alignment?: number, native?: boolean): Graphics;
......@@ -904,7 +907,7 @@ declare module engine {
constructor();
loadSheet(url: string): Promise<void>;
loadSheet(url: string): Promise<any>;
loadRaw(url: string, uuid?: string, type?: 'text' | 'json'): Promise<any>;
......@@ -917,6 +920,8 @@ declare module engine {
loadTexture(url: string, uuid?: string): Promise<Texture>;
cache(name: string, data: any): void;
get(name: string): any;
}
export const globalLoader: Loader;
......@@ -1098,7 +1103,7 @@ declare module engine {
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<{}>;
......@@ -1373,7 +1378,7 @@ declare module engine {
export class SystemRenderer extends EventDispatcher {
options: RendererOptions;
type: number;
type: RENDERER_TYPE;
htmlElement: HTMLCanvasElement;
transparent: boolean;
preserveDrawingBuffer: boolean;
......@@ -1529,331 +1534,6 @@ declare module engine {
static registerPlugin(pluginName: string, ctor: Function): void;
}
export class BezierPath {
_d: any;
_transform: any;
_styles: any;
_shape: any;
constructor(d?: any, transform?: any, styles?: any);
}
export class EllipsePath extends BezierPath {
_x: any;
_y: any;
_radiusX: any;
_radiusY: any;
_transform: any;
_styles: any;
constructor(x: any, y: any, radiusX: any, radiusY: any, transform: any, styles: any);
}
export class FrameEntity {
alpha: number;
transform: {
a: number;
b: number;
c: number;
d: number;
tx: number;
ty: number;
};
layout: {
x: number;
y: number;
width: number;
height: number;
};
nx: number;
ny: number;
maskPath: any;
shapes: any[];
constructor(spec: any);
static lastShapes: any;
}
export const _default: (data: any, cb: any, failure: any) => void;
export class MovieClip extends Container {
lockStep: boolean;
readonly currentFrame: number;
private _curFrame;
readonly isPlaying: boolean;
private _isPlaying;
readonly isFront: boolean;
private _isFront;
totalFrames: number;
loops: number;
private textures;
private timeInterval;
private deltaFrame;
private frameCount;
constructor(mv?: VideoEntity);
init(mv: VideoEntity): void;
private initChildren;
private resetTransform;
resetTransformAll(frameIndex: number): void;
setImage(imagekey: any, imageUrl: string): void;
stop(): void;
nextFrame(): void;
prevFrame(): void;
gotoAndStop(frameIndex: number): void;
play(isFront?: boolean): void;
private _lastFrame;
readonly isInTimeFrame: boolean;
gotoAndPlay(frameIndex: number, isFront?: boolean): void;
startAniRange(beginFrame?: number, endFrame?: number, loops?: number, callback?: Function): void;
private startTime;
private startFrame;
private lastDeltaFrame;
private _endMark;
commonDeltaTime: number;
updateFrame(): void;
private getCurFrameWhenLockStep;
update(deltaTime: number): void;
destroy(): void;
}
export function inflate(input: any, options: any): any;
export const _default: {
inflate: typeof inflate;
}
export function assign(obj: any, objO: any): any;
export function shrinkBuf(buf: any, size: any): any;
export const utils: {
assign: typeof assign;
shrinkBuf: typeof shrinkBuf;
Buf8: any;
Buf16: any;
Buf32: any;
arraySet: any;
flattenChunks: any;
}
export {};
export function string2buf(str: any): any;
export function buf2binstring(buf: any, len?: any): any;
export function binstring2buf(str: any): any;
export function buf2string(buf: any, max: any): any;
export function utf8border(buf: any, max: any): any;
export const strings: {
utf8border: typeof utf8border;
buf2string: typeof buf2string;
binstring2buf: typeof binstring2buf;
buf2binstring: typeof buf2binstring;
string2buf: typeof string2buf;
}
export {};
export function adler32(adler: any, buf: any, len: any, pos: any): number;
export const _default: {
Z_NO_FLUSH: number;
Z_PARTIAL_FLUSH: number;
Z_SYNC_FLUSH: number;
Z_FULL_FLUSH: number;
Z_FINISH: number;
Z_BLOCK: number;
Z_TREES: number;
Z_OK: number;
Z_STREAM_END: number;
Z_NEED_DICT: number;
Z_ERRNO: number;
Z_STREAM_ERROR: number;
Z_DATA_ERROR: number;
Z_BUF_ERROR: number;
Z_NO_COMPRESSION: number;
Z_BEST_SPEED: number;
Z_BEST_COMPRESSION: number;
Z_DEFAULT_COMPRESSION: number;
Z_FILTERED: number;
Z_HUFFMAN_ONLY: number;
Z_RLE: number;
Z_FIXED: number;
Z_DEFAULT_STRATEGY: number;
Z_BINARY: number;
Z_TEXT: number;
Z_UNKNOWN: number;
Z_DEFLATED: number;
}
export function crc32(crc: any, buf: any, len: any, pos: any): number;
export function deflateResetKeep(strm: any): any;
export function deflateReset(strm: any): any;
export function deflateSetHeader(strm: any, head: any): number;
export function deflateInit2(strm: any, level: any, method: any, windowBits: any, memLevel: any, strategy: any): any;
export function deflateInit(strm: any, level: any): any;
export function deflate(strm: any, flush: any): any;
export function deflateEnd(strm: any): any;
export function deflateSetDictionary(strm: any, dictionary: any): number;
export const _default: {
deflateInit: typeof deflateInit;
deflateInit2: typeof deflateInit2;
deflateReset: typeof deflateReset;
deflateResetKeep: typeof deflateResetKeep;
deflateSetHeader: typeof deflateSetHeader;
deflate: typeof deflate;
deflateEnd: typeof deflateEnd;
deflateSetDictionary: typeof deflateSetDictionary;
deflateInfo: string;
}
export function GZheader(): void;
export function inflateResetKeep(strm: any): number;
export function inflateReset(strm: any): number;
export function inflateReset2(strm: any, windowBits: any): number;
export function inflateInit2(strm: any, windowBits: any): any;
export function inflateInit(strm: any): any;
export function inflate(strm: any, flush: any): any;
export function inflateEnd(strm: any): number;
export function inflateGetHeader(strm: any, head: any): number;
export function inflateSetDictionary(strm: any, dictionary: any): number;
export const _default: {
inflateReset: typeof inflateReset;
inflateReset2: typeof inflateReset2;
inflateResetKeep: typeof inflateResetKeep;
inflateInit: typeof inflateInit;
inflateInit2: typeof inflateInit2;
inflate: typeof inflate;
inflateEnd: typeof inflateEnd;
inflateGetHeader: typeof inflateGetHeader;
inflateSetDictionary: typeof inflateSetDictionary;
inflateInfo: string;
}
export const _default: {
2: string;
1: string;
0: string;
'-1': string;
'-2': string;
'-3': string;
'-4': string;
'-5': string;
'-6': string;
}
export function _tr_init(s: any): void;
export function _tr_stored_block(s: any, buf: any, stored_len: any, last: any): void;
export function _tr_align(s: any): void;
export function _tr_flush_block(s: any, buf: any, stored_len: any, last: any): void;
export function _tr_tally(s: any, dist: any, lc: any): boolean;
export const _default: {
_tr_init: typeof _tr_init;
_tr_stored_block: typeof _tr_stored_block;
_tr_flush_block: typeof _tr_flush_block;
_tr_tally: typeof _tr_tally;
_tr_align: typeof _tr_align;
}
export function ZStream(): void;
export class Parser {
load(url: any, success: any, failure: any): void;
loadViaWorker(url: any, success: any, failure: any): void;
}
export const proto: protobuf.Root;
export const ProtoMovieEntity: protobuf.Type;
export class RectPath extends BezierPath {
_x: any;
_y: any;
_width: any;
_height: any;
_cornerRadius: any;
_transform: any;
_styles: any;
constructor(x: any, y: any, width: any, height: any, cornerRadius: any, transform: any, styles: any);
}
export class SpriteEntity {
matteKey: any;
imageKey: any;
frames: any[];
constructor(spec: any);
}
export class VideoEntity extends HashObject {
version: string;
videoSize: {
width: number;
height: number;
};
FPS: number;
frames: number;
images: {};
hasBeenCached: boolean;
sprites: SpriteEntity[];
audios: any[];
constructor(spec: any, images: any);
resetSprites(spec: any): void;
destroy(): void;
}
export class EditableText extends TextField {
htmlElement: any;
private _prompt;
......@@ -1874,7 +1554,7 @@ declare module engine {
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;
......@@ -1912,11 +1592,19 @@ declare module engine {
private _lineSpacing;
lineType: TEXT_lINETYPE;
private _lineType;
protected _text: string;
text: string;
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;
private _font;
size: number;
......@@ -2316,8 +2004,58 @@ declare module engine {
private changeTexture;
}
export class ScrollContainer extends Container {
private _direction;
export abstract class ScrollListItemBase extends Container {
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;
private minDis;
private maskObj;
......@@ -2338,6 +2076,9 @@ declare module engine {
constructor(maxDistance?: number, isFull?: boolean);
readonly maxDistance: any;
protected calMaxDistance(): any;
direction: SCROLL_DIRECTION;
protected updateDirection(): void;
......@@ -2353,44 +2094,6 @@ declare module engine {
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 {
playWords(text: string, deltaTime?: number, callback?: Function): void;
}
......@@ -2668,6 +2371,7 @@ declare module engine {
export function executeBehavior(sequence: any, subEntry: string, target: any, args?: any): void;
export class Process {
private readonly id;
private _config;
private _parent;
private _vm;
......@@ -2676,7 +2380,7 @@ declare module engine {
private _target;
private _originProps;
constructor();
constructor(id: any);
readonly processConfig: any;
readonly parent: Process;
......@@ -2716,6 +2420,7 @@ declare module engine {
_target: any;
_id: any;
_scriptMap: any;
_pid: number;
setup(context: any): void;
......@@ -2778,6 +2483,14 @@ declare module engine {
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 registerCustomCodeModule(config: any): void;
......@@ -2792,7 +2505,7 @@ declare module engine {
constructor();
registerGroup(name: any, origin?: any): void;
registerGroup(name: any, origin?: any): any;
unregisterGroup(name: any): void;
......@@ -2817,7 +2530,7 @@ declare module engine {
export const dataCenter: DataCenter;
export let env: any;
export let env: {};
export function injectEnv(data: any): void;
......@@ -2838,7 +2551,7 @@ declare module engine {
readonly toast: Toast;
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;
......@@ -2851,11 +2564,27 @@ declare module engine {
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 {
private _originText;
......@@ -2885,11 +2614,33 @@ declare module engine {
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();
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;
fillColor: any;
strokeColor: any;
......@@ -2915,6 +2666,49 @@ declare module engine {
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 {
private _mutex;
private _stack;
......@@ -2947,17 +2741,27 @@ declare module engine {
private getContent;
}
export function registerNodeType(name: any, def: any): void;
export function instantiate(config: any): any;
export {instantiate};
export {instantiate, registerNodeType,};
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 launchWithConfig(config: any, loadingDelegate: any, onStart: any): Promise<{}>;
export function launchWithWindowVariable(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;
......@@ -2992,4 +2796,14 @@ declare module engine {
export function findVariable(name: string, ...contexts: 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;
}
......@@ -86,7 +86,7 @@
"metas": [
{
"id": "a4b27753-4cbb-47e3-9b31-51ced475e41a",
"script": "var uri = engine.findVariable('uri', args, props);\nvar url;\nif(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){\n\tvar projectX = 'projectx';\n\tvar projectID = engine.env.projectID;\n url = engine.joinPath(projectX, projectID, uri);\n}else{\n url = uri;\n}\nnext('success', {url:url});",
"script": "var uri = engine.findVariable('uri', args, props);\nvar url;\nif(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){\n\tvar projectX = 'projectx';\n\tvar projectID = engine.env.projectID;\n url = engine.joinPath(projectX, projectID, uri);\n}else{\n url = uri;\n}\nvar payload = args || {};\npayload.url = url;\nnext('success', payload);",
"props": {
"uri": {
"type": "string",
......
......@@ -70,7 +70,7 @@ function log(type, data) {
let {dpm, dcm, dom} = data;
const params: any = {
dpm, dcm, appId: engine.env.app_id
dpm, dcm, appId: engine.env.appID
};
if (dom !== '0.0.0.0') {
params.dom = dom;
......
......@@ -2,7 +2,9 @@
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<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" />
</component>
</module>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment