GithubHelp home page GithubHelp logo

svg's People

Contributors

yatekii avatar

Watchers

 avatar James Cloos avatar

svg's Issues

Extend the basic example

The basic example should be extended to do something useful and demonstrate the capabilities of the renderer.

Global attributes

There should be global attributes to each shape.

Possibly it's best to implement them on a Trait, so they're accessible on each shape (Could use the UpdateElement).

The attributes are for now

fill
stroke

Broken lyon tesselation

Somehow lyon rectangle and crircle tesselation both render an octagon.
Maybe something goes wrong after the tesselation and the tesselation actually works.
Needs more investigation!

Complete <rect> functionality

Rect should not retesselate ever for the moment. It should only retesselate when it has a border and the size changes.

The rect should feature all the vital properties:
x
This attribute determines the x coordinate of the rect.
Value type: | ; Default value: 0; Animatable: yes
y
This attribute determines the y coordinate of the rect.
Value type: | ; Default value: 0; Animatable: yes
width
This attribute determines the width of the rect.
Value type: auto|| ; Default value: auto; Animatable: yes
height
This attribute determines the height of the rect.
Value type: auto|| ; Default value: auto; Animatable: yes
fill
This field should determine the rectangle color.
stroke
This field should determine the border stroke color.

Complete <circle> functionality

Circle should not retesselate ever for the moment. It should only retesselate when it has a border and the size changes.

The circle should feature all the vital properties:
cx
This attribute defines the x-axis coordinate of the center of the element.
Value type: | ; Default value: 0; Animatable: yes
cy
This attribute defines the y-axis coordinate of the center of the element.
Value type: | ; Default value: 0; Animatable: yes
r
This attribute defines the radius of the element.
A value lower or equal to zero disables rendering of the circle.
Value type: ; Default value: 0; Animatable: yes
fill
This field should determine the rectangle color.
stroke
This field should determine the border stroke color.

Make Line an alias of a rectangle

Line should be an alias for the rectangle component, as it is really just a rectangle.

It should feature the following properties:

x1
Defines the x-axis coordinate of the line starting point.
Value type: || ; Default value: 0; Animatable: yes
x2
Defines the x-axis coordinate of the line ending point.
Value type: || ; Default value: 0; Animatable: yes
y1
Defines the y-axis coordinate of the line starting point.
Value type: || ; Default value: 0; Animatable: yes
y2
Defines the y-axis coordinate of the line ending point.
Value type: || ; Default value: 0; Animatable: yes
stroke-width
The width of the stroke.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.