@nmmty/lazycanvas 0.5.1 → 0.5.3
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/animation.gif +0 -0
- package/dist/structures/components/ClearLayer.d.ts +5 -1
- package/dist/structures/components/Group.d.ts +15 -1
- package/dist/structures/components/Group.js +19 -0
- package/dist/structures/components/ImageLayer.d.ts +8 -4
- package/dist/structures/components/ImageLayer.js +16 -9
- package/dist/structures/components/MorphLayer.d.ts +8 -4
- package/dist/structures/components/MorphLayer.js +16 -9
- package/dist/structures/managers/RenderManager.js +2 -23
- package/dist/types/types.d.ts +48 -20
- package/dist/utils/utils.js +6 -2
- package/package.json +1 -1
- package/test.png +0 -0
- package/dist/structures/helpers/readers/SVGReader.d.ts +0 -20
- package/dist/structures/helpers/readers/SVGReader.js +0 -577
- package/dist/structures/helpers/readers/YAMLReader.d.ts +0 -0
- package/dist/structures/helpers/readers/YAMLReader.js +0 -1
- package/dist/types/LazyCanvas.d.ts +0 -18
- package/dist/types/components/BaseLayer.d.ts +0 -49
- package/dist/types/components/BezierLayer.d.ts +0 -11
- package/dist/types/components/ClearLayer.d.ts +0 -19
- package/dist/types/components/Group.d.ts +0 -8
- package/dist/types/components/ImageLayer.d.ts +0 -15
- package/dist/types/components/LineLayer.d.ts +0 -12
- package/dist/types/components/MorphLayer.d.ts +0 -14
- package/dist/types/components/QuadraticLayer.d.ts +0 -11
- package/dist/types/components/TextLayer.d.ts +0 -28
- package/dist/types/helpers/Font.d.ts +0 -12
- package/dist/types/helpers/Gradient.d.ts +0 -19
- package/dist/types/helpers/Link.d.ts +0 -7
- package/dist/types/helpers/Pattern.d.ts +0 -7
- package/dist/types/managers/AnimationManager.d.ts +0 -14
- package/dist/types/managers/FontsManager.d.ts +0 -6
- package/dist/types/managers/LayersManager.d.ts +0 -7
- package/dist/types/managers/RenderManager.d.ts +0 -6
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IBaseLayer, IBaseLayerProps } from "./BaseLayer";
|
|
2
|
-
import { ScaleType } from "../";
|
|
3
|
-
|
|
4
|
-
export interface IImageLayer extends IBaseLayer {
|
|
5
|
-
props: IImageLayerProps;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface IImageLayerProps extends IBaseLayerProps {
|
|
9
|
-
src: string;
|
|
10
|
-
size: {
|
|
11
|
-
width: ScaleType;
|
|
12
|
-
height: ScaleType;
|
|
13
|
-
radius: ScaleType;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IBaseLayer, IBaseLayerProps, ScaleType } from "../";
|
|
2
|
-
|
|
3
|
-
export interface ILineLayer extends IBaseLayer {
|
|
4
|
-
props: ILineLayerProps;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface ILineLayerProps extends IBaseLayerProps {
|
|
8
|
-
endPoint: {
|
|
9
|
-
x: ScaleType,
|
|
10
|
-
y: ScaleType
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IBaseLayer, IBaseLayerProps } from "./BaseLayer";
|
|
2
|
-
import { ScaleType } from "../";
|
|
3
|
-
|
|
4
|
-
export interface IMorphLayer extends IBaseLayer {
|
|
5
|
-
props: IMorphLayerProps;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface IMorphLayerProps extends IBaseLayerProps {
|
|
9
|
-
size: {
|
|
10
|
-
width: ScaleType;
|
|
11
|
-
height: ScaleType;
|
|
12
|
-
radius: ScaleType;
|
|
13
|
-
};
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IBaseLayer, IBaseLayerProps } from "./BaseLayer";
|
|
2
|
-
import { Point } from "../";
|
|
3
|
-
|
|
4
|
-
export interface IQuadraticLayer extends IBaseLayer {
|
|
5
|
-
props: IQuadraticLayerProps;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface IQuadraticLayerProps extends IBaseLayerProps {
|
|
9
|
-
controlPoint: Point;
|
|
10
|
-
endPoint: Point;
|
|
11
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { AnyWeight, ScaleType, AnyTextAlign, AnyTextBaseline, AnyTextDirection } from "../";
|
|
2
|
-
import { IBaseLayer, IBaseLayerProps } from "./BaseLayer";
|
|
3
|
-
|
|
4
|
-
export interface ITextLayer extends IBaseLayer {
|
|
5
|
-
props: ITextLayerProps;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface ITextLayerProps extends IBaseLayerProps {
|
|
9
|
-
text: string;
|
|
10
|
-
font: {
|
|
11
|
-
family: string;
|
|
12
|
-
size: number;
|
|
13
|
-
weight: AnyWeight;
|
|
14
|
-
};
|
|
15
|
-
multiline: {
|
|
16
|
-
enabled: boolean;
|
|
17
|
-
spacing?: number;
|
|
18
|
-
};
|
|
19
|
-
size: {
|
|
20
|
-
width: ScaleType;
|
|
21
|
-
height: ScaleType;
|
|
22
|
-
};
|
|
23
|
-
align: AnyTextAlign;
|
|
24
|
-
baseline: AnyTextBaseline;
|
|
25
|
-
direction: AnyTextDirection;
|
|
26
|
-
letterSpacing: number;
|
|
27
|
-
wordSpacing: number;
|
|
28
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AnyGradientType } from "../";
|
|
2
|
-
|
|
3
|
-
export interface IGradient {
|
|
4
|
-
type: AnyGradientType;
|
|
5
|
-
points: Array<GradientPoint>;
|
|
6
|
-
stops: Array<GradientColorStop>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface GradientColorStop {
|
|
10
|
-
color: string;
|
|
11
|
-
offset: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface GradientPoint {
|
|
15
|
-
x: number;
|
|
16
|
-
y: number;
|
|
17
|
-
r?: number;
|
|
18
|
-
startAngle?: number;
|
|
19
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AnyColorSpace } from "../types";
|
|
2
|
-
|
|
3
|
-
export interface IAnimationManager {
|
|
4
|
-
opts: {
|
|
5
|
-
frameRate: number;
|
|
6
|
-
maxColors: number;
|
|
7
|
-
colorSpace: AnyColorSpace;
|
|
8
|
-
loop: boolean;
|
|
9
|
-
transparency: boolean;
|
|
10
|
-
clear: boolean;
|
|
11
|
-
};
|
|
12
|
-
animated: boolean;
|
|
13
|
-
debug: boolean;
|
|
14
|
-
}
|