]>
source.dussan.org Git - svg.js.git/log
José C. Paiva [Mon, 3 May 2021 06:36:13 +0000 (07:36 +0100)]
add types for styles
Ulrich-Matthias Schäfer [Wed, 13 Jan 2021 16:26:33 +0000 (17:26 +0100)]
update dependencies, apply new linter fixes
ordago [Thu, 17 Dec 2020 05:43:50 +0000 (05:43 +0000)]
typos (#1179)
* typos in 1000-accesses.js
* typos in transforms.js
* typos in Controller.js
* typos in Runner.js
* typos in Timeline.js
* typos in Dom.js
* typos in Marker.js
* typos in Mask.js
* typos in Tspan.js
* typos in containerGeometry.js
* typos in event.js
* typos in css.js
* typos in data.js
* typos in sugar.js
* typos in EventTarget.js
* typos in List.js
* typos in Matrix.js
* typos in SVGArray.js
* typos in utils.js
* typos in RAFPlugin.js
* typos in Runner.js
* typos in Timeline.js
* typos in Dom.js
* typos in Pattern.js
* typos in arrange.js
* typos in Box.js
* typos in SVGNumber.js
* typos in utils.js
* typos in CONTRIBUTING.md
Ulrich-Matthias Schäfer [Sun, 13 Dec 2020 03:58:52 +0000 (04:58 +0100)]
Merge pull request #1175 from FortAwesome/fix-elliptical-arc-flags-parsing
fix arc flags parsing
Mike Wilkerson [Sat, 12 Dec 2020 19:47:50 +0000 (11:47 -0800)]
add more elliptical arc flag parsing test coverage
Mike Wilkerson [Sat, 12 Dec 2020 16:39:31 +0000 (08:39 -0800)]
fix for arc flags parsing
Ulrich-Matthias Schäfer [Mon, 16 Nov 2020 10:02:43 +0000 (20:02 +1000)]
Merge pull request #1168 from melon3r/patch-1
Allow strings to be passed as transform origin on TS
Dani [Mon, 16 Nov 2020 09:34:20 +0000 (10:34 +0100)]
Allow strings to be passed as transform origin on TS
We need this to be able to pass strings like "top-right" or "center" as transform origin on TypeScript, as they're already supported on JavaScript.
@neomorfeo
Ulrich-Matthias Schäfer [Thu, 12 Nov 2020 23:29:00 +0000 (09:29 +1000)]
Merge pull request #1167 from melon3r/patch-1
Add style() to Container on TS bindings
Dani [Thu, 12 Nov 2020 17:38:12 +0000 (18:38 +0100)]
Add style() to Container on TS bindings
We need this to be able to define styles on the SVG from TypeScript.
@neomorfeo
Philippe Bernard [Tue, 27 Oct 2020 08:31:18 +0000 (09:31 +0100)]
Fix issue with Jest
Philippe Bernard [Wed, 14 Oct 2020 09:43:26 +0000 (11:43 +0200)]
Test case for Dom.clone() with assignNewIds = false
Philippe Bernard [Wed, 14 Oct 2020 09:20:20 +0000 (11:20 +0200)]
New paremeter assignNewIds for Dom.clone()
Ulrich-Matthias Schäfer [Sun, 27 Sep 2020 03:35:47 +0000 (13:35 +1000)]
fix `clone()` to return the correct instance (#1154)
Ulrich-Matthias Schäfer [Sat, 5 Sep 2020 13:06:25 +0000 (23:06 +1000)]
fix path parsing (#1145)
jhajjaarap [Sat, 5 Sep 2020 10:34:35 +0000 (18:34 +0800)]
Add attribute `rotate` to `MatrixTransformParam` (#1149)
Add attribute `rotate` to `MatrixTransformParam`
Ulrich-Matthias Schäfer [Mon, 15 Jun 2020 03:07:12 +0000 (13:07 +1000)]
Merge pull request #1129 from josepaiva94/types
Fix types for List and ForeignObject (same line separators)
José C. Paiva [Sun, 14 Jun 2020 16:16:16 +0000 (17:16 +0100)]
Remove extends ElementAlias from List items
José C. Paiva [Sun, 14 Jun 2020 09:11:31 +0000 (10:11 +0100)]
Fix types for List and ForeignObject
Ulrich-Matthias Schäfer [Sat, 13 Jun 2020 09:32:23 +0000 (19:32 +1000)]
Update svg.js.d.ts
Implementing ElementAlias doesnt work because method definitions clash
Ulrich-Matthias Schäfer [Tue, 2 Jun 2020 21:17:30 +0000 (07:17 +1000)]
Merge pull request #1126 from pjbatista/1124-window-exports
Added exports from window.js
Pedro José Batista [Tue, 2 Jun 2020 12:21:38 +0000 (09:21 -0300)]
Added exports from window.js
Ulrich-Matthias Schäfer [Mon, 1 Jun 2020 08:19:16 +0000 (18:19 +1000)]
Merge pull request #1123 from pragdave/some-more-typings
add foreignObject to types, and get List working
Ulrich-Matthias Schäfer [Mon, 1 Jun 2020 08:14:34 +0000 (18:14 +1000)]
Merge branch 'master' into some-more-typings
Ulrich-Matthias Schäfer [Mon, 1 Jun 2020 08:07:19 +0000 (18:07 +1000)]
Fix add method for ForeignObject
Ulrich-Matthias Schäfer [Mon, 1 Jun 2020 08:03:01 +0000 (18:03 +1000)]
Fix constructor typings for ForeignElement
pragdave [Sun, 31 May 2020 21:28:47 +0000 (16:28 -0500)]
add string parameters to Runner.ease()
pragdave [Sun, 31 May 2020 16:04:10 +0000 (11:04 -0500)]
slowly iterating towards List nirvana. FO still pending...
pragdave [Sun, 31 May 2020 00:31:32 +0000 (19:31 -0500)]
Fix up List (maybe). ForeignObject still open for discussion
pragdave [Sat, 30 May 2020 18:57:36 +0000 (13:57 -0500)]
aff foreignObject to types, get get List working
Ulrich-Matthias Schäfer [Wed, 27 May 2020 21:27:37 +0000 (07:27 +1000)]
Merge pull request #1116 from Glandos/patch-1
Better typing for css getter/setter
Glandos [Wed, 27 May 2020 14:48:26 +0000 (16:48 +0200)]
Better typing for css getter/setter
CSSStyleDeclaration contains readonly rule, so I excluded them, otherwise it doesn't make sense
I didn't touch the Runner `css()` because I don't know the exact behavior of it.
Ulrich-Matthias Schäfer [Wed, 20 May 2020 03:39:53 +0000 (13:39 +1000)]
Merge pull request #1111 from acedrew/ts-runner-ease
Add optional string type to Runner.ease
Andrew Rodgers [Wed, 20 May 2020 03:05:52 +0000 (23:05 -0400)]
Add optional string type to Runner.ease
The ease method on the runner takes the same constructor strings as the Ease class, so you can do things like element.animate(1000).ease('-').rotate(360).loop()
Currently typescript throws an error saying that ease only accepts a Function as an argument.
Ulrich-Matthias Schäfer [Tue, 19 May 2020 23:36:17 +0000 (09:36 +1000)]
added geometry and positioning methods to `A` (#1110)
Ulrich-Matthias Schäfer [Tue, 19 May 2020 10:06:29 +0000 (20:06 +1000)]
sorted method names
Ulrich-Matthias Schäfer [Sun, 10 May 2020 00:32:47 +0000 (10:32 +1000)]
add twitter and other cdns
Ulrich-Matthias Schäfer [Sun, 10 May 2020 00:07:20 +0000 (10:07 +1000)]
added funding
Ulrich-Matthias Schäfer [Sat, 9 May 2020 23:10:32 +0000 (09:10 +1000)]
Create FUNDING.yml
Ulrich-Matthias Schäfer [Sat, 9 May 2020 05:36:23 +0000 (15:36 +1000)]
added sponsor badge
Ulrich-Matthias Schäfer [Sat, 9 May 2020 05:25:17 +0000 (15:25 +1000)]
make targets for textPath work when no href is set
Ulrich-Matthias Schäfer [Sat, 9 May 2020 04:50:09 +0000 (14:50 +1000)]
close tags in tests so that svgdom is satisfied
Ulrich-Matthias Schäfer [Fri, 8 May 2020 08:28:32 +0000 (18:28 +1000)]
Merge pull request #1106 from pragdave/some-type-based-tidying
Fix schedule typings in timeline.js
pragdave [Thu, 7 May 2020 22:36:01 +0000 (17:36 -0500)]
remove union return value
pragdave [Thu, 7 May 2020 18:51:16 +0000 (13:51 -0500)]
It was difficult to use the zero-parameter form of Timeline.schedule() with TypeScript. The .d.ts file didn't include the retuen type for a list of runner infos, and adding it still m,ade it harder than it should be to iterate over it type safely. In this commit I
1. Added the type information for `ScheduledRunnerInfo`, and updated the Timeline types to include it as a retuen type for `schedule`
2. Added a new function to Timeline, `getSchedule`, that simply returns the runner list. This seems to be cleaner than having the original `schedule` that can return two wildly different things.
I didn't remove the old functionality.
Ulrich-Matthias Schäfer [Mon, 4 May 2020 11:35:21 +0000 (21:35 +1000)]
Fixed IE Polyfills, got rid of ArrayPolyfill in favour of babels own transforms, updated dependencies, finished tests, removed old es5 tests
Ulrich-Matthias Schäfer [Sun, 3 May 2020 02:32:34 +0000 (12:32 +1000)]
99% line coverage - BAAAAM
Ulrich-Matthias Schäfer [Fri, 1 May 2020 10:17:24 +0000 (20:17 +1000)]
added specs for animation files except runner, fixed a few things
Ulrich-Matthias Schäfer [Wed, 29 Apr 2020 10:57:11 +0000 (20:57 +1000)]
finish tests for SVGNumber
Ulrich-Matthias Schäfer [Wed, 29 Apr 2020 06:25:47 +0000 (16:25 +1000)]
finished tests for Point, PointArray, PathArray and SVGArray
Ulrich-Matthias Schäfer [Wed, 29 Apr 2020 04:43:13 +0000 (14:43 +1000)]
finish tests for Matrix.js
Ulrich-Matthias Schäfer [Wed, 29 Apr 2020 03:21:33 +0000 (13:21 +1000)]
added tests for List.js
Ulrich-Matthias Schäfer [Wed, 29 Apr 2020 02:43:06 +0000 (12:43 +1000)]
finish color tests
Ulrich-Matthias Schäfer [Wed, 29 Apr 2020 00:57:14 +0000 (10:57 +1000)]
finished specs for Box.js and made zoom handle level 0 correctly + make it more clear when zoom cannot zoom because it cant get width and height of the element
Ulrich-Matthias Schäfer [Tue, 28 Apr 2020 04:19:38 +0000 (14:19 +1000)]
added tests for transform.js, migrated tests for v3 of types to esm tests
Ulrich-Matthias Schäfer [Sun, 26 Apr 2020 02:52:57 +0000 (12:52 +1000)]
added tests for sugar.js
Ulrich-Matthias Schäfer [Sun, 26 Apr 2020 00:52:11 +0000 (10:52 +1000)]
added tests for data.js and memory.js, enhanced data function to work like css and attr
Ulrich-Matthias Schäfer [Sat, 25 Apr 2020 23:54:06 +0000 (09:54 +1000)]
added tests for css.js
Ulrich-Matthias Schäfer [Sat, 25 Apr 2020 23:27:36 +0000 (09:27 +1000)]
added tests for class.js
Ulrich-Matthias Schäfer [Sat, 25 Apr 2020 22:59:21 +0000 (08:59 +1000)]
add tests for selector and arrange, simplifed front() and back()
Ulrich-Matthias Schäfer [Sat, 25 Apr 2020 05:20:44 +0000 (15:20 +1000)]
sort out unused regex, add parser and regex tests, fix textable tests
Ulrich-Matthias Schäfer [Wed, 22 Apr 2020 22:04:58 +0000 (08:04 +1000)]
renamed svg namespace to svg
Ulrich-Matthias Schäfer [Thu, 16 Apr 2020 07:26:41 +0000 (17:26 +1000)]
make tests svgdom ready
Ulrich-Matthias Schäfer [Sat, 11 Apr 2020 03:15:08 +0000 (13:15 +1000)]
added tests for pointed.js and poly.js
Ulrich-Matthias Schäfer [Sat, 11 Apr 2020 02:21:53 +0000 (12:21 +1000)]
added tests for circled.js and gradiented.js
Ulrich-Matthias Schäfer [Sat, 11 Apr 2020 00:44:00 +0000 (10:44 +1000)]
added tests for attr()
Ulrich-Matthias Schäfer [Fri, 10 Apr 2020 09:24:08 +0000 (19:24 +1000)]
added tests to cover all branches
Ulrich-Matthias Schäfer [Fri, 10 Apr 2020 07:59:56 +0000 (17:59 +1000)]
added even more tests
Ulrich-Matthias Schäfer [Fri, 10 Apr 2020 06:03:05 +0000 (16:03 +1000)]
added tests for Polygon and Polyline
Ulrich-Matthias Schäfer [Fri, 10 Apr 2020 05:55:22 +0000 (15:55 +1000)]
added tests for Pattern
Ulrich-Matthias Schäfer [Fri, 10 Apr 2020 05:50:36 +0000 (15:50 +1000)]
remove targets from Path because its in TextPath already
Ulrich-Matthias Schäfer [Fri, 10 Apr 2020 05:41:57 +0000 (15:41 +1000)]
added tests for Path
Ulrich-Matthias Schäfer [Fri, 10 Apr 2020 05:15:29 +0000 (15:15 +1000)]
added tests for Mask
Ulrich-Matthias Schäfer [Fri, 10 Apr 2020 05:04:42 +0000 (15:04 +1000)]
added tests for Line
Ulrich-Matthias Schäfer [Thu, 9 Apr 2020 12:39:03 +0000 (22:39 +1000)]
added tests for Image
Ulrich-Matthias Schäfer [Thu, 9 Apr 2020 11:19:14 +0000 (21:19 +1000)]
added test for Gradient
Ulrich-Matthias Schäfer [Thu, 9 Apr 2020 10:45:11 +0000 (20:45 +1000)]
added tests for ellipse
Ulrich-Matthias Schäfer [Thu, 9 Apr 2020 10:37:56 +0000 (20:37 +1000)]
added tests for Defs
Ulrich-Matthias Schäfer [Thu, 9 Apr 2020 01:01:56 +0000 (11:01 +1000)]
fixes and tests
- fixed flatten and ungroup
- added position argument to ungroup, toParent and toRoot
- added tests for Container
Ulrich-Matthias Schäfer [Wed, 8 Apr 2020 02:38:07 +0000 (12:38 +1000)]
added tests for ClipPath
Ulrich-Matthias Schäfer [Wed, 8 Apr 2020 01:07:53 +0000 (11:07 +1000)]
added tests for Circle
Ulrich-Matthias Schäfer [Wed, 8 Apr 2020 00:08:36 +0000 (10:08 +1000)]
fix defs and reference, tests for Element
Ulrich-Matthias Schäfer [Tue, 7 Apr 2020 22:47:16 +0000 (08:47 +1000)]
tests for EventTarget
Ulrich-Matthias Schäfer [Tue, 7 Apr 2020 21:32:38 +0000 (07:32 +1000)]
added Fragment, completed Dom Tests, fixed `matches()` for document fragments
Ulrich-Matthias Schäfer [Sun, 5 Apr 2020 10:51:35 +0000 (20:51 +1000)]
added second parameter to `addTo` and `putIn`. Added deep clone parameter to `clone`. Tests for Dom
Ulrich-Matthias Schäfer [Sat, 4 Apr 2020 11:25:32 +0000 (21:25 +1000)]
renamed removeNamespace()
Ulrich-Matthias Schäfer [Fri, 3 Apr 2020 08:42:19 +0000 (18:42 +1000)]
- fixed `put()` which correctly creates an svgjs object from the passed element now before returning
- fixed `parent()` which correctly returns null if direct parent is the document or a document-fragment
- fixed `add()` which correctly removes namespaces of non-root svg elements now when added to another svg element (#1086)
- fixed `isRoot()` which correctly returns false, if the element is in a document-fragment
Ulrich-Matthias Schäfer [Sun, 29 Mar 2020 00:47:16 +0000 (10:47 +1000)]
fixed put and adopter, added tests to cover it
Ulrich-Matthias Schäfer [Sat, 28 Mar 2020 07:03:11 +0000 (17:03 +1000)]
fix travis config
Ulrich-Matthias Schäfer [Sat, 28 Mar 2020 03:52:57 +0000 (13:52 +1000)]
This is a big one...
### Fixed
- fixed `zoom()` method of runner which was passed a wrong parameter
- fixed positioning methods of `TSpan` to position them by its bounding box
- fixed `flip()` method which flips correctly by center by default now and accepts correct arguments
- fixed a case in `rbox()` where not always all values of the box were updated
- fixed `getOrigin()` function used by `transform()` so that all origin (#1085) popssibilities specified in the docs are working
- fixed positioning of text by its baseline when using `amove()`
- fixed tons of typings in the svg.d.ts file
### Added
- added second Parameter to `SVG(el, isHTML)` which allows to explicitely create elements in the HTML namespace (#1058)
- added `unlink()` and `linker()` to hyperlinked elements to remove or access the underling `<a>` element
- added `wrap()` method to `Dom` which lets you wrap an element by another one
- added `orient()` method to `Marker`
- added `options` parameter to `dispatch()` and `fire()` to allow for more special needs
- added `newLine()` constructor to `Text` to create a tspan marked as new line (#1088)
- added lots of tests in es6 format
Ulrich-Matthias Schäfer [Mon, 23 Mar 2020 07:43:09 +0000 (17:43 +1000)]
Merge pull request #1096 from LumaKernel/types-for-mouse-events
Add mouseenter()/mouseleave() function definition to types.
Luma [Mon, 23 Mar 2020 04:13:14 +0000 (13:13 +0900)]
Add mouseenter()/mouseleave() function definition to types.
Ulrich-Matthias Schäfer [Thu, 19 Dec 2019 05:58:54 +0000 (06:58 +0100)]
Merge pull request #1065 from mradcliffe/1064-fix-element-animate-typing
Fixes Element.animate typing
Matthew Radcliffe [Mon, 16 Dec 2019 12:32:47 +0000 (07:32 -0500)]
Changes animate duration argument to TimeLike
Matthew Radcliffe [Thu, 12 Dec 2019 19:22:30 +0000 (14:22 -0500)]
Fixes Element.animate typing
Ulrich-Matthias Schäfer [Tue, 12 Nov 2019 20:56:34 +0000 (21:56 +0100)]
fixed build of polyfills which was broken because of core-js update
Ulrich-Matthias Schäfer [Fri, 8 Nov 2019 08:55:24 +0000 (09:55 +0100)]
bump version
### Fixed
- allow object input of `when` and `delay` to `animate()`
### Added
- added missing dmove function to runner
Ulrich-Matthias Schäfer [Fri, 1 Nov 2019 12:37:24 +0000 (13:37 +0100)]
Updated dependencies to newest version, new linter fixed stuff
Ulrich-Matthias Schäfer [Thu, 31 Oct 2019 20:10:30 +0000 (21:10 +0100)]
bump version
Ulrich-Matthias Schäfer [Sat, 27 Jul 2019 08:26:22 +0000 (10:26 +0200)]
Merge pull request #1026 from lenzls/1023-hide-from-screen-readers
#1023 - hide parser from screen readers