https://github.com/vaadin-component-factory/svg
Java API for vcf-svg
https://github.com/vaadin-component-factory/svg
Last synced: 24 days ago
JSON representation
Java API for vcf-svg
- Host: GitHub
- URL: https://github.com/vaadin-component-factory/svg
- Owner: vaadin-component-factory
- License: other
- Created: 2020-06-02T06:18:02.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T20:51:17.000Z (10 months ago)
- Last Synced: 2024-07-30T02:38:47.565Z (10 months ago)
- Language: Java
- Size: 101 KB
- Stars: 2
- Watchers: 5
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vaadin Svg for Flow
Vaadin Svg for Flow is a UI component add-on for Vaadin that allows drawing SVG graphics from the server side.
## License & Author
This Add-on is distributed under Apache 2.0
Component Factory Svg is written by Vaadin Ltd.
### Sponsored development
Major pieces of development of this add-on has been sponsored by multiple customers of Vaadin. Read more about Expert on Demand at: [Support](https://vaadin.com/support) and [Pricing](https://vaadin.com/pricing)### Installing
Add Svg to your project
```xml
com.vaadin
vcf-svg-flow
${vaadin.svg.version}
```
### Using Vaadin Svg
For screenshots and a live demo, check out the Vaadin Directory listing here: https://vaadin.com/directory/component/svg-component
#### Basic use
```java
Svg svg = new Svg();
svg.add(new Circle("c1", 50));
//add this component to your layout
add(svg);
```## Setting up for development
Clone the project in GitHub (or fork it if you plan on contributing)
```
git clone [email protected]:vaadin/vcf-svg-flow.git
```To build and install the project into the local repository run
```mvn install -DskipITs```
in the root directory. `-DskipITs` will skip the integration tests, which require a TestBench license. If you want to run all tests as part of the build, run
```mvn install```
To compile and run demos locally execute
```
mvn compile
mvn -pl vcf-svg-flow-demo -Pwar jetty:run
```