vcf-svg 23.1.0
Install from the command line:
Learn more about npm packages
$ npm install @vaadin-component-factory/vcf-svg@23.1.0
Install via package.json:
"@vaadin-component-factory/vcf-svg": "23.1.0"
About this version
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 ↗
Install vcf-svg
:
npm i @vaadin-component-factory/vcf-svg --save
Once installed, import it in your application:
import '@vaadin-component-factory/vcf-svg';
Add <vcf-svg>
element to the page.
<vcf-svg zoomable>
<svg viewbox="0 0 400 200">
<rect x="0" y="0" width="100" height="100" draggable="true"></rect>
</svg>
</vcf-svg>
-
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.
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: Svg Component
This component is available in the Vaadin Pro subscription. It is still open source, but you need to have a valid CVAL license in order to use it. Read more at: Pricing
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: Vaadin Usage Statistics
Details
- vcf-svg
- vaadin-component-factory
- over 2 years ago
- https://raw.githubusercontent.com/vaadin/vaadin-incubator-element/master/LICENSE
- 54 dependencies
Assets
- vcf-svg-23.1.0-npm.tgz
Download activity
- Total downloads 0
- Last 30 days 0
- Last week 0
- Today 0