Compare commits

...

56 Commits

Author SHA1 Message Date
b7d0c0bd62 chore: 🔧 release x6-react-shape@1.6.6 2024-08-15 13:59:13 +08:00
753bc29dcc fix: react-shape this.selectors must valid (#4374)
Co-authored-by: 魄兵 <pobing.slb@alibaba-inc.com>
2024-08-14 09:54:49 +08:00
9f200a272d chore: 🔧 change publish script 2023-11-14 10:28:35 +08:00
556121d68d chore(release): 🚀 publish
- @antv/x6-react-shape@1.6.5
2023-11-14 10:19:20 +08:00
2a132a2c19 fix: 🐛 support multiple graph 2023-11-14 10:16:18 +08:00
6d37943855 chore(release): 🚀 publish
- @antv/x6@1.35.0
2023-09-25 18:00:00 +08:00
1ca2114005 fix: 🐛 add judge when call renderHTMLComponent 2023-09-25 17:52:31 +08:00
032cce51df fix: 🐛 stop listen event when transform removed 2023-09-25 17:30:43 +08:00
add5600a26 chore(release): 🚀 publish
- @antv/x6@1.34.14
2023-07-06 09:41:49 +08:00
0fb2dcc96a fix: 🐛 check label node existed before change position 2023-07-05 22:46:52 +08:00
d440dfc6b1 docs: fixed the link to the homepage of the official website (#3651) (#3652)
Co-authored-by: qiufeihong <qiufeihong.qfh@alibaba-inc.com>
2023-06-06 19:26:20 +08:00
87fac22cd0 docs: 📚️ add animation example 2023-05-12 15:17:17 +08:00
de35af5d84 chore(release): 🚀 publish
- @antv/x6@1.34.13
2023-03-31 21:56:30 +08:00
d59e62605a fix: 🐛 fix parseInt error 2023-03-31 21:50:29 +08:00
b242a00bd0 chore(release): 🚀 publish
- @antv/x6@1.34.12
2023-03-22 16:51:32 +08:00
0b27331a4d fix: 🐛 parseint zindex to get correct max zindex node 2023-03-22 16:44:18 +08:00
05c3821ee9 docs(v1-react): fix memo equal condition (#3368)
docs(react): fix memo equal condition
2023-03-10 21:55:43 +08:00
afeab7b300 chore(release): 🚀 publish
- @antv/x6-angular-shape@1.3.2
 - @antv/x6-react-shape@1.6.4
 - @antv/x6-vue-shape@1.5.4
2023-02-22 11:22:21 +08:00
897a1a1812 fix: 🐛 limit peer dependencies version 2023-02-22 11:14:01 +08:00
399ca71075 chore(release): 🚀 publish
- @antv/x6@1.34.11
2023-02-21 23:33:13 +08:00
7c4e1b9272 fix: 🐛 cannot use this here 2023-02-21 22:30:34 +08:00
b8330d164b docs: fix typo about ‘defaultLabel’ (v1) (#3263)
docs: fix typo in labels.zh.md (v1)
2023-02-21 18:13:47 +08:00
d761f59789 chore(release): 🚀 publish
- @antv/x6@1.34.10
2023-02-03 10:35:20 +08:00
a07be165f0 fix: 🐛 change execludeNodes typo (#3199) 2023-02-02 18:08:58 +08:00
8c7dec349d chore(release): 🚀 publish
- @antv/x6@1.34.9
2023-02-02 11:23:32 +08:00
733fb867b2 fix(dnd): change dragging container options (#3186)
Co-authored-by: jinxiayi <jinxiayi@nbicc.com>
2023-02-01 17:41:37 +08:00
709f6021be chore(release): 🚀 publish
- @antv/x6@1.34.8
2023-01-31 11:08:07 +08:00
3ca9d416ff chore: 🔧 release new version (#3181) 2023-01-31 11:07:31 +08:00
8f891d06b6 fix: 🐛 fix index error for priorityQueue (#3180) 2023-01-31 03:30:46 +08:00
ea14d843cc docs: 📚️ show corrected demos in gallery (#3178) 2023-01-30 18:04:31 +08:00
25d56d0a66 docs: 📚️ update deps for demos 2022-11-30 16:35:32 +08:00
1e7a14d21d chore(release): 🚀 publish
- @antv/x6-react-components@1.1.20
2022-11-16 10:44:30 +08:00
d6e6b907fd fix: 🐛 fix typo for color-picker (#2885) 2022-11-16 10:42:59 +08:00
ba1fc3fd77 feat(x6-react-component): support for antd 5.0 (#2878)
feat(x6-react-component): support for antd 5.0, fix #2873

Co-authored-by: 诸岳 <fuping.dfp@antgroup.com>
2022-11-16 10:20:47 +08:00
d44dce03de chore(release): 🚀 publish
- @antv/x6@1.34.6
2022-11-09 15:37:34 +08:00
7873c546ff fix: 🐛 add timeout for animation setup (#2858)
Co-authored-by: 文瑀 <wenyu.jqq@antfin.com>
2022-11-09 15:34:19 +08:00
31c124aec7 chore: update contributors [skip ci] 2022-11-01 01:31:27 +00:00
91a59c7709 chore: update contributors [skip ci] 2022-10-30 01:32:05 +00:00
13e5cf36e1 chore: update contributors [skip ci] 2022-10-27 01:30:55 +00:00
537c3e8a50 chore: update contributors [skip ci] 2022-10-25 12:19:53 +00:00
549fe1cf56 docs: 📚️ add tips for insertPort api (#2806) 2022-10-25 20:19:31 +08:00
2b46e804c3 chore: update AUTHORS [skip ci] 2022-10-25 09:38:27 +00:00
745a9f4367 chore: update contributors [skip ci] 2022-10-25 09:33:14 +00:00
eef7ccf8bd fix: 🐛 fix nodes moved error when snapped (#2805) 2022-10-25 17:32:52 +08:00
1f7603ec05 chore: update contributors [skip ci] 2022-10-25 09:32:34 +00:00
5814103767 fix:🐛fix the bug cannot read properties of null when cell is not exit (#2802)
Co-authored-by: 温贝 <wenbei.wb@alibaba-inc.com>
2022-10-25 17:32:10 +08:00
595858558e fix: 🐛 add warn when use fallback router (#2799) 2022-10-25 06:46:07 +08:00
a6e3b4d4d3 fix: 🐛 fix the error in selected nodes position when snapline enabled (#2798) 2022-10-24 21:40:13 +08:00
466bc5d324 chore: update contributors [skip ci] 2022-10-23 01:30:26 +00:00
2bdd945670 chore: update contributors [skip ci] 2022-10-20 01:31:58 +00:00
a1ed7ee212 chore: update contributors [skip ci] 2022-10-19 01:30:34 +00:00
aeed9a6d3c chore: update contributors [skip ci] 2022-10-15 01:31:11 +00:00
18e5eb8378 chore: update contributors [skip ci] 2022-10-14 01:32:09 +00:00
609ed7e3d3 chore(release): 🚀 publish
- @antv/x6-geometry@1.0.14
 - @antv/x6-vector@1.4.2
 - @antv/x6@1.34.5
2022-10-13 21:32:50 +08:00
8a8d14abfa fix: 🐛 check if the navigator global is available before usage (#2768) 2022-10-13 10:39:54 +08:00
c6ca04317b chore: 🔧 remove version and track file for publish problem (#2763) 2022-10-10 15:38:28 +08:00
216 changed files with 570 additions and 435 deletions

View File

@ -64,6 +64,7 @@ qu <33251372+Qujh97@users.noreply.github.com>
sallen450 <qinghua10199@gmail.com>
semantic-release-bot <semantic-release-bot@martynus.net>
vector <vectorse@126.com>
wenbei <38773084+wb-wenbei@users.noreply.github.com>
wgf <34190465+evelope@users.noreply.github.com>
wind <>
wjqsummer <52412389+wjqsummer@users.noreply.github.com>

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 14 MiB

After

Width:  |  Height:  |  Size: 15 MiB

View File

@ -1,6 +1,6 @@
{
"peerDependencies": {
"antd": ">=4.4.2"
"antd": ">=4.4.2 || >=5.0.0-beta.0"
},
"devDependencies": {
"antd": "^4.4.2"

View File

@ -0,0 +1,81 @@
import React from 'react'
import { Graph, EdgeView, NodeView } from '@antv/x6'
import { animateAlongEdge, animateAlongNode, clearAnimation } from './animation'
import '../index.less'
export default class Example extends React.Component {
private container: HTMLDivElement
private animate = false
componentDidMount() {
const graph = new Graph({
container: this.container,
width: 800,
height: 600,
grid: true,
})
const source = graph.addNode({
id: 'source',
shape: 'rect',
x: 80,
y: 250,
width: 160,
height: 60,
})
const target = graph.addNode({
id: 'target',
shape: 'rect',
x: 520,
y: 250,
width: 160,
height: 60,
})
graph.addEdge({
id: 'edge',
source,
target,
})
document.addEventListener('click', () => {
if (this.animate) {
this.animate = false
clearAnimation()
} else {
this.animate = true
this.play(graph)
}
})
}
play(graph: Graph) {
const sourceNodeView = graph.findViewByCell(
graph.getCellById('source'),
) as NodeView
const targetNodeView = graph.findViewByCell(
graph.getCellById('target'),
) as NodeView
const edgeView = graph.findViewByCell(graph.getCellById('edge')) as EdgeView
animateAlongNode(sourceNodeView, 'M 0 30 L 0 0 L 160 0 L 160 30')
animateAlongNode(sourceNodeView, 'M 0 30 L 0 60 L 160 60 L 160 30', () => {
animateAlongEdge(edgeView, () => {
animateAlongNode(targetNodeView, 'M 0 0 L 160 0 L 160 60 L 0 60')
})
})
}
refContainer = (container: HTMLDivElement) => {
this.container = container
}
render() {
return (
<div className="x6-graph-wrap">
<div ref={this.refContainer} className="x6-graph" />
</div>
)
}
}

View File

@ -0,0 +1,94 @@
import { Vector, EdgeView, NodeView, Dom } from '@antv/x6'
const animateToken: SVGElement[] = []
export const removeAnimationElem = (elem: SVGElement) => {
const index = animateToken.findIndex((token) => token === elem)
if (index) {
animateToken.splice(index, 1)
}
Dom.remove(elem)
}
export const animateAlongEdge = (
edgeView: EdgeView,
compelete?: () => void,
) => {
const token = Vector.create('circle', { r: 4, fill: 'red' })
const path = edgeView.container.querySelector('path')
const animate = Dom.createSvgElement<SVGAnimateMotionElement>('animateMotion')
const mpath = Dom.createSvgElement('mpath')
const attrs = {
dur: '1000ms',
repeatCount: '1',
calcMode: 'linear',
fill: 'freeze',
}
const id = Dom.ensureId(path!)
animate.appendChild(mpath)
token.node.appendChild(animate)
token.appendTo(edgeView.container)
Dom.attr(mpath, { 'xlink:href': `#${id}` })
Dom.attr(animate, attrs)
animateToken.push(token.node)
animate.addEventListener('endEvent', () => {
removeAnimationElem(token.node)
if (compelete) {
compelete()
}
})
const ani = animate as any
setTimeout(() => {
ani.beginElement()
})
}
export const animateAlongNode = (
nodeView: NodeView,
path: string,
compelete?: () => void,
) => {
const token = Vector.create('circle', { r: 4, fill: 'red' })
const animate = Dom.createSvgElement<SVGAnimateMotionElement>('animateMotion')
const attrs = {
dur: '2000ms',
repeatCount: '1',
calcMode: 'linear',
fill: 'freeze',
}
Dom.attr(animate, {
...attrs,
path,
})
token.append(animate)
nodeView.container.appendChild(token.node)
animateToken.push(token.node)
animate.addEventListener('endEvent', () => {
removeAnimationElem(token.node)
if (compelete) {
compelete()
}
})
const ani = animate as any
setTimeout(() => {
ani.beginElement()
})
}
export const clearAnimation = () => {
const animations = [...animateToken]
animations.forEach((item) => {
removeAnimationElem(item)
})
}

View File

@ -327,6 +327,7 @@ export default class Example extends React.Component {
container: this.container,
width: 800,
height: 600,
snapline: true,
panning: {
enabled: true,
eventTypes: ['leftMouseDown', 'mouseWheel'],

View File

@ -1,3 +0,0 @@
import { version } from '@antv/x6-vector'
console.log(version)

View File

@ -27,7 +27,7 @@
"package:inherit": "yarn package-inherit update",
"prepare": "is-ci || husky install configs/husky-config",
"precommit": "yarn lint-staged && lerna run --concurrency 1 --stream precommit",
"publish:latest": "yarn build:dev && lerna publish --no-private --ignore-scripts"
"publish:latest": "lerna publish from-package --no-private --ignore-scripts --dist-tag v1"
},
"lint-staged": {
"**/*.{js,jsx,tsx,ts,less,md,json}": [

View File

@ -1,6 +1,6 @@
{
"name": "@antv/x6-angular-shape",
"version": "1.3.1",
"version": "1.3.2",
"description": "X6 shape for rendering angular components.",
"main": "lib/index.js",
"module": "es/index.js",
@ -49,7 +49,7 @@
"@angular/cdk": ">=10.2.3",
"@angular/common": "^10.2.3",
"@angular/core": ">=10.2.3",
"@antv/x6": ">=1.0.0"
"@antv/x6": "^1.x"
},
"devDependencies": {
"@angular/cdk": "^10.2.3",

View File

@ -1,5 +1,5 @@
{
"version": "1.0.12",
"version": "1.0.14",
"name": "@antv/x6-geometry",
"description": "Some useful geometry operations.",
"main": "lib/index.js",
@ -26,17 +26,16 @@
"build:esm": "tsc --module esnext --target es2015 --outDir ./es",
"build:cjs": "tsc --module commonjs --target es5 --outDir ./lib",
"build:umd": "rollup -c",
"build:version": "node ../../scripts/version.js",
"build:watch": "yarn build:esm --w",
"build:watch:esm": "yarn build:esm --w",
"build:watch:cjs": "yarn build:cjs --w",
"build:dev": "run-p build:cjs build:esm",
"build": "run-p build:version build:dev build:umd",
"build": "run-p build:dev build:umd",
"prebuild": "run-s lint clean",
"test": "jest",
"coveralls": "cat ./test/coverage/lcov.info | coveralls",
"pretest": "run-p clean:coverage",
"prepare": "run-s build:version test build",
"prepare": "run-s test build",
"precommit": "lint-staged"
},
"lint-staged": {

View File

@ -1,4 +1,3 @@
export * from './version'
export * from './angle'
export * from './point'
export * from './line'

View File

@ -1,9 +0,0 @@
import { version } from './version'
describe('version', () => {
it('should match the `version` field of package.json', () => {
// eslint-disable-next-line
const expected = require('../package.json').version
expect(version).toBe(expected)
})
})

View File

@ -1,7 +0,0 @@
/* eslint-disable */
/**
* Auto generated version file, do not modify it!
*/
const version = '1.0.12'
export { version }

View File

@ -1,6 +1,6 @@
{
"name": "@antv/x6-react-components",
"version": "1.1.19",
"version": "1.1.20",
"description": "React components for building x6 editors",
"main": "lib/index.js",
"module": "es/index.js",
@ -61,7 +61,7 @@
"@antv/x6-package-json/rollup.json"
],
"peerDependencies": {
"antd": ">=4.4.2",
"antd": ">=4.4.2 || >=5.0.0-beta.0",
"react": ">=16.8.6 || >=17.0.0",
"react-dom": ">=16.8.6 || >=17.0.0"
},

View File

@ -5,7 +5,6 @@ import React from 'react'
import classNames from 'classnames'
import { Popover } from 'antd'
import { PopoverProps } from 'antd/es/popover'
import 'antd/es/popover/style/index.css'
import addEventListener from 'rc-util/lib/Dom/addEventListener'
import {
SketchPicker,
@ -101,11 +100,15 @@ export class ColorPicker extends React.Component<
const { color } = this.state
const { disabled, overlayProps, style } = this.props
const baseCls = `${this.props.prefixCls}-color-picker`
const popoverProps: PopoverProps = {}
const popoverProps: PopoverProps & { open?: boolean } = {}
if (disabled) {
popoverProps.visible = false
// Support for antd 5.0
popoverProps.open = false
} else {
popoverProps.visible = this.state.active
// Support for antd 5.0
popoverProps.open = this.state.active
}
const colorStr =

View File

@ -2,7 +2,6 @@ import React from 'react'
import classNames from 'classnames'
import { Tooltip } from 'antd'
import { TooltipProps } from 'antd/es/tooltip'
import 'antd/es/tooltip/style/index.css'
import { Menu } from '../menu'
import { Dropdown } from '../dropdown'
import { ToolbarContext } from './context'

View File

@ -1,6 +1,6 @@
{
"name": "@antv/x6-react-shape",
"version": "1.6.3",
"version": "1.6.6",
"description": "X6 shape for rendering react components.",
"main": "lib/index.js",
"module": "es/index.js",
@ -31,9 +31,8 @@
"build:watch:esm": "yarn build:esm --w",
"build:watch:cjs": "yarn build:cjs --w",
"build": "run-p build:cjs build:esm build:umd",
"prebuild": "run-s lint clean",
"prepare": "yarn build",
"precommit": "lint-staged"
"prebuild": "run-s clean",
"prepare": "yarn build"
},
"lint-staged": {
"src/**/*.ts": [
@ -47,7 +46,7 @@
"@antv/x6-package-json/rollup.json"
],
"peerDependencies": {
"@antv/x6": ">=1.0.0",
"@antv/x6": "^1.x",
"react": ">=16.8.6 || >=17.0.0",
"react-dom": ">=16.8.6 || >=17.0.0"
},

View File

@ -6,17 +6,24 @@ import { Portal } from './portal'
import { Wrap } from './wrap'
export class ReactShapeView extends NodeView<ReactShape> {
protected targetId() {
return `${this.graph.view.cid}:${this.cell.id}`
}
protected init() {
super.init()
this.cell.on('removed', () => {
Portal.disconnect(this.cell.id)
Portal.disconnect(this.targetId())
})
}
getComponentContainer() {
return this.cell.prop('useForeignObject') === false
? (this.selectors.content as SVGElement)
: (this.selectors.foContent as HTMLDivElement)
return (
this.selectors &&
(this.cell.prop('useForeignObject') === false
? (this.selectors.content as SVGElement)
: (this.selectors.foContent as HTMLDivElement))
)
}
confirmUpdate(flag: number) {
@ -42,7 +49,7 @@ export class ReactShapeView extends NodeView<ReactShape> {
const component = this.graph.hook.getReactComponent(node)
const elem = React.createElement(Wrap, { graph, node, component })
if (Portal.isActive()) {
Portal.connect(this.cell.id, ReactDOM.createPortal(elem, root))
Portal.connect(this.targetId(), ReactDOM.createPortal(elem, root))
} else {
ReactDOM.render(elem, root)
}
@ -58,7 +65,7 @@ export class ReactShapeView extends NodeView<ReactShape> {
}
unmount() {
Portal.disconnect(this.cell.id)
Portal.disconnect(this.targetId())
this.unmountReactComponent()
super.unmount()
return this

View File

@ -1,5 +1,5 @@
{
"version": "1.4.0",
"version": "1.4.2",
"name": "@antv/x6-vector",
"description": "Lightweight library for manipulating and animating SVG.",
"main": "lib/index.js",
@ -26,20 +26,19 @@
"build:esm": "tsc --module esnext --target es2015 --outDir ./es",
"build:cjs": "tsc --module commonjs --target es5 --outDir ./lib",
"build:umd": "rollup -c",
"build:version": "node ../../scripts/version.js",
"build:csstype": "node ./scripts/csstype.js",
"build:watch": "yarn build:esm --w",
"build:watch:esm": "yarn build:esm --w",
"build:watch:cjs": "yarn build:cjs --w",
"build:dev": "run-p build:csstype build:cjs build:esm",
"build": "run-p build:version build:dev build:umd",
"build": "run-p build:dev build:umd",
"prebuild": "run-s lint clean",
"test": "karma start",
"test:watch": "karma start --single-run=false --auto-watch",
"test:debug": "karma start --browsers=Chrome --single-run=false --auto-watch --debug",
"coveralls": "cat ./test/coverage/lcov.info | coveralls",
"pretest": "run-p clean:coverage",
"prepare": "run-s build:version test build",
"prepare": "run-s test build",
"precommit": "lint-staged"
},
"lint-staged": {

View File

@ -1,9 +0,0 @@
import { version } from './version'
describe('version', () => {
it('should match the `version` field of package.json', () => {
// eslint-disable-next-line
const expected = require('../../package.json').version
expect(version).toBe(expected)
})
})

View File

@ -1,7 +0,0 @@
/* eslint-disable */
/**
* Auto generated version file, do not modify it!
*/
const version = '1.4.0'
export { version }

View File

@ -1,3 +1,2 @@
export * from './global/version'
export * from './dom'
export * from './vector'

View File

@ -1,6 +1,6 @@
{
"name": "@antv/x6-vue-shape",
"version": "1.5.3",
"version": "1.5.4",
"description": "X6 shape for rendering vue components.",
"main": "lib/index.js",
"module": "es/index.js",
@ -48,7 +48,7 @@
"vue-demi": "latest"
},
"peerDependencies": {
"@antv/x6": ">=1.0.0",
"@antv/x6": "^1.x",
"@vue/composition-api": "^1.0.0-rc.6",
"vue": "^2.6.12 || ^3.0.0"
},

View File

@ -1,6 +1,6 @@
{
"name": "@antv/x6",
"version": "1.34.3",
"version": "1.35.0",
"description": "JavaScript diagramming library that uses SVG and HTML for rendering.",
"main": "lib/index.js",
"module": "es/index.js",
@ -36,18 +36,17 @@
"build:umd": "rollup -c",
"build:less": "node ./scripts/style",
"build:readme": "node ./scripts/readme.js",
"build:version": "node ../../scripts/version.js",
"build:csstype": "node ./scripts/csstype.js",
"build:dev": "run-p build:csstype build:less build:cjs build:esm",
"build:watch": "yarn build:esm --w",
"build:watch:esm": "yarn build:esm --w",
"build:watch:cjs": "yarn build:cjs --w",
"build": "run-p build:readme build:version build:dev build:umd",
"build": "run-p build:readme build:dev build:umd",
"prebuild": "run-s lint clean",
"test": "karma start",
"coveralls": "cat ./test/coverage/lcov.info | coveralls",
"pretest": "run-p clean:coverage",
"prepare": "run-s build:version test build",
"prepare": "run-s test build",
"precommit": "lint-staged"
},
"lint-staged": {

View File

@ -73,7 +73,7 @@ export class Dnd extends View {
this.targetModel.startBatch('dnd')
this.$container
.addClass('dragging')
.appendTo(this.options.containerParent || document.body)
.appendTo(this.options.draggingContainer || document.body)
this.sourceNode = node
this.prepareDragging(node, e.clientX, e.clientY)
@ -462,7 +462,7 @@ export namespace Dnd {
duration?: number
easing?: string
}
containerParent?: HTMLElement
draggingContainer?: HTMLElement
/**
* dnd tool box container.
*/

View File

@ -125,23 +125,16 @@ export class Selection extends View<Selection.EventArgs> {
options,
}: Collection.EventArgs['node:change:position']) {
const { showNodeSelectionBox, pointerEvents } = this.options
const { ui, selection, translateBy } = options
let allowTranslating = !this.translating
const { ui, selection, translateBy, snapped } = options
/* Scenarios where this method is not called:
* 1. ShowNodeSelection is true or ponterEvents is none
* 2. Avoid circular calls with the selection tag
*/
allowTranslating =
allowTranslating &&
(showNodeSelectionBox !== true || pointerEvents === 'none')
allowTranslating = allowTranslating && ui && !selection
const allowTranslating =
(showNodeSelectionBox !== true || pointerEvents === 'none') &&
!this.translating &&
!selection
// Avoid circular calls of child nodes
allowTranslating =
allowTranslating && translateBy && node.id === translateBy
const translateByUi = ui && translateBy && node.id === translateBy
if (allowTranslating) {
if (allowTranslating && (translateByUi || snapped)) {
this.translating = true
const current = node.position()
const previous = node.previous('position')!

View File

@ -521,6 +521,11 @@ export class Transform extends Widget<Transform.Options> {
}
}
}
protected onRemove() {
this.stopListening()
super.onRemove()
}
}
export namespace Transform {

View File

@ -45,7 +45,7 @@ export class PriorityQueue<T> {
*/
insert(priority: number, value: T, id?: string) {
const item: PriorityQueue.DataItem<T> = { priority, value }
const index = this.data.length - 1
const index = this.data.length
if (id) {
item.id = id
this.index[id] = index
@ -96,7 +96,9 @@ export class PriorityQueue<T> {
const data = this.data
const peek = data[0]
const last = data.pop()!
delete this.index[data.length]
if (peek.id) {
delete this.index[peek.id]
}
if (data.length > 0) {
data[0] = last

View File

@ -1,3 +1,2 @@
export * from './util'
export * from './config'
export * from './version'

View File

@ -1,23 +0,0 @@
import { Config } from './config'
import { version } from './version'
function track() {
if (Config.trackable) {
const host = 'https://kcart.alipay.com/web/bi.do'
const img = new Image()
const metadata = {
...Config.trackInfo,
version,
pg: document.URL,
r: new Date().getTime(),
x6: true,
page_type: 'syslog',
}
const data = encodeURIComponent(JSON.stringify([metadata]))
img.src = `${host}?BIProfile=merge&d=${data}`
}
}
if (process.env.NODE_ENV !== 'development' && Config.trackable) {
setTimeout(track, 3000)
}

View File

@ -1,9 +0,0 @@
import { version } from './version'
describe('version', () => {
it('should match the `version` field of package.json', () => {
// eslint-disable-next-line
const expected = require('../../package.json').version
expect(version).toBe(expected)
})
})

View File

@ -1,7 +0,0 @@
/* eslint-disable */
/**
* Auto generated version file, do not modify it!
*/
const version = '1.34.2'
export { version }

View File

@ -204,7 +204,7 @@ export class HistoryManager
(Util.isAddEvent(event) && revert) ||
(Util.isRemoveEvent(event) && !revert)
) {
cell.remove(options)
cell && cell.remove(options)
} else if (
(Util.isAddEvent(event) && !revert) ||
(Util.isRemoveEvent(event) && revert)
@ -218,7 +218,7 @@ export class HistoryManager
} else if (Util.isChangeEvent(event)) {
const data = cmd.data as HistoryManager.ChangingData
const key = data.key
if (key) {
if (key && cell) {
const value = revert ? data.prev[key] : data.next[key]
cell.prop(key, value, options)
}

View File

@ -2,10 +2,6 @@ import { Shape } from './shape'
import * as Addon from './addon'
import * as Registry from './registry'
// start track
// -----------
import './global/track'
export * from './util'
export * from './common'
export * from './geometry'

View File

@ -76,11 +76,16 @@ export class ObstacleMap {
const excludeShapes = options.excludeShapes
const excType = shape ? excludeShapes.includes(shape) : false
const excTerminal = excludedTerminals.some((cell) => cell.id === node.id)
const excNode = options.excludeNodes.includes(node)
const excludedNode = options.excludeNodes.some((item) => {
if (typeof item === 'string') {
return node.id === item
}
return item === node
})
const excAncestor = excludedAncestors.includes(node.id)
const excHidden = options.excludeHiddenNodes && !node.isVisible()
const excluded =
excType || excTerminal || excNode || excAncestor || excHidden
excType || excTerminal || excludedNode || excAncestor || excHidden
if (!excluded) {
const bbox = node.getBBox().moveAndExpand(options.paddingBox)

View File

@ -49,7 +49,7 @@ export interface ResolvedOptions {
/**
* Should certain nodes not be considered as obstacles?
*/
excludeNodes: Node[]
excludeNodes: (Node | string)[]
/**
* Should certain hidden nodes not be considered as obstacles?

View File

@ -327,6 +327,8 @@ export const router: Router.Definition<ManhattanRouterOptions> = function (
// Cannot found the partial route.
if (partialRoute === null) {
// eslint-next-line
console.warn(`Unable to execute manhattan algorithm, use orth instead`)
return FunctionExt.call(
options.fallbackRouter,
this,

View File

@ -77,7 +77,7 @@ export namespace HTML {
}
protected renderHTMLComponent() {
const container = this.selectors.foContent
const container = this.selectors && this.selectors.foContent
if (container) {
const $wrap = this.$(container).empty()
const component = this.graph.hook.getHTMLComponent(this.cell)

View File

@ -445,7 +445,11 @@ function setupAnimation(
repeat && animate.addEventListener('repeatEvent', repeat)
const ani = animate as any
ani.beginElement()
setTimeout(() => {
ani.beginElement()
})
return () => ani.endElement()
}

View File

@ -1,56 +1,70 @@
const ua = navigator.userAgent
/* eslint-disable no-underscore-dangle */
let _IS_MAC = false
let _IS_IOS = false
let _IS_WINDOWS = false
let _IS_IE = false
let _IS_IE11 = false
let _IS_EDGE = false
let _IS_NETSCAPE = false
let _IS_CHROME_APP = false
let _IS_CHROME = false
let _IS_OPERA = false
let _IS_FIREFOX = false
let _IS_SAFARI = false
let _SUPPORT_TOUCH = false
let _SUPPORT_POINTER = false
let _SUPPORT_PASSIVE = false
let _NO_FOREIGNOBJECT = false
export namespace Platform {
export const IS_MAC = navigator.appVersion.indexOf('Mac') > 0
export const IS_IOS = !!ua.match(/(iPad|iPhone|iPod)/g)
export const IS_WINDOWS = navigator.appVersion.indexOf('Win') > 0
if (typeof navigator === 'object') {
const ua = navigator.userAgent
_IS_MAC = ua.indexOf('Macintosh') >= 0
_IS_IOS = !!ua.match(/(iPad|iPhone|iPod)/g)
_IS_WINDOWS = ua.indexOf('Windows') >= 0
export const IS_IE = ua.indexOf('MSIE') >= 0
export const IS_IE11 = !!ua.match(/Trident\/7\./)
export const IS_EDGE = !!ua.match(/Edge\//)
_IS_IE = ua.indexOf('MSIE') >= 0
_IS_IE11 = !!ua.match(/Trident\/7\./)
_IS_EDGE = !!ua.match(/Edge\//)
/**
* A flag indicating whether the browser is Netscape (including Firefox).
*/
export const IS_NETSCAPE =
_IS_NETSCAPE =
ua.indexOf('Mozilla/') >= 0 &&
ua.indexOf('MSIE') < 0 &&
ua.indexOf('Edge/') < 0
/**
* A flag indicating whether the the this is running inside a Chrome App.
*/
export const IS_CHROME_APP =
(window as any).chrome != null &&
(window as any).chrome.app != null &&
(window as any).chrome.app.runtime != null
export const IS_CHROME = ua.indexOf('Chrome/') >= 0 && ua.indexOf('Edge/') < 0
export const IS_OPERA = ua.indexOf('Opera/') >= 0 || ua.indexOf('OPR/') >= 0
export const IS_FIREFOX = ua.indexOf('Firefox/') >= 0
export const IS_SAFARI =
_IS_CHROME = ua.indexOf('Chrome/') >= 0 && ua.indexOf('Edge/') < 0
_IS_OPERA = ua.indexOf('Opera/') >= 0 || ua.indexOf('OPR/') >= 0
_IS_FIREFOX = ua.indexOf('Firefox/') >= 0
_IS_SAFARI =
ua.indexOf('AppleWebKit/') >= 0 &&
ua.indexOf('Chrome/') < 0 &&
ua.indexOf('Edge/') < 0
/**
* A flag indicating whether this device supports touchstart/-move/-end
* events (Apple iOS, Android, Chromebook and Chrome Browser on touch-enabled
* devices).
*/
export const SUPPORT_TOUCH = 'ontouchstart' in document.documentElement
if (typeof document === 'object') {
_NO_FOREIGNOBJECT =
!document.createElementNS ||
`${document.createElementNS(
'http://www.w3.org/2000/svg',
'foreignObject',
)}` !== '[object SVGForeignObjectElement]' ||
ua.indexOf('Opera/') >= 0
}
}
/**
* A flag indicating whether this device supports Microsoft pointer events.
*/
export const SUPPORT_POINTER = (window as any).PointerEvent != null && !IS_MAC
if (typeof window === 'object') {
_IS_CHROME_APP =
(window as any).chrome != null &&
(window as any).chrome.app != null &&
(window as any).chrome.app.runtime != null
_SUPPORT_POINTER = (window as any).PointerEvent != null && !_IS_MAC
}
export let SUPPORT_PASSIVE = false // eslint-disable-line import/no-mutable-exports
if (typeof document === 'object') {
_SUPPORT_TOUCH = 'ontouchstart' in document.documentElement
try {
const options = Object.defineProperty({}, 'passive', {
get() {
SUPPORT_PASSIVE = true
_SUPPORT_PASSIVE = true
},
})
const div = document.createElement('div')
@ -60,18 +74,50 @@ export namespace Platform {
} catch (err) {
// pass
}
}
export namespace Platform {
export const IS_MAC = _IS_MAC
export const IS_IOS = _IS_IOS
export const IS_WINDOWS = _IS_WINDOWS
export const IS_IE = _IS_IE
export const IS_IE11 = _IS_IE11
export const IS_EDGE = _IS_EDGE
/**
* A flag indicating whether the browser is Netscape (including Firefox).
*/
export const IS_NETSCAPE = _IS_NETSCAPE
/**
* A flag indicating whether the the this is running inside a Chrome App.
*/
export const IS_CHROME_APP = _IS_CHROME_APP
export const IS_CHROME = _IS_CHROME
export const IS_OPERA = _IS_OPERA
export const IS_FIREFOX = _IS_FIREFOX
export const IS_SAFARI = _IS_SAFARI
/**
* A flag indicating whether this device supports touchstart/-move/-end
* events (Apple iOS, Android, Chromebook and Chrome Browser on touch-enabled
* devices).
*/
export const SUPPORT_TOUCH = _SUPPORT_TOUCH
/**
* A flag indicating whether this device supports Microsoft pointer events.
*/
export const SUPPORT_POINTER = _SUPPORT_POINTER
export const SUPPORT_PASSIVE = _SUPPORT_PASSIVE
/**
* A flag indicating whether foreignObject support is not available. This
* is the case for Opera, older SVG-based browsers and all versions of IE.
*/
export const NO_FOREIGNOBJECT =
!document.createElementNS ||
`${document.createElementNS(
'http://www.w3.org/2000/svg',
'foreignObject',
)}` !== '[object SVGForeignObjectElement]' ||
ua.indexOf('Opera/') >= 0
export const NO_FOREIGNOBJECT = _NO_FOREIGNOBJECT
export const SUPPORT_FOREIGNOBJECT = !NO_FOREIGNOBJECT
}

View File

@ -1153,15 +1153,18 @@ export class EdgeView<
for (let i = 0, ii = labels.length; i < ii; i += 1) {
const label = labels[i]
const labelNode = this.labelCache[i]
if (!labelNode) {
continue
}
const labelPosition = this.normalizeLabelPosition(
label.position as Edge.LabelPosition,
)
const pos = ObjectExt.merge({}, defaultPosition, labelPosition)
const matrix = this.getLabelTransformationMatrix(pos)
this.labelCache[i].setAttribute(
'transform',
Dom.matrixToTransformString(matrix),
)
labelNode.setAttribute('transform', Dom.matrixToTransformString(matrix))
}
return this

View File

@ -861,7 +861,9 @@ export class NodeView<
if (options.frontOnly) {
if (candidates.length > 0) {
const zIndexMap = ArrayExt.groupBy(candidates, 'zIndex')
const maxZIndex = ArrayExt.max(Object.keys(zIndexMap))
const maxZIndex = ArrayExt.max(
Object.keys(zIndexMap).map((z) => parseInt(z, 10)),
)
if (maxZIndex) {
candidates = zIndexMap[maxZIndex]
}

View File

@ -421,7 +421,7 @@ export namespace ToolsView {
return this
}
protected stamp(elem: Element = this.container) {
protected stamp(elem: Element) {
if (elem) {
elem.setAttribute('data-cell-id', this.cellView.cell.id)
}

View File

@ -13,7 +13,7 @@ import './index.css'
// eslint-disable-next-line
const repo = require('../../loaders/repo.js!./data.js')
const iconOpenInNewWindow: React.SFC = () => (
const iconOpenInNewWindow: React.FC = () => (
<svg
width="15"
height="12"

View File

@ -1,8 +1,11 @@
import React from 'react'
import React, { PropsWithChildren } from 'react'
import { Toolbar } from '../toolbar'
import './content.css'
export class Content extends React.Component<Content.Props, Content.State> {
export class Content extends React.Component<
PropsWithChildren<Content.Props>,
Content.State
> {
private container: HTMLDivElement
constructor(props: Content.Props) {

View File

@ -15,9 +15,9 @@
"dependencies": {
"@ant-design/icons": "^4.2.1",
"@antv/layout": "^0.1.9",
"@antv/x6": "latest",
"@antv/x6-react-components": "latest",
"@antv/x6-react-shape": "latest",
"@antv/x6": "1.x",
"@antv/x6-react-components": "1.x",
"@antv/x6-react-shape": "1.x",
"@antv/x6-sites-demos-helper": "^1.2.2",
"@types/d3-sankey": "^0.11.1",
"@types/highlight.js": "^9.12.4",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,8 +3,8 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6-react-components": "latest",
"@antv/x6": "latest",
"@antv/x6-react-components": "1.x",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

View File

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@antv/x6": "latest",
"@antv/x6": "1.x",
"@antv/x6-sites-demos-helper": "latest",
"antd": "^4.4.2",
"react": "^16.13.1",

Some files were not shown because too many files have changed in this diff Show More