Comparing version 0.0.9 to 0.0.10
@@ -1,2 +0,2 @@ | ||
// https://github.com/HarryStevens/d3-arrow#readme Version 0.0.9. Copyright 2020 Harry Stevens. | ||
// https://github.com/HarryStevens/d3-arrow#readme Version 0.0.10. Copyright 2020 Harry Stevens. | ||
(function (global, factory) { | ||
@@ -3,0 +3,0 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : |
{ | ||
"name": "d3-arrow", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Attach arrowheads to SVG elements.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -9,3 +9,3 @@ # d3-arrow | ||
```html | ||
<script src="https://unpkg.com/d3-arrow@0.0.9/dist/d3-arrow.min.js"></script> | ||
<script src="https://unpkg.com/d3-arrow@0.0.10/dist/d3-arrow.min.js"></script> | ||
<script> | ||
@@ -54,2 +54,18 @@ | ||
Creates a new arrow generator with an [<i>id</i>](#arrow_id) of "d3-arrow-13" and a [<i>scale</i>](#arrow_scale) of 1. | ||
Creates a new arrow generator with an [<i>id</i>](#arrow_id) of "d3-arrow-13" and a [<i>scale</i>](#arrow_scale) of 1. | ||
<a name="_arrow" href="#_arrow">#</a> <i>arrow</i>(<i>context</i>) · [Source](https://github.com/d3/d3-arrow/blob/master/src/index.js), [Example](https://observablehq.com/d/7759e56ba89ced03 "Example") | ||
Add the arrow generator to the given <i>context</i>, which should be a selection of SVG elements. | ||
<a name="arrow_id" href="#arrow_id">#</a> <i>arrow</i>.id([<i>id</i>]) · [Source](https://github.com/d3/d3-arrow/blob/master/src/index.js), [Example](https://observablehq.com/d/7759e56ba89ced03 "Example") | ||
Sets or gets the arrow's unique <i>id</i> string, which you'll reference when setting the element's "marker-end" attribute. | ||
<a name="arrow_scale" href="#arrow_scale">#</a> <i>arrow</i>.scale([<i>scale</i>]) · [Source](https://github.com/d3/d3-arrow/blob/master/src/index.js), [Example](https://observablehq.com/d/7759e56ba89ced03 "Example") | ||
Sets or gets the arrow's <i>scale</i> number. | ||
<a name="arrow_attr" href="#arrow_attr">#</a> <i>arrow</i>.attr(<i>key</i>[, <i>value</i>]) · [Source](https://github.com/d3/d3-arrow/blob/master/src/utils/iterate.js), [Example](https://observablehq.com/d/7759e56ba89ced03 "Example") | ||
Sets or gets an appearance attribute's value. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19394
69