You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All modules in the optional folder can be removed from the library without effecting the others.
All elements except the base classes + SVG.Doc can be removed without affecting other modules.
Class structure
SVG.Parent was merged with SVG.Element
SVG.Element was splitted into Dom and Element
Example: Base > EventTarget > Dom > Element > Shape > Rect Base > EventTarget > Dom > Element > Container > Doc
Module Bundling
All modules are bundle together in main.js. This bundle should be utilized by other people using es6. They can import all functions they need from there.
When the user wants his old plain SVG-Object, they can use the svg.js file which imports this object.
This is also used to bundle the es5 bundle and is currently run against the tests.
What has to be changed in the docs
Update usage note:
es5 users should include the es5 bundle + polyfills file (works with script tag)
es6 users should include SVG from svg.js or specific objects from the main.js
New page for Dom with all its methods
Update elements page with all its methods
Note, from which optional module a method is coming from
I am not sure if we should structure it like that. When someone wants to kow which methods are on the element, he might also want to use dom or event target methods. So how can we link that in a good way?
The text was updated successfully, but these errors were encountered:
Directory structure
All modules are structured into the folders:
All modules in the optional folder can be removed from the library without effecting the others.
All elements except the base classes + SVG.Doc can be removed without affecting other modules.
Class structure
Example:
Base > EventTarget > Dom > Element > Shape > Rect
Base > EventTarget > Dom > Element > Container > Doc
Module Bundling
All modules are bundle together in
main.js
. This bundle should be utilized by other people using es6. They can import all functions they need from there.When the user wants his old plain SVG-Object, they can use the svg.js file which imports this object.
This is also used to bundle the es5 bundle and is currently run against the tests.
What has to be changed in the docs
Methods of EventTarget
Methods of Dom:
attr()
excepts array now to get multiple values at once #66)insertAfter()
insteadel.round(precision, [which Attributes = all])
svg(modifier, outerHTML = true)
,svg(outerHTML = true)
svg(svgString, outerHTML = true)
Methods of Element
el.parents(until = document)
Methods of Container
ungroup()
now breaks off one container and not more #65)I am not sure if we should structure it like that. When someone wants to kow which methods are on the element, he might also want to use dom or event target methods. So how can we link that in a good way?
The text was updated successfully, but these errors were encountered: