Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

d3-arrow

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-arrow - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

2

dist/d3-arrow.js

@@ -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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc