summaryrefslogtreecommitdiffstats
path: root/svg.js.d.ts
Commit message (Collapse)AuthorAgeFilesLines
* add types for stylesJosé C. Paiva2021-05-031-1/+3
|
* add types for stylesJosé C. Paiva2021-05-031-0/+8
|
* Allow strings to be passed as transform origin on TSDani2020-11-161-1/+1
| | | | | 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
* Add style() to Container on TS bindingsDani2020-11-121-0/+1
| | | | | We need this to be able to define styles on the SVG from TypeScript. @neomorfeo
* Add attribute `rotate` to `MatrixTransformParam` (#1149)jhajjaarap2020-09-051-0/+1
| | | Add attribute `rotate` to `MatrixTransformParam`
* Remove extends ElementAlias from List itemsJosé C. Paiva2020-06-141-3/+2
|
* Fix types for List and ForeignObjectJosé C. Paiva2020-06-141-8/+9
|
* Update svg.js.d.tsUlrich-Matthias Schäfer2020-06-131-1/+1
| | | Implementing ElementAlias doesnt work because method definitions clash
* Added exports from window.jsPedro José Batista2020-06-021-0/+4
|
* Merge branch 'master' into some-more-typingsUlrich-Matthias Schäfer2020-06-011-7/+17
|\
| * Better typing for css getter/setterGlandos2020-05-271-5/+8
| | | | | | | | 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.
| * Add optional string type to Runner.easeAndrew Rodgers2020-05-191-1/+1
| | | | | | | | 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.
| * sorted method namesUlrich-Matthias Schäfer2020-05-191-1/+0
| |
| * remove union return valuepragdave2020-05-071-2/+2
| |
| * It was difficult to use the zero-parameter form of Timeline.schedule() with ↵pragdave2020-05-071-1/+9
| | | | | | | | | | | | | | | | | | | | 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.
* | Fix add method for ForeignObjectUlrich-Matthias Schäfer2020-06-011-1/+1
| |
* | Fix constructor typings for ForeignElementUlrich-Matthias Schäfer2020-06-011-1/+2
| |
* | add string parameters to Runner.ease()pragdave2020-05-311-9/+15
| |
* | slowly iterating towards List nirvana. FO still pending...pragdave2020-05-311-4/+4
| |
* | Fix up List (maybe). ForeignObject still open for discussionpragdave2020-05-301-7/+4
| |
* | aff foreignObject to types, get get List workingpragdave2020-05-301-3/+13
|/
* sort out unused regex, add parser and regex tests, fix textable testsUlrich-Matthias Schäfer2020-04-251-2/+0
|
* added Fragment, completed Dom Tests, fixed `matches()` for document fragmentsUlrich-Matthias Schäfer2020-04-081-1/+1
|
* - fixed `put()` which correctly creates an svgjs object from the passed ↵Ulrich-Matthias Schäfer2020-04-031-46/+12
| | | | | | | | 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
* This is a big one...Ulrich-Matthias Schäfer2020-03-281-95/+120
| | | | | | | | | | | | | | | | | | | | ### 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
* Add mouseenter()/mouseleave() function definition to types.Luma2020-03-231-0/+2
|
* Changes animate duration argument to TimeLikeMatthew Radcliffe2019-12-161-2/+2
|
* Fixes Element.animate typingMatthew Radcliffe2019-12-121-2/+1
|
* PathArray parse method's parameter should be optional to comply with the ↵Maxime AILLOUD2019-05-241-1/+1
| | | | parent class
* Typescript definition file: add null as possible parameter for event binding ↵Maxime AILLOUD2019-05-241-15/+15
| | | | methods in Element class
* Update typescript definition file.Veasna Sreng2019-03-011-86/+133
|
* cleanup of .d.ts (#960)kabentley2019-02-191-322/+1145
| | | | Big kudos to @kabentley for fixing the d.ts file
* fix SVGNumber and SVGArrayKeith Bentley2019-02-121-181/+127
|
* Cleanup of d.tsKeith Bentley2019-02-121-62/+79
|
* two constructors for PathArrayKeith Bentley2019-02-111-2/+1
|
* missed constructors on Matrix and PathArrayKeith Bentley2019-02-111-0/+2
|
* revert to iife for bundle. Set "browser" to src/main.js in package.jsonKeith Bentley2019-02-111-446/+289
|
* Bare -> DomKeith Bentley2019-02-101-3/+3
|
* more cleanup of svg.js.d.tsKeith Bentley2019-02-101-59/+28
|
* use umd format in rollup.Keith Bentley2019-02-081-115/+97
|
* applied fixes from 2.x branchUlrich-Matthias Schäfer2018-12-011-30/+48
|
* Syntax fixes in TypeScript declaration fileMalte Fastrup Lyngsø2017-06-061-5/+5
|
* Add missing type definitions to svg.js.d.ts (#680)Youngrok Kim2017-05-201-4/+8
|
* fix svg.js.d.ts (#644 #648)Ulrich-Matthias Schäfer2017-04-121-5/+13
|
* typescript definitions updated, minor fix in TransformationsUlrich-Matthias Schäfer2017-03-191-146/+191
|
* Typescript definitions edits: element.stop, container.polyline(), select(): ↵showdep2017-03-151-10/+10
| | | | | Set, animation.scale() (#631, #635) Thx @showdep
* added rotate, skew, scale and translate to typings documentation as written ↵dotnetCarpenter2017-03-101-2/+6
| | | | in our documentation (http://svgjs.com/manipulating/transforms/)
* add rotate() as an animation method in typescriptdotnetCarpenter2017-03-081-0/+1
|
* Typo in typingswout2017-01-181-1/+1
|
* added missing constructor definitionsrdfriedl2017-01-141-22/+63
|