Skip to content

Commit 3f79a33

Browse files
committed
fix: remove inversify of vrender
1 parent 7d6f8e7 commit 3f79a33

32 files changed

+255
-243
lines changed

common/config/rush/pnpm-config.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@
8383
* PNPM documentation: https://pnpm.io/package_json#pnpmoverrides
8484
*/
8585
// "globalOverrides": {
86-
// "@visactor/vrender": "0.12.3"
86+
// "@visactor/vrender-core": "1.1.0-alpha.0",
87+
// "@visactor/vrender-kits": "1.1.0-alpha.0",
88+
// "@visactor/vrender-components": "1.1.0-alpha.0",
89+
// "@visactor/vrender-animate": "1.1.0-alpha.0"
8790
// },
8891
/**
8992
* The `globalPeerDependencyRules` setting provides various settings for suppressing validation errors

common/config/rush/pnpm-lock.yaml

Lines changed: 84 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"@visactor/vtable-search": "workspace:*",
2323
"@visactor/vtable-sheet": "workspace:*",
2424
"buble": "^0.20.0",
25-
"@visactor/vchart": "2.0.11-alpha.3",
25+
"@visactor/vchart": "2.0.14-alpha.1",
2626
"markdown-it": "^13.0.0",
2727
"highlight.js": "^11.8.0",
2828
"axios": "^1.4.0",

packages/openinula-vtable/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"devDependencies": {
5555
"cross-env": "^7.0.3",
5656
"increase-memory-limit": "^1.0.7",
57-
"@visactor/vchart": "2.0.11-alpha.3",
57+
"@visactor/vchart": "2.0.14-alpha.1",
5858
"@internal/bundler": "workspace:*",
5959
"@internal/eslint-config": "workspace:*",
6060
"@internal/ts-config": "workspace:*",
@@ -96,4 +96,4 @@
9696
"peerDependencies": {
9797
"openinula": "~0.1.2-SNAPSHOT"
9898
}
99-
}
99+
}

packages/react-vtable/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"devDependencies": {
5959
"cross-env": "^7.0.3",
6060
"increase-memory-limit": "^1.0.7",
61-
"@visactor/vchart": "2.0.11-alpha.3",
61+
"@visactor/vchart": "2.0.14-alpha.1",
6262
"@internal/bundler": "workspace:*",
6363
"@internal/eslint-config": "workspace:*",
6464
"@internal/ts-config": "workspace:*",
@@ -104,4 +104,4 @@
104104
"@arco-design/web-react": "2.60.2",
105105
"@types/react-reconciler": "0.28.8"
106106
}
107-
}
107+
}

packages/react-vtable/src/table-components/custom/reconciler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { application, REACT_TO_CANOPUS_EVENTS, Tag } from '@visactor/vtable/es/vrender';
1+
import { graphicService, REACT_TO_CANOPUS_EVENTS, Tag } from '@visactor/vtable/es/vrender';
22
import type { FlexLayoutPlugin, Graphic, IGraphic, IGraphicCreator } from '@visactor/vtable/es/vrender';
33
import { isFunction, isNumber, merge } from '@visactor/vutils';
44
import React from 'react';
@@ -138,10 +138,10 @@ function createGraphic(type: string, props: any) {
138138
if (component) {
139139
return component;
140140
}
141-
if (!application.graphicService.creator[type as keyof IGraphicCreator]) {
141+
if (!graphicService.creator[type as keyof IGraphicCreator]) {
142142
return undefined;
143143
}
144-
const graphic = application.graphicService.creator[type as keyof IGraphicCreator]((props as any).attribute);
144+
const graphic = graphicService.creator[type as keyof IGraphicCreator]((props as any).attribute);
145145
return graphic;
146146
}
147147

0 commit comments

Comments
 (0)