Socket
Socket
Sign inDemoInstall

@domoinc/get-path-string-with-two-bends

Package Overview
Dependencies
Maintainers
18
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@domoinc/get-path-string-with-two-bends

getPathStringWithTwoBends - Domo Widget


Version published
Weekly downloads
0
decreased by-100%
Maintainers
18
Weekly downloads
 
Created
Source

getPathStringWithTwoBends

This lib will provide access to the following function.

  • getPathStringWithTwoBends

This function has been overloaded to handle two different sets of inputs. Passing 4 arguments assumes you will be passing two pints in (x1, y1) form Passing 5 arguments assumes you will be passing the starting point, and then bend deltas for y1, x1, and y2

//----------------------------------------------------------------------------------
// Example using 4 arguments getPathStringWithTwoBends
//----------------------------------------------------------------------------------
 var d = {x1:0, y1:0, x2:10, y2:10};
 var path = svg.append('path')
   .attr('style', 'fill:none;stroke:#90C4E3;stroke-miterlimit:10;')
   .attr('d', getPathStringWithTwoBends(d.x1, d.y1, d.x2, d.y2) );


//----------------------------------------------------------------------------------
// Example using 5 arguments getPathStringWithTwoBends
//----------------------------------------------------------------------------------
 var d = {x1:200, y1:100, x2:100, y2:100};
 var bendDeltas = getDeltas(d) // hypothetically returns { dy1, dx1, dy2 }
 var path = svg.append('path')
   .attr('style', 'fill:none;stroke:#90C4E3;stroke-miterlimit:10;')
   .attr('d', getPathStringWithTwoBends(d.x1, d.x2, bendDeltas.dy1, bendDeltas.dx1, bendDeltas.dy2));

Keywords

FAQs

Package last updated on 28 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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