@next2d/player 1.14.16 → 1.14.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/interface/PropertyBitmapDataMessageImpl.d.ts +8 -0
- package/dist/interface/PropertyBitmapDataMessageImpl.js +1 -0
- package/dist/player/index.js +1 -1
- package/dist/player/next2d/display/BitmapData.js +6 -9
- package/dist/player/next2d/display/DisplayObject.d.ts +0 -6
- package/dist/player/next2d/display/DisplayObject.js +1 -65
- package/dist/player/next2d/display/DisplayObjectContainer.js +2 -16
- package/dist/player/next2d/display/FrameLabel.js +0 -2
- package/dist/player/next2d/display/Graphics.js +0 -32
- package/dist/player/next2d/display/GraphicsBitmapFill.js +0 -4
- package/dist/player/next2d/display/GraphicsGradientFill.js +0 -9
- package/dist/player/next2d/display/InteractiveObject.js +0 -1
- package/dist/player/next2d/display/Loader.js +13 -16
- package/dist/player/next2d/display/LoaderInfo.js +0 -7
- package/dist/player/next2d/display/LoopConfig.js +0 -4
- package/dist/player/next2d/display/MovieClip.d.ts +4 -2
- package/dist/player/next2d/display/MovieClip.js +5 -23
- package/dist/player/next2d/display/Shape.d.ts +5 -3
- package/dist/player/next2d/display/Shape.js +4 -9
- package/dist/player/next2d/display/Sprite.d.ts +3 -2
- package/dist/player/next2d/display/Sprite.js +7 -15
- package/dist/player/next2d/display/Stage.js +0 -4
- package/dist/player/next2d/events/Event.js +0 -9
- package/dist/player/next2d/events/EventDispatcher.js +0 -1
- package/dist/player/next2d/events/HTTPStatusEvent.js +0 -3
- package/dist/player/next2d/events/IOErrorEvent.js +0 -1
- package/dist/player/next2d/events/ProgressEvent.js +0 -2
- package/dist/player/next2d/events/VideoEvent.js +0 -2
- package/dist/player/next2d/filters/BevelFilter.js +0 -10
- package/dist/player/next2d/filters/BitmapFilter.js +0 -1
- package/dist/player/next2d/filters/BlurFilter.js +0 -3
- package/dist/player/next2d/filters/ColorMatrixFilter.js +0 -1
- package/dist/player/next2d/filters/ConvolutionFilter.js +0 -9
- package/dist/player/next2d/filters/DisplacementMapFilter.js +0 -9
- package/dist/player/next2d/filters/DropShadowFilter.js +0 -9
- package/dist/player/next2d/filters/GlowFilter.js +0 -6
- package/dist/player/next2d/filters/GradientBevelFilter.js +0 -9
- package/dist/player/next2d/filters/GradientGlowFilter.js +0 -9
- package/dist/player/next2d/geom/ColorTransform.js +0 -1
- package/dist/player/next2d/geom/Matrix.js +0 -1
- package/dist/player/next2d/geom/Point.js +0 -2
- package/dist/player/next2d/geom/Rectangle.js +0 -4
- package/dist/player/next2d/geom/Transform.js +0 -5
- package/dist/player/next2d/media/Sound.js +0 -11
- package/dist/player/next2d/media/SoundTransform.js +0 -2
- package/dist/player/next2d/media/Video.d.ts +5 -3
- package/dist/player/next2d/media/Video.js +4 -19
- package/dist/player/next2d/net/URLRequest.js +0 -7
- package/dist/player/next2d/net/URLRequestHeader.js +0 -2
- package/dist/player/next2d/text/TextField.d.ts +5 -3
- package/dist/player/next2d/text/TextField.js +4 -50
- package/dist/player/next2d/text/TextFormat.js +0 -13
- package/dist/player/next2d/ui/Job.js +0 -11
- package/dist/player/player/Next2D.js +0 -10
- package/dist/player/player/Player.js +0 -49
- package/dist/player/util/CacheStore.js +0 -4
- package/dist/player/util/Util.d.ts +5 -4
- package/dist/player/util/Util.js +20 -14
- package/dist/webgl/BezierConverter.js +0 -1
- package/dist/webgl/CanvasGradientToWebGL.js +0 -6
- package/dist/webgl/CanvasPatternToWebGL.js +0 -4
- package/dist/webgl/CanvasToWebGLContext.js +0 -32
- package/dist/webgl/CanvasToWebGLContextBlend.js +0 -4
- package/dist/webgl/CanvasToWebGLContextGrid.js +0 -31
- package/dist/webgl/CanvasToWebGLContextMask.js +0 -7
- package/dist/webgl/CanvasToWebGLContextPath.js +0 -3
- package/dist/webgl/CanvasToWebGLContextStyle.js +0 -6
- package/dist/webgl/ColorBufferPool.js +0 -3
- package/dist/webgl/FrameBufferManager.js +0 -9
- package/dist/webgl/StencilBufferPool.js +0 -5
- package/dist/webgl/TextureManager.js +0 -7
- package/dist/webgl/VertexArrayObjectManager.js +0 -12
- package/dist/webgl/WebGLFillMeshGenerator.js +1 -4
- package/dist/webgl/WebGLStrokeMeshGenerator.js +12 -18
- package/dist/webgl/shader/CanvasToWebGLShader.js +0 -4
- package/dist/webgl/shader/CanvasToWebGLShaderList.js +0 -6
- package/dist/webgl/shader/GradientLUTGenerator.js +0 -6
- package/dist/webgl/shader/WebGLShaderUniform.js +0 -3
- package/dist/webgl/shader/variants/BlendShaderVariantCollection.js +0 -3
- package/dist/webgl/shader/variants/FilterShaderVariantCollection.js +0 -3
- package/dist/webgl/shader/variants/GradientLUTShaderVariantCollection.js +0 -3
- package/dist/webgl/shader/variants/GradientShapeShaderVariantCollection.js +0 -3
- package/dist/webgl/shader/variants/ShapeShaderVariantCollection.js +0 -3
- package/package.json +8 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/player/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { $currentPlayer, $initialize, $isSafari, $rendererWorker } from "./util/Util";
|
|
3
3
|
import { Next2D } from "./player/Next2D";
|
|
4
4
|
if (!("next2d" in window)) {
|
|
5
|
-
console.log("%c Next2D Player %c 1.14.
|
|
5
|
+
console.log("%c Next2D Player %c 1.14.18 %c https://next2d.app", "color: #fff; background: #5f5f5f", "color: #fff; background: #4bc729", "");
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
window.next2d = new Next2D([new Promise((resolve) => {
|
|
8
8
|
if (document.readyState === "loading") {
|
|
@@ -15,13 +15,6 @@ import { $COLOR_ARRAY_IDENTITY, $getArray, $MATRIX_ARRAY_IDENTITY, $multiplicati
|
|
|
15
15
|
* @memberOf next2d.display
|
|
16
16
|
*/
|
|
17
17
|
export class BitmapData {
|
|
18
|
-
_$instanceId;
|
|
19
|
-
_$width;
|
|
20
|
-
_$height;
|
|
21
|
-
_$buffer;
|
|
22
|
-
_$image;
|
|
23
|
-
_$canvas;
|
|
24
|
-
_$pixelBuffer;
|
|
25
18
|
/**
|
|
26
19
|
* @param {number} [width=0]
|
|
27
20
|
* @param {number} [height=0]
|
|
@@ -214,8 +207,12 @@ export class BitmapData {
|
|
|
214
207
|
if (!context) {
|
|
215
208
|
throw new Error("the context is null.");
|
|
216
209
|
}
|
|
217
|
-
|
|
218
|
-
|
|
210
|
+
if (this._$image) {
|
|
211
|
+
context.drawImage(this._$image, 0, 0);
|
|
212
|
+
}
|
|
213
|
+
if (this._$canvas) {
|
|
214
|
+
context.drawImage(this._$canvas, 0, 0);
|
|
215
|
+
}
|
|
219
216
|
bitmapData.canvas = canvas;
|
|
220
217
|
}
|
|
221
218
|
else if (this._$buffer !== null) {
|
|
@@ -444,12 +444,6 @@ export declare class DisplayObject extends EventDispatcher {
|
|
|
444
444
|
* @private
|
|
445
445
|
*/
|
|
446
446
|
_$getPlaceObject(): PlaceObjectImpl | null;
|
|
447
|
-
/**
|
|
448
|
-
* @return {object}
|
|
449
|
-
* @method
|
|
450
|
-
* @private
|
|
451
|
-
*/
|
|
452
|
-
_$sync(): any;
|
|
453
447
|
/**
|
|
454
448
|
* @param {object} tag
|
|
455
449
|
* @param {DisplayObjectContainer} parent
|
|
@@ -3,8 +3,7 @@ import { EventDispatcher } from "../events/EventDispatcher";
|
|
|
3
3
|
import { Transform } from "../geom/Transform";
|
|
4
4
|
import { Rectangle } from "../geom/Rectangle";
|
|
5
5
|
import { Point } from "../geom/Point";
|
|
6
|
-
import { $
|
|
7
|
-
import { $doUpdated, $getCurrentLoaderInfo, $getEvent, $getInstanceId } from "../../util/Global";
|
|
6
|
+
import { $doUpdated, $getEvent, $getInstanceId } from "../../util/Global";
|
|
8
7
|
import { $currentMousePoint, $currentPlayer, $poolColorTransform, $rendererWorker, $poolMatrix, $hitContext, $variables } from "../../util/Util";
|
|
9
8
|
import { $clamp, $getArray, $boundsMatrix, $Math, $poolBoundsObject, $Infinity, $getBoundsObject, $isNaN, $Deg2Rad, $Number, $Rad2Deg, $SHORT_INT_MIN, $SHORT_INT_MAX, $MATRIX_ARRAY_IDENTITY, $multiplicationMatrix, $poolFloat32Array6, $getMap, $poolMap, $getFloat32Array6 } from "../../util/RenderUtil";
|
|
10
9
|
/**
|
|
@@ -25,40 +24,6 @@ import { $clamp, $getArray, $boundsMatrix, $Math, $poolBoundsObject, $Infinity,
|
|
|
25
24
|
* @extends EventDispatcher
|
|
26
25
|
*/
|
|
27
26
|
export class DisplayObject extends EventDispatcher {
|
|
28
|
-
_$instanceId;
|
|
29
|
-
_$id;
|
|
30
|
-
_$stage;
|
|
31
|
-
_$parent;
|
|
32
|
-
_$scale9Grid;
|
|
33
|
-
_$characterId;
|
|
34
|
-
_$active;
|
|
35
|
-
_$isMask;
|
|
36
|
-
_$updated;
|
|
37
|
-
_$added;
|
|
38
|
-
_$addedStage;
|
|
39
|
-
_$filters;
|
|
40
|
-
_$blendMode;
|
|
41
|
-
_$transform;
|
|
42
|
-
_$hitObject;
|
|
43
|
-
_$isNext;
|
|
44
|
-
_$created;
|
|
45
|
-
_$posted;
|
|
46
|
-
_$clipDepth;
|
|
47
|
-
_$name;
|
|
48
|
-
_$mask;
|
|
49
|
-
_$visible;
|
|
50
|
-
_$root;
|
|
51
|
-
_$loaderInfo;
|
|
52
|
-
_$scaleX;
|
|
53
|
-
_$scaleY;
|
|
54
|
-
_$variables;
|
|
55
|
-
_$placeObject;
|
|
56
|
-
_$rotation;
|
|
57
|
-
_$changePlace;
|
|
58
|
-
_$currentPlaceId;
|
|
59
|
-
_$placeId;
|
|
60
|
-
_$startFrame;
|
|
61
|
-
_$endFrame;
|
|
62
27
|
/**
|
|
63
28
|
* @constructor
|
|
64
29
|
* @public
|
|
@@ -1216,35 +1181,6 @@ export class DisplayObject extends EventDispatcher {
|
|
|
1216
1181
|
}
|
|
1217
1182
|
return this._$placeObject;
|
|
1218
1183
|
}
|
|
1219
|
-
/**
|
|
1220
|
-
* @return {object}
|
|
1221
|
-
* @method
|
|
1222
|
-
* @private
|
|
1223
|
-
*/
|
|
1224
|
-
_$sync() {
|
|
1225
|
-
const name = this.namespace;
|
|
1226
|
-
let loaderInfo = null;
|
|
1227
|
-
if ($window.next2d.fw && $window.next2d.fw.loaderInfo.has(name)) {
|
|
1228
|
-
loaderInfo = $window.next2d.fw.loaderInfo.get(name)._$loaderInfo;
|
|
1229
|
-
}
|
|
1230
|
-
if (!loaderInfo) {
|
|
1231
|
-
loaderInfo = this._$loaderInfo || $getCurrentLoaderInfo();
|
|
1232
|
-
}
|
|
1233
|
-
if (!loaderInfo || !loaderInfo._$data) {
|
|
1234
|
-
return null;
|
|
1235
|
-
}
|
|
1236
|
-
const characterId = loaderInfo._$data.symbols.get(name);
|
|
1237
|
-
if (!characterId) {
|
|
1238
|
-
return null;
|
|
1239
|
-
}
|
|
1240
|
-
const character = loaderInfo._$data.characters[characterId];
|
|
1241
|
-
if (!character) {
|
|
1242
|
-
return null;
|
|
1243
|
-
}
|
|
1244
|
-
this._$characterId = characterId;
|
|
1245
|
-
this._$loaderInfo = loaderInfo;
|
|
1246
|
-
return character;
|
|
1247
|
-
}
|
|
1248
1184
|
/**
|
|
1249
1185
|
* @param {object} tag
|
|
1250
1186
|
* @param {DisplayObjectContainer} parent
|
|
@@ -2,7 +2,7 @@ import { InteractiveObject } from "./InteractiveObject";
|
|
|
2
2
|
import { Event as Next2DEvent } from "../events/Event";
|
|
3
3
|
import { Rectangle } from "../geom/Rectangle";
|
|
4
4
|
import { $doUpdated } from "../../util/Global";
|
|
5
|
-
import { $
|
|
5
|
+
import { $createInstance, $currentPlayer, $hitContext, $isTouch, $MATRIX_HIT_ARRAY_IDENTITY, $rendererWorker } from "../../util/Util";
|
|
6
6
|
import { $boundsMatrix, $clamp, $getArray, $getBoundsObject, $getFloat32Array6, $getFloat32Array8, $getMap, $getPreObject, $Math, $COLOR_ARRAY_IDENTITY, $MATRIX_ARRAY_IDENTITY, $multiplicationColor, $multiplicationMatrix, $Number, $poolArray, $poolBoundsObject, $poolFloat32Array6, $poolFloat32Array8, $poolMap, $poolPreObject } from "../../util/RenderUtil";
|
|
7
7
|
/**
|
|
8
8
|
* DisplayObjectContainer クラスは、表示リストで表示オブジェクトコンテナとして機能するすべてのオブジェクトの基本クラスです。
|
|
@@ -22,15 +22,6 @@ import { $boundsMatrix, $clamp, $getArray, $getBoundsObject, $getFloat32Array6,
|
|
|
22
22
|
* @extends InteractiveObject
|
|
23
23
|
*/
|
|
24
24
|
export class DisplayObjectContainer extends InteractiveObject {
|
|
25
|
-
_$placeMap;
|
|
26
|
-
_$placeObjects;
|
|
27
|
-
_$controller;
|
|
28
|
-
_$dictionary;
|
|
29
|
-
_$children;
|
|
30
|
-
_$needsChildren;
|
|
31
|
-
_$mouseChildren;
|
|
32
|
-
_$wait;
|
|
33
|
-
_$names;
|
|
34
25
|
/**
|
|
35
26
|
* @constructor
|
|
36
27
|
* @public
|
|
@@ -1632,12 +1623,7 @@ export class DisplayObjectContainer extends InteractiveObject {
|
|
|
1632
1623
|
}
|
|
1633
1624
|
const character = loaderInfo._$data.characters[tag.characterId];
|
|
1634
1625
|
// symbol class
|
|
1635
|
-
|
|
1636
|
-
character.class = character.symbol
|
|
1637
|
-
? $getClass(character.symbol) || $getClass(character.extends)
|
|
1638
|
-
: $getClass(character.extends);
|
|
1639
|
-
}
|
|
1640
|
-
const instance = new character.class();
|
|
1626
|
+
const instance = $createInstance(character.extends);
|
|
1641
1627
|
instance._$build(tag, this);
|
|
1642
1628
|
instance._$id = index;
|
|
1643
1629
|
return instance;
|
|
@@ -21,38 +21,6 @@ import { $Math, $Number, $getArray, $poolArray, $toColorInt, $intToRGBA, $clamp,
|
|
|
21
21
|
* @memberOf next2d.display
|
|
22
22
|
*/
|
|
23
23
|
export class Graphics {
|
|
24
|
-
_$displayObject;
|
|
25
|
-
_$maxAlpha;
|
|
26
|
-
_$pointerX;
|
|
27
|
-
_$pointerY;
|
|
28
|
-
_$canDraw;
|
|
29
|
-
_$fillType;
|
|
30
|
-
_$fillGradient;
|
|
31
|
-
_$fillBitmap;
|
|
32
|
-
_$fillStyleR;
|
|
33
|
-
_$fillStyleG;
|
|
34
|
-
_$fillStyleB;
|
|
35
|
-
_$fillStyleA;
|
|
36
|
-
_$doFill;
|
|
37
|
-
_$lineType;
|
|
38
|
-
_$lineGradient;
|
|
39
|
-
_$caps;
|
|
40
|
-
_$joints;
|
|
41
|
-
_$miterLimit;
|
|
42
|
-
_$lineWidth;
|
|
43
|
-
_$lineStyleR;
|
|
44
|
-
_$lineStyleG;
|
|
45
|
-
_$lineStyleB;
|
|
46
|
-
_$lineStyleA;
|
|
47
|
-
_$doLine;
|
|
48
|
-
_$xMin;
|
|
49
|
-
_$xMax;
|
|
50
|
-
_$yMin;
|
|
51
|
-
_$yMax;
|
|
52
|
-
_$buffer;
|
|
53
|
-
_$recode;
|
|
54
|
-
_$fills;
|
|
55
|
-
_$lines;
|
|
56
24
|
/**
|
|
57
25
|
* @param {DisplayObject} src
|
|
58
26
|
*
|
|
@@ -8,15 +8,6 @@ import { $colorStringToInt, $getArray, $intToRGBA, $Math, $MATRIX_ARRAY_IDENTITY
|
|
|
8
8
|
* @private
|
|
9
9
|
*/
|
|
10
10
|
export class GraphicsGradientFill {
|
|
11
|
-
_$type;
|
|
12
|
-
_$colors;
|
|
13
|
-
_$alphas;
|
|
14
|
-
_$ratios;
|
|
15
|
-
_$matrix;
|
|
16
|
-
_$spreadMethod;
|
|
17
|
-
_$interpolationMethod;
|
|
18
|
-
_$focalPointRatio;
|
|
19
|
-
_$colorStops;
|
|
20
11
|
/**
|
|
21
12
|
* @param {string} [type=GradientType.LINEAR]
|
|
22
13
|
* @param {array} [colors=null]
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
1
10
|
import { DisplayObjectContainer } from "./DisplayObjectContainer";
|
|
2
11
|
import { LoaderInfo } from "./LoaderInfo";
|
|
3
12
|
import { MovieClip } from "./MovieClip";
|
|
@@ -5,7 +14,7 @@ import { IOErrorEvent } from "../events/IOErrorEvent";
|
|
|
5
14
|
import { Event } from "../events/Event";
|
|
6
15
|
import { ProgressEvent as Next2DProgressEvent } from "../events/ProgressEvent";
|
|
7
16
|
import { HTTPStatusEvent } from "../events/HTTPStatusEvent";
|
|
8
|
-
import { $ajax, $headerToArray, $unzipQueues, $updateUnzipWorkerStatus, $getUnzipWorker, $
|
|
17
|
+
import { $ajax, $headerToArray, $unzipQueues, $updateUnzipWorkerStatus, $getUnzipWorker, $currentPlayer, $useUnzipWorker } from "../../util/Util";
|
|
9
18
|
import { $getMap } from "../../util/RenderUtil";
|
|
10
19
|
/**
|
|
11
20
|
* Loader クラスは、JSON ファイルまたはイメージ(JPEG、PNG、または GIF)ファイルを読み込むために使用します。
|
|
@@ -180,9 +189,9 @@ export class Loader extends DisplayObjectContainer {
|
|
|
180
189
|
$updateUnzipWorkerStatus(true);
|
|
181
190
|
const unzipWorker = $getUnzipWorker();
|
|
182
191
|
const buffer = new Uint8Array(json.buffer);
|
|
183
|
-
unzipWorker.onmessage =
|
|
192
|
+
unzipWorker.onmessage = (event) => __awaiter(this, void 0, void 0, function* () {
|
|
184
193
|
this._$unzipHandler(event);
|
|
185
|
-
};
|
|
194
|
+
});
|
|
186
195
|
unzipWorker.postMessage(buffer, [buffer.buffer]);
|
|
187
196
|
}
|
|
188
197
|
else {
|
|
@@ -273,14 +282,10 @@ export class Loader extends DisplayObjectContainer {
|
|
|
273
282
|
if (!loaderInfo) {
|
|
274
283
|
return;
|
|
275
284
|
}
|
|
276
|
-
let rootSymbol = null;
|
|
277
285
|
const symbols = $getMap();
|
|
278
286
|
if (object.symbols.length) {
|
|
279
287
|
for (let idx = 0; idx < object.symbols.length; ++idx) {
|
|
280
288
|
const values = object.symbols[idx];
|
|
281
|
-
if (values[1] === 0) {
|
|
282
|
-
rootSymbol = values[0];
|
|
283
|
-
}
|
|
284
289
|
symbols.set(values[0], values[1]);
|
|
285
290
|
}
|
|
286
291
|
}
|
|
@@ -290,15 +295,7 @@ export class Loader extends DisplayObjectContainer {
|
|
|
290
295
|
"symbols": symbols
|
|
291
296
|
};
|
|
292
297
|
// setup
|
|
293
|
-
|
|
294
|
-
// TODO
|
|
295
|
-
const SymbolClass = $getClass(rootSymbol) || MovieClip;
|
|
296
|
-
// @ts-ignore
|
|
297
|
-
loaderInfo._$content = new SymbolClass();
|
|
298
|
-
}
|
|
299
|
-
else {
|
|
300
|
-
loaderInfo._$content = new MovieClip();
|
|
301
|
-
}
|
|
298
|
+
loaderInfo._$content = new MovieClip();
|
|
302
299
|
// build root
|
|
303
300
|
const root = object.characters[0];
|
|
304
301
|
loaderInfo._$content._$build({
|
|
@@ -15,13 +15,6 @@ import { $getLoaderInfoId } from "../../util/Global";
|
|
|
15
15
|
* @extends EventDispatcher
|
|
16
16
|
*/
|
|
17
17
|
export class LoaderInfo extends EventDispatcher {
|
|
18
|
-
_$id;
|
|
19
|
-
_$content;
|
|
20
|
-
_$data;
|
|
21
|
-
_$bytesLoaded;
|
|
22
|
-
_$bytesTotal;
|
|
23
|
-
_$url;
|
|
24
|
-
_$format;
|
|
25
18
|
/**
|
|
26
19
|
* @constructor
|
|
27
20
|
* @public
|
|
@@ -5,6 +5,7 @@ import type { LoopConfigImpl } from "../../../interface/LoopConfigImpl";
|
|
|
5
5
|
import type { ParentImpl } from "../../../interface/ParentImpl";
|
|
6
6
|
import type { MovieClipCharacterImpl } from "../../../interface/MovieClipCharacterImpl";
|
|
7
7
|
import type { DictionaryTagImpl } from "../../../interface/DictionaryTagImpl";
|
|
8
|
+
import type { Character } from "../../../interface/Character";
|
|
8
9
|
/**
|
|
9
10
|
* MovieClip クラスは、Sprite、DisplayObjectContainer、InteractiveObject、DisplayObject
|
|
10
11
|
* および EventDispatcher クラスを継承します。
|
|
@@ -290,11 +291,12 @@ export declare class MovieClip extends Sprite {
|
|
|
290
291
|
*/
|
|
291
292
|
_$buildCharacter(character: MovieClipCharacterImpl): void;
|
|
292
293
|
/**
|
|
293
|
-
* @
|
|
294
|
+
* @param {object} character
|
|
295
|
+
* @return {void}
|
|
294
296
|
* @method
|
|
295
297
|
* @private
|
|
296
298
|
*/
|
|
297
|
-
_$sync():
|
|
299
|
+
_$sync(character: Character<MovieClipCharacterImpl>): void;
|
|
298
300
|
/**
|
|
299
301
|
* @param {object} tag
|
|
300
302
|
* @param {DisplayObjectContainer} parent
|
|
@@ -22,22 +22,6 @@ import { $Array, $getArray, $getMap, $isNaN, $Math } from "../../util/RenderUtil
|
|
|
22
22
|
* @extends Sprite
|
|
23
23
|
*/
|
|
24
24
|
export class MovieClip extends Sprite {
|
|
25
|
-
_$labels;
|
|
26
|
-
_$currentFrame;
|
|
27
|
-
_$stopFlag;
|
|
28
|
-
_$canAction;
|
|
29
|
-
_$childRemove;
|
|
30
|
-
_$canSound;
|
|
31
|
-
_$actionProcess;
|
|
32
|
-
_$actions;
|
|
33
|
-
_$frameCache;
|
|
34
|
-
_$sounds;
|
|
35
|
-
_$actionOffset;
|
|
36
|
-
_$actionLimit;
|
|
37
|
-
_$totalFrames;
|
|
38
|
-
_$isPlaying;
|
|
39
|
-
_$loopConfig;
|
|
40
|
-
_$tweenFrame;
|
|
41
25
|
/**
|
|
42
26
|
* @constructor
|
|
43
27
|
* @public
|
|
@@ -901,16 +885,14 @@ export class MovieClip extends Sprite {
|
|
|
901
885
|
this._$totalFrames = character.totalFrame || 1;
|
|
902
886
|
}
|
|
903
887
|
/**
|
|
904
|
-
* @
|
|
888
|
+
* @param {object} character
|
|
889
|
+
* @return {void}
|
|
905
890
|
* @method
|
|
906
891
|
* @private
|
|
907
892
|
*/
|
|
908
|
-
_$sync() {
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
this._$buildCharacter(character);
|
|
912
|
-
}
|
|
913
|
-
return character;
|
|
893
|
+
_$sync(character) {
|
|
894
|
+
super._$sync(character);
|
|
895
|
+
this._$buildCharacter(character);
|
|
914
896
|
}
|
|
915
897
|
/**
|
|
916
898
|
* @param {object} tag
|
|
@@ -7,6 +7,7 @@ import type { ParentImpl } from "../../../interface/ParentImpl";
|
|
|
7
7
|
import type { DictionaryTagImpl } from "../../../interface/DictionaryTagImpl";
|
|
8
8
|
import type { CanvasToWebGLContext } from "../../../webgl/CanvasToWebGLContext";
|
|
9
9
|
import type { PlayerHitObjectImpl } from "../../../interface/PlayerHitObjectImpl";
|
|
10
|
+
import type { Character } from "../../../interface/Character";
|
|
10
11
|
/**
|
|
11
12
|
* Shape クラスには、Graphics クラスからメソッドにアクセスできる graphics プロパティがあります。
|
|
12
13
|
*
|
|
@@ -94,7 +95,7 @@ export declare class Shape extends DisplayObject {
|
|
|
94
95
|
* @method
|
|
95
96
|
* @private
|
|
96
97
|
*/
|
|
97
|
-
_$buildCharacter(character: ShapeCharacterImpl
|
|
98
|
+
_$buildCharacter(character: Character<ShapeCharacterImpl>, loaderInfo: LoaderInfo): void;
|
|
98
99
|
/**
|
|
99
100
|
* @return {void}
|
|
100
101
|
* @method
|
|
@@ -102,11 +103,12 @@ export declare class Shape extends DisplayObject {
|
|
|
102
103
|
*/
|
|
103
104
|
_$createWorkerInstance(): void;
|
|
104
105
|
/**
|
|
105
|
-
* @
|
|
106
|
+
* @param {object} character
|
|
107
|
+
* @return {void}
|
|
106
108
|
* @method
|
|
107
109
|
* @protected
|
|
108
110
|
*/
|
|
109
|
-
_$sync():
|
|
111
|
+
_$sync(character: ShapeCharacterImpl): void;
|
|
110
112
|
/**
|
|
111
113
|
* @param {object} tag
|
|
112
114
|
* @param {DisplayObjectContainer} parent
|
|
@@ -16,10 +16,6 @@ import { $getArray, $poolArray, $getFloat32Array6, $getBoundsObject, $poolBounds
|
|
|
16
16
|
* @extends DisplayObject
|
|
17
17
|
*/
|
|
18
18
|
export class Shape extends DisplayObject {
|
|
19
|
-
_$graphics;
|
|
20
|
-
_$bounds;
|
|
21
|
-
_$bitmapId;
|
|
22
|
-
_$src;
|
|
23
19
|
/**
|
|
24
20
|
* @constructor
|
|
25
21
|
* @public
|
|
@@ -309,16 +305,15 @@ export class Shape extends DisplayObject {
|
|
|
309
305
|
$rendererWorker.postMessage(message, options);
|
|
310
306
|
}
|
|
311
307
|
/**
|
|
312
|
-
* @
|
|
308
|
+
* @param {object} character
|
|
309
|
+
* @return {void}
|
|
313
310
|
* @method
|
|
314
311
|
* @protected
|
|
315
312
|
*/
|
|
316
|
-
_$sync() {
|
|
317
|
-
|
|
318
|
-
if (character && this._$loaderInfo) {
|
|
313
|
+
_$sync(character) {
|
|
314
|
+
if (this._$loaderInfo) {
|
|
319
315
|
this._$buildCharacter(character, this._$loaderInfo);
|
|
320
316
|
}
|
|
321
|
-
return character;
|
|
322
317
|
}
|
|
323
318
|
/**
|
|
324
319
|
* @param {object} tag
|
|
@@ -152,11 +152,12 @@ export declare class Sprite extends DisplayObjectContainer {
|
|
|
152
152
|
*/
|
|
153
153
|
stopDrag(): void;
|
|
154
154
|
/**
|
|
155
|
-
* @
|
|
155
|
+
* @param {object} character
|
|
156
|
+
* @return {void}
|
|
156
157
|
* @method
|
|
157
158
|
* @private
|
|
158
159
|
*/
|
|
159
|
-
_$sync():
|
|
160
|
+
_$sync(character: MovieClipCharacterImpl): void;
|
|
160
161
|
/**
|
|
161
162
|
* @param {object} tag
|
|
162
163
|
* @param {DisplayObjectContainer} parent
|
|
@@ -14,11 +14,6 @@ import { $currentMousePoint, $dragRules, $dropTarget, $rendererWorker, $setDropT
|
|
|
14
14
|
* @extends DisplayObjectContainer
|
|
15
15
|
*/
|
|
16
16
|
export class Sprite extends DisplayObjectContainer {
|
|
17
|
-
_$buttonMode;
|
|
18
|
-
_$hitArea;
|
|
19
|
-
_$soundTransform;
|
|
20
|
-
_$graphics;
|
|
21
|
-
_$useHandCursor;
|
|
22
17
|
/**
|
|
23
18
|
* @constructor
|
|
24
19
|
* @public
|
|
@@ -239,22 +234,19 @@ export class Sprite extends DisplayObjectContainer {
|
|
|
239
234
|
$dragRules.bounds = null;
|
|
240
235
|
}
|
|
241
236
|
/**
|
|
242
|
-
* @
|
|
237
|
+
* @param {object} character
|
|
238
|
+
* @return {void}
|
|
243
239
|
* @method
|
|
244
240
|
* @private
|
|
245
241
|
*/
|
|
246
|
-
_$sync() {
|
|
247
|
-
const character = super._$sync();
|
|
242
|
+
_$sync(character) {
|
|
248
243
|
if ($rendererWorker && this._$stage) {
|
|
249
244
|
this._$createWorkerInstance();
|
|
250
245
|
}
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
this._$placeObjects = character.placeObjects;
|
|
256
|
-
}
|
|
257
|
-
return character;
|
|
246
|
+
this._$controller = character.controller;
|
|
247
|
+
this._$dictionary = character.dictionary;
|
|
248
|
+
this._$placeMap = character.placeMap;
|
|
249
|
+
this._$placeObjects = character.placeObjects;
|
|
258
250
|
}
|
|
259
251
|
/**
|
|
260
252
|
* @param {object} tag
|
|
@@ -10,10 +10,6 @@ import { $clamp, $toColorInt, $uintToRGBA } from "../../util/RenderUtil";
|
|
|
10
10
|
* @extends DisplayObjectContainer
|
|
11
11
|
*/
|
|
12
12
|
export class Stage extends DisplayObjectContainer {
|
|
13
|
-
_$player;
|
|
14
|
-
_$invalidate;
|
|
15
|
-
_$color;
|
|
16
|
-
_$frameRate;
|
|
17
13
|
/**
|
|
18
14
|
* @constructor
|
|
19
15
|
* @public
|
|
@@ -18,15 +18,6 @@ import { EventPhase } from "./EventPhase";
|
|
|
18
18
|
* @memberOf next2d.events
|
|
19
19
|
*/
|
|
20
20
|
export class Event {
|
|
21
|
-
_$type;
|
|
22
|
-
_$bubbles;
|
|
23
|
-
_$cancelable;
|
|
24
|
-
_$target;
|
|
25
|
-
_$currentTarget;
|
|
26
|
-
_$listener;
|
|
27
|
-
_$eventPhase;
|
|
28
|
-
_$stopImmediatePropagation;
|
|
29
|
-
_$stopPropagation;
|
|
30
21
|
/**
|
|
31
22
|
* @param {string} type
|
|
32
23
|
* @param {boolean} [bubbles=false]
|
|
@@ -18,16 +18,6 @@ import { $Math, $clamp, $toColorInt, $getArray, $Deg2Rad, $intToR, $intToG, $int
|
|
|
18
18
|
* @extends BitmapFilter
|
|
19
19
|
*/
|
|
20
20
|
export class BevelFilter extends BitmapFilter {
|
|
21
|
-
_$blurFilter;
|
|
22
|
-
_$distance;
|
|
23
|
-
_$angle;
|
|
24
|
-
_$highlightColor;
|
|
25
|
-
_$highlightAlpha;
|
|
26
|
-
_$shadowColor;
|
|
27
|
-
_$shadowAlpha;
|
|
28
|
-
_$strength;
|
|
29
|
-
_$type;
|
|
30
|
-
_$knockout;
|
|
31
21
|
/**
|
|
32
22
|
* @param {number} [distance=4]
|
|
33
23
|
* @param {number} [angle=45]
|