@antv/g-plugin-canvas-picker
A G plugin for picking in canvas
Last updated 2 years ago by panyuqi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @antv/g-plugin-canvas-picker 
SYNC missed versions from official npm registry.

@antv/g-plugin-canvas-picker

基于 Canvas2D API 实现的拾取:

  1. 使用 R-Tree 空间索引查找拾取点命中的一系列图形包围盒
  2. 在这些图形中找到最顶层的一个图形,依据 z-index
  3. 使用数学计算精确判定是否命中该图形,例如 Circle 测算到圆心距离是否小于半径

该方案基于 CPU,因此优化点在于包围盒相交运算是否足够快。

Current Tags

  • 2.0.13-alpha.0                                ...           alpha (2 months ago)
  • 1.9.0-beta.1                                ...           beta (a year ago)
  • 2.1.11                                ...           latest (a month ago)
  • 2.0.12                                ...           next (3 months ago)

239 Versions

  • 2.1.11                                ...           a month ago
  • 2.1.10                                ...           a month ago
  • 2.1.9                                ...           a month ago
  • 2.1.8                                ...           a month ago
  • 2.1.7                                ...           a month ago
  • 2.1.6                                ...           a month ago
  • 2.1.5                                ...           a month ago
  • 2.1.4                                ...           a month ago
  • 2.1.3                                ...           a month ago
  • 2.1.2                                ...           2 months ago
  • 2.1.1                                ...           2 months ago
  • 2.1.0                                ...           2 months ago
  • 2.0.17                                ...           2 months ago
  • 2.0.16                                ...           2 months ago
  • 2.0.15                                ...           2 months ago
  • 2.0.14                                ...           2 months ago
  • 2.0.13                                ...           2 months ago
  • 2.0.13-alpha.0                                ...           2 months ago
  • 2.0.12                                ...           3 months ago
  • 2.0.11                                ...           3 months ago
  • 2.0.10                                ...           4 months ago
  • 2.0.9                                ...           5 months ago
  • 2.0.8                                ...           5 months ago
  • 2.0.7                                ...           6 months ago
  • 2.0.6                                ...           7 months ago
  • 2.0.5                                ...           7 months ago
  • 2.0.4                                ...           8 months ago
  • 2.0.3                                ...           8 months ago
  • 2.0.2                                ...           8 months ago
  • 2.0.1                                ...           9 months ago
  • 2.0.0                                ...           9 months ago
  • 1.10.26                                ...           9 months ago
  • 1.10.25                                ...           9 months ago
  • 1.10.24-next.20                                ...           9 months ago
  • 1.10.24-next.19                                ...           9 months ago
  • 1.10.24-next.18                                ...           9 months ago
  • 1.10.24-next.17                                ...           9 months ago
  • 1.10.24-next.16                                ...           10 months ago
  • 1.10.24-next.15                                ...           10 months ago
  • 1.10.24-next.14                                ...           10 months ago
  • 1.10.24                                ...           10 months ago
  • 1.10.24-next.13                                ...           10 months ago
  • 1.10.24-next.12                                ...           10 months ago
  • 1.10.24-next.11                                ...           10 months ago
  • 1.10.24-next.10                                ...           a year ago
  • 1.10.24-next.9                                ...           a year ago
  • 1.10.24-next.8                                ...           a year ago
  • 1.10.24-next.7                                ...           a year ago
  • 1.10.24-next.6                                ...           a year ago
  • 1.10.24-next.4                                ...           a year ago
  • 1.10.24-next.3                                ...           a year ago
  • 1.10.24-next.2                                ...           a year ago
  • 1.10.24-next.1                                ...           a year ago
  • 1.10.24-next.0                                ...           a year ago
  • 1.10.23                                ...           a year ago
  • 1.10.22                                ...           a year ago
  • 1.10.21                                ...           a year ago
  • 1.10.20                                ...           a year ago
  • 1.10.19                                ...           a year ago
  • 1.10.18                                ...           a year ago
  • 1.10.17                                ...           a year ago
  • 1.10.16                                ...           a year ago
  • 1.10.15                                ...           a year ago
  • 1.10.14                                ...           a year ago
  • 1.10.13                                ...           a year ago
  • 1.10.12                                ...           a year ago
  • 1.10.11                                ...           a year ago
  • 1.10.10                                ...           a year ago
  • 1.10.8                                ...           a year ago
  • 1.10.7                                ...           a year ago
  • 1.10.6                                ...           a year ago
  • 1.10.5                                ...           a year ago
  • 1.10.4                                ...           a year ago
  • 1.10.3                                ...           a year ago
  • 1.10.2                                ...           a year ago
  • 1.10.1                                ...           a year ago
  • 1.10.0                                ...           a year ago
  • 1.9.0                                ...           a year ago
  • 1.9.0-beta.1                                ...           a year ago
  • 1.9.0-alpha.1                                ...           a year ago
  • 1.8.51                                ...           2 years ago
  • 1.8.50                                ...           2 years ago
  • 1.8.49                                ...           2 years ago
  • 1.8.48                                ...           2 years ago
  • 1.8.47                                ...           2 years ago
  • 1.8.46                                ...           2 years ago
  • 1.8.45                                ...           2 years ago
  • 1.8.44                                ...           2 years ago
  • 1.8.43                                ...           2 years ago
  • 1.8.42                                ...           2 years ago
  • 1.8.41                                ...           2 years ago
  • 1.8.40                                ...           2 years ago
  • 1.8.39                                ...           2 years ago
  • 1.8.38                                ...           2 years ago
  • 1.8.37                                ...           2 years ago
  • 1.8.36                                ...           2 years ago
  • 1.8.35                                ...           2 years ago
  • 1.8.34                                ...           2 years ago
  • 1.8.34-alpha.0                                ...           2 years ago
  • 1.8.33                                ...           2 years ago
  • 1.8.32                                ...           2 years ago
  • 1.8.31                                ...           2 years ago
  • 1.8.30                                ...           2 years ago
  • 1.8.29                                ...           2 years ago
  • 1.8.28                                ...           2 years ago
  • 1.8.27                                ...           2 years ago
  • 1.8.26                                ...           2 years ago
  • 1.8.25                                ...           2 years ago
  • 1.8.24                                ...           2 years ago
  • 1.8.23                                ...           2 years ago
  • 1.8.22                                ...           2 years ago
  • 1.8.21                                ...           2 years ago
  • 1.8.20                                ...           2 years ago
  • 1.8.19                                ...           2 years ago
  • 1.8.18                                ...           2 years ago
  • 1.8.17                                ...           2 years ago
  • 1.8.16                                ...           2 years ago
  • 1.8.15                                ...           2 years ago
  • 1.8.14                                ...           2 years ago
  • 1.8.13                                ...           2 years ago
  • 1.8.12                                ...           2 years ago
  • 1.8.11                                ...           2 years ago
  • 1.8.10                                ...           2 years ago
  • 1.8.9                                ...           2 years ago
  • 1.8.8                                ...           2 years ago
  • 1.8.7                                ...           2 years ago
  • 1.8.6                                ...           2 years ago
  • 1.8.5                                ...           2 years ago
  • 1.8.4                                ...           2 years ago
  • 1.8.3                                ...           2 years ago
  • 1.8.2                                ...           2 years ago
  • 1.8.1                                ...           2 years ago
  • 1.8.0                                ...           2 years ago
  • 1.7.5                                ...           2 years ago
  • 1.7.4                                ...           2 years ago
  • 1.7.3                                ...           2 years ago
  • 1.7.2                                ...           2 years ago
  • 1.7.1                                ...           2 years ago
  • 1.7.0                                ...           2 years ago
  • 1.6.4                                ...           2 years ago
  • 1.6.3                                ...           2 years ago
  • 1.6.2                                ...           2 years ago
  • 1.6.1                                ...           2 years ago
  • 1.6.0                                ...           2 years ago
  • 1.6.0-alpha.0                                ...           2 years ago
  • 1.5.3                                ...           2 years ago
  • 1.5.2                                ...           2 years ago
  • 1.5.1                                ...           2 years ago
  • 1.5.0                                ...           2 years ago
  • 1.4.0                                ...           3 years ago
  • 1.3.1                                ...           3 years ago
  • 1.3.0                                ...           3 years ago
  • 1.2.3                                ...           3 years ago
  • 1.2.2                                ...           3 years ago
  • 1.2.1                                ...           3 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.8                                ...           3 years ago
  • 1.1.8-alpha.1                                ...           3 years ago
  • 1.1.8-alpha.0                                ...           3 years ago
  • 1.1.7                                ...           3 years ago
  • 1.1.6                                ...           3 years ago
  • 1.1.5                                ...           3 years ago
  • 1.1.4                                ...           3 years ago
  • 1.1.3                                ...           3 years ago
  • 1.1.3-alpha.1                                ...           3 years ago
  • 1.1.3-alpha.0                                ...           3 years ago
  • 1.1.2                                ...           3 years ago
  • 1.1.1                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.21                                ...           3 years ago
  • 1.0.20                                ...           3 years ago
  • 1.0.20-alpha.16                                ...           3 years ago
  • 1.0.20-alpha.15                                ...           3 years ago
  • 1.0.20-alpha.14                                ...           3 years ago
  • 1.0.20-alpha.13                                ...           3 years ago
  • 1.0.20-alpha.12                                ...           3 years ago
  • 1.0.20-alpha.11                                ...           3 years ago
  • 1.0.20-alpha.10                                ...           3 years ago
  • 1.0.20-alpha.9                                ...           3 years ago
  • 1.0.20-alpha.8                                ...           3 years ago
  • 1.0.20-alpha.7                                ...           3 years ago
  • 1.0.20-alpha.6                                ...           3 years ago
  • 1.0.20-alpha.4                                ...           3 years ago
  • 1.0.20-alpha.2                                ...           3 years ago
  • 1.0.20-alpha.0                                ...           3 years ago
  • 1.0.19                                ...           3 years ago
  • 1.0.19-alpha.2                                ...           3 years ago
  • 1.0.19-alpha.1                                ...           3 years ago
  • 1.0.19-alpha.0                                ...           3 years ago
  • 1.0.18                                ...           3 years ago
  • 1.0.17                                ...           3 years ago
  • 1.0.16                                ...           3 years ago
  • 1.0.15                                ...           3 years ago
  • 1.0.14                                ...           3 years ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0-alpha.32                                ...           3 years ago
  • 1.0.0-alpha.31                                ...           3 years ago
  • 1.0.0-alpha.30                                ...           3 years ago
  • 1.0.0-alpha.29                                ...           3 years ago
  • 1.0.0-alpha.28                                ...           3 years ago
  • 1.0.0-alpha.27                                ...           3 years ago
  • 1.0.0-alpha.26                                ...           3 years ago
  • 1.0.0-alpha.24                                ...           3 years ago
  • 1.0.0-alpha.23                                ...           3 years ago
  • 1.0.0-alpha.22                                ...           3 years ago
  • 1.0.0-alpha.21                                ...           3 years ago
  • 1.0.0-alpha.20                                ...           3 years ago
  • 1.0.0-alpha.19                                ...           3 years ago
  • 1.0.0-alpha.18                                ...           3 years ago
  • 1.0.0-alpha.17                                ...           3 years ago
  • 1.0.0-alpha.16                                ...           3 years ago
  • 1.0.0-alpha.15                                ...           3 years ago
  • 1.0.0-alpha.14                                ...           3 years ago
  • 1.0.0-alpha.13                                ...           3 years ago
  • 1.0.0-alpha.12                                ...           3 years ago
  • 1.0.0-alpha.11                                ...           3 years ago
  • 1.0.0-alpha.10                                ...           3 years ago
  • 1.0.0-alpha.9                                ...           3 years ago
  • 1.0.0-alpha.8                                ...           3 years ago
  • 1.0.0-alpha.7                                ...           3 years ago
  • 1.0.0-alpha.6                                ...           3 years ago
  • 1.0.0-alpha.5                                ...           3 years ago
  • 1.0.0-alpha.4                                ...           3 years ago
  • 1.0.0-alpha.3                                ...           3 years ago
  • 1.0.0-alpha.2                                ...           3 years ago
  • 1.0.0-alpha.1                                ...           4 years ago
  • 1.0.0-alpha.0                                ...           4 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE