MCPcopy Index your code
hub / github.com/riccardoscalco/textures

github.com/riccardoscalco/textures @v1.2.3 sqlite

repository ↗ · DeepWiki ↗ · release v1.2.3 ↗
13 symbols 22 edges 10 files 0 documented · 0%
README

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 use textures.js in your HTML page with a <script> tag by downloading textures.js to a local folder:

<script src="https://github.com/riccardoscalco/textures/raw/v1.2.3/path/to/textures.js"></script>

or by 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 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

Core symbols most depended-on inside this repo

template
called by 36
tests/lines-test.js
template
called by 25
tests/paths-test.js
template
called by 24
tests/circles-test.js
path
called by 1
src/paths.js
path
called by 1
src/lines.js
circles
called by 0
src/circles.js
$
called by 0
src/circles.js
paths
called by 0
src/paths.js

Shape

Function 13

Languages

TypeScript100%

Modules by API surface

src/paths.js4 symbols
src/lines.js3 symbols
src/circles.js2 symbols
tests/paths-test.js1 symbols
tests/lines-test.js1 symbols
tests/circles-test.js1 symbols
src/random.js1 symbols

Dependencies from manifests, versioned

@babel/core7.5.5 · 1×
@babel/preset-env7.5.5 · 1×
d3-selection2.0.0 · 1×
faucet0.0.1 · 1×
jsdom16.2.2 · 1×
np7.4.0 · 1×
rollup1.18.0 · 1×
rollup-plugin-babel4.3.3 · 1×
rollup-plugin-commonjs10.0.2 · 1×
rollup-plugin-node-resolve5.2.0 · 1×
rollup-plugin-uglify6.0.2 · 1×
tape5.0.1 · 1×

For agents

$ claude mcp add textures \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact