0.1.2 • Published 4 years ago

cool-line-arrow v0.1.2

Weekly downloads
8
License
MIT
Repository
github
Last release
4 years ago

enter image description here Fancy curved arrows for your Angular project! Great for tutorials and product tours!

Demo : https://vc6p1.csb.app/ Sandbox : https://codesandbox.io/s/vc6p1

Usage

import {CurvedLineArrowModule} from 'cool-line-arrow';

// Selector 

<tn-curved-line-arrow> </tn-curved-line-arrow>

Inputs

NameTypeDescriptionDefault
fromSelectorDOM selectorDOM element from which your arrow will start.body
fromOffsetXnumberAmount of pixels to offset the arrow from the DOM element on the X axis.0
fromOffsetYnumberAmount of pixels to offset the arrow from the DOM element on the Y axis.0
toSelectorDOM selectorDOM element to which your arrow will go to.(same as fromSelector)
toOffsetXnumberAmount of pixels to offset the arrow from the DOM element on the X axis.0
toOffsetYnumberAmount of pixels to offset the arrow from the DOM element on the Y axis.0
middleXnumberMiddle point X position.0
middleYnumberMiddle point Y position.40
widthnumberWidth of the arrow and arrowhead.8
colorcolorColor of the arrow and arrowhead."black"
hideIfFoundSelectorDOM selectorOptional. if the arrow can find this selector, it will hide itself. Useful for product tours when you only want to show an arrow whenever a user hasn't performed an action yet such as opening a menu.
debugLinebooleanShow debug dots and lines for fromOffset, toOffset and middle vectors.false
dynamicUpdatebooleanAutomatically adjust the arrow whenever the from/to DOM elements update. Useful for dynamic content such as sliding menus or content that is within a scrolling container.false
zIndexnumberAdjust the z-index for this arrow.0

Copyright

Made with ❤️ by Melek Damak

Inspired from

Styled Page, a tool that lets you visually build React apps & components!

License

MIT