Commit graph

47 commits

Author SHA1 Message Date
Richard Davey
468bf7821d Updated copyright year 2023-01-02 17:36:27 +00:00
Richard Davey
5f35c016f3 Upgrade Earcut
Earcut has been updated to version 2.2.4. This release improves performance by 10-15% and fixes 2 rare race conditions that could leave to infinite loops. Earcut is used internally by Graphics and Shape game objects when triangulating polygons for complex shapes.
2022-11-22 23:51:20 +00:00
Richard Davey
59fbcc5ca3 Updated copyright year 2022-02-28 14:29:51 +00:00
Richard Davey
c83622d349 Always return polygon, even if points <= 2. 2020-12-14 09:03:35 +00:00
Richard Davey
02c34cd64e Replace integer with number 2020-11-23 10:22:13 +00:00
Richard Davey
afbbf2aee0 JSDoc fixes 2020-11-20 16:30:05 +00:00
Richard Davey
4f980c773a Update Simplify.js 2020-11-20 15:59:07 +00:00
Richard Davey
37c9b0884d Updated Polygon points type. Fix #5357 2020-10-15 12:01:13 +01:00
Richard Davey
1f50b49eff Earcut has now been exposed and is available via Geom.Polygon.Earcut and is fully documented. 2020-08-25 09:54:03 +01:00
Richard Davey
2db1496511 Geom.Polygon.Simplify is a new function that takes a polygon and simplifies the points by running them through a combination of Douglas-Peucker and Radial Distance algorithms, potentially dramatically reducing the number of points while retaining its shape. 2020-08-18 18:05:45 +01:00
Richard Davey
616dbfceb5 Earcut, used for polygon triangulation, has been updated from 2.1.4 to 2.2.2. 2020-08-18 17:24:45 +01:00
Richard Davey
4baa0522b9 Bumping to 3.50 2020-07-31 13:41:29 +01:00
Richard Davey
ce9c750175 Geom.Polygon.Translate is a new function that allows you to translate all the points of a polygon by the given values. 2020-07-30 12:58:35 +01:00
Richard Davey
e1b8b04623
Merge pull request #4975 from JasonHK/jsdoc
Fixed `this` return types
2020-04-27 13:25:58 +01:00
Jared Cook
2f8c00639b added stepRate check for GetPoints methods 2020-03-16 16:12:22 -05:00
Richard Davey
0ee6d16c17 Finished Geom JSDocs 2020-02-04 16:19:42 +00:00
Jason Kwok
24fbe810df Fixed this return types for Phaser.Geom.Polygon 2020-01-30 23:39:08 +08:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
2bb1f0867b
Merge pull request #4939 from Chnapy/master
Improve JSDoc typings & improve tsgen with default generic types
2020-01-13 11:41:59 +00:00
Richard Davey
439d50ee9f Update Polygon.js 2020-01-11 16:18:56 +00:00
Chnapy
9bb02d57ef improve typings: getPoints functions 2020-01-03 13:21:50 +01:00
Josh Soref
b394e7d777 spelling: collinear 2019-10-29 01:49:07 -04:00
Richard Davey
3a85d8bdc8 Added the new Geometry type properties 2019-07-18 10:36:11 +01:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
56dfdb7a74 More jsdoc global fixes 2019-02-12 12:14:26 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Richard Davey
27c1426856 Updated earcut from 2.1.1 to 2.1.4. 2018-12-10 16:35:11 +00:00
Richard Davey
2780babe10 Final Doc Jam merge 2018-12-03 15:16:23 +00:00
Richard Davey
4c4421c47f Docjam merge 2018-10-19 12:32:43 +01:00
Richard Davey
4b1c762296 Updated @memberOf to @memberof 2018-10-10 10:49:13 +01:00
Richard Davey
e297b3272e Added hundreds of new jsdoc descriptions 2018-10-01 11:35:01 +01:00
Richard Davey
684838aabe Polygon.setTo can now take a string of space separated numbers when creating the polygon data, i.e.: '40 0 40 20 100 20 100 80 40 80 40 100 0 50'. This update also impacts the Polygon Shape object, which can now also take this format as well. 2018-09-26 11:01:48 +01:00
Richard Davey
89b9f42f3e Adding jsdocs 2018-09-24 23:20:43 +01:00
Richard Davey
b54de56c85 Added Polygon.Smooth and exposed Polygon.Reverse 2018-09-06 00:16:56 +01:00
Richard Davey
2c4f0d0d68 Added missing jsdocs for #3996 2018-09-01 10:19:38 +01:00
iamchristopher
0a96bf356b Added Polygon.GetPoints 2018-08-31 20:30:36 -04:00
iamchristopher
a1335d3cc0 Added Polygon.Perimeter 2018-08-31 20:21:34 -04:00
Richard Davey
ef136f684d Polygon.setTo would fail if given an array of arrays as a list of points. Fix #3619 2018-04-26 15:55:27 +01:00
orblazer
e9e16a7b10 Add generic types on Geom 2018-03-27 15:27:08 +02:00
orblazer
8a9223811f Fix multiple types on Geom 2018-03-20 16:01:08 +01:00
orblazer
0e06dcf3a1 Update JSDoc on Geom 2018-03-19 13:05:23 +01:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Richard Davey
ebe2f0758a Removed incorrect namespace. 2018-02-07 16:16:25 +00:00
Richard Davey
40689d1e35 Updated jsdocs. 2018-02-07 15:27:21 +00:00
Richard Davey
2a86400a28 Added in jsdocs 2018-01-31 13:54:44 +00:00
Richard Davey
d1c1074979 Added jsdocs. 2018-01-26 13:14:41 +00:00
Richard Davey
d8f1ba03e9 Moved repository location 2018-01-09 21:43:56 +00:00