Skip to content

Commit

Permalink
chore: bump to 5.1.18 (#6166)
Browse files Browse the repository at this point in the history
* chore: bump to 5.1.18

* chore: fix site demo

* docs: fix hexjson-usa example
  • Loading branch information
xiaoiver committed Apr 9, 2024
1 parent 72012e8 commit d3e5d0d
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,12 @@
## [5.1.18](https://github.com/antvis/g2/compare/5.1.17...5.1.18) (2024-04-08)


### Features

* update to g@6.0 for better performance ([#6149](https://github.com/antvis/g2/issues/6149)) ([72012e8](https://github.com/antvis/g2/commit/72012e8713afbd898322887d404d4b61d2b1d423))



## [5.1.17](https://github.com/antvis/g2/compare/5.1.16...5.1.17) (2024-03-21)


Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@antv/g2",
"version": "5.1.17",
"version": "5.1.18",
"description": "the Grammar of Graphics in Javascript",
"license": "MIT",
"main": "lib/index.js",
Expand Down
1 change: 1 addition & 0 deletions site/examples/annotation/shape/demo/watermark.ts
Expand Up @@ -65,6 +65,7 @@ function watermark({ x, y }, context) {
x,
y,
text: '鏁版嵁淇濆瘑',
transformOrigin: 'center',
transform: 'rotate(30)',
fontSize: 20,
fill: 'red',
Expand Down
4 changes: 2 additions & 2 deletions site/examples/geo/geo/demo/hexjson-usa.ts
Expand Up @@ -17,12 +17,12 @@ function processRow(row) {
}

register('data.hexbin', ({ width = 1, height = 1 }) => {
return (data) => renderHexJSON(data, width, height).map(processRow);
return (data) => renderHexJSON(data.value, width, height).map(processRow);
});

register('data.hexgird', ({ width = 1, height = 1 }) => {
return (data) =>
renderHexJSON(getGridForHexJSON(data), width, height).map(processRow);
renderHexJSON(getGridForHexJSON(data.value), width, height).map(processRow);
});

const chart = new Chart({
Expand Down
2 changes: 1 addition & 1 deletion site/examples/interesting/interesting/demo/petal.ts
Expand Up @@ -111,7 +111,7 @@ function petal({ offset = 1, ratio = 0.5 }, context) {
const g = document.createElement('g', {});
const p = document.createElement('path', {
style: {
path,
d: path,
inset: 1,
fill: value.color,
},
Expand Down
2 changes: 1 addition & 1 deletion site/package.json
@@ -1,5 +1,5 @@
{
"version": "5.1.17",
"version": "5.1.18",
"scripts": {
"start": "dumi dev",
"build": "dumi build",
Expand Down

0 comments on commit d3e5d0d

Please sign in to comment.