@visactor/vrender-components 0.21.0-alpha.3 → 0.21.0-alpha.4

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.
@@ -0,0 +1,29 @@
1
+ import type { IImageGraphicAttribute, ISetAttributeContext } from '@visactor/vrender-core';
2
+ import { Image } from '@visactor/vrender-core';
3
+ import type { ITimeline } from '@visactor/vrender-core';
4
+ import type { ParsedFrame } from 'gifuct-js';
5
+ export interface IGifImageGraphicAttribute extends IImageGraphicAttribute {
6
+ timeline?: ITimeline;
7
+ gifImage?: string | ArrayBuffer;
8
+ }
9
+ export declare class GifImage extends Image {
10
+ attribute: IGifImageGraphicAttribute;
11
+ frameImageData?: ImageData;
12
+ tempCanvas?: HTMLCanvasElement;
13
+ tempCtx?: CanvasRenderingContext2D;
14
+ gifCanvas?: HTMLCanvasElement;
15
+ gifCtx?: CanvasRenderingContext2D;
16
+ loadedFrames?: ParsedFrame[];
17
+ frameIndex?: number;
18
+ playing?: boolean;
19
+ lastTime?: number;
20
+ isGifImage: boolean;
21
+ constructor(params: IGifImageGraphicAttribute);
22
+ loadGif(): void;
23
+ renderGIF(frames: ParsedFrame[]): void;
24
+ renderFrame(context: CanvasRenderingContext2D, x: number, y: number): void;
25
+ drawPatch(frame: ParsedFrame): void;
26
+ manipulate(context: CanvasRenderingContext2D, x: number, y: number): void;
27
+ setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
28
+ setAttributes(params: Partial<IGifImageGraphicAttribute>, forceUpdateTag?: boolean, context?: ISetAttributeContext): void;
29
+ }
package/es/gif/gif.js ADDED
@@ -0,0 +1,55 @@
1
+ import { application, Image, ResourceLoader } from "@visactor/vrender-core";
2
+
3
+ import { isString } from "@visactor/vutils";
4
+
5
+ import { decompressFrames, parseGIF } from "gifuct-js";
6
+
7
+ export class GifImage extends Image {
8
+ constructor(params) {
9
+ super(params), this.isGifImage = !0, this.loadGif();
10
+ }
11
+ loadGif() {
12
+ if (isString(this.attribute.gifImage)) ResourceLoader.GetFile(this.attribute.gifImage, "arrayBuffer").then((res => {
13
+ const gif = parseGIF(res), frames = decompressFrames(gif, !0);
14
+ this.renderGIF(frames);
15
+ })).catch((e => {
16
+ console.error("Gif load error: ", e);
17
+ })); else if (this.attribute.gifImage instanceof ArrayBuffer) {
18
+ const gif = parseGIF(this.attribute.gifImage), frames = decompressFrames(gif, !0);
19
+ this.renderGIF(frames);
20
+ }
21
+ }
22
+ renderGIF(frames) {
23
+ this.loadedFrames = frames, this.frameIndex = 0, this.tempCanvas || (this.tempCanvas = application.global.createCanvas({}),
24
+ this.tempCtx = this.tempCanvas.getContext("2d")), this.gifCanvas || (this.gifCanvas = application.global.createCanvas({}),
25
+ this.gifCtx = this.gifCanvas.getContext("2d")), this.gifCanvas.width = frames[0].dims.width,
26
+ this.gifCanvas.height = frames[0].dims.height, this.playing = !0, this.lastTime = (new Date).getTime();
27
+ const animation = this.animate();
28
+ this.attribute.timeline && animation.setTimeline(this.attribute.timeline), animation.to({}, 1e3, "linear").loop(1 / 0);
29
+ }
30
+ renderFrame(context, x, y) {
31
+ const frame = this.loadedFrames[this.frameIndex || 0];
32
+ 2 === frame.disposalType && this.gifCtx.clearRect(0, 0, this.gifCanvas.width, this.gifCanvas.height),
33
+ this.drawPatch(frame), this.manipulate(context, x, y);
34
+ const diff = (new Date).getTime() - this.lastTime;
35
+ frame.delay < diff && (this.frameIndex++, this.lastTime = (new Date).getTime()),
36
+ this.frameIndex >= this.loadedFrames.length && (this.frameIndex = 0);
37
+ }
38
+ drawPatch(frame) {
39
+ const dims = frame.dims;
40
+ this.frameImageData && dims.width === this.frameImageData.width && dims.height === this.frameImageData.height || (this.tempCanvas.width = dims.width,
41
+ this.tempCanvas.height = dims.height, this.frameImageData = this.tempCtx.createImageData(dims.width, dims.height)),
42
+ this.frameImageData.data.set(frame.patch), this.tempCtx.putImageData(this.frameImageData, 0, 0),
43
+ this.gifCtx.drawImage(this.tempCanvas, dims.left, dims.top);
44
+ }
45
+ manipulate(context, x, y) {
46
+ context.drawImage(this.gifCanvas, 0, 0, this.gifCanvas.width, this.gifCanvas.height, x, y, this.attribute.width, this.attribute.height);
47
+ }
48
+ setAttribute(key, value, forceUpdateTag, context) {
49
+ super.setAttribute(key, value, forceUpdateTag, context), "gifImage" === key && this.loadGif();
50
+ }
51
+ setAttributes(params, forceUpdateTag, context) {
52
+ super.setAttributes(params, forceUpdateTag, context), params.gifImage && this.loadGif();
53
+ }
54
+ }
55
+ //# sourceMappingURL=gif.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/gif/gif.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE5E,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAOvD,MAAM,OAAO,QAAS,SAAQ,KAAK;IAejC,YAAY,MAAiC;QAC3C,KAAK,CAAC,MAAM,CAAC,CAAC;QAHhB,eAAU,GAAG,IAAI,CAAC;QAKhB,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;IAED,OAAO;QACL,IAAI,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;YACrC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,aAAa,CAAC;iBAC3D,IAAI,CAAC,CAAC,GAAgB,EAAE,EAAE;gBACzB,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;gBAC1B,MAAM,MAAM,GAAG,gBAAgB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;gBAC3C,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACzB,CAAC,CAAC;iBACD,KAAK,CAAC,CAAC,CAAC,EAAE;gBACT,OAAO,CAAC,KAAK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CAAC;IAED,aAAa,CACX,MAA0C,EAC1C,cAAwB,EACxB,OAA8B;QAE9B,KAAK,CAAC,aAAa,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QACrD,IAAI,MAAM,CAAC,QAAQ,EAAE;YACnB,IAAI,CAAC,OAAO,EAAE,CAAC;SAChB;IACH,CAAC;CACF","file":"gif.js","sourcesContent":["import type { IImageGraphicAttribute, ISetAttributeContext } from '@visactor/vrender-core';\nimport { application, Image, ResourceLoader } from '@visactor/vrender-core';\nimport type { ITimeline } from '@visactor/vrender-core';\nimport { isString } from '@visactor/vutils';\nimport type { ParsedFrame } from 'gifuct-js';\nimport { decompressFrames, parseGIF } from 'gifuct-js';\n\nexport interface IGifImageGraphicAttribute extends IImageGraphicAttribute {\n timeline?: ITimeline;\n gifImage?: string | ArrayBuffer;\n}\n\nexport class GifImage extends Image {\n declare attribute: IGifImageGraphicAttribute;\n\n frameImageData?: ImageData;\n tempCanvas?: HTMLCanvasElement;\n tempCtx?: CanvasRenderingContext2D;\n gifCanvas?: HTMLCanvasElement;\n gifCtx?: CanvasRenderingContext2D;\n loadedFrames?: ParsedFrame[];\n frameIndex?: number;\n playing?: boolean;\n lastTime?: number;\n\n isGifImage = true;\n\n constructor(params: IGifImageGraphicAttribute) {\n super(params);\n\n this.loadGif();\n }\n\n loadGif() {\n if (isString(this.attribute.gifImage)) {\n ResourceLoader.GetFile(this.attribute.gifImage, 'arrayBuffer')\n .then((res: ArrayBuffer) => {\n const gif = parseGIF(res);\n const frames = decompressFrames(gif, true);\n this.renderGIF(frames);\n })\n .catch(e => {\n console.error('Gif load error: ', e);\n });\n } else if (this.attribute.gifImage instanceof ArrayBuffer) {\n const gif = parseGIF(this.attribute.gifImage);\n const frames = decompressFrames(gif, true);\n this.renderGIF(frames);\n }\n }\n\n renderGIF(frames: ParsedFrame[]) {\n this.loadedFrames = frames;\n this.frameIndex = 0;\n\n if (!this.tempCanvas) {\n this.tempCanvas = application.global.createCanvas({});\n this.tempCtx = this.tempCanvas.getContext('2d');\n }\n\n if (!this.gifCanvas) {\n this.gifCanvas = application.global.createCanvas({});\n this.gifCtx = this.gifCanvas.getContext('2d');\n }\n\n this.gifCanvas.width = frames[0].dims.width;\n this.gifCanvas.height = frames[0].dims.height;\n\n this.playing = true;\n this.lastTime = new Date().getTime();\n const animation = this.animate();\n if (this.attribute.timeline) {\n animation.setTimeline(this.attribute.timeline);\n }\n animation.to({}, 1000, 'linear').loop(Infinity);\n }\n\n renderFrame(context: CanvasRenderingContext2D, x: number, y: number) {\n // get the frame\n const frame = this.loadedFrames[this.frameIndex || 0];\n\n if (frame.disposalType === 2) {\n this.gifCtx.clearRect(0, 0, this.gifCanvas.width, this.gifCanvas.height);\n }\n\n // draw image into gifCanvas\n this.drawPatch(frame);\n\n // draw gifCanvas into stage\n this.manipulate(context, x, y);\n\n // update the frame index\n const diff = new Date().getTime() - this.lastTime;\n if (frame.delay < diff) {\n this.frameIndex++;\n this.lastTime = new Date().getTime();\n }\n if (this.frameIndex >= this.loadedFrames.length) {\n this.frameIndex = 0;\n }\n }\n\n drawPatch(frame: ParsedFrame) {\n const dims = frame.dims;\n\n if (\n !this.frameImageData ||\n dims.width !== this.frameImageData.width ||\n dims.height !== this.frameImageData.height\n ) {\n this.tempCanvas.width = dims.width;\n this.tempCanvas.height = dims.height;\n this.frameImageData = this.tempCtx.createImageData(dims.width, dims.height);\n }\n\n // set the patch data as an override\n this.frameImageData.data.set(frame.patch);\n\n // draw the patch back over the canvas\n this.tempCtx.putImageData(this.frameImageData, 0, 0);\n\n this.gifCtx.drawImage(this.tempCanvas, dims.left, dims.top);\n }\n\n manipulate(context: CanvasRenderingContext2D, x: number, y: number) {\n context.drawImage(\n this.gifCanvas,\n 0,\n 0,\n this.gifCanvas.width,\n this.gifCanvas.height,\n x,\n y,\n this.attribute.width,\n this.attribute.height\n );\n }\n\n setAttribute(key: string, value: any, forceUpdateTag?: boolean, context?: ISetAttributeContext): void {\n super.setAttribute(key, value, forceUpdateTag, context);\n if (key === 'gifImage') {\n this.loadGif();\n }\n }\n\n setAttributes(\n params: Partial<IGifImageGraphicAttribute>,\n forceUpdateTag?: boolean,\n context?: ISetAttributeContext\n ): void {\n super.setAttributes(params, forceUpdateTag, context);\n if (params.gifImage) {\n this.loadGif();\n }\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ export * from './gif';
@@ -0,0 +1,2 @@
1
+ export * from "./gif";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/gif/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC","file":"index.js","sourcesContent":["export * from './gif';\n"]}
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "0.21.0-alpha.3";
1
+ export declare const version = "0.21.0-alpha.4";
2
2
  export * from './core/base';
3
3
  export * from './core/type';
4
4
  export * from './scrollbar';
@@ -27,3 +27,4 @@ export * from './checkbox';
27
27
  export * from './radio';
28
28
  export * from './empty-tip';
29
29
  export * from './util';
30
+ export * from './gif';
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export const version = "0.21.0-alpha.3";
1
+ export const version = "0.21.0-alpha.4";
2
2
 
3
3
  export * from "./core/base";
4
4
 
@@ -55,4 +55,6 @@ export * from "./radio";
55
55
  export * from "./empty-tip";
56
56
 
57
57
  export * from "./util";
58
+
59
+ export * from "./gif";
58
60
  //# sourceMappingURL=index.js.map
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.21.0-alpha.3\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './util';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,gBAAgB,CAAC;AAExC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC","file":"index.js","sourcesContent":["// 导出版本号\nexport const version = \"0.21.0-alpha.4\";\n\nexport * from './core/base';\nexport * from './core/type';\nexport * from './scrollbar';\nexport * from './tag';\nexport * from './poptip';\nexport * from './crosshair';\nexport * from './label';\nexport * from './axis';\nexport * from './axis/grid';\nexport * from './segment';\nexport * from './data-zoom';\nexport * from './marker';\nexport * from './pager';\nexport * from './legend';\nexport * from './title';\nexport * from './indicator';\nexport * from './slider';\nexport * from './link-path';\nexport * from './player';\nexport * from './brush';\nexport * from './tooltip';\nexport * from './timeline';\nexport * from './interface';\nexport * from './jsx';\nexport * from './checkbox';\nexport * from './radio';\nexport * from './empty-tip';\nexport * from './util';\nexport * from './gif';\n"]}
@@ -2,5 +2,4 @@ import { Tag } from "../tag";
2
2
 
3
3
  export function VTag(params) {
4
4
  return new Tag(params ? params.attribute : {});
5
- }
6
- //# sourceMappingURL=component-type.js.map
5
+ }
package/es/label/arc.js CHANGED
@@ -494,4 +494,5 @@ ArcLabel.defaultAttributes = {
494
494
 
495
495
  export const registerArcDataLabel = () => {
496
496
  registerLabelComponent("arc", ArcLabel);
497
- };
497
+ };
498
+ //# sourceMappingURL=arc.js.map
@@ -36,4 +36,4 @@ PolygonLabel.defaultAttributes = {
36
36
  position: "center",
37
37
  offset: 6
38
38
  };
39
- //# sourceMappingURL=polygon.js.map
39
+ //# sourceMappingURL=polygon.js.map
package/es/label/rect.js CHANGED
@@ -55,4 +55,4 @@ RectLabel.tag = "rect-label", RectLabel.defaultAttributes = {
55
55
  export const registerRectDataLabel = () => {
56
56
  registerLabelComponent("rect", RectLabel);
57
57
  };
58
- //# sourceMappingURL=rect.js.map
58
+ //# sourceMappingURL=rect.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-components",
3
- "version": "0.21.0-alpha.3",
3
+ "version": "0.21.0-alpha.4",
4
4
  "description": "components library for dp visualization",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index.js",
@@ -12,14 +12,15 @@
12
12
  "dist"
13
13
  ],
14
14
  "dependencies": {
15
- "@visactor/vutils": "~0.18.18",
16
- "@visactor/vscale": "~0.18.18",
17
- "@visactor/vrender-core": "0.21.0-alpha.3",
18
- "@visactor/vrender-kits": "0.21.0-alpha.3"
15
+ "@visactor/vutils": "~0.18.17",
16
+ "@visactor/vscale": "~0.18.17",
17
+ "@visactor/vrender-core": "0.21.0-alpha.4",
18
+ "@visactor/vrender-kits": "0.21.0-alpha.4",
19
+ "gifuct-js": "2.1.2"
19
20
  },
20
21
  "devDependencies": {
21
22
  "@rushstack/eslint-patch": "~1.1.4",
22
- "@visactor/vscale": "~0.18.18",
23
+ "@visactor/vscale": "~0.18.17",
23
24
  "@types/jest": "^26.0.0",
24
25
  "jest": "^26.0.0",
25
26
  "jest-electron": "^0.1.12",
@@ -30,8 +31,8 @@
30
31
  "typescript": "4.9.5",
31
32
  "cross-env": "^7.0.3",
32
33
  "@internal/bundler": "0.0.1",
33
- "@internal/ts-config": "0.0.1",
34
- "@internal/eslint-config": "0.0.1"
34
+ "@internal/eslint-config": "0.0.1",
35
+ "@internal/ts-config": "0.0.1"
35
36
  },
36
37
  "keywords": [
37
38
  "VisActor",