vcf-svg
Web component for manipulating and animating SVG.
<vcf-svg>
Web Component for manipulating and animating SVG.
- Web Component wrapper for the JS library SVG.js.
- Zoom and pan functionality implemented with d3-zoom.
- Draggable functionality implemented with plugin svg.draggable.js.
Live demo ↗ | API documentation ↗
Installation
Install vcf-svg
:
npm i @vaadin-component-factory/vcf-svg --save
Usage
Once installed, import it in your application:
import '@vaadin-component-factory/vcf-svg';
Add <vcf-svg>
element to the page.
<vcf-svg></vcf-svg>
Running demo
Fork the
vcf-svg
repository and clone it locally.Make sure you have npm installed.
When in the
vcf-svg
directory, runnpm install
to install dependencies.Run
npm start
to open the demo.
Server-side API
This is the client-side (Polymer 3) web component. If you are looking for this web components server-side (Java) API for the Vaadin Platform, it can be found here: https://vaadin.com/directory/component/svg-component
Vaadin Prime
This component is available in the Vaadin Prime subscription. It is still open source, but you need to have a valid CVAL license in order to use it. Read more at: https://vaadin.com/pricing
License
Commercial Vaadin Add-on License version 3 (CVALv3). For license terms, see LICENSE.
Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see: https://github.com/vaadin/vaadin-usage-statistics
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Dependencies
- @polymer/iron-icon#^3.0.1
- @polymer/iron-iconset-svg#^3.0.1
- @polymer/polymer#3.2.0
- @svgdotjs/svg.js#^3.0.16
- @vaadin/vaadin-button#2.2.2
- @vaadin/vaadin-element-mixin#^2.1.3
- @vaadin/vaadin-license-checker#^2.1.2
- @vaadin/vaadin-lumo-styles#1.5.0
- @vaadin/vaadin-themable-mixin#^1.5.1
- d3#^5.16.0
- Released
- 2020-06-23
- Maturity
- IMPORTED
- License
- Other
Compatibility
- Framework
- Polymer 3.0+
- Browser
- Browser Independent