@galacean/effects-core 2.7.0-alpha.0 → 2.7.0-alpha.2
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/components/shape-component.d.ts +12 -40
- package/dist/index.js +160 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +143 -91
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/timeline/index.d.ts +1 -0
- package/dist/plugins/timeline/playable-assets/vector-property-playable-assets.d.ts +4 -0
- package/dist/plugins/timeline/playables/vector-property-mixer-playable.d.ts +5 -0
- package/dist/plugins/timeline/tracks/vector-property-track.d.ts +3 -0
- package/dist/vfx-item.d.ts +0 -14
- package/package.json +2 -2
|
@@ -8,29 +8,28 @@ import type { Renderer } from '../render';
|
|
|
8
8
|
import type { GradientValue } from '../math';
|
|
9
9
|
import { RendererComponent } from './renderer-component';
|
|
10
10
|
import type { Texture } from '../texture/texture';
|
|
11
|
-
export declare enum FillType {
|
|
12
|
-
Solid = 0,
|
|
13
|
-
GradientLinear = 1,
|
|
14
|
-
GradientRadial = 2,
|
|
15
|
-
GradientAngular = 3,
|
|
16
|
-
Texture = 4
|
|
17
|
-
}
|
|
18
11
|
export interface SolidPaint {
|
|
19
|
-
type: FillType.Solid;
|
|
12
|
+
type: spec.FillType.Solid;
|
|
20
13
|
color: Color;
|
|
21
14
|
}
|
|
22
15
|
export interface GradientPaint {
|
|
23
|
-
type: FillType.GradientLinear | FillType.GradientAngular | FillType.GradientRadial;
|
|
16
|
+
type: spec.FillType.GradientLinear | spec.FillType.GradientAngular | spec.FillType.GradientRadial;
|
|
24
17
|
gradientStops: GradientValue;
|
|
25
18
|
startPoint: Vector2;
|
|
26
19
|
endPoint: Vector2;
|
|
27
20
|
}
|
|
21
|
+
export interface TextureTransform {
|
|
22
|
+
offset: Vector2;
|
|
23
|
+
rotation: number;
|
|
24
|
+
scale: Vector2;
|
|
25
|
+
}
|
|
28
26
|
export interface TexturePaint {
|
|
29
|
-
type: FillType.Texture;
|
|
27
|
+
type: spec.FillType.Texture;
|
|
30
28
|
texture: Texture;
|
|
31
29
|
scaleMode: TexturePaintScaleMode;
|
|
32
30
|
scalingFactor: number;
|
|
33
31
|
opacity: number;
|
|
32
|
+
textureTransform: TextureTransform;
|
|
34
33
|
}
|
|
35
34
|
export declare enum TexturePaintScaleMode {
|
|
36
35
|
Fill = 0,
|
|
@@ -131,6 +130,9 @@ export declare class ShapeComponent extends RendererComponent implements Maskabl
|
|
|
131
130
|
private graphicsPath;
|
|
132
131
|
private fills;
|
|
133
132
|
private strokeAttributes;
|
|
133
|
+
private strokeWidth;
|
|
134
|
+
private strokeCap;
|
|
135
|
+
private strokeJoin;
|
|
134
136
|
private strokes;
|
|
135
137
|
private shapeAttributes;
|
|
136
138
|
/**
|
|
@@ -161,34 +163,4 @@ export declare class ShapeComponent extends RendererComponent implements Maskabl
|
|
|
161
163
|
private createPaint;
|
|
162
164
|
onApplyAnimationProperties(): void;
|
|
163
165
|
}
|
|
164
|
-
export type PaintData = SolidPaintData | GradientPaintData | TexturePaintData;
|
|
165
|
-
export interface SolidPaintData {
|
|
166
|
-
type: FillType.Solid;
|
|
167
|
-
/**
|
|
168
|
-
* 填充颜色
|
|
169
|
-
*/
|
|
170
|
-
color: spec.ColorData;
|
|
171
|
-
}
|
|
172
|
-
export interface GradientPaintData {
|
|
173
|
-
type: FillType.GradientLinear | FillType.GradientAngular | FillType.GradientRadial;
|
|
174
|
-
/**
|
|
175
|
-
* 渐变颜色
|
|
176
|
-
*/
|
|
177
|
-
gradientStops: spec.GradientColor;
|
|
178
|
-
/**
|
|
179
|
-
* 渐变起点
|
|
180
|
-
*/
|
|
181
|
-
startPoint: spec.Vector2Data;
|
|
182
|
-
/**
|
|
183
|
-
* 渐变终点
|
|
184
|
-
*/
|
|
185
|
-
endPoint: spec.Vector2Data;
|
|
186
|
-
}
|
|
187
|
-
export interface TexturePaintData {
|
|
188
|
-
type: FillType.Texture;
|
|
189
|
-
texture: spec.DataPath;
|
|
190
|
-
scaleMode: TexturePaintScaleMode;
|
|
191
|
-
scalingFactor?: number;
|
|
192
|
-
opacity?: number;
|
|
193
|
-
}
|
|
194
166
|
export {};
|