sasensi
655a4dabd0
Add tolerance parameter to test method compareCanvas()
2018-11-06 12:07:01 +01:00
sasensi
337538b21a
Remove reference to CanvasProvider in test methods
2018-11-06 11:26:12 +01:00
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
DD
c8f70742ea
Try to deploy only once instead of three times
2018-11-05 15:18:06 -05:00
DD
9d4ab1e38f
Default raster smoothing to false for Scratch
2018-11-05 15:10:56 -05:00
sasensi
c44f56d52f
Fix Rectangle documentation
...
Add missing return values in Rectangle boolean operations.
Closes #1399
2018-11-05 08:34:50 +01:00
sasensi
97b87e3836
Fix crashing build disabling node v11
...
Node v11 is temporarily disabled from ci build until a bug is fixed in
resemblejs package.
2018-11-05 08:31:25 +01:00
DD Liu
088f3f9c0c
Merge pull request #22 from fsih/measureText
...
Measure text differently when exporting for display (include overhanging text)
2018-10-29 10:29:19 -04:00
sapics
b52c22dd39
Travis: Remove node v9 and add node v10
2018-10-25 22:34:10 +02:00
DD
b1dd6fbb87
Match spacing
2018-10-25 15:31:52 -04:00
DD
f3991edc0a
Fix RTL
2018-10-25 15:15:12 -04:00
DD
bb7ebe0d24
Add linting to test
2018-10-25 14:22:55 -04:00
DD
e893cb1325
Clean up/
2018-10-25 14:19:45 -04:00
DD
893f85bdfe
rename the bound type and fix cache flags
2018-10-25 14:19:45 -04:00
DD
f85e3a7947
Use different bounds for different situations
2018-10-25 14:19:45 -04:00
DD
edfa5aedfa
Implement more accurate text measurement, but bounding boxes are totally broken and RTL needs checking
2018-10-25 14:19:45 -04:00
DD Liu
afa659639e
Merge pull request #20 from fsih/fixCanvasDep
...
Update canvas prebuilt
2018-10-24 15:14:39 -04:00
DD
00a611054e
Try removing latest node
2018-10-24 15:02:48 -04:00
DD
dd85e737f2
Update canvas prebuilt
2018-10-24 14:38:26 -04:00
DD Liu
4048590cde
Merge pull request #19 from fsih/mergePaper
...
Merge paper.js head
2018-10-23 16:48:39 -04:00
DD
46436c561b
Merge branch 'doubleUpstreamDevelop' into mergePaper
2018-10-23 10:40:50 -04:00
DD
ab7fa1e091
Merge branch 'doubleUpstreamDevelop' into mergePaper
2018-10-23 10:16:40 -04:00
sasensi
8ce5cc97cc
Minor code cleaning
2018-10-20 15:59:18 +02:00
sasensi
e9135589b1
Fix mousedrag error with in front items
...
When dragging item A behind item B, mousedrag event was emitted on
item B instead of mousemove.
Bug introduced in fbd5eeb
Closes #1465
2018-10-20 15:59:18 +02:00
sapics
f50a81e089
Minor code minifier
...
We can minify some codes which relate matrix.decompose(),
because matrix.decompose() must return non-null object
2018-10-20 15:14:41 +02:00
sasensi
6a3b8fc384
Minor code refactoring to try to make online build pass
2018-10-17 18:08:54 +02:00
sasensi
07d2edac74
Fix mouse interactions tests error
...
Mouse interactions tests only passed in `gulp load` context.
This make sure that native event classes are used in built context.
This also remove the reference to `CanvasProvider` which is not
available in built context.
Fixes bug introduced in #1570
2018-10-17 18:08:54 +02:00
sasensi
bd70511b70
Add documentation for PaperScope#setup(size)
...
Documentation did not mention that a size can be passed as argument to
PaperScope#setup() and Project#initialize() for usage of paper.js in
web workers.
Closes #1412
2018-10-17 17:43:06 +02:00
Jürg Lehni
d325fce909
Travis CI: Fix error during tests
2018-10-17 17:38:42 +02:00
Jürg Lehni
5b6b5225fc
Switch back to load.js versions on develop branch.
2018-10-17 17:33:08 +02:00
Jürg Lehni
e5cedd3cef
Release version 0.11.8
2018-10-17 17:05:40 +02:00
Jürg Lehni
c9f4f730a9
Switch back to load.js versions on develop branch.
2018-10-17 17:00:54 +02:00
Jürg Lehni
8518baf6bb
Revert temporary publish hack
2018-10-17 17:00:18 +02:00
Jürg Lehni
3cc3ce8f13
Release version 0.11.7
2018-10-17 16:56:58 +02:00
Jürg Lehni
e043c6cbd5
Fix issues with gulp publish script
2018-10-17 16:49:04 +02:00
sasensi
3fd73f92f2
Minor code refactoring
2018-10-17 14:40:05 +02:00
sasensi
1bd67b2d9b
Add mouse interaction tests
...
- Tests common mouse interactions scenarios to prevent regressions
when making changes. These tests are not run in node context.
- Prevent name collision between Javascript native classes and Paper.js
classes (Event and MouseEvent) by patching load.js.
- Uses a polyfill for MouseEvent which is missing in PhantomJS.
- Adds View._clearState() method and use it in tests to make sure that
each new test is started with a fresh state.
2018-10-17 14:40:05 +02:00
Jürg Lehni
44a31c9399
Reword CHANGELOG for #1338
2018-10-15 11:04:11 +02:00
sapics
e3ed85e395
Fix error in single segment closed path flatten
2018-10-15 11:01:51 +02:00
sapics
623c554dfe
Remove PaperScript code from core version
2018-10-15 10:53:06 +02:00
sapics
3e15cf09c2
Trim space in jsdoc comment
2018-10-15 10:19:45 +02:00
Jürg Lehni
348886365a
Revert "Improve use of global matrix in selected position"
...
This reverts commit 91d3499191
.
2018-10-15 10:12:15 +02:00
Jürg Lehni
91d3499191
Improve use of global matrix in selected position
...
Relates to #1545
2018-10-14 23:12:03 +02:00
Takahiro Nishino
6f2d75442c
Improve color parsing for 4 characters hex code ( #1565 )
2018-10-14 21:44:22 +02:00
Takahiro Nishino
d070286cde
Add Takahiro Nishino to contributors list ( #1564 )
2018-10-14 21:43:37 +02:00
Jürg Lehni
921eb17ac0
More work on CHANGELOG for release of 0.11.6
2018-10-13 19:58:12 +02:00
Samuel Asensi
54b20c0268
Improve global matrix cache invalidation performance ( #1563 )
2018-10-13 19:53:45 +02:00
Jürg Lehni
70e58162f0
PaperScript: Better deal with compile exceptions
2018-10-13 18:49:54 +02:00
Jürg Lehni
d6d5accd1a
Allow PaperScripts to export from their code
...
Supporting `export default`, named exports, as well as `module.exports`
2018-10-13 18:44:25 +02:00
Jürg Lehni
c41509479f
Use separate ChangeFlag for matrix changes
...
See https://github.com/paperjs/paper.js/pull/1552#issuecomment-429547010
2018-10-13 16:44:35 +02:00