]> source.dussan.org Git - svg.js.git/log
svg.js.git
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

6 years agofirst tries to make transformations work
Ulrich-Matthias Schäfer [Sat, 2 Jun 2018 11:51:18 +0000 (13:51 +0200)]
first tries to make transformations work

6 years agoBegan implementing the transformation functions
Saivan [Fri, 1 Jun 2018 15:59:10 +0000 (01:59 +1000)]
Began implementing the transformation functions

6 years agoThe timelines continue function requests a step animation frame
Saivan [Fri, 1 Jun 2018 11:48:09 +0000 (21:48 +1000)]
The timelines continue function requests a step animation frame

6 years agorenamed method names as suggested, added failing test
Ulrich-Matthias Schäfer [Fri, 1 Jun 2018 07:58:22 +0000 (09:58 +0200)]
renamed method names as suggested, added failing test

6 years agoSimplified the stepping logic to avoid detecting edge cases
Saivan [Fri, 1 Jun 2018 02:06:28 +0000 (12:06 +1000)]
Simplified the stepping logic to avoid detecting edge cases

6 years agoimplements Set for runners in timeline
Ulrich-Matthias Schäfer [Thu, 31 May 2018 20:34:10 +0000 (22:34 +0200)]
implements Set for runners in timeline

6 years agofix for the endvalue of the animation
Ulrich-Matthias Schäfer [Thu, 31 May 2018 19:30:10 +0000 (21:30 +0200)]
fix for the endvalue of the animation

6 years agoFixed the final position while swinging
Saivan [Thu, 31 May 2018 08:53:19 +0000 (18:53 +1000)]
Fixed the final position while swinging

6 years agoadd failing test
Ulrich-Matthias Schäfer [Thu, 31 May 2018 06:53:57 +0000 (08:53 +0200)]
add failing test

6 years agoworked a bit on timeline, build example, found bug which needs a fix
Ulrich-Matthias Schäfer [Wed, 30 May 2018 21:45:00 +0000 (23:45 +0200)]
worked a bit on timeline, build example, found bug which needs a fix

6 years agoThe runners step was reimplemented with tests
Saivan [Wed, 30 May 2018 14:13:43 +0000 (00:13 +1000)]
The runners step was reimplemented with tests

6 years agofixed declaritive again, fromArray now works on all object instances
Ulrich-Matthias Schäfer [Wed, 30 May 2018 06:54:00 +0000 (08:54 +0200)]
fixed declaritive again, fromArray now works on all object instances

6 years agoimplemented EventTarget + runner does not loop forever anymore
Ulrich-Matthias Schäfer [Tue, 29 May 2018 20:42:26 +0000 (22:42 +0200)]
implemented EventTarget + runner does not loop forever anymore

6 years agoGot looping working with only a single wait
Saivan [Tue, 29 May 2018 15:48:35 +0000 (01:48 +1000)]
Got looping working with only a single wait

6 years agoLooping is now working and code is generally cleaner
Saivan [Tue, 29 May 2018 11:45:16 +0000 (21:45 +1000)]
Looping is now working and code is generally cleaner

6 years agofix declaritive
Ulrich-Matthias Schäfer [Tue, 29 May 2018 09:25:30 +0000 (11:25 +0200)]
fix declaritive

6 years agoDiagnosing the declarative animations and suggesting changes
Saivan [Tue, 29 May 2018 08:28:15 +0000 (18:28 +1000)]
Diagnosing the declarative animations and suggesting changes

6 years agoimplement methods, reorganize runner, list questions
Ulrich-Matthias Schäfer [Mon, 28 May 2018 22:18:41 +0000 (00:18 +0200)]
implement methods, reorganize runner, list questions

6 years agoStarted planning the way events work and got Spring working
Saivan [Mon, 28 May 2018 13:46:02 +0000 (23:46 +1000)]
Started planning the way events work and got Spring working

6 years agoMerge branch '776-new-fx' of github.com:svgdotjs/svg.js into 776-new-fx
Saivan [Mon, 28 May 2018 09:58:45 +0000 (19:58 +1000)]
Merge branch '776-new-fx' of github.com:svgdotjs/svg.js into 776-new-fx

6 years agoSegmenting out some Controllers
Saivan [Mon, 28 May 2018 09:58:34 +0000 (19:58 +1000)]
Segmenting out some Controllers

6 years agosatisfy linter
Ulrich-Matthias Schäfer [Sun, 27 May 2018 21:04:21 +0000 (23:04 +0200)]
satisfy linter

6 years agoFixed all of the low hanging problems so declarative works
Saivan [Fri, 25 May 2018 14:01:33 +0000 (00:01 +1000)]
Fixed all of the low hanging problems so declarative works

6 years agosimple fix for morpharray
Ulrich-Matthias Schäfer [Fri, 25 May 2018 10:05:53 +0000 (12:05 +0200)]
simple fix for morpharray

6 years agofixed some more errores, make declaritive controllers partially work. added PID contr...
Ulrich-Matthias Schäfer [Thu, 24 May 2018 21:42:01 +0000 (23:42 +0200)]
fixed some more errores, make declaritive controllers partially work. added PID controller for testing reasons

6 years agogo through specs and make fixes where needed
Ulrich-Matthias Schäfer [Thu, 24 May 2018 18:26:59 +0000 (20:26 +0200)]
go through specs and make fixes where needed

6 years agofix runner and timeline so that it schedules animations correctly
Ulrich-Matthias Schäfer [Thu, 24 May 2018 12:30:06 +0000 (14:30 +0200)]
fix runner and timeline so that it schedules animations correctly

6 years agoStuff is moving again after fixing several stuff
Ulrich-Matthias Schäfer [Thu, 24 May 2018 11:29:16 +0000 (13:29 +0200)]
Stuff is moving again after fixing several stuff

6 years agoShould be the final redesign
Saivan [Wed, 23 May 2018 15:39:15 +0000 (01:39 +1000)]
Should be the final redesign

6 years agoAdded a few more use cases and such
Saivan [Tue, 22 May 2018 06:50:56 +0000 (16:50 +1000)]
Added a few more use cases and such

6 years agoMost of the animations are working
Saivan [Thu, 17 May 2018 07:51:36 +0000 (17:51 +1000)]
Most of the animations are working

6 years agoadd requestAnimationFrame Mock and tests for the animator
Ulrich-Matthias Schäfer [Wed, 16 May 2018 21:46:04 +0000 (23:46 +0200)]
add requestAnimationFrame Mock and tests for the animator

6 years agoallow arrays of events to be passed to `on()` and `off`
Ulrich-Matthias Schäfer [Wed, 16 May 2018 07:50:52 +0000 (09:50 +0200)]
allow arrays of events to be passed to `on()` and `off`

6 years agofixed small typo
Ulrich-Matthias Schäfer [Tue, 15 May 2018 23:33:59 +0000 (01:33 +0200)]
fixed small typo

6 years agofixed morphing. Changed easing function so that it can handle strings
Ulrich-Matthias Schäfer [Tue, 15 May 2018 08:58:32 +0000 (10:58 +0200)]
fixed morphing. Changed easing function so that it can handle strings

- error in Matrix constructor which ignores translateX (and more?)
- generelized all morphable objects so that they behave logical
- SVG.Morphable can handle all datatypes now

6 years agoThe timeline is now decoupled from the real time
Saivan [Tue, 15 May 2018 05:03:28 +0000 (15:03 +1000)]
The timeline is now decoupled from the real time

This commit allows the timeline to exist independently of the actual
time. This will allow it to be used to seek through an animation
with relative ease. We also made some architectural changes to the
timeline to support this.

Changes
=======
- Refactored the runner into its own file without exposing it to the
user (changed the gulpfile)
- The timeline no longer depends on the current time
- The user can supply absolute times to queue events
- Some more methods have been integrated into the timeline

6 years agomake morphing work, fix inheritance, animations now work
Ulrich-Matthias Schäfer [Tue, 1 May 2018 21:51:35 +0000 (23:51 +0200)]
make morphing work, fix inheritance, animations now work

6 years agoMore work on the timeline and morphables
Saivan [Tue, 1 May 2018 13:06:43 +0000 (23:06 +1000)]
More work on the timeline and morphables

6 years agoThe animations work with the .queue method
Saivan [Tue, 1 May 2018 11:47:47 +0000 (21:47 +1000)]
The animations work with the .queue method

6 years agotests for Morphable and related stuff
Ulrich-Matthias Schäfer [Tue, 1 May 2018 11:43:16 +0000 (13:43 +0200)]
tests for Morphable and related stuff

6 years agoAnother collaboration session with @Fuzzyma
Saivan [Mon, 30 Apr 2018 12:46:28 +0000 (22:46 +1000)]
Another collaboration session with @Fuzzyma

6 years agoAdded some timeline and Morphing functions
Saivan [Mon, 23 Apr 2018 10:25:41 +0000 (20:25 +1000)]
Added some timeline and Morphing functions

6 years agoInitial planning for the Timeline Module
Saivan [Wed, 18 Apr 2018 10:55:06 +0000 (20:55 +1000)]
Initial planning for the Timeline Module

This commit just includes a few plans and a massive derrangement
of the fx module before it is to be refactored into the Timeline
module. The basic methods are included, but everything is broken

6 years agoRemoved gbox and fixed a few typos 829/head
Saivan [Sun, 4 Mar 2018 15:40:32 +0000 (02:40 +1100)]
Removed gbox and fixed a few typos

Since gbox is completely replaced by rbox, we don't need
it anymore. There were also a few small errors to fix.

6 years agoFixed recommendations by @Fuzzyma regarding transforms
Saivan [Sun, 4 Mar 2018 15:24:43 +0000 (02:24 +1100)]
Fixed recommendations by @Fuzzyma regarding transforms

This commit fixes a number of issues with transformations:
- Removed move/dmove/etc... on groups
- Sugar was being passed origin instead of ox, oy
- Updated the changelog
- Removed parseMatrix in favor of new SVG.Matrix()
- .matrix is the getter for a matrix, not .transform
- added a [02:24:41] Using gulpfile ~/Desktop/svg/svg.js/gulpfile.js
[02:24:41] Starting 'lint'...
[02:24:43] Finished 'lint' after 2.32 s directive

6 years agoAdded the dots test and restored the old tests
Saivan [Sun, 4 Mar 2018 10:44:05 +0000 (21:44 +1100)]
Added the dots test and restored the old tests

6 years agoIntegrated the transformations into the changes in 3.0.0
Saivan [Sun, 4 Mar 2018 09:58:07 +0000 (20:58 +1100)]
Integrated the transformations into the changes in 3.0.0

6 years agoBuild the final transformation code and fixed linting errors
Saivan [Sat, 3 Mar 2018 21:56:15 +0000 (08:56 +1100)]
Build the final transformation code and fixed linting errors

6 years agoFixed all transformation tests, the new transforms are ready
Saivan [Sat, 3 Mar 2018 21:54:28 +0000 (08:54 +1100)]
Fixed all transformation tests, the new transforms are ready

This commit fixes all of the tests to reflect all of the changes to
our transform code. It also makes the default test output dots
instead of anything else.

6 years agoFixed most of the tests relating to transformations
Saivan [Sat, 3 Mar 2018 14:56:12 +0000 (01:56 +1100)]
Fixed most of the tests relating to transformations

6 years agoAdded matrix composition and decompositions
Saivan [Sat, 3 Mar 2018 11:08:26 +0000 (22:08 +1100)]
Added matrix composition and decompositions

This commit adds matrix composition and decompositions (untested),
it also adds another playground to test that this is working as
expected in every case.

We also fixed a few linting errors.

6 years agoremoved `size()` from `SVG.Text` to avoid name clash
Ulrich-Matthias Schäfer [Sat, 3 Mar 2018 11:00:22 +0000 (12:00 +0100)]
removed `size()` from `SVG.Text` to avoid name clash

6 years agoAll transformations except fx and Transformations are passing now
Saivan [Fri, 2 Mar 2018 12:11:11 +0000 (23:11 +1100)]
All transformations except fx and Transformations are passing now

This commit modifies the specification (and in some places the code) to
reflect the changes to the transformations.

6 years agoInvestigating a possible rbox issue when transforming
Saivan [Fri, 2 Mar 2018 09:51:26 +0000 (20:51 +1100)]
Investigating a possible rbox issue when transforming

6 years agoFixed a few more specifications regarding the new transforms
Saivan [Fri, 2 Mar 2018 08:54:01 +0000 (19:54 +1100)]
Fixed a few more specifications regarding the new transforms

6 years agoMerge branch '3.0.0' of github.com:svgdotjs/svg.js into 786-new-transformations
Saivan [Fri, 2 Mar 2018 01:48:54 +0000 (12:48 +1100)]
Merge branch '3.0.0' of github.com:svgdotjs/svg.js into 786-new-transformations

6 years agoFixed some tests involving transforms and elements
Saivan [Fri, 2 Mar 2018 01:48:43 +0000 (12:48 +1100)]
Fixed some tests involving transforms and elements

6 years agoMerge pull request #827 from svgdotjs/826-ungroup-flatten
saivan [Fri, 2 Mar 2018 01:47:46 +0000 (12:47 +1100)]
Merge pull request #827 from svgdotjs/826-ungroup-flatten

make ungroup working on groups and nested for one depths

6 years agoImplemented new transformations
Saivan [Fri, 2 Mar 2018 01:14:42 +0000 (12:14 +1100)]
Implemented new transformations

This commit implements the new transformation model, but it also
needs to modify a few tests to fit the new format. This is still
a work in progress.

6 years agomake ungroup working on groups and nested for one depths 827/head
Ulrich-Matthias Schäfer [Thu, 1 Mar 2018 22:55:53 +0000 (23:55 +0100)]
make ungroup working on groups and nested for one depths

6 years agoupdate changelog
Ulrich-Matthias Schäfer [Thu, 1 Mar 2018 12:47:34 +0000 (13:47 +0100)]
update changelog

6 years agoMerge pull request #811 from svgdotjs/merge-doc-and-nested
Ulrich-Matthias Schäfer [Thu, 1 Mar 2018 11:52:23 +0000 (12:52 +0100)]
Merge pull request #811 from svgdotjs/merge-doc-and-nested

merge SVG.Doc and SVG.Nested. Add isRoot() method

6 years agofixed all that errors which come along when removing an object. Fixed tests, too... 811/head
Ulrich-Matthias Schäfer [Thu, 1 Mar 2018 11:42:16 +0000 (12:42 +0100)]
fixed all that errors which come along when removing an object. Fixed tests, too and added isRoot test

6 years agoreturn explicit null if there is no root
Ulrich-Matthias Schäfer [Mon, 12 Feb 2018 12:49:38 +0000 (13:49 +0100)]
return explicit null if there is no root

6 years agomerge SVG.Doc and SVG.Nested. Add isRoot() method, update doc methods to decide betwe...
Ulrich-Matthias Schäfer [Sun, 11 Feb 2018 14:29:23 +0000 (15:29 +0100)]
merge SVG.Doc and SVG.Nested. Add isRoot() method, update doc methods to decide between doc and nested

6 years agoMerge pull request #808 from svgdotjs/events-memory-leak
Ulrich-Matthias Schäfer [Wed, 28 Feb 2018 09:27:14 +0000 (10:27 +0100)]
Merge pull request #808 from svgdotjs/events-memory-leak

proposal for #807, includes #550, `SVG.off()` multiple events and option argument

6 years agoupdated changelog 808/head
Ulrich-Matthias Schäfer [Tue, 27 Feb 2018 11:25:12 +0000 (12:25 +0100)]
updated changelog

6 years agosearch and replace replaced to much
Ulrich-Matthias Schäfer [Tue, 27 Feb 2018 11:17:37 +0000 (12:17 +0100)]
search and replace replaced to much

6 years agofound the error whereelse. go back to version before with applied fix
Ulrich-Matthias Schäfer [Tue, 27 Feb 2018 11:16:31 +0000 (12:16 +0100)]
found the error whereelse. go back to version before with applied fix

6 years agofixed error that listener was strangely defined even if function was called without
Ulrich-Matthias Schäfer [Tue, 27 Feb 2018 11:12:19 +0000 (12:12 +0100)]
fixed error that listener was strangely defined even if function was called without

6 years agofix errors found by linter (jeah it works!)
Ulrich-Matthias Schäfer [Tue, 27 Feb 2018 09:07:56 +0000 (10:07 +0100)]
fix errors found by linter (jeah it works!)

6 years agoproposal for #807, includes #550, allow multiple events for `SVG.off()` and add optio...
Ulrich-Matthias Schäfer [Sun, 11 Feb 2018 12:11:31 +0000 (13:11 +0100)]
proposal for #807, includes #550, allow multiple events for `SVG.off()` and add option argument

6 years agoUpdated the README to welcome new users better!
Saivan [Tue, 27 Feb 2018 06:36:08 +0000 (17:36 +1100)]
Updated the README to welcome new users better!

This commit updates the README with up to date instructions about
how to run and build the library, as well as how to run the tests,
playgrounds and performance tests

6 years agoMade developing a little more enjoyable
Saivan [Tue, 27 Feb 2018 06:23:59 +0000 (17:23 +1100)]
Made developing a little more enjoyable

This commit adds playgrounds and a build:dev mode. Now you
can call npm run build:dev to make the linter warn you about
errors without breaking. Also, we now have playgrounds, where
you can use a built version of svg.js to run your own tests.

6 years agoMerged the 3.0.0 branch to add the linter
Saivan [Tue, 27 Feb 2018 00:41:21 +0000 (11:41 +1100)]
Merged the 3.0.0 branch to add the linter

I added the linter here to make programming and running the tests
easier throughout the programming process.

6 years agoMerge pull request #823 from svgdotjs/800-add-linter
saivan [Mon, 26 Feb 2018 23:54:51 +0000 (10:54 +1100)]
Merge pull request #823 from svgdotjs/800-add-linter

Added the standard linter

6 years agoBuilt the final linted file 823/head
Saivan [Mon, 26 Feb 2018 16:38:34 +0000 (03:38 +1100)]
Built the final linted file

6 years agoFixed a few hanging issues with the linter
Saivan [Mon, 26 Feb 2018 16:37:31 +0000 (03:37 +1100)]
Fixed a few hanging issues with the linter

This commit fixes a few typesetting issues that probably resulted
from the automated linting process

6 years agoForgot to add standard to the package-json doh
Saivan [Mon, 26 Feb 2018 16:03:12 +0000 (03:03 +1100)]
Forgot to add standard to the package-json doh

6 years agoSo the standard linter is operational and our code is compliant
Saivan [Mon, 26 Feb 2018 15:52:25 +0000 (02:52 +1100)]
So the standard linter is operational and our code is compliant

This commit completes the compliance of our code with the standard
linter. It is now building correctly and error messages are displayed
when somebody tries to build bad code!

6 years agoActually added the linter to gulp and fixed most errors
Saivan [Mon, 26 Feb 2018 15:08:37 +0000 (02:08 +1100)]
Actually added the linter to gulp and fixed most errors

This commit fixes most of the errors raised by standard.
There is still a strange call error, but that will be the
focus of the next commit

6 years agoAll files now loosely abide by standard linting
Saivan [Mon, 26 Feb 2018 14:14:06 +0000 (01:14 +1100)]
All files now loosely abide by standard linting

This commit completes the rest of the files, making sure they are
in the standard linting format. Next we will add the linter to
the build process of our application.

6 years agoThe first half of the library complies with Standard linting
Saivan [Mon, 26 Feb 2018 13:48:11 +0000 (00:48 +1100)]
The first half of the library complies with Standard linting

This commit reformats the code so that it complies with the
standard linting style. Its currently a work in progress, but
it is meant to pave the way for linting in the build process

6 years agoMatrix operations now apply to the current matrix
Saivan [Mon, 26 Feb 2018 08:21:18 +0000 (19:21 +1100)]
Matrix operations now apply to the current matrix

This commit applies matrix operations to the current matrix, so
calling mat.rotate will rotate the current matrix directly

6 years agoWe can form a compound matrix in the matrix module
Saivan [Mon, 26 Feb 2018 05:59:46 +0000 (16:59 +1100)]
We can form a compound matrix in the matrix module

This commit allows us to form a compounded matrix by setting
parameters like scale, translate, rotate etc directly in a single
call by asserting a particular matrix order.

6 years agoIdentified transformation code to retire
Saivan [Sun, 25 Feb 2018 10:36:16 +0000 (21:36 +1100)]
Identified transformation code to retire

This commit simply identifies some of the code that we will be
retiring in 3.0.0 related to transformations. I have commented
and in some cases removed code that will not be required.

Changes
=======
- Added the new affine composition and decomposition functions
- Commented out code that will be removed in coming commits

6 years agomake sure to remove event handlers from temporary image (#805)
Ulrich-Matthias Schäfer [Wed, 7 Feb 2018 09:32:15 +0000 (10:32 +0100)]
make sure to remove event handlers from temporary image (#805)

6 years agoremove test for `show()`
Ulrich-Matthias Schäfer [Tue, 6 Feb 2018 22:17:43 +0000 (23:17 +0100)]
remove test for `show()`

6 years agoremove `SVG.A.show()` to resolve nameclash (fix #802)
Ulrich-Matthias Schäfer [Tue, 6 Feb 2018 22:12:35 +0000 (23:12 +0100)]
remove `SVG.A.show()` to resolve nameclash (fix #802)

7 years agoimproved SVG.on and el.on (#727)
Ulrich-Matthias Schäfer [Fri, 28 Jul 2017 13:07:36 +0000 (15:07 +0200)]
improved SVG.on and el.on (#727)

- `SVG.on()` calls the listener in the context of the passed object. el.on always uses the svg.js object as context
- `SVG.on()` and `el.on()` now accepts multiple comma or space seperated events e.g. "mousedown, foo bar" (#727)

7 years agoThe dom is checked for an svgjs:data attribute which is imported when creating an...
Ulrich-Matthias Schäfer [Fri, 28 Jul 2017 12:20:48 +0000 (14:20 +0200)]
The dom is checked for an svgjs:data attribute which is imported when creating an element

7 years agofix bug where defs returns nothing
Ulrich-Matthias Schäfer [Tue, 25 Jul 2017 12:52:13 +0000 (14:52 +0200)]
fix bug where defs returns nothing

7 years agoadd new default constructor (#714)
Ulrich-Matthias Schäfer [Tue, 25 Jul 2017 12:19:49 +0000 (14:19 +0200)]
add new default constructor (#714)

7 years agoLots of breaking changes. Read below! (#646, #716)
Ulrich-Matthias Schäfer [Tue, 25 Jul 2017 07:14:48 +0000 (09:14 +0200)]
Lots of breaking changes. Read below! (#646, #716)

- added `SVG.HTMLNode` which is the object wrapped around html nodes to put something in them
- moved `defs()` method from `SVG.Parent` to `SVG.Element`
- `SVG()` can be called with css selector, node or svg string, now. Without an argument it creates a new `SVG.Doc()` (#646)
- `add()`, `put()`, `addTo()`, `putIn()` now excepts all arguments accepted by `SVG()`
- `SVG.Nested` is not `overflow:visible` by default
- all `SVG.*` objects now can have a node as parameter when constructing
- `SVG()` does not set a default size anymore

7 years agouse `children` instead of `childNodes` (#710), renamed `previous()` to `prev()`
Ulrich-Matthias Schäfer [Mon, 10 Jul 2017 11:51:06 +0000 (13:51 +0200)]
use `children` instead of `childNodes` (#710), renamed `previous()` to `prev()`

7 years agorenamed `fill()` method on `SVG.Gradient` and `SVG.Pattern` to `url()` (#708)
Ulrich-Matthias Schäfer [Fri, 7 Jul 2017 12:02:39 +0000 (14:02 +0200)]
renamed `fill()` method on `SVG.Gradient` and `SVG.Pattern` to `url()` (#708)

7 years agorenamed `SVG.Stop` constructor `at()` on `SVG.Gradient` to `stop()` (#707)
Ulrich-Matthias Schäfer [Fri, 7 Jul 2017 09:24:24 +0000 (11:24 +0200)]
renamed `SVG.Stop` constructor `at()` on `SVG.Gradient` to `stop()` (#707)

7 years agoreworked textPath (see #705)
Ulrich-Matthias Schäfer [Fri, 7 Jul 2017 07:43:02 +0000 (09:43 +0200)]
reworked textPath (see #705)

7 years agoMerge branch 'master' into 3.0.0
Ulrich-Matthias Schäfer [Thu, 6 Jul 2017 09:07:29 +0000 (11:07 +0200)]
Merge branch 'master' into 3.0.0

Conflicts (All resolved):
dist/svg.js
dist/svg.min.js
package.json
src/doc.js