diff --git a/.vscode/launch.json b/.vscode/launch.json index 7b0c3d36e0..d68f92af0a 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,23 +1,31 @@ { - "version": "0.1.0", - "configurations": [ - { - "name": "generate documents", - "port": 9229, - "program": "${workspaceFolder}/docs/libs/template-parse/build.js", - "args": ["--env", "dev", "--watch"], - "request": "launch", - "skipFiles": ["/**"], - "type": "pwa-node" - }, - { - "name": "unit test", - "type": "pwa-node", - "request": "launch", - "program": "${workspaceFolder}/node_modules/.bin/jest", - "args": ["${file}"], - "console": "integratedTerminal", - "internalConsoleOptions": "neverOpen" - } - ] -} + "version": "0.1.0", + "configurations": [ + { + "name": "generate documents", + "port": 9229, + "program": "${workspaceFolder}/docs/libs/template-parse/build.js", + "args": [ + "--env", + "dev", + "--watch" + ], + "request": "launch", + "skipFiles": [ + "/**" + ], + "type": "pwa-node" + }, + { + "name": "unit test", + "type": "pwa-node", + "request": "launch", + "program": "${workspaceFolder}/node_modules/.bin/jest", + "args": [ + "${file}" + ], + "console": "integratedTerminal", + "internalConsoleOptions": "neverOpen" + } + ] +} \ No newline at end of file diff --git a/common/changes/@visactor/vtable/fix-animation-error_2025-06-18-07-12.json b/common/changes/@visactor/vtable/fix-animation-error_2025-06-18-07-12.json new file mode 100644 index 0000000000..90a570a2a4 --- /dev/null +++ b/common/changes/@visactor/vtable/fix-animation-error_2025-06-18-07-12.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "comment": "chore: update vrender 1.0.4 fix animation bug\n\n", + "type": "none", + "packageName": "@visactor/vtable" + } + ], + "packageName": "@visactor/vtable", + "email": "892739385@qq.com" +} \ No newline at end of file diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index be838aca51..b355e8718f 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -297,10 +297,10 @@ importers: '@types/react-dom': ^18.0.0 '@visactor/vchart': 2.0.0-alpha.1 '@visactor/vdataset': ~0.18.1 - '@visactor/vrender-animate': 1.0.3 - '@visactor/vrender-components': 1.0.3 - '@visactor/vrender-core': 1.0.3 - '@visactor/vrender-kits': 1.0.3 + '@visactor/vrender-animate': 1.0.5 + '@visactor/vrender-components': 1.0.5 + '@visactor/vrender-core': 1.0.5 + '@visactor/vrender-kits': 1.0.5 '@visactor/vscale': ~0.18.1 '@visactor/vtable-editors': workspace:* '@visactor/vutils': ~0.19.1 @@ -345,10 +345,10 @@ importers: vite-plugin-markdown: ^2.1.0 dependencies: '@visactor/vdataset': 0.18.18 - '@visactor/vrender-animate': 1.0.3 - '@visactor/vrender-components': 1.0.3 - '@visactor/vrender-core': 1.0.3 - '@visactor/vrender-kits': 1.0.3 + '@visactor/vrender-animate': 1.0.5 + '@visactor/vrender-components': 1.0.5 + '@visactor/vrender-core': 1.0.5 + '@visactor/vrender-kits': 1.0.5 '@visactor/vscale': 0.18.18 '@visactor/vtable-editors': link:../vtable-editors '@visactor/vutils': 0.19.6 @@ -2779,7 +2779,7 @@ packages: jest-resolve: 26.6.2 jest-resolve-dependencies: 26.6.3 jest-runner: 26.6.3_ts-node@10.9.0 - jest-runtime: 26.6.3 + jest-runtime: 26.6.3_ts-node@10.9.0 jest-snapshot: 26.6.2 jest-util: 26.6.2 jest-validate: 26.6.2 @@ -2940,7 +2940,7 @@ packages: graceful-fs: 4.2.11 jest-haste-map: 26.6.2 jest-runner: 26.6.3_ts-node@10.9.0 - jest-runtime: 26.6.3 + jest-runtime: 26.6.3_ts-node@10.9.0 transitivePeerDependencies: - bufferutil - canvas @@ -3343,7 +3343,7 @@ packages: dependencies: '@babel/core': 7.20.12 '@babel/helper-module-imports': 7.27.1 - '@rollup/pluginutils': 5.1.4_rollup@3.20.5 + '@rollup/pluginutils': 5.2.0_rollup@3.20.5 '@types/babel__core': 7.20.0 rollup: 3.20.5 transitivePeerDependencies: @@ -3359,7 +3359,7 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.4_rollup@3.20.5 + '@rollup/pluginutils': 5.2.0_rollup@3.20.5 commondir: 1.0.1 estree-walker: 2.0.2 glob: 8.1.0 @@ -3386,7 +3386,7 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.4_rollup@3.20.5 + '@rollup/pluginutils': 5.2.0_rollup@3.20.5 '@types/resolve': 1.20.2 deepmerge: 4.3.1 is-builtin-module: 3.2.1 @@ -3404,7 +3404,7 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.4_rollup@3.20.5 + '@rollup/pluginutils': 5.2.0_rollup@3.20.5 magic-string: 0.27.0 rollup: 3.20.5 dev: false @@ -3418,7 +3418,7 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.4_rollup@3.20.5 + '@rollup/pluginutils': 5.2.0_rollup@3.20.5 estree-walker: 2.0.2 magic-string: 0.27.0 rollup: 3.20.5 @@ -3452,7 +3452,7 @@ packages: tslib: optional: true dependencies: - '@rollup/pluginutils': 5.1.4_rollup@3.20.5 + '@rollup/pluginutils': 5.2.0_rollup@3.20.5 resolve: 1.22.10 rollup: 3.20.5 typescript: 4.9.5 @@ -3467,7 +3467,7 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.4_rollup@3.20.5 + '@rollup/pluginutils': 5.2.0_rollup@3.20.5 make-dir: 3.1.0 mime: 3.0.0 rollup: 3.20.5 @@ -3493,8 +3493,8 @@ packages: picomatch: 2.3.1 dev: false - /@rollup/pluginutils/5.1.4_rollup@3.20.5: - resolution: {integrity: sha512-USm05zrsFxYLPdWWq+K3STlWiT/3ELn3RcV5hJMghpeAIhxfsUIg6mt12CBJBInWMV4VneoV7SfGv8xIwo2qNQ==} + /@rollup/pluginutils/5.2.0_rollup@3.20.5: + resolution: {integrity: sha512-qWJ2ZTbmumwiLFomfzTyt5Kng4hwPi9rwCYN4SHb6eaRU1KNO4ccxINHr/VhH4GgPlt1XfSTLX2LBTme8ne4Zw==} engines: {node: '>=14.0.0'} peerDependencies: rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0 @@ -4182,10 +4182,10 @@ packages: '@visactor/vrender-core': 1.0.0-alpha.17 '@visactor/vutils': 1.0.4 - /@visactor/vrender-animate/1.0.3: - resolution: {integrity: sha512-F6E4ngeFfP//MRd2P8uitDsO9q669bFiNnIbbS06+vjca893kfg2S4HHd6X0DaS9Efz66FINNxqUoDXRzl1gYA==} + /@visactor/vrender-animate/1.0.5: + resolution: {integrity: sha512-EVK4eTeiZg+WqfDe+QDnQlRLYD9C3viN1FZ+SzCRB5oYs8+su9zezRC/xV/kvnx5kCBPlfwnJEI70bIsXuRMtw==} dependencies: - '@visactor/vrender-core': 1.0.3 + '@visactor/vrender-core': 1.0.5 '@visactor/vutils': 1.0.6 dev: false @@ -4198,12 +4198,12 @@ packages: '@visactor/vscale': 1.0.4 '@visactor/vutils': 1.0.4 - /@visactor/vrender-components/1.0.3: - resolution: {integrity: sha512-reQgGRW5/LMm2ArM1m8hM1jg+eDOU5dS/bg/uT3rqayl2ylfa/WHJwemileL6rQKLM+uFyH50RpGXVDV8PQv8w==} + /@visactor/vrender-components/1.0.5: + resolution: {integrity: sha512-A0WQZZlD9DHLgKnJ/mVJEx5xomIWQEjkVFngrR7tZ0lCQ2Utqk4Mqny9Ad5xZ4lxf8521aseNk1N3R+OUhj8wQ==} dependencies: - '@visactor/vrender-animate': 1.0.3 - '@visactor/vrender-core': 1.0.3 - '@visactor/vrender-kits': 1.0.3 + '@visactor/vrender-animate': 1.0.5 + '@visactor/vrender-core': 1.0.5 + '@visactor/vrender-kits': 1.0.5 '@visactor/vscale': 1.0.6 '@visactor/vutils': 1.0.6 dev: false @@ -4214,8 +4214,8 @@ packages: '@visactor/vutils': 1.0.4 color-convert: 2.0.1 - /@visactor/vrender-core/1.0.3: - resolution: {integrity: sha512-g+aPhX7WK/4FrDiAAX8hZRfoHtG2JmB2/73AaU8SMuWMYBFMPwTSBXQD5oI4vqeZ3/4p0yoSjXXaAL6t0d5ZTw==} + /@visactor/vrender-core/1.0.5: + resolution: {integrity: sha512-8vKzA+WkON6ndjlCAX4CQX/jB2JGUehT/jWXrDFUPZ1QrJ/X3Rd99ADsL1UbMCcxPDJFsp7m4gQg3uNeza2mKA==} dependencies: '@visactor/vutils': 1.0.6 color-convert: 2.0.1 @@ -4231,11 +4231,11 @@ packages: lottie-web: 5.13.0 roughjs: 4.5.2 - /@visactor/vrender-kits/1.0.3: - resolution: {integrity: sha512-RKO6zsYMU8ZhFgNa97lmwJEsm34MgV9CZLmDmMZ1Af9FkhwDYYaoMvZLHP47mjgQMGm4dnGUBfhPaZEqk31Dvw==} + /@visactor/vrender-kits/1.0.5: + resolution: {integrity: sha512-mTsEnYRgIgsJ/KFul6lhRjwpEPVjrVpefr0kUC/qIzvKp8I+ay18HZdCKcWsmQavouYfUnIoODiez3bZhuNp6A==} dependencies: '@resvg/resvg-js': 2.4.1 - '@visactor/vrender-core': 1.0.3 + '@visactor/vrender-core': 1.0.5 '@visactor/vutils': 1.0.6 gifuct-js: 2.1.2 lottie-web: 5.13.0 @@ -4400,7 +4400,7 @@ packages: '@vue/shared': 3.5.16 estree-walker: 2.0.2 magic-string: 0.30.17 - postcss: 8.5.5 + postcss: 8.5.6 source-map-js: 1.2.1 /@vue/compiler-ssr/3.5.16: @@ -4914,7 +4914,7 @@ packages: resolution: {integrity: sha512-uYkTP8dw2og1tu1nmza1n1CMW0qb8gWWlwqMmLb7MhBVs4BXrFziT6HXUd+/RlRA/i4H9AkofYloUbs1fwMqlw==} engines: {node: '>= 0.10'} dependencies: - end-of-stream: 1.4.4 + end-of-stream: 1.4.5 once: 1.4.0 process-nextick-args: 2.0.1 stream-exhaust: 1.0.2 @@ -5323,7 +5323,7 @@ packages: hasBin: true dependencies: caniuse-lite: 1.0.30001723 - electron-to-chromium: 1.5.167 + electron-to-chromium: 1.5.169 node-releases: 2.0.19 update-browserslist-db: 1.1.3_browserslist@4.25.0 @@ -6529,7 +6529,7 @@ packages: /duplexify/3.7.1: resolution: {integrity: sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==} dependencies: - end-of-stream: 1.4.4 + end-of-stream: 1.4.5 inherits: 2.0.4 readable-stream: 2.3.8 stream-shift: 1.0.3 @@ -6538,7 +6538,7 @@ packages: /duplexify/4.1.3: resolution: {integrity: sha512-M3BmBhwJRZsSx38lZyhE53Csddgzl5R7xGJNk7CVddZD6CcmwMCH8J+7AprIrQKH7TonKxaCjcv27Qmf+sQ+oA==} dependencies: - end-of-stream: 1.4.4 + end-of-stream: 1.4.5 inherits: 2.0.4 readable-stream: 3.6.2 stream-shift: 1.0.3 @@ -6562,8 +6562,8 @@ packages: safer-buffer: 2.1.2 dev: true - /electron-to-chromium/1.5.167: - resolution: {integrity: sha512-LxcRvnYO5ez2bMOFpbuuVuAI5QNeY1ncVytE/KXaL6ZNfzX1yPlAO0nSOyIHx2fVAuUprMqPs/TdVhUFZy7SIQ==} + /electron-to-chromium/1.5.169: + resolution: {integrity: sha512-q7SQx6mkLy0GTJK9K9OiWeaBMV4XQtBSdf6MJUzDB/H/5tFXfIiX38Lci1Kl6SsgiEhz1SQI1ejEOU5asWEhwQ==} /electron/11.5.0: resolution: {integrity: sha512-WjNDd6lGpxyiNjE3LhnFCAk/D9GIj1rU3GSDealVShhkkkPR3Vh4q8ErXGDl1OAO/faomVa10KoFPUN/pLbNxg==} @@ -6601,8 +6601,8 @@ packages: dev: true optional: true - /end-of-stream/1.4.4: - resolution: {integrity: sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==} + /end-of-stream/1.4.5: + resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==} dependencies: once: 1.4.0 @@ -9571,7 +9571,7 @@ packages: jest-leak-detector: 26.6.2 jest-message-util: 26.6.2 jest-resolve: 26.6.2 - jest-runtime: 26.6.3 + jest-runtime: 26.6.3_ts-node@10.9.0 jest-util: 26.6.2 jest-worker: 26.6.2 source-map-support: 0.5.21 @@ -9616,42 +9616,6 @@ packages: - supports-color dev: true - /jest-runtime/26.6.3: - resolution: {integrity: sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==} - engines: {node: '>= 10.14.2'} - hasBin: true - dependencies: - '@jest/console': 26.6.2 - '@jest/environment': 26.6.2 - '@jest/fake-timers': 26.6.2 - '@jest/globals': 26.6.2 - '@jest/source-map': 26.6.2 - '@jest/test-result': 26.6.2 - '@jest/transform': 26.6.2 - '@jest/types': 26.6.2 - '@types/yargs': 15.0.19 - chalk: 4.1.2 - cjs-module-lexer: 0.6.0 - collect-v8-coverage: 1.0.2 - exit: 0.1.2 - glob: 7.2.3 - graceful-fs: 4.2.11 - jest-config: 26.6.3_ts-node@10.9.0 - jest-haste-map: 26.6.2 - jest-message-util: 26.6.2 - jest-mock: 26.6.2 - jest-regex-util: 26.0.0 - jest-resolve: 26.6.2 - jest-snapshot: 26.6.2 - jest-util: 26.6.2 - jest-validate: 26.6.2 - slash: 3.0.0 - strip-bom: 4.0.0 - yargs: 15.4.1 - transitivePeerDependencies: - - supports-color - dev: true - /jest-runtime/26.6.3_ts-node@10.9.0: resolution: {integrity: sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==} engines: {node: '>= 10.14.2'} @@ -11882,8 +11846,8 @@ packages: picocolors: 1.1.1 source-map-js: 1.2.1 - /postcss/8.5.5: - resolution: {integrity: sha512-d/jtm+rdNT8tpXuHY5MMtcbJFBkhXE6593XVR9UoGCH8jSFGci7jGvMGH5RYd5PBJW+00NZQt6gf7CbagJCrhg==} + /postcss/8.5.6: + resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} engines: {node: ^10 || ^12 || >=14} dependencies: nanoid: 3.3.11 @@ -12003,14 +11967,14 @@ packages: /pump/2.0.1: resolution: {integrity: sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==} dependencies: - end-of-stream: 1.4.4 + end-of-stream: 1.4.5 once: 1.4.0 dev: false /pump/3.0.3: resolution: {integrity: sha512-todwxLMY7/heScKmntwQG8CXVkWUOdYxIvY2s0VWAAMh/nd8SoYiRaKjlr7+iCs984f2P8zvrfWcDDYVb73NfA==} dependencies: - end-of-stream: 1.4.4 + end-of-stream: 1.4.5 once: 1.4.0 dev: true @@ -13517,7 +13481,7 @@ packages: engines: {node: '>=6'} dependencies: bl: 4.1.0 - end-of-stream: 1.4.4 + end-of-stream: 1.4.5 fs-constants: 1.0.0 inherits: 2.0.4 readable-stream: 3.6.2 @@ -13779,7 +13743,7 @@ packages: mkdirp: 1.0.4 semver: 7.3.4 typescript: 4.9.5 - yargs-parser: 20.2.4 + yargs-parser: 20.2.9 dev: true /ts-loader/9.2.6_typescript@4.9.5: @@ -14934,6 +14898,11 @@ packages: engines: {node: '>=10'} dev: true + /yargs-parser/20.2.9: + resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} + engines: {node: '>=10'} + dev: true + /yargs-parser/21.1.1: resolution: {integrity: sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==} engines: {node: '>=12'} @@ -14997,7 +14966,7 @@ packages: require-directory: 2.1.1 string-width: 4.2.3 y18n: 5.0.8 - yargs-parser: 20.2.4 + yargs-parser: 20.2.9 dev: true /yargs/17.7.2: diff --git a/packages/vtable/package.json b/packages/vtable/package.json index c4806eb2a6..d83b86f1d7 100644 --- a/packages/vtable/package.json +++ b/packages/vtable/package.json @@ -52,10 +52,10 @@ }, "dependencies": { "@visactor/vtable-editors": "workspace:*", - "@visactor/vrender-core": "1.0.3", - "@visactor/vrender-kits": "1.0.3", - "@visactor/vrender-components": "1.0.3", - "@visactor/vrender-animate": "1.0.3", + "@visactor/vrender-core": "1.0.5", + "@visactor/vrender-kits": "1.0.5", + "@visactor/vrender-components": "1.0.5", + "@visactor/vrender-animate": "1.0.5", "@visactor/vutils": "~0.19.1", "@visactor/vscale": "~0.18.1", "@visactor/vdataset": "~0.18.1", @@ -130,4 +130,4 @@ "url": "https://github.com/VisActor/VTable.git", "directory": "packages/vtable" } -} +} \ No newline at end of file diff --git a/packages/vtable/src/core/animation.ts b/packages/vtable/src/core/animation.ts index 31d6621643..7687b816ce 100644 --- a/packages/vtable/src/core/animation.ts +++ b/packages/vtable/src/core/animation.ts @@ -30,7 +30,7 @@ export class TableAnimationManager { this.table = table; this.timeline = new DefaultTimeline(); // this.ticker = new DefaultTicker([this.timeline]); - this.ticker = new DefaultTicker(); + this.ticker = new DefaultTicker(this.table.scenegraph.stage); this.ticker.addTimeline(this.timeline); const TICKER_FPS = 60; this.ticker.setFPS(TICKER_FPS);