svg-objects

Provides a few (JSP) servlet that produce simple parameterized SVG images. If you quickly need an image of a blue circle or something like that, simply take a dependency on this jar.

License

License

GroupId

GroupId

org.meeuw
ArtifactId

ArtifactId

svg-objects
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

jar
Description

Description

svg-objects
Provides a few (JSP) servlet that produce simple parameterized SVG images. If you quickly need an image of a blue circle or something like that, simply take a dependency on this jar.
Project URL

Project URL

https://github.com/mihxil/svg-objects
Source Code Management

Source Code Management

https://github.com/mihxil/svg-objects

Download svg-objects

How to add to project

<!-- https://jarcasting.com/artifacts/org.meeuw/svg-objects/ -->
<dependency>
    <groupId>org.meeuw</groupId>
    <artifactId>svg-objects</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.meeuw/svg-objects/
implementation 'org.meeuw:svg-objects:0.1'
// https://jarcasting.com/artifacts/org.meeuw/svg-objects/
implementation ("org.meeuw:svg-objects:0.1")
'org.meeuw:svg-objects:jar:0.1'
<dependency org="org.meeuw" name="svg-objects" rev="0.1">
  <artifact name="svg-objects" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.meeuw', module='svg-objects', version='0.1')
)
libraryDependencies += "org.meeuw" % "svg-objects" % "0.1"
[org.meeuw/svg-objects "0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Maven Central Build Status snapshots

svg-objects

Provides some simple parameterized SVG objects as web-fragments. Implemented in JSP(X)

This can be used in serlvet environment.

Take a dependency like so:

 <dependency>
   <groupId>org.meeuw</groupId>
   <artifactId>svg-objects</artifactId>
   <version>0.1</version>
 </dependency>

The name of the web-fragment is 'svgobjects', which you may want to include in web.xml/absolute-ordering

spinner

Use: ${pageContext.request.contextPath}/meeuw/spinner?<params>

A parameterized SVG spinner in JSPX

If you have a servlet environment, than you can simply generate an SVG spinner using JSP. E.g. like this.

It can be parameterized and there is no need to generate these kind of things beforehand.

This version has the following parameters:

  <c:set var="size" value="${empty param.size ? 64 : param.size}" />
  <!-- the square size of the spinner -->

  <c:set var="color" value="${empty param.color ? '#ed6d1c' : param.color}" />
  <!-- the fill color of the circles making up the spinner -->

  <c:set var="circles" value="${empty param.circles ? 7 : param.circles}" />
  <!-- The number of circles the spinner should be made up off -->

  <c:set var="steps" value="${empty param.steps ? 50 : param.steps}" />
  <!-- The number of steps used in one cycle of the animation -->

  <c:set var="dur" value="${empty param.dur ? '1500ms' : param.dur}" />
  <!-- The duration of one cycle of the animation -->

And the default then renders like so:

circle

Use: ${pageContext.request.contextPath}/meeuw/circle?<params>

polygon

Use: ${pageContext.request.contextPath}/meeuw/polygon?<params>

Versions

Version
0.1