Commit Graph

59 Commits

Author SHA1 Message Date
Samuel Gratzl
aecace2b00
🤖 Merge PR #45884 @types/cytoscape fix spelling issue to match docs by @sgratzl
change spelling of line-gradient-stop-colors to American to match the docs see https://js.cytoscape.org/#style/gradient
2020-07-06 00:24:16 -07:00
Shen liang
ab9cec4dc3
@types/cytoscape add hasElementWithId definition (#45718)
* make unzipper ParseOne parameters optional

* add the hasElementWithId function definition
2020-06-26 09:05:33 -04:00
Steven Scott
159c123fef
🤖 Merge PR #45590 [cytoscape] add missing style properties, fix ClassNames by @codingismy11to7
https://js.cytoscape.org/#style/transition-animation
TransitionAnimation was defined, but wasn't actually used as part of the node/edge css properties.

https://js.cytoscape.org/#eles.classes
Types only allowed the space-separated string variant, but docs specify all the methods can take that or an array of class names
2020-06-20 15:06:42 -07:00
Fredrik Sandström
21e1162029
[@types/cytoscape] Added type definitions for Edge Endpoints (#45124)
* Fixed the Events style function for Nodes & Edges

* Minor fix for #44890

* Fixes DefinitelyTyped/DefinitelyTyped/#45090

* Why not?

* Added some default values to the Stylesheet test

* Pass linting - Look into refactor library after these rules later

* Remove Extended rules, Travis might pass now?

Co-authored-by: Fredrik Sandström <fredrik.sandstrom@tele2.com>
2020-06-08 14:26:12 -04:00
Fredrik Sandström
1ed325dc65
Fixed the Events style function for Nodes & Edges (#44975)
Co-authored-by: Fredrik Sandström <fredrik.sandstrom@tele2.com>
2020-05-27 13:01:58 -07:00
Fredrik Sandström
d7fb5180f7
[@types/cytoscape] Added in missing NodeShapes. (#44821)
Co-authored-by: Fredrik Sandström <fredrik.sandstrom@tele2.com>
2020-05-19 15:25:53 -07:00
Steven Scott
0c82ae15b7
[cytoscape] Allow removing node's parent (#44675)
Docs say to use `null` for no parent: https://js.cytoscape.org/#eles.move
2020-05-19 10:54:31 -07:00
Wesley Wigham
6970a8fffa
#no-publishing-comment No more tabs in json documents, trailing newlines for every document 2020-05-15 12:27:10 -07:00
Kim "Liam" Jongsoo
bec5d8a13a
[cytoscape] Update types to 3.14.0 (#42293)
* Add strongly connected components algorithms
* Add missing return value of kargerStein algorithm
2020-02-17 17:14:01 -08:00
Aled Wassell
92540bcd48 Update Cytoscape index.d.ts adding types "target-distance-from-node", "arrow-scale" and "text-backgr… (#41755)
* Add types "target-distance-from-node", "arrow-scale" and "text-background-padding" to index.d.ts

* Update index.d.ts to remove trailing whitespace
2020-01-22 13:14:10 -08:00
Xavier Ho
e2f509ace4 [cytoscape] adds warnings function definition (#41139)
* Adds Cytoscape.warnings definition

* Adds contribution link
2019-12-19 22:22:01 -08:00
PeterJFerrarotto
3b55a2cc8a [@types/cytoscape] Adding missing EdgeLine and Gradient style properties (#40343)
* [@types/cytoscape] Added missing EdgeLine style properties

* [@types/cytoscape] Abiding by linter specifications and readme specifications

* [@types/cytoscape] split gradient properties into separate interface

* Fixing for linter
2019-11-15 17:09:59 -08:00
Gregory Chen
2b22209554 change grid layout position() param type to NodeSingular (#39988) 2019-11-01 08:29:23 -07:00
Josejulio Martínez
7d4caa8dd6 [cytoscape] Add mapper functions and more (#39245)
* Allows Css.Core for the style/css

* Adds new round shapes

* - Allow mapper functions when defining style properties
- Adds "ghost"
- Plugs some interfaces to Css.Node/Edge

* - Add extra params to Handler
- Fixes the originalEvent type
- Adds other events methods

* Fix linting

* Adds missing Boundingbox options

* Adds a way to specify the target we are expecting for an event
2019-10-23 17:03:08 -07:00
Dan Manastireanu
e9ace4a64f [@types/cytoscape] Fix return type of eles.boundingBox. Closes #39080 (#39091) 2019-10-14 13:48:19 -07:00
Josejulio Martínez
63630efb88 Add destroyed api call (#37997) 2019-09-03 13:54:38 -07:00
Gregory Chen
2987240fa2 fix typo in cytoscape typings (#37522) 2019-08-12 12:07:28 -07:00
Andrej Kirejeŭ
289ba098a6 [@types/cytoscape] add missing edge arrows types. (#36927)
* [@types/cytoscape] add missing types for edge arrows.

* [@types/cytoscape] increase version of cytoscape.

* [@types/cytoscape] correct cytoscape version.
2019-07-18 13:36:45 -07:00
Hanzhi Zhou
be367b428a [Cytoscape] Fix BFS/DFS typings and mark some optional types (#35626)
fix bfs/dfs types
fix floydWarshall name
2019-05-24 09:40:43 -07:00
-1
620c7af73c [cytoscape] fixed typos and added new style options (#35313)
* add and fix line-styles

* fix typo

* add text-wrap style

* add tests
2019-05-13 16:41:20 -07:00
Wesley Wigham
a1f55d4ff7
Add missing styles to cytoscape css.Node 2019-04-12 13:25:03 -07:00
Dan Minshew
fb36d063d6 [cytoscape] fix typo: bellmanFort -> bellmanFord (#33926) 2019-03-18 08:57:51 -07:00
Nathan L Smith
2a131b5f29 [cytoscape] add cy.mount() and cy.unmount()
These were added in 3.3.0, so I bumped the version in the header as well.
2019-02-14 15:44:47 -06:00
Thomas Barron
a97b6e6f7d adding missing CollectionTraversing to Collection type 2018-12-12 03:15:58 -07:00
Nathan L Smith
d7798e0d03 [cytoscape] fixes for data definitions
* `width` and `height` of Css.Node can be a string other than "label" if using a [mapper](http://js.cytoscape.org/#style/mappers) (it probably would be good to eventually define the possible values for CSS properties as a type and use that, since these can also take functions and other stuff.)
* Node and edge data can have any serializable JSON, so add `{ [key:string: any `} to those definitions.
2018-10-29 22:40:25 -05:00
Sebastian Kropp
c7e213857e
BFS returns void if search not successful
return true if search has found the node
return false if search is aborted before finding anything
returns void/undefined if search should continue
therefore return type is a union type of `=> boolean | void`
2018-08-07 12:25:48 -04:00
Cerberuser
45828fbb51 Cytoscape: type guards, stylesheet fix, mapping/filtering functions fix (#27523) 2018-07-24 10:13:48 -07:00
nakagawa424
435aec3769 cytoscape: fix filtering functions (#27411)
* cytoscape: fix map()

* add tests

* cytoscape: fix filtering functions
2018-07-20 17:51:40 -07:00
nakagawa424
f805351bd7 typo (#27409) 2018-07-20 17:50:56 -07:00
nakagawa424
efce430c49 cytoscape: fix map() (#27245)
* cytoscape: fix map()

* add tests
2018-07-20 17:32:24 -07:00
Cerberuser
87167476ba Cytoscape: layout events fix (#27314)
* Cytoscape: layout events fix

* fix: adjacent overloads
2018-07-20 17:31:26 -07:00
Cerberuser
f50cf7b56f Cytoscape: animation fixes, layout interface usage (#27209) 2018-07-12 00:41:20 -07:00
Cerberuser
dff7d34a91 Cytoscape: small fixed for tests; many fixes for return values (#27062) 2018-07-05 09:53:50 -07:00
Cerberuser
58e88b434b Tests fix 2018-06-29 15:35:22 +07:00
Cerberuser
7f9333c308 Cytoscape: export image to Blob 2018-06-29 14:40:50 +07:00
Cerberuser
a434f4eafa
Merge nakagawa424/cytoscape/fix-traversing
cytoscape: fix return type of traversing methods
2018-06-20 10:52:54 +07:00
Cerberuser
f6010ffa6a Cytoscape: fixed events list, fixed interfaces inheritance (+1 squashed commits)
Squashed commits:

[d48a8821f3] tmp
2018-06-20 10:42:35 +07:00
Satoshi Nakagawa
68311ab843 cytoscape: fix return type of traversing methods 2018-06-14 18:24:40 +09:00
Cerberuser
2bc5077b3a Fix for selector functions 2018-06-09 14:43:53 +07:00
Cerberuser
217d2bf4be Cytoscape: tested large amount of cases; heavily refactored general types; added some methods; added chaining possibility in some places 2018-06-09 14:29:32 +07:00
Cerberuser
11d193de26
Update cytoscape-tests.ts
Added a whole set of options for startup
2018-06-04 08:54:24 +07:00
Cerberuser
c67f9444e8 Fix for CollectionElements 2018-06-01 16:28:14 +07:00
Cerberuser
8464f21b17 Fix for extension type definition 2018-05-22 11:17:12 +07:00
Cerberuser
10bc9fc21d Added extensions usage for cytoscape 2018-05-22 10:43:21 +07:00
Michael Williamson
c701072a0e Cytoscape: Allow overlay style to be set (#23667)
* Cytoscape: Allow overlay style to be set

* Update TS version
2018-04-09 13:49:40 -07:00
Bowden Kelly
964c471d52
Merge pull request #23698 from mwilliamson-healx/cytoscape-filter
Cytoscape: fix filter() signature
2018-02-26 13:06:16 -08:00
Michael Williamson
8f35c97473 Cytoscape: fix filter() signature 2018-02-16 11:41:21 +00:00
Andy Hanson
45c9246c09 Remove esModuleInterop from tsconfigs (no longer mandatory) 2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs (#23354) 2018-02-05 11:01:56 -08:00
Jan-Niclas Strüwer
be285f96bf step() option in animate function is optional. examples in cytoscape js docu (http://js.cytoscape.org/#cy.animate) use animate without step parameter. (#22916) 2018-01-17 09:55:43 -08:00