Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion common/config/rush/version-policies.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"1.1.3","nextBump":"patch"}]
[{"definitionName":"lockStepVersion","policyName":"vrenderMain","version":"1.1.4","nextBump":"patch"}]
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@visactor/vchart": "1.3.0",
"@visactor/vutils": "~1.0.12",
"@visactor/vgrammar": "~0.5.7",
"@visactor/vrender": "workspace:1.1.3",
"@visactor/vrender": "workspace:1.1.4",
"markdown-it": "^13.0.0",
"highlight.js": "^11.8.0",
"axios": "^1.4.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/react-vrender-utils/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/react-vrender-utils",
"entries": [
{
"version": "1.1.4",
"tag": "@visactor/react-vrender-utils_v1.1.4",
"date": "Thu, 02 Jul 2026 09:18:07 GMT",
"comments": {}
},
{
"version": "1.1.3",
"tag": "@visactor/react-vrender-utils_v1.1.3",
Expand Down
7 changes: 6 additions & 1 deletion packages/react-vrender-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/react-vrender-utils

This log was last generated on Tue, 30 Jun 2026 09:31:30 GMT and should not be manually modified.
This log was last generated on Thu, 02 Jul 2026 09:18:07 GMT and should not be manually modified.

## 1.1.4
Thu, 02 Jul 2026 09:18:07 GMT

_Version update only_

## 1.1.3
Tue, 30 Jun 2026 09:31:30 GMT
Expand Down
6 changes: 3 additions & 3 deletions packages/react-vrender-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vrender-utils",
"version": "1.1.3",
"version": "1.1.4",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -27,8 +27,8 @@
"react-dom": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:1.1.3",
"@visactor/react-vrender": "workspace:1.1.3",
"@visactor/vrender": "workspace:1.1.4",
"@visactor/react-vrender": "workspace:1.1.4",
"@visactor/vutils": "~1.0.12",
"react-reconciler": "^0.29.0",
"tslib": "^2.3.1"
Expand Down
6 changes: 6 additions & 0 deletions packages/react-vrender/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/react-vrender",
"entries": [
{
"version": "1.1.4",
"tag": "@visactor/react-vrender_v1.1.4",
"date": "Thu, 02 Jul 2026 09:18:07 GMT",
"comments": {}
},
{
"version": "1.1.3",
"tag": "@visactor/react-vrender_v1.1.3",
Expand Down
7 changes: 6 additions & 1 deletion packages/react-vrender/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/react-vrender

This log was last generated on Tue, 30 Jun 2026 09:31:30 GMT and should not be manually modified.
This log was last generated on Thu, 02 Jul 2026 09:18:07 GMT and should not be manually modified.

## 1.1.4
Thu, 02 Jul 2026 09:18:07 GMT

_Version update only_

## 1.1.3
Tue, 30 Jun 2026 09:31:30 GMT
Expand Down
4 changes: 2 additions & 2 deletions packages/react-vrender/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/react-vrender",
"version": "1.1.3",
"version": "1.1.4",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand All @@ -26,7 +26,7 @@
"react": "^18.2.0"
},
"dependencies": {
"@visactor/vrender": "workspace:1.1.3",
"@visactor/vrender": "workspace:1.1.4",
"@visactor/vutils": "~1.0.12",
"react-reconciler": "^0.29.0",
"tslib": "^2.3.1"
Expand Down
6 changes: 6 additions & 0 deletions packages/vrender-animate/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/vrender-animate",
"entries": [
{
"version": "1.1.4",
"tag": "@visactor/vrender-animate_v1.1.4",
"date": "Thu, 02 Jul 2026 09:18:07 GMT",
"comments": {}
},
{
"version": "1.1.3",
"tag": "@visactor/vrender-animate_v1.1.3",
Expand Down
7 changes: 6 additions & 1 deletion packages/vrender-animate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/vrender-animate

This log was last generated on Tue, 30 Jun 2026 09:31:30 GMT and should not be manually modified.
This log was last generated on Thu, 02 Jul 2026 09:18:07 GMT and should not be manually modified.

## 1.1.4
Thu, 02 Jul 2026 09:18:07 GMT

_Version update only_

## 1.1.3
Tue, 30 Jun 2026 09:31:30 GMT
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { createGraphic } from '@visactor/vrender-core/graphic/creator';
import { registerGroupGraphic } from '@visactor/vrender-core/register/register-group';
import { GraphicStateExtension } from '../../src/state/graphic-extension';
import { AnimationStateManager } from '../../src/state/animation-state';
import { registerAnimate } from '../../src/register';

describe('GraphicStateExtension', () => {
afterEach(() => {
Expand Down Expand Up @@ -71,4 +74,14 @@ describe('GraphicStateExtension', () => {
expect(graphic.currentStates).toEqual(['hover']);
expect(graphic.normalAttrs).toEqual({ fill: 'blue' });
});

test('registerAnimate should mix animation APIs into graphics created through core creator subpath', () => {
registerAnimate();
registerGroupGraphic();

const group = createGraphic('group', {});

expect(typeof (group as any).applyAnimationState).toBe('function');
expect(typeof (group as any).clearAnimationStates).toBe('function');
});
});
4 changes: 2 additions & 2 deletions packages/vrender-animate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vrender-animate",
"version": "1.1.3",
"version": "1.1.4",
"description": "",
"sideEffects": false,
"main": "cjs/index.js",
Expand Down Expand Up @@ -37,7 +37,7 @@
},
"dependencies": {
"@visactor/vutils": "~1.0.12",
"@visactor/vrender-core": "workspace:1.1.3"
"@visactor/vrender-core": "workspace:1.1.4"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
Expand Down
6 changes: 6 additions & 0 deletions packages/vrender-components/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/vrender-components",
"entries": [
{
"version": "1.1.4",
"tag": "@visactor/vrender-components_v1.1.4",
"date": "Thu, 02 Jul 2026 09:18:07 GMT",
"comments": {}
},
{
"version": "1.1.3",
"tag": "@visactor/vrender-components_v1.1.3",
Expand Down
7 changes: 6 additions & 1 deletion packages/vrender-components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/vrender-components

This log was last generated on Tue, 30 Jun 2026 09:31:30 GMT and should not be manually modified.
This log was last generated on Thu, 02 Jul 2026 09:18:07 GMT and should not be manually modified.

## 1.1.4
Thu, 02 Jul 2026 09:18:07 GMT

_Version update only_

## 1.1.3
Tue, 30 Jun 2026 09:31:30 GMT
Expand Down
8 changes: 4 additions & 4 deletions packages/vrender-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@visactor/vrender-components",
"version": "1.1.3",
"version": "1.1.4",
"description": "components library for dp visualization",
"sideEffects": false,
"main": "cjs/index.js",
Expand Down Expand Up @@ -69,9 +69,9 @@
"dependencies": {
"@visactor/vutils": "~1.0.12",
"@visactor/vscale": "~1.0.12",
"@visactor/vrender-core": "workspace:1.1.3",
"@visactor/vrender-kits": "workspace:1.1.3",
"@visactor/vrender-animate": "workspace:1.1.3"
"@visactor/vrender-core": "workspace:1.1.4",
"@visactor/vrender-kits": "workspace:1.1.4",
"@visactor/vrender-animate": "workspace:1.1.4"
},
"devDependencies": {
"@internal/bundler": "workspace:*",
Expand Down
6 changes: 6 additions & 0 deletions packages/vrender-core/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"name": "@visactor/vrender-core",
"entries": [
{
"version": "1.1.4",
"tag": "@visactor/vrender-core_v1.1.4",
"date": "Thu, 02 Jul 2026 09:18:07 GMT",
"comments": {}
},
{
"version": "1.1.3",
"tag": "@visactor/vrender-core_v1.1.3",
Expand Down
7 changes: 6 additions & 1 deletion packages/vrender-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Change Log - @visactor/vrender-core

This log was last generated on Tue, 30 Jun 2026 09:31:30 GMT and should not be manually modified.
This log was last generated on Thu, 02 Jul 2026 09:18:07 GMT and should not be manually modified.

## 1.1.4
Thu, 02 Jul 2026 09:18:07 GMT

_Version update only_

## 1.1.3
Tue, 30 Jun 2026 09:31:30 GMT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,16 @@ describe('contribution-provider', () => {
expect(spy2).toHaveBeenCalledTimes(1);
});

test('ContributionStore should use realm-level shared state for duplicated ESM entry evaluation', () => {
const id = Symbol('shared-svc');
const cache = createProviderCache({ isBound: jest.fn(() => false), getAll: jest.fn(() => []) }, id);
const state = (globalThis as any)[Symbol.for('@visactor/vrender-core/contribution-store-state')];

expect(state).toBeDefined();
expect(state.store).toBe(ContributionStore.store);
expect(state.store.get(id)?.has(cache)).toBe(true);
});

test('bindContributionProviderNoSingletonScope does not call inSingletonScope', () => {
let factory: DynamicValueFactory | undefined;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
import { application } from '../../../src/application';
import { AppContext, configureRuntimeApplicationForApp } from '../../../src/entries';
import { AppContext, configureRuntimeApplicationForApp, getRuntimeInstallerBindingContext } from '../../../src/entries';
import { DefaultIncrementalDrawContribution } from '../../../src/render/contributions/render/incremental-draw-contribution';

describe('runtime installer', () => {
test('runtime installer should use realm-level shared state for duplicated ESM entry evaluation', () => {
const state = (globalThis as any)[Symbol.for('@visactor/vrender-core/runtime-installer-state')];

expect(state).toBeDefined();
expect(state.runtimeInstallerContext).toBe(getRuntimeInstallerBindingContext());
});

test('configureRuntimeApplicationForApp should configure an app-scoped incremental draw contribution factory', () => {
const context = new AppContext();
const app = {
Expand Down
Loading
Loading