paper.js/test/tests
sasensi 2e75467fb4 Fix group selected bounds and position color
Group selected color was applied differently to its bounds and position
depending on whether it had children or not when selected color was set.
This resulted in an unpredictable behaviour from a user point of view.
To change that:
- When `item.setSelectedColor()` is called, value is now always stored
in `item._style._values`, independently from the fact that item has
children or not.
- An helper method `compareCanvas()` is added to the test suite to allow
comparing selection rendering of a known working case to a failing one.
Two provided callbacks are executed in a dedicated `<canvas>`/`Project`
context and both results are compared with `resemble.js`.
2018-11-06 11:26:12 +01:00
..
Color.js Improve color parsing for 4 characters hex code (#1565) 2018-10-14 21:44:22 +02:00
CompoundPath.js Use shorter zero checks for array indices and length. 2016-07-22 13:46:24 +02:00
Curve.js Implement Curve#getTimesWithTangent() 2018-10-05 09:44:42 +02:00
CurveLocation.js Tests: Start getting QUnit tests to work on Node.js 2016-01-31 12:43:20 +01:00
Emitter.js Tests: Clean up Emitter tests. 2016-01-31 12:43:20 +01:00
Group.js Fix group selected bounds and position color 2018-11-06 11:26:12 +01:00
HitResult.js Hit-Tests: Fix issue with non-invertible matrices. 2017-03-09 12:42:11 +01:00
Interactions.js Fix mousedrag error with in front items 2018-10-20 15:59:18 +02:00
Item.js Fix children global matrices are not cleared (#1552) 2018-10-13 16:28:20 +02:00
Item_Bounds.js Fix item global matrix error (#1562) 2018-10-13 14:41:38 +02:00
Item_Cloning.js Fix matrix cloning for groups with #applyMatrix = false 2016-12-30 13:25:08 +01:00
Item_Getting.js Implement unit tests for Item#getItems() with overlapping / inside properties. 2016-02-12 20:09:41 +01:00
Item_Order.js Fix #1015: Improve handling of already inserted children in#insertChildren() 2016-04-13 13:36:26 -07:00
JSON.js Update to straps.js v3.0.1 and make all functions and accessors enumerable. 2017-04-22 18:50:53 +02:00
Layer.js Clean up Layer unit tests a bit. 2016-08-07 15:58:54 +02:00
load.js Minor code refactoring to try to make online build pass 2018-10-17 18:08:54 +02:00
Matrix.js Matrix: Switch to a better implementation of #decompose() 2016-02-14 10:59:57 +01:00
Numerical.js Clean-up code from PR #1087 2016-07-09 01:01:19 +02:00
Path.js Fix error in single segment closed path flatten 2018-10-15 11:01:51 +02:00
Path_Boolean.js Fix #1506 #1513 by checking winding quality in boolean subtraction 2018-09-26 14:05:29 +02:00
Path_Constructors.js Improve unit test for new Path.Constructor({ insert: false }) 2017-04-10 09:30:52 +02:00
Path_Intersections.js Intersections: Correctly handle item#applyMatrix = false 2017-03-23 13:13:32 +01:00
PathItem.js Fix overlap sequence handling in Path#compare() 2016-12-31 06:49:57 +01:00
PathItem_Contains.js Implement unit tests for #1116 2017-01-08 15:07:40 +01:00
Point.js Replace all occurences of Math.sqrt(2) with Math.SQRT2 2016-12-29 10:56:06 +01:00
Project.js Tests: Start getting QUnit tests to work on Node.js 2016-01-31 12:43:20 +01:00
Raster.js Wrap up Raster#smoothing feature 2018-10-03 19:01:02 +02:00
Rectangle.js Improve handling of Rectangle dimension properties. 2017-03-19 22:51:34 +01:00
Segment.js Improve Segment constructor to correctly handle undefined values. 2016-07-03 13:30:56 +02:00
Shape.js Tests: Start getting QUnit tests to work on Node.js 2016-01-31 12:43:20 +01:00
Size.js Clean up handling of #_set(), #set() and #initialize() 2016-07-18 20:11:01 +02:00
Style.js Tests: Implement unit tests for #1277 2017-03-12 11:11:14 +01:00
SvgExport.js Properly handle generated IDs in SVG export. 2016-11-20 20:53:41 -05:00
SvgImport.js Fix:test replace gif to png because jsdom causes error 2018-09-29 08:55:41 +09:00
SymbolItem.js Use == false instead of === false for all options that default to true. 2017-03-22 14:42:11 +01:00
TextItem.js Travis CI: Try installing msttcorefonts to solve the font-size issue in tests. 2016-01-31 12:43:32 +01:00