Textures.js

Textures.js is a JavaScript library for creating SVG patterns

Github星跟踪图

textures.js

Textures.js is a javascript library for creating SVG patterns.
Made on top of d3.js, it is designed for data visualization.

Read more on http://riccardoscalco.github.io/textures/.

Install

npm install textures

Usage

Import textures.js from NPM with:

import textures from 'textures';

You can also usetextures.js in your html page with a <script> tag, dowloading textures.js in a local folder

<script src="path/to/textures.js"></script>

or using the Unpkg CDN network

<script src="https://unpkg.com/textures@1.2.0/dist/textures.js"></script>

Then textures.js can be used alongside with d3 with:

const svg = d3
  .select('#example')
  .append("svg");

const texture = textures
  .lines()
  .thicker();

svg.call(texture);

svg
  .append('circle')
  .style('fill', texture.url());

License

MIT

主要指标

概览
名称与所有者riccardoscalco/textures
主编程语言JavaScript
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2015-01-28 12:24:23
推送于2023-01-01 20:03:38
最后一次提交2022-01-24 19:07:31
发布数8
最新版本名称v1.2.3 (发布于 2021-04-17 16:32:43)
第一版名称v1.0.4 (发布于 2016-08-12 10:31:32)
用户参与
星数6.1k
关注者数91
派生数219
提交数206
已启用问题?
问题数27
打开的问题数12
拉请求数66
打开的拉请求数9
关闭的拉请求数135
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?