File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- textures.js
2- ========
1+ # textures.js
32
4- Textures.js is a javascript library for creating SVG patterns.
5- Made on top of ** d3.js** , it is designed for data visualization.
3+ Textures.js is a JavaScript library for creating SVG patterns.
4+ Made on top of [ ** d3.js** ] ( https://d3js.org/ ) , it is designed for data visualization.
65
76Read more on http://riccardoscalco.github.io/textures/ .
87
@@ -16,25 +15,25 @@ npm install textures
1615
1716Import ` textures.js ` from NPM with:
1817
19- ```
18+ ``` js
2019import textures from ' textures' ;
2120```
2221
23- You can also use` textures.js ` in your html page with a ` <script> ` tag, dowloading ` textures.js ` in a local folder
22+ You can also use ` textures.js ` in your HTML page with a ` <script> ` tag by downloading ` textures.js ` to a local folder:
2423
25- ```
24+ ``` html
2625<script src =" path/to/textures.js" ></script >
2726```
2827
29- or using the Unpkg CDN network
28+ or by using the Unpkg CDN network:
3029
31- ```
30+ ``` html
3231<script src =" https://unpkg.com/textures@1.2.0/dist/textures.js" ></script >
3332```
3433
35- Then ` textures.js ` can be used alongside with ` d3 ` with:
34+ Then ` textures.js ` can be used alongside ` d3 ` with:
3635
37- ```
36+ ``` js
3837const svg = d3
3938 .select (' #example' )
4039 .append (" svg" );
You can’t perform that action at this time.
0 commit comments