UNPKG
@jawg/taxonomy
Version:
latest (1.3.0)
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
Building a map taxonomy chart with style.json
@jawg/taxonomy
/
src
/
index.js
9 lines
(6 loc)
•
269 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ component }
from
'riot'
;
import
Taxonomy
from
'./components/taxonomy.riot'
;
const
createApp =
component
(
Taxonomy
);
for
(
let
i =
0
; i <
document
.
getElementsByTagName
(
'taxonomy'
).
length
; i++) {
createApp
(
document
.
getElementsByTagName
(
'taxonomy'
).
item
(i)); }