]> source.dussan.org Git - svg.js.git/log
svg.js.git
17 months agofix toParent type 1300/head
Alejandro Leal [Wed, 10 May 2023 07:53:52 +0000 (09:53 +0200)]
fix toParent type

18 months agoMerge pull request #1297 from albert-github/feature/bug_spell
Ulrich-Matthias Schäfer [Sat, 15 Apr 2023 10:51:19 +0000 (12:51 +0200)]
Merge pull request #1297 from albert-github/feature/bug_spell

Spelling corrections

18 months agoSpelling corrections 1297/head
albert-github [Sat, 15 Apr 2023 09:45:54 +0000 (11:45 +0200)]
Spelling corrections

18 months agoMerge pull request #1294 from timgates42/bugfix_typos
Ulrich-Matthias Schäfer [Wed, 5 Apr 2023 11:42:41 +0000 (13:42 +0200)]
Merge pull request #1294 from timgates42/bugfix_typos

docs: Fix a few typos

18 months agodocs: Fix a few typos 1294/head
Tim Gates [Wed, 5 Apr 2023 11:12:10 +0000 (21:12 +1000)]
docs: Fix a few typos

There are small typos in:
- spec/spec/animation/Runner.js
- src/animation/Runner.js
- src/animation/Timeline.js

Fixes:
- Should read `successful` rather than `successfull`.
- Should read `transforms` rather than `tranforms`.
- Should read `resetting` rather than `reseting`.
- Should read `overwrite` rather than `overwfrite`.
- Should read `morpher` rather than `morepher`.
- Should read `declarative` rather than `declaritive`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
20 months agoMerge pull request #1278 from HarryFaulkner/1277-use-single-quotes-for-maskWith
Ulrich-Matthias Schäfer [Sat, 28 Jan 2023 19:07:59 +0000 (20:07 +0100)]
Merge pull request #1278 from HarryFaulkner/1277-use-single-quotes-for-maskWith

1277: remove double quotes from maskWith url()

22 months agoClone without assigning new IDs
Ulrich-Matthias Schäfer [Tue, 13 Dec 2022 08:55:16 +0000 (09:55 +0100)]
Clone without assigning new IDs

2 years agoMerge branch 'svgdotjs:master' into 1277-use-single-quotes-for-maskWith 1278/head
HarryFaulkner [Sun, 21 Aug 2022 10:14:34 +0000 (11:14 +0100)]
Merge branch 'svgdotjs:master' into 1277-use-single-quotes-for-maskWith

2 years agoremove double quote from all 'url()' refs, update tests
Harry Faulkner [Sun, 21 Aug 2022 10:13:53 +0000 (11:13 +0100)]
remove double quote from all 'url()' refs, update tests

2 years agoMerge pull request #1280 from dhckdaks/1279-fix-addto-type-definition
Ulrich-Matthias Schäfer [Fri, 12 Aug 2022 05:45:06 +0000 (07:45 +0200)]
Merge pull request #1280 from dhckdaks/1279-fix-addto-type-definition

fix: Add second parameter definition

2 years agofix: Add second parameter definition 1280/head
cmoh [Thu, 11 Aug 2022 07:29:02 +0000 (16:29 +0900)]
fix: Add second parameter definition

2 years ago1277: remove double quotes from maskWith url() impl
Harry Faulkner [Tue, 9 Aug 2022 15:19:08 +0000 (16:19 +0100)]
1277: remove double quotes from maskWith url() impl

2 years agod.ts Timeline.active() (#1253)
Timo Hausmann [Mon, 7 Feb 2022 22:02:43 +0000 (23:02 +0100)]
d.ts Timeline.active() (#1253)

2 years agoPerformance: don't create extra objects in point() (#1251)
Glandos [Thu, 27 Jan 2022 21:18:14 +0000 (22:18 +0100)]
Performance: don't create extra objects in point() (#1251)

2 years agorelease 3.1.2 3.1.2
Ulrich-Matthias Schäfer [Wed, 26 Jan 2022 22:14:58 +0000 (23:14 +0100)]
release 3.1.2

2 years agoMerge pull request #1249 from Mscht/1248-event-target-off-param-options
Ulrich-Matthias Schäfer [Tue, 18 Jan 2022 09:09:14 +0000 (10:09 +0100)]
Merge pull request #1249 from Mscht/1248-event-target-off-param-options

Add parameter "options" to EventTarget.off()

2 years agoAdd parameter "options" to EventTarget.off() 1249/head
Mario Schlicht [Tue, 18 Jan 2022 07:01:58 +0000 (08:01 +0100)]
Add parameter "options" to EventTarget.off()

- additional: Typescript-Interfaces for off() functions updated

2 years agoMerge pull request #1236 from gormster/fix-1235
Ulrich-Matthias Schäfer [Tue, 23 Nov 2021 08:58:37 +0000 (09:58 +0100)]
Merge pull request #1236 from gormster/fix-1235

Fix #1235

2 years agoAdd regression test for #1235 1236/head
Morgan Harris [Tue, 23 Nov 2021 02:15:21 +0000 (13:15 +1100)]
Add regression test for #1235

This is literally all you have to do to break this function... just have
one single other group in your document.

2 years agoReturn null if `until` not in parent chain
Morgan Harris [Tue, 23 Nov 2021 02:12:44 +0000 (13:12 +1100)]
Return null if `until` not in parent chain

2 years agoAdd test for closest matching parent
Morgan Harris [Tue, 23 Nov 2021 02:11:12 +0000 (13:11 +1100)]
Add test for closest matching parent

2 years agoFix broken parents() function
Morgan Harris [Tue, 23 Nov 2021 01:43:02 +0000 (12:43 +1100)]
Fix broken parents() function

2 years agoMerge pull request #1233 from adamyakes/1232-dmove-declarion-missing
Ulrich-Matthias Schäfer [Wed, 10 Nov 2021 21:11:46 +0000 (22:11 +0100)]
Merge pull request #1233 from adamyakes/1232-dmove-declarion-missing

Adds dmove to type definition for class Runner

2 years agoIncludes dmove method on Runner class 1233/head
Adam Yakes [Wed, 10 Nov 2021 20:12:05 +0000 (14:12 -0600)]
Includes dmove method on Runner class

2 years agoMerge pull request #1231 from Glandos/patch-2
Ulrich-Matthias Schäfer [Fri, 5 Nov 2021 09:51:19 +0000 (10:51 +0100)]
Merge pull request #1231 from Glandos/patch-2

findOne can return null

2 years agofindOne can return null 1231/head
Glandos [Fri, 5 Nov 2021 09:12:50 +0000 (10:12 +0100)]
findOne can return null

This can be a breaking change. But it will also fix the contract of the method.

2 years agofixed issues when animating css, updated deps
Ulrich-Matthias Schäfer [Wed, 27 Oct 2021 11:25:00 +0000 (13:25 +0200)]
fixed issues when animating css, updated deps

### Fixed
 - fixed `css()` returning camelCased properties even though they were specified in kebap-case
 - fixed `ObjectBag` loosing information when calling `valueOf()` (Numbers lost its unit)

3 years agoMerge pull request #1223 from larshp/master
Ulrich-Matthias Schäfer [Tue, 12 Oct 2021 09:26:36 +0000 (11:26 +0200)]
Merge pull request #1223 from larshp/master

types: remove at() methods

3 years agotypes: remove at() methods 1223/head
Lars Hvam [Tue, 12 Oct 2021 09:01:12 +0000 (11:01 +0200)]
types: remove at() methods

3 years agoMerge pull request #1219 from visionm45/master
Ulrich-Matthias Schäfer [Thu, 23 Sep 2021 11:58:25 +0000 (13:58 +0200)]
Merge pull request #1219 from visionm45/master

node or new

3 years agothis time for real revert package lock 1219/head
Daniel [Wed, 22 Sep 2021 22:46:41 +0000 (17:46 -0500)]
this time for real revert package lock

3 years agoRevert "remove old code"
Daniel [Wed, 22 Sep 2021 22:45:12 +0000 (17:45 -0500)]
Revert "remove old code"

This reverts commit aeea23be44bb6dc1653837c61c82a404d4701c8b.

3 years agoRevert "remove old code"
Daniel [Wed, 22 Sep 2021 22:44:50 +0000 (17:44 -0500)]
Revert "remove old code"

This reverts commit aeea23be44bb6dc1653837c61c82a404d4701c8b.

3 years agoreverted package lock and edit nodeOrNew
Daniel [Wed, 22 Sep 2021 22:41:46 +0000 (17:41 -0500)]
reverted package lock and edit nodeOrNew

3 years agoRevert "nodeornew"
Daniel [Wed, 22 Sep 2021 22:39:41 +0000 (17:39 -0500)]
Revert "nodeornew"

This reverts commit dc7e039ef2cbd3005c53652334f42d12f1f25691.

reverting package-lock.json

3 years agoremove old code
Daniel [Wed, 22 Sep 2021 14:29:09 +0000 (09:29 -0500)]
remove old code

3 years agocheck 'ownerDocument' in node in nodeOrNew
Daniel Kern [Mon, 20 Sep 2021 18:56:49 +0000 (13:56 -0500)]
check 'ownerDocument' in node in nodeOrNew

3 years agonew
Daniel Kern [Mon, 20 Sep 2021 18:26:55 +0000 (13:26 -0500)]
new

3 years agonodeornew
Daniel Kern [Mon, 20 Sep 2021 18:21:24 +0000 (13:21 -0500)]
nodeornew

3 years agoMerge pull request #1215 from meriturva/patch-1
Ulrich-Matthias Schäfer [Tue, 7 Sep 2021 17:36:05 +0000 (19:36 +0200)]
Merge pull request #1215 from meriturva/patch-1

Update svg.js.d.ts -> zoom

3 years agoUpdate svg.js.d.ts 1215/head
Diego Bonura [Tue, 7 Sep 2021 13:29:13 +0000 (15:29 +0200)]
Update svg.js.d.ts

Add zoom():number to d.ts to get current zoom level

3 years agopackage-lock 3.1.1
Ulrich-Matthias Schäfer [Fri, 25 Jun 2021 13:37:33 +0000 (15:37 +0200)]
package-lock

3 years agoRelease 3.1.1
Ulrich-Matthias Schäfer [Fri, 25 Jun 2021 13:11:00 +0000 (15:11 +0200)]
Release 3.1.1

3 years agoUpdate svg.js.d.ts
Ulrich-Matthias Schäfer [Fri, 18 Jun 2021 06:59:04 +0000 (16:59 +1000)]
Update svg.js.d.ts

zoom should return `this`

3 years agoMerge pull request #1204 from maximedupre/patch-1
Ulrich-Matthias Schäfer [Fri, 18 Jun 2021 06:56:36 +0000 (16:56 +1000)]
Merge pull request #1204 from maximedupre/patch-1

Fixes typings starting tsc 4.2.4

3 years agoFixes types starting tsc 4.2.4 1204/head
Maxime Dupré [Thu, 17 Jun 2021 21:01:42 +0000 (17:01 -0400)]
Fixes types starting tsc 4.2.4

3 years agoRelease 3.1.0 3.1.0
Ulrich-Matthias Schäfer [Sun, 13 Jun 2021 22:53:51 +0000 (00:53 +0200)]
Release 3.1.0

3 years agocleaned up config, reduced bundle size by a lot!!!
Ulrich-Matthias Schäfer [Sun, 13 Jun 2021 22:46:42 +0000 (00:46 +0200)]
cleaned up config, reduced bundle size by a lot!!!

3 years agofix group move bug when group contains elements without dimensions, update deps
Ulrich-Matthias Schäfer [Sun, 13 Jun 2021 20:39:18 +0000 (22:39 +0200)]
fix group move bug when group contains elements without dimensions, update deps

3 years agoUpdate website to svgjs.dev
Wout [Fri, 11 Jun 2021 08:24:38 +0000 (09:24 +0100)]
Update website to svgjs.dev

3 years agofix: change domain name to svgjs.dev
Wout [Wed, 9 Jun 2021 18:02:22 +0000 (19:02 +0100)]
fix: change domain name to svgjs.dev

3 years agoUpdate README.md
Wout [Wed, 9 Jun 2021 17:03:04 +0000 (18:03 +0100)]
Update README.md

3 years agoUpdate README.md
Ulrich-Matthias Schäfer [Wed, 19 May 2021 16:20:08 +0000 (02:20 +1000)]
Update README.md

update docs link

3 years agoMerge pull request #1201 from josepaiva94/types
Ulrich-Matthias Schäfer [Mon, 3 May 2021 16:45:29 +0000 (02:45 +1000)]
Merge pull request #1201 from josepaiva94/types

Types for Style

3 years agoadd types for styles 1201/head
José C. Paiva [Mon, 3 May 2021 06:49:47 +0000 (07:49 +0100)]
add types for styles

3 years agoadd types for styles
José C. Paiva [Mon, 3 May 2021 06:36:13 +0000 (07:36 +0100)]
add types for styles

3 years agoupdate dependencies, apply new linter fixes
Ulrich-Matthias Schäfer [Wed, 13 Jan 2021 16:26:33 +0000 (17:26 +0100)]
update dependencies, apply new linter fixes

3 years agotypos (#1179)
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

3 years agoMerge pull request #1175 from FortAwesome/fix-elliptical-arc-flags-parsing
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

3 years agoadd more elliptical arc flag parsing test coverage 1175/head
Mike Wilkerson [Sat, 12 Dec 2020 19:47:50 +0000 (11:47 -0800)]
add more elliptical arc flag parsing test coverage

3 years agofix for arc flags parsing
Mike Wilkerson [Sat, 12 Dec 2020 16:39:31 +0000 (08:39 -0800)]
fix for arc flags parsing

3 years agoMerge pull request #1168 from melon3r/patch-1
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

3 years agoAllow strings to be passed as transform origin on TS 1168/head
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

3 years agoMerge pull request #1167 from melon3r/patch-1
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

3 years agoAdd style() to Container on TS bindings 1167/head
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

3 years agoFix issue with Jest 1161/head
Philippe Bernard [Tue, 27 Oct 2020 08:31:18 +0000 (09:31 +0100)]
Fix issue with Jest

4 years agoTest case for Dom.clone() with assignNewIds = false
Philippe Bernard [Wed, 14 Oct 2020 09:43:26 +0000 (11:43 +0200)]
Test case for Dom.clone() with assignNewIds = false

4 years agoNew paremeter assignNewIds for Dom.clone()
Philippe Bernard [Wed, 14 Oct 2020 09:20:20 +0000 (11:20 +0200)]
New paremeter assignNewIds for Dom.clone()

4 years agofix `clone()` to return the correct instance (#1154)
Ulrich-Matthias Schäfer [Sun, 27 Sep 2020 03:35:47 +0000 (13:35 +1000)]
fix `clone()` to return the correct instance (#1154)

4 years agofix path parsing (#1145)
Ulrich-Matthias Schäfer [Sat, 5 Sep 2020 13:06:25 +0000 (23:06 +1000)]
fix path parsing (#1145)

4 years agoAdd attribute `rotate` to `MatrixTransformParam` (#1149)
jhajjaarap [Sat, 5 Sep 2020 10:34:35 +0000 (18:34 +0800)]
Add attribute `rotate` to `MatrixTransformParam` (#1149)

Add attribute `rotate` to `MatrixTransformParam`

4 years agoMerge pull request #1129 from josepaiva94/types
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)

4 years agoRemove extends ElementAlias from List items 1129/head
José C. Paiva [Sun, 14 Jun 2020 16:16:16 +0000 (17:16 +0100)]
Remove extends ElementAlias from List items

4 years agoFix types for List and ForeignObject
José C. Paiva [Sun, 14 Jun 2020 09:11:31 +0000 (10:11 +0100)]
Fix types for List and ForeignObject

4 years agoUpdate svg.js.d.ts
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

4 years agoMerge pull request #1126 from pjbatista/1124-window-exports
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

4 years agoAdded exports from window.js 1126/head
Pedro José Batista [Tue, 2 Jun 2020 12:21:38 +0000 (09:21 -0300)]
Added exports from window.js

4 years agoMerge pull request #1123 from pragdave/some-more-typings
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

4 years agoMerge branch 'master' into some-more-typings 1123/head
Ulrich-Matthias Schäfer [Mon, 1 Jun 2020 08:14:34 +0000 (18:14 +1000)]
Merge branch 'master' into some-more-typings

4 years agoFix add method for ForeignObject
Ulrich-Matthias Schäfer [Mon, 1 Jun 2020 08:07:19 +0000 (18:07 +1000)]
Fix add method for ForeignObject

4 years agoFix constructor typings for ForeignElement
Ulrich-Matthias Schäfer [Mon, 1 Jun 2020 08:03:01 +0000 (18:03 +1000)]
Fix constructor typings for ForeignElement

4 years agoadd string parameters to Runner.ease()
pragdave [Sun, 31 May 2020 21:28:47 +0000 (16:28 -0500)]
add string parameters to Runner.ease()

4 years agoslowly iterating towards List nirvana. FO still pending...
pragdave [Sun, 31 May 2020 16:04:10 +0000 (11:04 -0500)]
slowly iterating towards List nirvana. FO still pending...

4 years agoFix up List (maybe). ForeignObject still open for discussion
pragdave [Sun, 31 May 2020 00:31:32 +0000 (19:31 -0500)]
Fix up List (maybe). ForeignObject still open for discussion

4 years agoaff foreignObject to types, get get List working
pragdave [Sat, 30 May 2020 18:57:36 +0000 (13:57 -0500)]
aff foreignObject to types, get get List working

4 years agoMerge pull request #1116 from Glandos/patch-1
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

4 years agoBetter typing for css getter/setter 1116/head
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.

4 years agoMerge pull request #1111 from acedrew/ts-runner-ease
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

4 years agoAdd optional string type to Runner.ease 1111/head
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.

4 years agoadded geometry and positioning methods to `A` (#1110)
Ulrich-Matthias Schäfer [Tue, 19 May 2020 23:36:17 +0000 (09:36 +1000)]
added geometry and positioning methods to `A` (#1110)

4 years agosorted method names
Ulrich-Matthias Schäfer [Tue, 19 May 2020 10:06:29 +0000 (20:06 +1000)]
sorted method names

4 years agoadd twitter and other cdns
Ulrich-Matthias Schäfer [Sun, 10 May 2020 00:32:47 +0000 (10:32 +1000)]
add twitter and other cdns

4 years agoadded funding
Ulrich-Matthias Schäfer [Sun, 10 May 2020 00:07:20 +0000 (10:07 +1000)]
added funding

4 years agoCreate FUNDING.yml
Ulrich-Matthias Schäfer [Sat, 9 May 2020 23:10:32 +0000 (09:10 +1000)]
Create FUNDING.yml

4 years agoadded sponsor badge
Ulrich-Matthias Schäfer [Sat, 9 May 2020 05:36:23 +0000 (15:36 +1000)]
added sponsor badge

4 years agomake targets for textPath work when no href is set
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

4 years agoclose tags in tests so that svgdom is satisfied
Ulrich-Matthias Schäfer [Sat, 9 May 2020 04:50:09 +0000 (14:50 +1000)]
close tags in tests so that svgdom is satisfied

4 years agoMerge pull request #1106 from pragdave/some-type-based-tidying
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

4 years agoremove union return value 1106/head
pragdave [Thu, 7 May 2020 22:36:01 +0000 (17:36 -0500)]
remove union return value

4 years agoIt was difficult to use the zero-parameter form of Timeline.schedule() with TypeScrip...
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.