mirror of
https://gitee.com/antv/g6.git
synced 2024-11-29 18:28:19 +08:00
chore: update version (#5817)
* chore: update version * chore: add site build script * chore(site): update site case * chore(site): adjust cases * chore(site): disable api doc
This commit is contained in:
parent
472fa89920
commit
c1be9ab52a
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@antv/g6",
|
||||
"version": "5.0.0-beta.39",
|
||||
"version": "5.0.0-beta.40",
|
||||
"description": "A Graph Visualization Framework in JavaScript",
|
||||
"keywords": [
|
||||
"antv",
|
||||
|
@ -13,12 +13,12 @@ export default defineConfig({
|
||||
{ name: 'keywords', content: 'G6' },
|
||||
{
|
||||
name: 'description',
|
||||
content: 'A collection of charts made with the Grammar of Graphics',
|
||||
content: 'A Graph Visualization Framework in JavaScript',
|
||||
},
|
||||
],
|
||||
themeConfig: {
|
||||
title: 'G6',
|
||||
description: 'A collection of charts made with the Grammar of Graphics',
|
||||
description: 'A Graph Visualization Framework in JavaScript',
|
||||
defaultLanguage: 'zh', // 默认语言
|
||||
isAntVSite: false, // 是否是 AntV 的大官网
|
||||
siteUrl: homepage, // 官网地址
|
||||
@ -31,8 +31,7 @@ export default defineConfig({
|
||||
showLanguageSwitcher: true, // 是否显示官网语言切换
|
||||
showWxQrcode: true, // 是否显示头部菜单的微信公众号
|
||||
showChartResize: true, // 是否在 demo 页展示图表视图切换
|
||||
showAPIDoc: true, // 是否在 demo 页展示API文档
|
||||
themeSwitcher: 'g2',
|
||||
showAPIDoc: false, // 是否在 demo 页展示API文档
|
||||
prefersColor: {
|
||||
default: 'light',
|
||||
switch: false,
|
||||
|
@ -5,7 +5,7 @@
|
||||
},
|
||||
"demos": [
|
||||
{
|
||||
"filename": "switch.js",
|
||||
"filename": "theme.js",
|
||||
"title": {
|
||||
"zh": "主题切换",
|
||||
"en": "Switch Theme"
|
||||
|
@ -47,7 +47,7 @@ const themes = {
|
||||
},
|
||||
};
|
||||
|
||||
fetch('http://127.0.0.1:5500/20000.json')
|
||||
fetch('https://assets.antv.antgroup.com/g6/20000.json')
|
||||
.then((res) => res.json())
|
||||
.then((data) => {
|
||||
const graph = new Graph({
|
||||
@ -58,7 +58,7 @@ fetch('http://127.0.0.1:5500/20000.json')
|
||||
theme: 'light',
|
||||
data,
|
||||
node: {
|
||||
style: { size: 8 },
|
||||
style: { size: 4 },
|
||||
palette: {
|
||||
type: 'group',
|
||||
field: 'cluster',
|
@ -1,6 +1,6 @@
|
||||
import { Graph } from '@antv/g6';
|
||||
|
||||
fetch('https://site-data-pre.alipay.com/g6/music-festival.json')
|
||||
fetch('https://assets.antv.antgroup.com/g6/music-festival.json')
|
||||
.then((res) => res.json())
|
||||
.then((data) => {
|
||||
const map = new Map();
|
||||
@ -71,7 +71,7 @@ fetch('https://site-data-pre.alipay.com/g6/music-festival.json')
|
||||
sortBy: 'order',
|
||||
cols: 5,
|
||||
},
|
||||
behaviors: ['scroll-canvas'],
|
||||
behaviors: [{ type: 'scroll-canvas', direction: 'y' }],
|
||||
plugins: [
|
||||
{
|
||||
type: 'background',
|
||||
|
@ -25,6 +25,7 @@
|
||||
"author": "https://github.com/orgs/antvis/people",
|
||||
"scripts": {
|
||||
"build": "npm run doc && dumi build",
|
||||
"build:memo": "node --expose-gc --max-old-space-size=8192 ./node_modules/dumi/bin/dumi build",
|
||||
"deploy": "gh-pages -d dist -b v5-site",
|
||||
"dev": "dumi dev",
|
||||
"doc": "ts-node ./scripts/generate-api.ts && ts-node ./scripts/generate-doc.ts",
|
||||
@ -43,7 +44,7 @@
|
||||
"@antv/g": "^6.0.6",
|
||||
"@antv/g-svg": "^2.0.7",
|
||||
"@antv/g-webgl": "^2.0.10",
|
||||
"@antv/g2": "^5.1.20",
|
||||
"@antv/g2": "^5.1.21",
|
||||
"@antv/g6": "workspace:*",
|
||||
"@antv/g6-extension-3d": "workspace:*",
|
||||
"@antv/g6-extension-react": "workspace:*",
|
||||
@ -52,7 +53,7 @@
|
||||
"@antv/layout-gpu": "^1.1.5",
|
||||
"@antv/layout-wasm": "^1.4.0",
|
||||
"@antv/util": "^3.3.7",
|
||||
"antd": "^5.17.4",
|
||||
"antd": "^5.18.0",
|
||||
"dumi": "~2.2.17",
|
||||
"insert-css": "^2.0.0",
|
||||
"lodash": "^4.17.21",
|
||||
@ -62,8 +63,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@manypkg/get-packages": "^2.2.1",
|
||||
"@microsoft/api-documenter": "^7.25.2",
|
||||
"@microsoft/api-extractor": "^7.46.2",
|
||||
"@microsoft/api-documenter": "^7.25.3",
|
||||
"@microsoft/api-extractor": "^7.47.0",
|
||||
"@microsoft/api-extractor-model": "^7.29.2",
|
||||
"@microsoft/tsdoc": "^0.15.0",
|
||||
"@rushstack/node-core-library": "^4.3.0",
|
||||
|
Loading…
Reference in New Issue
Block a user