Skip to content

Commit

Permalink
docs: ๐Ÿ“š๏ธ update tooltip demo (#1538)
Browse files Browse the repository at this point in the history
* docs: ๐Ÿ“š๏ธ update contextmenu demo (#1534)

* chore(release): @antv/[email protected] [skip ci]

## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

* chore(release): @antv/[email protected] [skip ci]

## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

* chore(release): @antv/[email protected] [skip ci]

## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

* chore(release): @antv/[email protected] [skip ci]

## @antv/x6-vector [1.2.4](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

* chore(release): @antv/[email protected] [skip ci]

## @antv/x6-app-dag [1.1.6](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

### Bug Fixes

* ๐Ÿ› fix delete node connection not delete ([#1167](#1167)) ([2b0ab54](2b0ab54))
* ๐Ÿ› update x6-react-shape version ([#1425](#1425)) ([65e6923](65e6923))

* chore(release): @antv/[email protected] [skip ci]

## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

* chore(release): @antv/[email protected] [skip ci]

## @antv/x6-app-er [1.1.6](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

### Bug Fixes

* ๐Ÿ› update x6-react-shape version ([#1425](#1425)) ([65e6923](65e6923))

* chore(release): @antv/[email protected] [skip ci]

## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

### Bug Fixes

* ๐Ÿ› optimize contextmenu tools ([#1391](#1391)) ([4d0b1e8](4d0b1e8))
* ๐Ÿ› update x6-react-shape version ([#1425](#1425)) ([65e6923](65e6923))

### Performance Improvements

* โšก๏ธ add simple config to remove rect and text element ([#1449](#1449)) ([4452563](4452563))

### Dependencies

* **@antv/x6-vector:** upgraded to 1.2.4

* chore(release): @antv/[email protected] [skip ci]

## @antv/x6-sites-demos-helper [1.2.2](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

### Bug Fixes

* ๐Ÿ› change home path in speedup js ([#1369](#1369)) ([a234833](a234833))

* chore(release): @antv/[email protected] [skip ci]

# @antv/x6-sites-demos [1.2.0](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

### Bug Fixes

* ๐Ÿ› update x6-react-shape version ([#1425](#1425)) ([65e6923](65e6923))

### Features

* โœจ add cell-editor tool ([#1202](#1202)) ([2286097](2286097))

### Dependencies

* **@antv/x6-sites-demos-helper:** upgraded to 1.2.2

* chore(release): @antv/[email protected] [skip ci]

# @antv/x6-sites [1.4.0](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

### Bug Fixes

* ๐Ÿ› add keepId for node clone ([#1254](#1254)) ([7c51152](7c51152))
* ๐Ÿ› change home path in speedup js ([#1369](#1369)) ([a234833](a234833))
* ๐Ÿ› change type of padding in ScaleContentToFitOptions ([#1203](#1203)) ([692ea04](692ea04))
* ๐Ÿ› optimize contextmenu tools ([#1391](#1391)) ([4d0b1e8](4d0b1e8))
* ๐Ÿ› unified panning api ([#1151](#1151)) ([fc78817](fc78817))
* ๐Ÿ› update x6-react-shape version ([#1425](#1425)) ([65e6923](65e6923))
* curve demo ([#1306](#1306)) ([292a03a](292a03a))
* fix angular typo ([#1154](#1154)) ([a8533e9](a8533e9))

### Features

* โœจ add cell-editor tool ([#1202](#1202)) ([2286097](2286097))
* โœจ add excludeHiddenNodes for manhattan router ([#1400](#1400)) ([c57908f](c57908f))
* โœจ add resizeGroup for stencil ([#1388](#1388)) ([4baba33](4baba33))
* x6-angular-shape support pass arguments ([#1250](#1250)) ([2a47d4a](2a47d4a))

* chore(release): @antv/[email protected] [skip ci]

## @antv/x6-svg-to-shape [1.0.3](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

* docs: ๐Ÿ“š๏ธ update tooltip demo

Co-authored-by: x6-bot <[email protected]>
  • Loading branch information
NewByVector and x6-bot authored Nov 11, 2021
1 parent c05147b commit ed073fa
Show file tree
Hide file tree
Showing 18 changed files with 151 additions and 26 deletions.
2 changes: 2 additions & 0 deletions configs/eslint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)

## @antv/eslint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)
Expand Down
2 changes: 2 additions & 0 deletions configs/package-json/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)

## @antv/x6-package-json [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)
Expand Down
2 changes: 2 additions & 0 deletions configs/stylelint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)

## @antv/stylelint-config [1.0.1](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)
Expand Down
8 changes: 8 additions & 0 deletions examples/x6-app-dag/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## @antv/x6-app-dag [1.1.6](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)


### Bug Fixes

* ๐Ÿ› fix delete node connection not delete ([#1167](https://github.com/antvis/x6/issues/1167)) ([2b0ab54](https://github.com/antvis/x6/commit/2b0ab54892527e5ba32b50adb5f21523ab2459ab))
* ๐Ÿ› update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([65e6923](https://github.com/antvis/x6/commit/65e6923b99d48641542203b549d5703a6a1f4be3))

## @antv/x6-app-dag [1.1.6](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)


Expand Down
2 changes: 2 additions & 0 deletions examples/x6-app-draw/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)

## @antv/x6-app-draw [1.1.6](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)
Expand Down
7 changes: 7 additions & 0 deletions examples/x6-app-er/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## @antv/x6-app-er [1.1.6](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)


### Bug Fixes

* ๐Ÿ› update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([65e6923](https://github.com/antvis/x6/commit/65e6923b99d48641542203b549d5703a6a1f4be3))

## @antv/x6-app-er [1.1.6](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)


Expand Down
21 changes: 21 additions & 0 deletions examples/x6-example-features/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)


### Bug Fixes

* ๐Ÿ› optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([4d0b1e8](https://github.com/antvis/x6/commit/4d0b1e8e413d2f9a8dec30ca48ca04e1a560a060))
* ๐Ÿ› update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([65e6923](https://github.com/antvis/x6/commit/65e6923b99d48641542203b549d5703a6a1f4be3))


### Performance Improvements

* โšก๏ธ add simple config to remove rect and text element ([#1449](https://github.com/antvis/x6/issues/1449)) ([4452563](https://github.com/antvis/x6/commit/4452563876a48fd90664c633e7e0e2debd750816))





### Dependencies

* **@antv/x6-vector:** upgraded to 1.2.4

## @antv/x6-example-features [1.2.2](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)


Expand Down
22 changes: 12 additions & 10 deletions examples/x6-example-features/src/pages/case/mind.less
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
.x6-node {
image {
visibility: hidden;
cursor: pointer;
.mindmap {
.x6-node {
image {
visibility: hidden;
cursor: pointer;
}
&:hover image {
visibility: visible;
}
}
&:hover image {
visibility: visible;
}
}

.x6-node-selected rect {
stroke-width: 2px;
.x6-node-selected rect {
stroke-width: 2px;
}
}
2 changes: 1 addition & 1 deletion examples/x6-example-features/src/pages/case/mind.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export default class Example extends React.Component {

render() {
return (
<div className="x6-graph-wrap">
<div className="x6-graph-wrap mindmap">
<div ref={this.refContainer} className="x6-graph" />
</div>
)
Expand Down
2 changes: 2 additions & 0 deletions packages/x6-vector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## @antv/x6-vector [1.2.4](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

## @antv/x6-vector [1.2.4](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)

## @antv/x6-vector [1.2.3](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-09-22)
Expand Down
7 changes: 7 additions & 0 deletions sites/x6-sites-demos-helper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## @antv/x6-sites-demos-helper [1.2.2](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)


### Bug Fixes

* ๐Ÿ› change home path in speedup js ([#1369](https://github.com/antvis/x6/issues/1369)) ([a234833](https://github.com/antvis/x6/commit/a234833240bad1f7d51f0fadf8b9db9392c44064))

## @antv/x6-sites-demos-helper [1.2.2](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)


Expand Down
20 changes: 20 additions & 0 deletions sites/x6-sites-demos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
# @antv/x6-sites-demos [1.2.0](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)


### Bug Fixes

* ๐Ÿ› update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([65e6923](https://github.com/antvis/x6/commit/65e6923b99d48641542203b549d5703a6a1f4be3))


### Features

* โœจ add cell-editor tool ([#1202](https://github.com/antvis/x6/issues/1202)) ([2286097](https://github.com/antvis/x6/commit/228609783e1b3a3ff579ce9d38cf2e70dacd4931))





### Dependencies

* **@antv/x6-sites-demos-helper:** upgraded to 1.2.2

# @antv/x6-sites-demos [1.2.0](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)


Expand Down
22 changes: 22 additions & 0 deletions sites/x6-sites/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# @antv/x6-sites [1.4.0](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)


### Bug Fixes

* ๐Ÿ› add keepId for node clone ([#1254](https://github.com/antvis/x6/issues/1254)) ([7c51152](https://github.com/antvis/x6/commit/7c51152f03998c26b740eec640961193c29ebd34))
* ๐Ÿ› change home path in speedup js ([#1369](https://github.com/antvis/x6/issues/1369)) ([a234833](https://github.com/antvis/x6/commit/a234833240bad1f7d51f0fadf8b9db9392c44064))
* ๐Ÿ› change type of padding in ScaleContentToFitOptions ([#1203](https://github.com/antvis/x6/issues/1203)) ([692ea04](https://github.com/antvis/x6/commit/692ea043854095535273e7a9ff2e4f8809faee81))
* ๐Ÿ› optimize contextmenu tools ([#1391](https://github.com/antvis/x6/issues/1391)) ([4d0b1e8](https://github.com/antvis/x6/commit/4d0b1e8e413d2f9a8dec30ca48ca04e1a560a060))
* ๐Ÿ› unified panning api ([#1151](https://github.com/antvis/x6/issues/1151)) ([fc78817](https://github.com/antvis/x6/commit/fc7881731bfc5c7cde698ca8948dfa0c40f891fc))
* ๐Ÿ› update x6-react-shape version ([#1425](https://github.com/antvis/x6/issues/1425)) ([65e6923](https://github.com/antvis/x6/commit/65e6923b99d48641542203b549d5703a6a1f4be3))
* curve demo ([#1306](https://github.com/antvis/x6/issues/1306)) ([292a03a](https://github.com/antvis/x6/commit/292a03a401922a038edd27a3fab8662a28c246d0))
* fix angular typo ([#1154](https://github.com/antvis/x6/issues/1154)) ([a8533e9](https://github.com/antvis/x6/commit/a8533e9a04ea8e0188dafa6c172e44189ff84dea))


### Features

* โœจ add cell-editor tool ([#1202](https://github.com/antvis/x6/issues/1202)) ([2286097](https://github.com/antvis/x6/commit/228609783e1b3a3ff579ce9d38cf2e70dacd4931))
* โœจ add excludeHiddenNodes for manhattan router ([#1400](https://github.com/antvis/x6/issues/1400)) ([c57908f](https://github.com/antvis/x6/commit/c57908fc7e6183319f27a8acc0e3567e76d11e6e))
* โœจ add resizeGroup for stencil ([#1388](https://github.com/antvis/x6/issues/1388)) ([4baba33](https://github.com/antvis/x6/commit/4baba3326bc9ecbbd9c272fcfa4ee3d3c0389db3))
* x6-angular-shape support pass arguments ([#1250](https://github.com/antvis/x6/issues/1250)) ([2a47d4a](https://github.com/antvis/x6/commit/2a47d4ad4ff313fc1e18e7327ba759ecf3f3867d))

# @antv/x6-sites [1.4.0](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)


Expand Down
12 changes: 6 additions & 6 deletions sites/x6-sites/examples/edge/tool/demo/context-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ const source = graph.addNode({
height: 40,
attrs: {
body: {
fill: '#f5f5f5',
stroke: '#d9d9d9',
stroke: '#5F95FF',
fill: '#EFF4FF',
strokeWidth: 1,
},
},
Expand All @@ -135,8 +135,8 @@ const target = graph.addNode({
height: 40,
attrs: {
body: {
fill: '#f5f5f5',
stroke: '#d9d9d9',
stroke: '#5F95FF',
fill: '#EFF4FF',
strokeWidth: 1,
},
},
Expand All @@ -155,8 +155,8 @@ graph.addEdge({
target,
attrs: {
line: {
stroke: '#a0a0a0',
strokeWidth: 1,
stroke: '#A2B1C3',
strokeWidth: 2,
},
},
tools: [
Expand Down
4 changes: 2 additions & 2 deletions sites/x6-sites/examples/edge/tool/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@
"zh": "ๅณ้”ฎ่œๅ•",
"en": "ContextMenu"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*8zs6SasZQ0MAAAAAAAAAAAAAARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*uKC1RLwScjIAAAAAAAAAAAAAARQnAQ"
},
{
"filename": "tooltip.tsx",
"title": {
"zh": "Tooltip",
"en": "Tooltip"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*fXO2RZ5IWv4AAAAAAAAAAAAAARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*U914SJCHAcsAAAAAAAAAAAAAARQnAQ"
}
]
}
38 changes: 32 additions & 6 deletions sites/x6-sites/examples/edge/tool/demo/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,48 @@ const graph = new Graph({
grid: true,
})

const source = graph.addNode({
x: 180,
y: 60,
width: 100,
height: 40,
attrs: {
body: {
stroke: '#5F95FF',
fill: '#EFF4FF',
strokeWidth: 1,
},
},
})

const target = graph.addNode({
x: 320,
y: 250,
width: 100,
height: 40,
attrs: {
body: {
stroke: '#5F95FF',
fill: '#EFF4FF',
strokeWidth: 1,
},
},
})

graph.addEdge({
source: { x: 320, y: 200 },
target: { x: 580, y: 300 },
source,
target,
attrs: {
line: {
stroke: '#bfbfbf',
stroke: '#A2B1C3',
strokeWidth: 2,
targetMarker: 'classic',
},
},
router: 'manhattan',
tools: [
{
name: 'tooltip',
args: {
tooltip: 'tooltip content',
tooltip: 'Tooltip Content',
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion sites/x6-sites/examples/showcase/practices/demo/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"zh": "ER ๅ›พ",
"en": "ER"
},
"screenshot": "https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*1TPwTaOHnyYAAAAAAAAAAAAAARQnAQ"
"screenshot": "https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*JC4fSosMaVIAAAAAAAAAAAAAARQnAQ"
},
{
"filename": "mindmap.ts",
Expand Down
2 changes: 2 additions & 0 deletions sites/x6-svg-to-shape/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## @antv/x6-svg-to-shape [1.0.3](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-09)

## @antv/x6-svg-to-shape [1.0.3](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)

## @antv/x6-svg-to-shape [1.0.3](https://github.com/antvis/x6/compare/@antv/[email protected]...@antv/[email protected]) (2021-11-08)
Expand Down

0 comments on commit ed073fa

Please sign in to comment.