Skip to content

Commit

Permalink
Merge pull request #480 from antvis/chore/update-sdk
Browse files Browse the repository at this point in the history
Chore/update sdk
  • Loading branch information
pomelo-nwu authored Aug 3, 2023
2 parents ea89b3d + 574bc8b commit 4763183
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/gi-assets-advance/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/gi-assets-advance",
"version": "2.5.5",
"version": "2.5.6",
"description": "G6VP 高级资产包",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/gi-assets-algorithm/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/gi-assets-algorithm",
"version": "2.3.5",
"version": "2.3.6",
"description": "G6VP 图分析算法资产库",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/gi-assets-basic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/gi-assets-basic",
"version": "2.4.7",
"version": "2.4.8",
"description": "G6VP 基础资产包",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/gi-assets-scene/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/gi-assets-scene",
"version": "2.2.6",
"version": "2.2.7",
"description": "G6VP 基础模版包",
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/gi-sdk-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/gi-sdk-app",
"version": "1.0.4",
"version": "1.1.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
8 changes: 7 additions & 1 deletion packages/gi-sdk-app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,14 @@ const Studio: React.FunctionComponent<StudioProps> = props => {
const { dataset, workbook, GI_ASSETS_PACKAGES, deps } = data;
const { projectConfig, theme = 'light' } = workbook;
const { engineContext } = dataset;
const { Graphin: Graphin_DEP, GISDK: GISDK_DEP, ...FirstDeps } = deps;
// 请求依赖资源包
await loader(Object.values(deps));
await loader(Object.values(FirstDeps));
// Graphin
await loader([Graphin_DEP]);
// GISDK
await loader([GISDK_DEP]);

//@ts-ignore
const { default: GISDK, utils } = window.GISDK;
// 根据包名,请求资产
Expand Down

0 comments on commit 4763183

Please sign in to comment.