]> source.dussan.org Git - svg.js.git/log
svg.js.git
6 years agochanged image callback according to (#931)
Ulrich-Matthias Schäfer [Sat, 17 Nov 2018 10:09:39 +0000 (11:09 +0100)]
changed image callback according to (#931)

6 years agocleanup a few files
Ulrich-Matthias Schäfer [Sat, 17 Nov 2018 09:42:19 +0000 (10:42 +0100)]
cleanup a few files

6 years agoremove native() methods, add methods of types directly to elemenet
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 13:51:34 +0000 (14:51 +0100)]
remove native() methods, add methods of types directly to elemenet

6 years agoreworked parents so that it is useful now, changelog
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 12:59:07 +0000 (13:59 +0100)]
reworked parents so that it is useful now, changelog

6 years agoticking off the last checkbox of (#645). return List whenever possible
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 12:29:15 +0000 (13:29 +0100)]
ticking off the last checkbox of (#645). return List whenever possible

6 years agoMerge pull request #925 from svgdotjs/645-svg-set-is-back
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 12:08:39 +0000 (13:08 +0100)]
Merge pull request #925 from svgdotjs/645-svg-set-is-back

svg set is back (#645)

6 years agomake List return new lists on method calls, add map to array polyfill so that this... 925/head
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 11:00:03 +0000 (12:00 +0100)]
make List return new lists on method calls, add map to array polyfill so that this works, fix runner

6 years agochange method name, make strings more pleasing to read
Ulrich-Matthias Schäfer [Sat, 10 Nov 2018 19:24:57 +0000 (20:24 +0100)]
change method name, make strings more pleasing to read

6 years agoadds `List` which does bring back `SVG.Set` in an elegant way (#645)
Ulrich-Matthias Schäfer [Fri, 9 Nov 2018 10:17:18 +0000 (11:17 +0100)]
adds `List` which does bring back `SVG.Set` in an elegant way (#645)

6 years agoevaluate window and document on access and not on import
Ulrich-Matthias Schäfer [Mon, 12 Nov 2018 08:35:37 +0000 (09:35 +0100)]
evaluate window and document on access and not on import

6 years agomake window and document exchangeable in case they are not globals alreay, make sure...
Ulrich-Matthias Schäfer [Sun, 11 Nov 2018 16:37:06 +0000 (17:37 +0100)]
make window and document exchangeable in case they are not globals alreay, make sure that init functions are chaninable

6 years agoadd registering for forgotten classes
Ulrich-Matthias Schäfer [Fri, 9 Nov 2018 16:15:38 +0000 (17:15 +0100)]
add registering for forgotten classes

6 years agoMerge pull request #924 from svgdotjs/796-add-attribute-syntax
Ulrich-Matthias Schäfer [Fri, 9 Nov 2018 13:53:27 +0000 (14:53 +0100)]
Merge pull request #924 from svgdotjs/796-add-attribute-syntax

added possibility to pass in additional attribues to element creators (#796)

6 years agoadded possibility to pass in additional attribues to element creators (#796) 924/head
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 18:49:49 +0000 (19:49 +0100)]
added possibility to pass in additional attribues to element creators (#796)

e.g.
- `canvas.rect({x:100})` or
- `canvas.rect(100, 100, {x:100})`

6 years agoadded possibility to pass attribues into a constructor like: `new SVG.Rect({width...
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 15:06:39 +0000 (16:06 +0100)]
added possibility to pass attribues into a constructor like: `new SVG.Rect({width:100})`

6 years ago`fill()` and `stroke()` return the fill and stroke attribute when called as getter...
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 13:14:05 +0000 (14:14 +0100)]
`fill()` and `stroke()` return the fill and stroke attribute when called as getter (#789)

6 years agoadded `ax(), ay(), amove()` to change texts x and y values directly (#787)
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 12:58:52 +0000 (13:58 +0100)]
added `ax(), ay(), amove()` to change texts x and y values directly (#787)

6 years ago`SVG.Text.rebuild()` now takes every font-size into account (#512)
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 12:53:14 +0000 (13:53 +0100)]
`SVG.Text.rebuild()` now takes every font-size into account (#512)

6 years agoimplements `round()` (#916)
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 11:59:03 +0000 (12:59 +0100)]
implements `round()` (#916)

6 years agoadd test for array getter of attr
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 11:34:31 +0000 (12:34 +0100)]
add test for array getter of attr

6 years agosize function of circle now only accepts one argument (#788)
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 11:04:13 +0000 (12:04 +0100)]
size function of circle now only accepts one argument (#788)

6 years agoadd styletags
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 10:31:28 +0000 (11:31 +0100)]
add styletags

6 years agoget rid of the fixmes and todos
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 10:12:26 +0000 (11:12 +0100)]
get rid of the fixmes and todos

6 years agoadded insertAfter/Before, introduce attrHooks, move few methods, SVG.Text.textPath...
Ulrich-Matthias Schäfer [Thu, 8 Nov 2018 09:05:28 +0000 (10:05 +0100)]
added insertAfter/Before, introduce attrHooks, move few methods, SVG.Text.textPath returns first textPath child now

6 years agoclone() does not insert the clone into the dom anymore, added beziere() and steps...
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 21:42:38 +0000 (22:42 +0100)]
clone() does not insert the clone into the dom anymore, added beziere() and steps() to generate easing functions

6 years agoupdate changelow
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 19:39:28 +0000 (20:39 +0100)]
update changelow

6 years agofix mistake in test
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 18:41:56 +0000 (19:41 +0100)]
fix mistake in test

6 years agofix travis yml
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 18:20:37 +0000 (19:20 +0100)]
fix travis yml

6 years agoadd chrome to travis
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 16:57:06 +0000 (17:57 +0100)]
add chrome to travis

6 years agofix the export/import function and enhance it
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 16:09:52 +0000 (17:09 +0100)]
fix the export/import function and enhance it

6 years agoMerge branch '875-es6' into 3.0.0
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 14:08:41 +0000 (15:08 +0100)]
Merge branch '875-es6' into 3.0.0

6 years agoremove other builds because of bloat for now until fixed
Ulrich-Matthias Schäfer [Wed, 7 Nov 2018 13:05:27 +0000 (14:05 +0100)]
remove other builds because of bloat for now until fixed

6 years agoreordered modules, add es6 build
Ulrich-Matthias Schäfer [Tue, 6 Nov 2018 12:48:05 +0000 (13:48 +0100)]
reordered modules, add es6 build

6 years agoremoved unused comments and files
Ulrich-Matthias Schäfer [Mon, 5 Nov 2018 20:53:40 +0000 (21:53 +0100)]
removed unused comments and files

6 years agomake one test pass in travis
Ulrich-Matthias Schäfer [Mon, 5 Nov 2018 18:11:45 +0000 (19:11 +0100)]
make one test pass in travis

6 years agoLinted all files, upgraded all dependencies
Ulrich-Matthias Schäfer [Mon, 5 Nov 2018 18:02:35 +0000 (19:02 +0100)]
Linted all files, upgraded all dependencies

6 years agorework of classes, make events on every object possible
Ulrich-Matthias Schäfer [Mon, 5 Nov 2018 14:12:58 +0000 (15:12 +0100)]
rework of classes, make events on every object possible

6 years agoforgot about memory tests
Ulrich-Matthias Schäfer [Sun, 4 Nov 2018 21:04:54 +0000 (22:04 +0100)]
forgot about memory tests

6 years agoRevert back to classes, fix remaining tests
Ulrich-Matthias Schäfer [Sun, 4 Nov 2018 20:46:33 +0000 (21:46 +0100)]
Revert back to classes, fix remaining tests

6 years agofix even more tests
Ulrich-Matthias Schäfer [Sun, 4 Nov 2018 16:04:11 +0000 (17:04 +0100)]
fix even more tests

6 years agoimplement registerMethods(), introduce real arrays for modern browsers, fix some...
Ulrich-Matthias Schäfer [Sun, 4 Nov 2018 14:59:57 +0000 (15:59 +0100)]
implement registerMethods(), introduce real arrays for modern browsers, fix some tests

6 years agofix a few mistakes. Make sugar work. Roll back to childNodes because children is...
Ulrich-Matthias Schäfer [Thu, 1 Nov 2018 15:59:51 +0000 (16:59 +0100)]
fix a few mistakes. Make sugar work. Roll back to childNodes because children is 10x slower

6 years agointroduce register and registerMethod method to get rid of dependency problems
Ulrich-Matthias Schäfer [Thu, 1 Nov 2018 14:04:55 +0000 (15:04 +0100)]
introduce register and registerMethod method to get rid of dependency problems

6 years agosetup rollup to build minimized file and report stats
Ulrich-Matthias Schäfer [Sun, 28 Oct 2018 10:19:26 +0000 (11:19 +0100)]
setup rollup to build minimized file and report stats

6 years agoresolve last circular dependencies, make rollup work
Ulrich-Matthias Schäfer [Sat, 27 Oct 2018 20:43:30 +0000 (22:43 +0200)]
resolve last circular dependencies, make rollup work

6 years agoresolve circular references and make example working again
Ulrich-Matthias Schäfer [Sat, 27 Oct 2018 18:43:35 +0000 (20:43 +0200)]
resolve circular references and make example working again

6 years agoMerge pull request #921 from nobuti/915-modifiers
Ulrich-Matthias Schäfer [Sat, 27 Oct 2018 11:17:42 +0000 (13:17 +0200)]
Merge pull request #921 from nobuti/915-modifiers

add export modifiers (#915)

6 years agoCode review taken 921/head
nobuti [Sat, 27 Oct 2018 10:03:12 +0000 (12:03 +0200)]
Code review taken

6 years agoBuild
nobuti [Sat, 27 Oct 2018 02:59:12 +0000 (04:59 +0200)]
Build

6 years agoFix specs
nobuti [Sat, 27 Oct 2018 02:59:02 +0000 (04:59 +0200)]
Fix specs

6 years agoLoop through all children executing modifiers
nobuti [Sat, 27 Oct 2018 02:58:20 +0000 (04:58 +0200)]
Loop through all children executing modifiers

6 years agoBuild
nobuti [Fri, 26 Oct 2018 17:00:17 +0000 (19:00 +0200)]
Build

6 years agoAdded some tests
nobuti [Fri, 26 Oct 2018 16:59:14 +0000 (18:59 +0200)]
Added some tests

6 years agoModifiers implementation on getter
nobuti [Fri, 26 Oct 2018 16:57:55 +0000 (18:57 +0200)]
Modifiers implementation on getter

6 years agorename files
Ulrich-Matthias Schäfer [Fri, 26 Oct 2018 10:01:39 +0000 (12:01 +0200)]
rename files

6 years agoconvert everything to es6 classes and imports
Ulrich-Matthias Schäfer [Thu, 25 Oct 2018 21:28:12 +0000 (23:28 +0200)]
convert everything to es6 classes and imports

6 years agoRename files so that they reflect their exported classes (see next commit)
Ulrich-Matthias Schäfer [Thu, 25 Oct 2018 21:26:38 +0000 (23:26 +0200)]
Rename files so that they reflect their exported classes (see next commit)

6 years agofix tests
Ulrich-Matthias Schäfer [Thu, 18 Oct 2018 10:37:55 +0000 (12:37 +0200)]
fix tests

6 years agofix readme
Ulrich-Matthias Schäfer [Thu, 18 Oct 2018 09:31:23 +0000 (11:31 +0200)]
fix readme

6 years agoMerge branch '776-new-fx' into 3.0.0
Ulrich-Matthias Schäfer [Thu, 18 Oct 2018 09:29:49 +0000 (11:29 +0200)]
Merge branch '776-new-fx' into 3.0.0

6 years agoactivate sugar before merge
Ulrich-Matthias Schäfer [Thu, 18 Oct 2018 09:28:05 +0000 (11:28 +0200)]
activate sugar before merge

6 years agochangelog update
Ulrich-Matthias Schäfer [Thu, 18 Oct 2018 09:16:43 +0000 (11:16 +0200)]
changelog update

6 years agoRevert "Merge pull request #828 from svgdotjs/797-throw-error-in-at"
Ulrich-Matthias Schäfer [Thu, 18 Oct 2018 09:13:56 +0000 (11:13 +0200)]
Revert "Merge pull request #828 from svgdotjs/797-throw-error-in-at"

This reverts commit 55874e6dd16cb85181e879b8c35b4e65bb310e11, reversing
changes made to 31e94c28d85f676a0f4ec073a06435bc86b1dc73.

6 years agopackage-lock
Ulrich-Matthias Schäfer [Wed, 17 Oct 2018 21:23:36 +0000 (23:23 +0200)]
package-lock

6 years agoadd babel, satisfy linter, build dist
Ulrich-Matthias Schäfer [Wed, 17 Oct 2018 21:09:34 +0000 (23:09 +0200)]
add babel, satisfy linter, build dist

6 years agofix timeline timing with runners
Ulrich-Matthias Schäfer [Fri, 12 Oct 2018 22:49:35 +0000 (00:49 +0200)]
fix timeline timing with runners

6 years agofixing tests
Ulrich-Matthias Schäfer [Wed, 10 Oct 2018 21:03:58 +0000 (23:03 +0200)]
fixing tests

6 years agofix schedule so it uses runnertime correctly
Ulrich-Matthias Schäfer [Wed, 10 Oct 2018 17:00:41 +0000 (19:00 +0200)]
fix schedule so it uses runnertime correctly

6 years agoCant see the forest with all these trees...
Ulrich-Matthias Schäfer [Mon, 8 Oct 2018 13:35:33 +0000 (15:35 +0200)]
Cant see the forest with all these trees...

6 years agoOptimized the matrix functions so that the transform function is a multitude faster...
Ulrich-Matthias Schäfer [Mon, 8 Oct 2018 13:18:53 +0000 (15:18 +0200)]
Optimized the matrix functions so that the transform function is a multitude faster for parameterized input

6 years agomake sure, that we use the correct startTransform
Ulrich-Matthias Schäfer [Fri, 21 Sep 2018 10:18:43 +0000 (12:18 +0200)]
make sure, that we use the correct startTransform

6 years agomake sure runner[0] always exists (rework that requirement!)
Ulrich-Matthias Schäfer [Fri, 21 Sep 2018 09:40:08 +0000 (11:40 +0200)]
make sure runner[0] always exists (rework that requirement!)

6 years agoadding optimized transformation function to speed up things a tiny bit
Ulrich-Matthias Schäfer [Thu, 20 Sep 2018 21:35:13 +0000 (23:35 +0200)]
adding optimized transformation function to speed up things a tiny bit

6 years agoget rid of that unnecessary bbox call on every frame
Ulrich-Matthias Schäfer [Thu, 20 Sep 2018 12:14:40 +0000 (14:14 +0200)]
get rid of that unnecessary bbox call on every frame

6 years agofinally solve transformations one and for all time!
Ulrich-Matthias Schäfer [Thu, 20 Sep 2018 11:25:24 +0000 (13:25 +0200)]
finally solve transformations one and for all time!

This is great - we should party hard. I mean - it took like 4 month to get this done. That's way to much! I don't want anymore. Pease send help :D

6 years agofix transformations introducing target transforms with which the origin can be transf...
Ulrich-Matthias Schäfer [Mon, 17 Sep 2018 18:34:31 +0000 (20:34 +0200)]
fix transformations introducing target transforms with which the origin can be transformed

6 years agoRefactored the getOrigin helper to help fix the relative affine animations
Saivan [Mon, 17 Sep 2018 04:50:56 +0000 (14:50 +1000)]
Refactored the getOrigin helper to help fix the relative affine animations

This commit refactors the getOrigin helper, in order to send the origin to the correct
space. The origin should be expressed in the space of the last animation.

Changes
=======
- Refactored the getOrigin helper
- Added a simple example to the dirty file to test multiple transformations

6 years agoFixed the relative non-affine transform animations
Saivan [Mon, 17 Sep 2018 04:10:12 +0000 (14:10 +1000)]
Fixed the relative non-affine transform animations

This commit uncovered an issue with the relative non-affine transformations. It is
now correctly fixed and working. Next we should fix the affine transforms as well.

Changes
=======
- Fixed the relative non-affine transformation animations

6 years agoFound and started fixing an error with the Timeline.schedule function
Saivan [Mon, 10 Sep 2018 09:40:50 +0000 (19:40 +1000)]
Found and started fixing an error with the Timeline.schedule function

This commit finds an error in the scheduling duration that we need to fix.

6 years agoAdded a simple example for relative declarative animations
Saivan [Wed, 11 Jul 2018 06:39:37 +0000 (16:39 +1000)]
Added a simple example for relative declarative animations

This commit adds an example that demonstrates how I'd imagine declarative animations
should work and how they should mirror what imperative animations would do

Changes
=======
- Added a simple declarative example

6 years agocondens transform function to an overall more stable one
Ulrich-Matthias Schäfer [Sun, 8 Jul 2018 09:07:27 +0000 (11:07 +0200)]
condens transform function to an overall more stable one

6 years agoFixed the transformation code to use the bbox properly
Saivan [Thu, 5 Jul 2018 11:40:08 +0000 (21:40 +1000)]
Fixed the transformation code to use the bbox properly

This commit fixes the transformations and allows single animated
transformations to properly work.

6 years agomake TransformBag clone the object before altering
Ulrich-Matthias Schäfer [Wed, 4 Jul 2018 16:27:00 +0000 (18:27 +0200)]
make TransformBag clone the object before altering

6 years agofix origin transformation
Ulrich-Matthias Schäfer [Wed, 4 Jul 2018 09:57:00 +0000 (11:57 +0200)]
fix origin transformation

6 years agoWorked towards setting the origin on each frame with linear algebra
Saivan [Tue, 3 Jul 2018 14:44:46 +0000 (00:44 +1000)]
Worked towards setting the origin on each frame with linear algebra

This commit attempts to modify the origin on each frame, but it seems
that we have some kind of bug that we need to fix first

6 years agoFixed an issue that occurred when we applied more than one transform
Saivan [Tue, 3 Jul 2018 12:07:53 +0000 (22:07 +1000)]
Fixed an issue that occurred when we applied more than one transform

This commit allows us to apply more than one transform to an element, and
have them correctly applied to the element.

6 years agofix rotation issue and make relative declaritive work
Ulrich-Matthias Schäfer [Fri, 29 Jun 2018 08:31:11 +0000 (10:31 +0200)]
fix rotation issue and make relative declaritive work

6 years agoAdded a potential fix for the problem
Saivan [Thu, 28 Jun 2018 23:18:54 +0000 (09:18 +1000)]
Added a potential fix for the problem

6 years agosatisfy linter, fix global var
Ulrich-Matthias Schäfer [Thu, 28 Jun 2018 21:15:31 +0000 (23:15 +0200)]
satisfy linter, fix global var

6 years agofix origin bug
Ulrich-Matthias Schäfer [Thu, 28 Jun 2018 20:58:51 +0000 (22:58 +0200)]
fix origin bug

6 years agoAdd a few debugging statements
Saivan [Thu, 28 Jun 2018 13:45:44 +0000 (23:45 +1000)]
Add a few debugging statements

6 years agoModified the behaviour of absolute transforms
Saivan [Thu, 28 Jun 2018 13:05:16 +0000 (23:05 +1000)]
Modified the behaviour of absolute transforms

This commit slightly modifies the behaviour of absolute transforms,
we will get them working soon :D

6 years agofix origin for relative transformations
Ulrich-Matthias Schäfer [Wed, 27 Jun 2018 09:17:18 +0000 (11:17 +0200)]
fix origin for relative transformations

6 years agoAllowed the origin to stay fixed as we animate transforms
Saivan [Tue, 26 Jun 2018 12:42:47 +0000 (22:42 +1000)]
Allowed the origin to stay fixed as we animate transforms

This commit start to remove the expensive bbox calculation by assuming
that the origin stays at a fixed point during an animation. This is a
good assumption as transforms don't change the bbox of the element.

Changes
=======
- Refactor the Element.transform function
- Make a getOrigin function to call the bbox only one time

6 years agomake transformations retargatable for declaritive
Ulrich-Matthias Schäfer [Tue, 26 Jun 2018 10:29:11 +0000 (12:29 +0200)]
make transformations retargatable for declaritive

6 years agoRunners now work with absolute and relative transformations
Saivan [Fri, 22 Jun 2018 15:58:43 +0000 (01:58 +1000)]
Runners now work with absolute and relative transformations

This commit finally gets transformations workin in both absolute and
relative mode. This is the last **major** hurdle for the new
animation module, so we just need to clean it up and fix some bugs 🐞

6 years agofix merging of transformations
Ulrich-Matthias Schäfer [Mon, 4 Jun 2018 05:03:54 +0000 (07:03 +0200)]
fix merging of transformations

6 years agoreplace runner set with array and order array for faster access and saving of start...
Ulrich-Matthias Schäfer [Sun, 3 Jun 2018 07:27:50 +0000 (09:27 +0200)]
replace runner set with array and order array for faster access and saving of start time

6 years agotransforms work with multiple elements too. Satisfy linter
Ulrich-Matthias Schäfer [Sun, 3 Jun 2018 06:17:15 +0000 (08:17 +0200)]
transforms work with multiple elements too. Satisfy linter

6 years agotransformation works now for ONE element. More work required
Ulrich-Matthias Schäfer [Sun, 3 Jun 2018 06:02:08 +0000 (08:02 +0200)]
transformation works now for ONE element. More work required