Skip to content
master
Switch branches/tags
Code

Latest commit

…ile devices && mini-programs (#766)

* Publish

 - @antv/g-base@0.3.22
 - @antv/g-canvas@0.3.23
 - @antv/g-svg@0.3.24

* fix(g-canvas): matrix of element should affect its clip, close #382

* Publish

 - @antv/g-canvas@0.3.24

* fix(g-canvas): should render when localRefresh change from false to true, close #422

* Publish

 - @antv/g-canvas@0.3.25

* fix(g-base): delay and repeat should work in toAttrs for animate method

* Publish

 - @antv/g-base@0.3.23
 - @antv/g-canvas@0.3.26
 - @antv/g-svg@0.3.25

* fix(bbox): path bbox lineWidth

* feat(version): update version

* fix(g-base): delay should not work in toAttrs, ref PR: #424

* fix(g-svg): event should work when matrix is applied, close #428

* Publish

 - @antv/g-base@0.3.26
 - @antv/g-canvas@0.3.27
 - @antv/g-svg@0.3.26

* feat(bbox): shadow refresh

* feat(shadow): shadowColor decide shadow bbox

* chore(vesion): update version

* Publish

 - @antv/g-base@0.3.28
 - @antv/g-canvas@0.3.28
 - @antv/g-svg@0.3.27

* fix(g-base): should consider precision of angle calculation for Path, close #436

* Publish

 - @antv/g-base@0.3.29
 - @antv/g-canvas@0.3.29
 - @antv/g-svg@0.3.28

* fix(g-canvas): g-canvas@0.3.29 is not compatible with @antv/path-util@2.0.4

no path-2-segments.js in @antv/path-util@2.0.4

* feat(g-base): 补充 ShapeAttrs 类型定义

* feat(g-canvas): arrow support bbox calculation and hit, ref: #432

* fix: ci failed

* Publish

 - @antv/g-base@0.4.0
 - @antv/g-canvas@0.4.0
 - @antv/g-svg@0.4.0

* fix(refresh): fixed bug #444

* Publish

 - @antv/g-canvas@0.4.1

* fix(g-canvas): fill attr should work for custom arrow

* Publish

 - @antv/g-canvas@0.4.2

* feat(delegation): delegation mouseenter, mouseleave

* fix(g-base): fix an condition judgement type error in path util

* refactor: use unpkg other than browser field in package.json

* feat(pixelratio): round pixelRatio

* fix(g-base): dragenter & dragleave event should be able to bubble, close #456

* fix(g-svg): toFront() method should work, close #462

* fix(g-base): set animation._paused to true in element.pauseAnimate()

* feat(refresh): bbox nan filter

* fix(g-svg): should not handle fontSize < 12 for text, close #465

* feat(view): auto clip shape in view

* fix(g-base): extract timeline.getTime() in element.pauseAnimate()

* fix: prevent undefined error when check isParent

* fix: 添加空判断,防止报错

* refactor: remove some unused code

* Publish

 - @antv/g-base@0.4.1
 - @antv/g-canvas@0.4.3
 - @antv/g-svg@0.4.1

* refactor: remove some unused code

* refactor: export Math function

* refactor: import @antv/g-base getOffScreenContext

* refactor: remove getOffScreenContext variable

* refactor: replace line box function with getBBoxByArray

* feat: g-math add getBBoxRange

* refactor(g-svg): replace all createElementNS with createSVG

* refactor(g-svg): rename createSVG to createSVGElement

* feat(getshape): quick hit in canvas

* feat(test): ignore test

* test(image): add callback

* feat(review): isParent method not need check isGroup

* feat(delegate): name support array

* Publish

 - @antv/g-base@0.4.2
 - @antv/g-canvas@0.4.4
 - @antv/g-math@0.1.2
 - @antv/g-svg@0.4.2

* Publish

 - @antv/g-base@0.4.3
 - @antv/g-canvas@0.4.5
 - @antv/g-svg@0.4.3

* fix(canvas): getCanvasBBox removed

* Publish

 - @antv/g-canvas@0.4.7

* fix(gl-matrix): use gl-matrix instead of antv/gl-matrix

* Publish

 - @antv/g-base@0.4.4
 - @antv/g-canvas@0.4.8
 - @antv/g-math@0.1.3
 - @antv/g-svg@0.4.4

* fix(hit): canvas is not a group

* chore: 🔀 add GitHub Action to sync Gitee

antvis/gatsby-theme-antv#122

* Publish

 - @antv/g-canvas@0.4.9

* fix(g-canvas): Add override of clearEvents()

* fix(g-abstract, g-canvas, g-svg): elevate events methods to g-abstract

* fix(g-base): Fix EventController import path.

* fix(g-base): Update the way to get controller in event-spec

* fix(g-base): Remove unused EventController importion.

* chore(deps): bump @antv/matrix-util from 2.0.4 to 3.0.2 (#508)

* chore(deps-dev): bump lint-staged from 9.5.0 to 10.2.2 (#506)

Bumps [lint-staged](https://github.com/okonet/lint-staged) from 9.5.0 to 10.2.2.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](okonet/lint-staged@v9.5.0...v10.2.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump @commitlint/config-angular from 7.6.0 to 8.3.4 (#505)

Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint) from 7.6.0 to 8.3.4.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md)
- [Commits](conventional-changelog/commitlint@v7.6.0...v8.3.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* Publish

 - @antv/g-base@0.4.5
 - @antv/g-canvas@0.4.10
 - @antv/g-svg@0.4.5

* Revert "chore(deps): bump @antv/matrix-util from 2.0.4 to 3.0.2 (#508)" (#513)

This reverts commit 1e5869b.

* Publish

 - @antv/g-base@0.4.6
 - @antv/g-canvas@0.4.11
 - @antv/g-svg@0.4.6

* fix(g-base): event should work when CSS transform is applied, close #489 (#516)

* chore(deps): bump @antv/matrix-util from 2.0.4 to 3.0.2, ref: antvis/util#46 (#521)

* fix(g-base): event => ev (#524)

* Publish

 - @antv/g-base@0.4.7
 - @antv/g-canvas@0.4.12
 - @antv/g-svg@0.4.7

* Refresh prompt (#490)

* feat(bbox): cache bbox

* feat(rename): change canvasBox to canvasBBox

* feat(render): prompt refresh

* feat(group): add group in trigger onCanvasChanged

* feat(clip): clip changed

* feat(matrix-util): update matrix-util and update version

* feat(matrix): replace matrix-util

* feat(refresh): prompt hit and refresh

* chore(version): update version

* docs(comment): add comment

* chore(json): revert package.json version

Co-authored-by: 诸岳 <fuping.dfp@antfin.com>

* Publish

 - @antv/g-base@0.5.0-beta.1
 - @antv/g-canvas@0.5.0-beta.1
 - @antv/g-svg@0.5.0-beta.1

* chore(deps-dev): bump electron from 4.1.5 to 9.0.4 (#559)

Bumps [electron](https://github.com/electron/electron) from 4.1.5 to 9.0.4.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md)
- [Commits](electron/electron@v4.1.5...v9.0.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump tslint from 5.20.1 to 6.1.2 (#525)

Bumps [tslint](https://github.com/palantir/tslint) from 5.20.1 to 6.1.2.
- [Release notes](https://github.com/palantir/tslint/releases)
- [Changelog](https://github.com/palantir/tslint/blob/master/CHANGELOG.md)
- [Commits](palantir/tslint@5.20.1...6.1.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump prettier from 1.19.1 to 2.0.5 (#504)

Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.5.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](prettier/prettier@1.19.1...2.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump @commitlint/cli from 7.6.1 to 8.3.5 (#503)

Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint) from 7.6.1 to 8.3.5.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md)
- [Commits](conventional-changelog/commitlint@v7.6.1...v8.3.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump ts-loader from 5.4.5 to 7.0.5 (#536)

Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 5.4.5 to 7.0.5.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](TypeStrong/ts-loader@v5.4.5...v7.0.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump husky from 1.3.1 to 4.2.5 (#500)

Bumps [husky](https://github.com/typicode/husky) from 1.3.1 to 4.2.5.
- [Release notes](https://github.com/typicode/husky/releases)
- [Changelog](https://github.com/typicode/husky/blob/master/CHANGELOG.md)
- [Commits](typicode/husky@v1.3.1...v4.2.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump @commitlint/config-angular from 8.3.4 to 9.0.1 (#571)

Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint) from 8.3.4 to 9.0.1.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md)
- [Commits](conventional-changelog/commitlint@v8.3.4...v9.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump gh-pages from 2.2.0 to 3.1.0 (#570)

Bumps [gh-pages](https://github.com/tschaub/gh-pages) from 2.2.0 to 3.1.0.
- [Release notes](https://github.com/tschaub/gh-pages/releases)
- [Changelog](https://github.com/tschaub/gh-pages/blob/main/changelog.md)
- [Commits](tschaub/gh-pages@v2.2.0...v3.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* feat: attribute 'html' of dom shape can be a function (#584)

* chore(deps): bump tslib from 1.13.0 to 2.0.0 (#562)

Bumps [tslib](https://github.com/Microsoft/tslib) from 1.13.0 to 2.0.0.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](microsoft/tslib@1.13.0...2.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump eslint-plugin-html from 5.0.5 to 6.0.2 (#563)

Bumps [eslint-plugin-html](https://github.com/BenoitZugmeyer/eslint-plugin-html) from 5.0.5 to 6.0.2.
- [Release notes](https://github.com/BenoitZugmeyer/eslint-plugin-html/releases)
- [Changelog](https://github.com/BenoitZugmeyer/eslint-plugin-html/blob/master/CHANGELOG.md)
- [Commits](BenoitZugmeyer/eslint-plugin-html@v5.0.5...v6.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps): bump detect-browser from 4.8.0 to 5.1.1 (#565)

Bumps [detect-browser](https://github.com/DamonOehlman/detect-browser) from 4.8.0 to 5.1.1.
- [Release notes](https://github.com/DamonOehlman/detect-browser/releases)
- [Commits](DamonOehlman/detect-browser@v4.8.0...v5.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump electron from 9.0.4 to 9.1.0 (#577)

Bumps [electron](https://github.com/electron/electron) from 9.0.4 to 9.1.0.
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md)
- [Commits](electron/electron@v9.0.4...v9.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump @types/node from 10.17.27 to 14.0.23 (#581)

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 10.17.27 to 14.0.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump ts-loader from 7.0.5 to 8.0.1 (#585)

Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 7.0.5 to 8.0.1.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/master/CHANGELOG.md)
- [Commits](TypeStrong/ts-loader@v7.0.5...v8.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump eslint-config-prettier from 4.3.0 to 6.11.0 (#566)

Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 4.3.0 to 6.11.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md)
- [Commits](prettier/eslint-config-prettier@v4.3.0...v6.11.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* fix(refresh): text refresh error (#588)

* fix(refresh): text refresh error

* chore(version): update version

* fix(g-canvas): 修复多层图形嵌套的刷新问题 (#589)

* fix(refresh): effect other shape

* chore(json): test-live url

* test(sort): change sort test case

* chore(deps): bump @antv/matrix-util from ^2.0.4 to ^3.1.0-beta.1 (#593)

Co-authored-by: 诸岳 <fuping.dfp@antgroup.com>

* Publish

 - @antv/g-base@0.5.0
 - @antv/g-canvas@0.5.0
 - @antv/g-math@0.1.4
 - @antv/g-svg@0.5.0

* fix: mouse event on long cubic path problem. (#621)

* fix: mouse event on long cubic path problem.

* chore: beautify code.

* chore: beautify code.

* test: update long path issue test.

* chore: beautify code.

* test: get clientX and clientY problem

* fix(g-canvas): hasChanged should have priority over refresh with in checkChildrenRefresh (#623)

* fix(g-canvas): render should work correctly when element is clipped by view, close #494 (#550)

* Publish

 - @antv/g-canvas@0.4.13

* fix: switch branch (#574)

* Publish

 - @antv/g-canvas@0.4.14

* fix(g-canvas): hasChanged should have priority over refresh with in checkChildrenRefresh, close #622

Co-authored-by: Yanyan Wang <yanyanwang93@gmail.com>
Co-authored-by: 诸岳 <fuping.dfp@antgroup.com>

* Publish

 - @antv/g-base@0.5.1
 - @antv/g-canvas@0.5.1
 - @antv/g-math@0.1.5
 - @antv/g-svg@0.5.1

* fix: image cros (#639)

Co-authored-by: 聚则 <zhanning.bzn@antgroup.com>

* Publish

 - @antv/g-canvas@0.5.2

* Fix 634 (#642)

* fix: getPointAtLength failed on an empty path

* fix: add test case for #634

* fix: clear group and addGroup out of view problem, closes: #638 (#643)

Co-authored-by: shiwu <shiwu.wyy@antgroup.com>

* chore: update g-svg version

* Publish

 - @antv/g-canvas@0.5.3
 - @antv/g-svg@0.5.3

* fix: 修复element.get("canvas") 为空时,调用 animate 会报错 (#679)

* fix: 修复element.get("canvas") 为空时,调用 animate 会报错

close: #678

* chore(eslint): migrate tslint to eslint & fix error

* fix: 处理 eslint

* fix(eslint): eslint 升级到最新版本

* fix(eslint): 修复 eslint 配置问题

* chore(eslint): 使用g2plot的eslint规则,自动lint-fix

* fix: 修复 ci 问题

* fix: 修复 ci 问题,单测先 skip 掉,后续修复

Co-authored-by: xinming <xinming.lxj@antfin.com>

* Publish

 - @antv/g-base@0.5.2
 - @antv/g-canvas@0.5.4
 - @antv/g-math@0.1.5
 - @antv/g-svg@0.5.4

* Publish

 - @antv/g-base@0.5.3
 - @antv/g-canvas@0.5.5
 - @antv/g-math@0.1.6
 - @antv/g-svg@0.5.5

* chore: add src to files for sourceMap (#686)

* fix(issue-688): 当 marker symbol 没有内置时,method 为空,导致 crash (#689)

Co-authored-by: xinming <xinming.lxj@antfin.com>

* fix(esm): remove all the import of lib (#690)

* fix(esm): remove all the import of lib

* chore: export getArcParams

* chore: upgrade version

* chore: move tslib into dependence

* chore: remove invalid code

* fix: canvas animate returns problem (#694)

* fix: canvas animate returns problem

* chore: update version number

* chore: update return conditions

* chore: re-run online ci

* feat: init g-mobile repo

* fix: mini program don't need createDom

* fix: support mini program time tick

* fix(g-mobile): simplify render

* chore: add g-mobile to lerna packages

* fix: mobile canvas fitView

* feat: refine canvas draw

* fix: add canvas refresh element func

* fix: mobile web fit view

* fix: 修复极大数量求最大值、最小值出错 (#727)

* fix: 修复极大数量求最大值、最小值出错

* feat: 将maxBy,minBy替换为max,min 且升级版本

* chore: 修复 ci 问题,版本升级

* chore(deps-dev): bump typescript from 3.9.8 to 4.1.4 (#728)

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.9.8 to 4.1.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v3.9.8...v4.1.4)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump @types/react from 16.14.3 to 17.0.1 (#720)

Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 16.14.3 to 17.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump webpack-cli from 3.3.12 to 4.5.0 (#718)

Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 3.3.12 to 4.5.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.12...webpack-cli@4.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* fix: add deploy branch `gh-pages` (#665)

* chore(deps-dev): bump @commitlint/config-angular from 9.1.2 to 11.0.0 (#649)

Bumps [@commitlint/config-angular](https://github.com/conventional-changelog/commitlint) from 9.1.2 to 11.0.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md)
- [Commits](conventional-changelog/commitlint@v9.1.2...v11.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): [security] bump electron from 4.1.5 to 11.2.3 (#724)

Bumps [electron](https://github.com/electron/electron) from 4.1.5 to 11.2.3. **This update includes security fixes.**
- [Release notes](https://github.com/electron/electron/releases)
- [Changelog](https://github.com/electron/electron/blob/master/docs/breaking-changes.md)
- [Commits](electron/electron@v4.1.5...v11.2.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps): bump @types/d3-timer from 1.0.10 to 2.0.0 (#647)

Bumps [@types/d3-timer](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/d3-timer) from 1.0.10 to 2.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/d3-timer)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump less from 3.13.1 to 4.1.1 (#730)

Bumps [less](https://github.com/less/less.js) from 3.13.1 to 4.1.1.
- [Release notes](https://github.com/less/less.js/releases)
- [Changelog](https://github.com/less/less.js/blob/master/CHANGELOG.md)
- [Commits](less/less.js@v3.13.1...v4.1.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump @types/react-dom from 16.9.11 to 17.0.1 (#733)

Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 16.9.11 to 17.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* chore(deps-dev): bump husky from 4.3.8 to 5.0.9 (#732)

Bumps [husky](https://github.com/typicode/husky) from 4.3.8 to 5.0.9.
- [Release notes](https://github.com/typicode/husky/releases)
- [Commits](typicode/husky@v4.3.8...v5.0.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* feat(g-canvas): fix webkit ios canvas garbage collection bug (#725)

* feat(g-canvas): fix webkit ios canvas garbage collection bug

* feat(g-canvas): 增加 #726 bug单测

Co-authored-by: caoxun03 <caoxun03@kuaishou.com>

* fix: 修复text 在小程序的 bbox 与 fontSize

* chore(deps-dev): bump @commitlint/cli from 8.3.5 to 12.0.0 (#738)

Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint) from 8.3.5 to 12.0.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/CHANGELOG.md)
- [Commits](conventional-changelog/commitlint@v8.3.5...v12.0.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>

* feat: add canvas proxy

* feat: add convas proxy

* fix: support miniapp touch event

* fix: support miniapp touch event

* fix: support miniapp touch event

* feat: update readme

* feat: update readme

* feat: update readme

* chore: change version to 0.0.1-beta.1

* chore: change version to 0.0.1-beta.1

* chore: change version to 0.0.1-beta.1

* fix: fix pinch event extra data

* fix: fix pinch event extra data

* fix: fix pinch event extra data

* Update README-zh_CN.md

* Update README-zh_CN.md

* Update README-zh_CN.md

* docs: update mobile support

* docs: update mobile support

* docs: update mobile support

* fix: support native

* fix: support native

* fix: support native

* fix: resolve mini parse

* fix: resolve mini parse

* fix: resolve mini parse

* fix: drag event dispatch error

* chore: change version to 0.0.1-beta.4

* Merge branch 'g-mobile' of github.com:antvis/g into g-mobile

* chore: update pkg

* fix: canvas check point error

* fix: change hammerjs version to resolve parse error

* fix: remove native canvas draw call

* fix: 针对canvas做一些修正

* fix: draw region

* fix: mini app renderer error

* chore: change version to 0.0.1-beta.10

* fix: 小程序下window为undefined

* chore: change version to 0.0.1-beta.11

* fix: 修复font 和 fontstyle在小程序下的异常

* fix(g-mobile): get globalAlpha problem in mini program (#751)

Co-authored-by: 兵人 <xuezhiqiang.xzq@antgroup.com>

* fix: strict gesture distinction

* chore: change version

* fix: resolve node tap empty error

* fix: mini-program canvas proxy problem (#757)

* chore: change version to 0.0.1-beta.16

* fix: 对pan事件进行透传

* fix: 直接透传scale (#758)

* fix: resolve panend not dispatch error

* chore: sync g-base

* fix: canvas check points error

* feat: add miniapp image support

* fix: resolve parse pinchend error

* chore: change version

* chore: change version

Co-authored-by: 诸岳 <fuping.dfp@antfin.com>
Co-authored-by: dxq613 <dxq613@gmail.com>
Co-authored-by: budlion <lliudongqi@gmail.com>
Co-authored-by: simaQ <sima.zhang1990@gmail.com>
Co-authored-by: entronad <entronad@gmail.com>
Co-authored-by: zqlu <zqlu.cn@gmail.com>
Co-authored-by: limichange <limichange@hotmail.com>
Co-authored-by: hustcc <i@hust.cc>
Co-authored-by: afc163 <afc163@gmail.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Terence <trence320@163.com>
Co-authored-by: 诸岳 <fuping.dfp@antgroup.com>
Co-authored-by: Yanyan Wang <yanyanwang93@gmail.com>
Co-authored-by: Moyee <576375879@qq.com>
Co-authored-by: 聚则 <zhanning.bzn@antgroup.com>
Co-authored-by: yuqi.pyq <yuqi.pyq@antfin.com>
Co-authored-by: shiwu <shiwu.wyy@antgroup.com>
Co-authored-by: Kasmine <736929286@qq.com>
Co-authored-by: xinming <xinming.lxj@antfin.com>
Co-authored-by: liufu.lf <liufu.lf@antfin.com>
Co-authored-by: YanYuan <1025138284@qq.com>
Co-authored-by: openwayne <openwayne@gmail.com>
Co-authored-by: 毅羽 <cp166450@antfin.com>
Co-authored-by: Yang Libin <contact@yanglibin.info>
Co-authored-by: KedAyAyA <caoxun333@gmail.com>
Co-authored-by: caoxun03 <caoxun03@kuaishou.com>
Co-authored-by: 贤空 <wayne.wb@antfin.com>
Co-authored-by: ICMI <ICMI@users.noreply.github.com>
Co-authored-by: 兵人 <xuezhiqiang.xzq@antgroup.com>
7b05e80

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

English | 简体中文

G

npm package npm downloads npm package npm downloads Percentage of issues still open

  • A powerful rendering engine for AntV providing canvas and svg draw.

Features

  • Powerful and scalable rendering capability with built-in basic Graphics.
  • Excellent rendering performance and supports visualization scenarios with large amounts of data.
  • Complete simulation of browser DOM events, and no difference from native events.
  • Smooth animation implementation and rich configuration interfaces.
  • While providing Canvas and SVG version of implementation, and both of API basic consistent.

📦 Install

# Canvas version
$ npm install @antv/g-canvas --save

# SVG version
$ npm install @antv/g-svg --save

🔨 Usage

<div id="c1"></div>
import { Canvas } from '@antv/g-canvas';
// or use SVG version
// import { Canvas } from '@antv/g-svg';

const canvas = new Canvas({
  container: 'c1',
  width: 500,
  height: 500,
});

const group = canvas.addGroup();
group.addShape('circle', {
  attrs: {
    x: 100,
    y: 100,
    r: 50,
    fill: 'red',
    stroke: 'blue',
    lineWidth: 5,
  },
});

⌨️ Development

$ git clone git@github.com:antvis/g.git
$ cd g
$ npm install
$ npm run bootstrap
$ npm run build