@galacean/effects-plugin-spine 2.9.3 → 2.10.0-alpha.1
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/alipay.js +1 -1
- package/dist/alipay.js.map +1 -1
- package/dist/alipay.mjs +1 -1
- package/dist/alipay.mjs.map +1 -1
- package/dist/douyin.js +1 -1
- package/dist/douyin.js.map +1 -1
- package/dist/douyin.mjs +1 -1
- package/dist/douyin.mjs.map +1 -1
- package/dist/index.js +6 -15
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +7 -16
- package/dist/index.mjs.map +1 -1
- package/dist/slot-group.d.ts +0 -8
- package/dist/spine-component.d.ts +11 -5
- package/dist/spine-mesh.d.ts +1 -5
- package/dist/weapp.js +1 -1
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +1 -1
- package/dist/weapp.mjs.map +1 -1
- package/package.json +2 -2
package/dist/slot-group.d.ts
CHANGED
|
@@ -15,10 +15,6 @@ export interface SlotGroupProps {
|
|
|
15
15
|
* png 是否已经预乘 alpha
|
|
16
16
|
*/
|
|
17
17
|
pma: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* mask 和 renderer 相关参数
|
|
20
|
-
*/
|
|
21
|
-
renderOptions: {};
|
|
22
18
|
engine: Engine;
|
|
23
19
|
}
|
|
24
20
|
export declare class SlotGroup {
|
|
@@ -47,10 +43,6 @@ export declare class SlotGroup {
|
|
|
47
43
|
* png 是否已经预乘 alpha
|
|
48
44
|
*/
|
|
49
45
|
pma: boolean;
|
|
50
|
-
/**
|
|
51
|
-
* mask 相关参数
|
|
52
|
-
*/
|
|
53
|
-
renderOptions: {};
|
|
54
46
|
/**
|
|
55
47
|
* 包含父节点的世界变换
|
|
56
48
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { SkeletonData, TextureAtlas } from '@esotericsoftware/spine-core';
|
|
2
2
|
import { AnimationState } from '@esotericsoftware/spine-core';
|
|
3
|
-
import type { BinaryAsset, BoundingBoxTriangle, Engine, HitTestTriangleParams, Maskable, Renderer, Texture } from '@galacean/effects';
|
|
4
|
-
import {
|
|
3
|
+
import type { BinaryAsset, BoundingBoxTriangle, Engine, HitTestTriangleParams, Maskable, MaskMode, Renderer, Texture } from '@galacean/effects';
|
|
4
|
+
import { RendererComponent, spec } from '@galacean/effects';
|
|
5
5
|
export interface BoundsData {
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
@@ -62,9 +62,15 @@ export declare class SpineComponent extends RendererComponent implements Maskabl
|
|
|
62
62
|
/**
|
|
63
63
|
* renderer 和 mask 数据
|
|
64
64
|
*/
|
|
65
|
-
rendererOptions:
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
rendererOptions: NonNullable<spec.SpineComponent['renderer']> & {
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated 2.10 起此字段无实际意义,runtime 不再赋值,仅为兼容旧版本读取保留。
|
|
68
|
+
*/
|
|
69
|
+
mask?: number;
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated 2.10 起此字段无实际意义,runtime 不再赋值,仅为兼容旧版本读取保留。
|
|
72
|
+
*/
|
|
73
|
+
maskMode?: MaskMode;
|
|
68
74
|
};
|
|
69
75
|
options: spec.PluginSpineOption;
|
|
70
76
|
resource: SpineResource;
|
package/dist/spine-mesh.d.ts
CHANGED
|
@@ -6,10 +6,6 @@ export interface SpineMeshRenderInfo {
|
|
|
6
6
|
priority: number;
|
|
7
7
|
blendMode: BlendMode;
|
|
8
8
|
name?: string;
|
|
9
|
-
renderOptions: {
|
|
10
|
-
maskMode?: number;
|
|
11
|
-
mask?: number;
|
|
12
|
-
};
|
|
13
9
|
engine: Engine;
|
|
14
10
|
}
|
|
15
11
|
export declare class SpineMesh implements Disposable {
|
|
@@ -29,7 +25,7 @@ export declare class SpineMesh implements Disposable {
|
|
|
29
25
|
get texture(): Texture;
|
|
30
26
|
get indicesNum(): number;
|
|
31
27
|
createGeometry(): Geometry;
|
|
32
|
-
createMaterial(
|
|
28
|
+
createMaterial(): Material;
|
|
33
29
|
updateMesh(vertices: number[], indices: number[], verticesLength: number): void;
|
|
34
30
|
endUpdate(worldMatrix: math.Matrix4): void;
|
|
35
31
|
startUpdate(): void;
|