@antv/g-plugin-css-select
A G plugin for using CSS select syntax in query selector
Last updated 2 months ago by zhanba .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @antv/g-plugin-css-select 
SYNC missed versions from official npm registry.

@antv/g-plugin-css-select

Use CSS Selector when doing query in scene graph.

For example, if we construct a such scene:

solarSystem<Group>
   |    |
   |   sun<Circle name='sun' />
   |
 earthOrbit<Group>
   |    |
   |  earth<Circle>
   |
 moonOrbit<Group>
      |
     moon<Circle r='25' />

Then we can use these DOM API retrieving elements:

solarSystem.getElementsByName('sun');
// [sun]

solarSystem.getElementsByTagName('circle');
solarSystem.getElementsByTagName(SHAPE.Circle);
// [sun, earth, moon]

solarSystem.querySelector('[name=sun]');
// sun

solarSystem.querySelectorAll('[r=25]');
// [moon]

Current Tags

  • 1.0.0-alpha.4                                ...           latest (2 months ago)
  • 1.0.0-alpha.20                                ...           next (9 days ago)

20 Versions

  • 1.0.0-alpha.20                                ...           9 days ago
  • 1.0.0-alpha.19                                ...           14 days ago
  • 1.0.0-alpha.18                                ...           14 days ago
  • 1.0.0-alpha.17                                ...           15 days ago
  • 1.0.0-alpha.16                                ...           16 days ago
  • 1.0.0-alpha.15                                ...           17 days ago
  • 1.0.0-alpha.14                                ...           19 days ago
  • 1.0.0-alpha.13                                ...           22 days ago
  • 1.0.0-alpha.12                                ...           22 days ago
  • 1.0.0-alpha.11                                ...           a month ago
  • 1.0.0-alpha.10                                ...           a month ago
  • 1.0.0-alpha.9                                ...           a month ago
  • 1.0.0-alpha.8                                ...           a month ago
  • 1.0.0-alpha.7                                ...           2 months ago
  • 1.0.0-alpha.5                                ...           2 months ago
  • 1.0.0-alpha.4                                ...           2 months ago
  • 1.0.0-alpha.3                                ...           2 months ago
  • 1.0.0-alpha.2                                ...           3 months ago
  • 1.0.0-alpha.1                                ...           3 months ago
  • 1.0.0-alpha.0                                ...           4 months ago
Downloads
Today 0
This Week 0
This Month 77
Last Day 0
Last Week 9
Last Month 95
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |