Jürg Lehni
af2415333b
Test against stable node again
...
Now that we’re on resemblejs 3
Relates to #1591
2019-06-05 18:24:32 +02:00
Jürg Lehni
da137fa8e4
Use comparePixels() instead of compareCanvas()
2019-06-05 18:16:56 +02:00
Jürg Lehni
2cb55a839d
Update dependencies
2019-06-05 18:13:22 +02:00
Jürg Lehni
88c4275fa3
Keep code on 80 chars per line
2019-06-05 17:36:56 +02:00
Jürg Lehni
022a4c9c81
Fix temporary test name
2019-06-05 17:35:42 +02:00
Jürg Lehni
9cafb6d55f
Only set src attribute if it’s not empty
...
window.Image does not support clearing the attribute by setting it to null
2019-06-05 17:35:21 +02:00
Jürg Lehni
de36f39cbf
Fix Raster#clear() to propagate content change
2019-06-05 15:31:09 +02:00
Jürg Lehni
330b7d0eb9
Avoid clash with --branch
argv in Node 10
2019-04-11 20:01:31 +02:00
Jürg Lehni
a769831809
Update CHANGELOG for upcoming v0.12.1
2019-04-11 19:52:17 +02:00
Jürg Lehni
ea91efe810
Add Raster.clear() to clear associated canvas
2019-04-11 19:38:19 +02:00
Jürg Lehni
e436d44f14
Allow new Raster(size)
constructor
2019-04-11 19:38:19 +02:00
Jürg Lehni
fcfebdc43b
Include Raster.context accessor
2019-04-11 19:38:19 +02:00
sapics
6fc1b122d6
Add stackoverflow for Questions
2019-01-05 12:28:34 +01:00
Takahiro Nishino
cc135eaba8
Merge pull request #1636 from sapics/chore/update-copyright-year
...
Update copyright year to 2019
2019-01-03 20:07:09 +09:00
sapics
be4199b6eb
Update copyright year to 2019
2018-12-27 16:13:01 +09:00
Paul Kaplan
a4667ddd7e
Merge pull request #25 from fsih/addSpacesToTspans
...
Set preserve spaces, and insert spaces on blank lines when exporting text from Paint
2018-12-20 13:26:52 -05:00
DD Liu
f6b8f8e309
Set preserve spaces, and insert spaces on blank lines when exporting text from paint. This makes render show the right thing.
2018-12-18 16:43:09 -05:00
sapics
5904a288e7
Fix css color parse
2018-12-14 11:44:24 +01:00
sasensi
449c5c3e6d
Fix Tween#then()
documentation.
...
Bug introduced in 9c684091f4
: example
variable was renamed from `item` to `circle` in declaration but later
calls were still done with `item`.
2018-12-03 15:04:22 +01:00
sasensi
a7c2fb3ddf
Improve Color.random()
documentation.
2018-12-03 14:46:50 +01:00
sasensi
b8a0743e3d
Avoid using _
as parameter name.
2018-12-03 14:41:47 +01:00
sasensi
f25690aa91
Rename type definition file to paper.d.ts
.
2018-12-03 14:41:47 +01:00
sasensi
bbd65324bc
Add typescript definition generation
...
This add a gulp task (`gulp docs:typescript`) to automatically generate
a typescript definition for the library. This should solve the problem
of having an out of sync type definition when we change the API.
This task takes advantage of existing JSDoc parsing to generate a
temporary file which is later formatted through a mustache template to
generate the final definition. This definition is then tested by
compiling a typescript file that use it.
The generated definition is added to the `gulp zip` task in order to be
published along with the bundled library.
So 2 new dev-dependencies are added with this change: `mustache` and
`typescript` packages. Using node and mustache to generate the
definition instead of relying on existing templating system is
motivated by a better development experience, with easier debugging
possibilities... through the usage of more modern tools.
As a side note, support of "rest parameters" (when a parameter can be
present multiple times) is added to existing JSDoc parser in order to
support this pattern on typescript side (E.g. for `Color#set()` method
which accept any sequence of parameters that is supported by `Color`
constructors).
2018-12-03 14:41:47 +01:00
Jürg Lehni
0cced9788c
Switch back to load.js versions on develop branch.
2018-12-03 14:29:13 +01:00
Jürg Lehni
a66391678e
Release version 0.12.0
2018-12-03 14:26:23 +01:00
Jürg Lehni
8ef5773ea1
Update CHANGELOG for upcoming v0.12.0
2018-12-03 14:19:11 +01:00
Jürg Lehni
4a5f558057
Some minor tween example changes
2018-12-03 13:59:51 +01:00
Jürg Lehni
9c684091f4
Move Tween class to anim namespace + changes
...
- Change from item to object, as it can be used to tween any property on any object really
- Make _handleFrame() private
- Minor documentation tweaks
2018-12-03 12:51:31 +01:00
arnoson
104d5eeef1
Merge pull request #1622 from sasensi/add/tween-documentation
...
Add Tween documentation
2018-12-03 10:27:10 +01:00
sasensi
a97382d1c5
Document tween update event as Tween#onUpdate
.
2018-12-03 09:44:37 +01:00
sasensi
6d411e9b7f
Add Tween documentation
2018-11-30 15:10:31 +01:00
sasensi
f2b6e67bcb
Fix Item#tweenFrom()
documentation example.
...
Example code was not matching example title.
2018-11-30 12:07:01 +01:00
sasensi
266cf365f5
Fix Item#tween()
documentation.
2018-11-30 11:50:10 +01:00
Jürg Lehni
e52a33b9cb
Fix linting errors
2018-11-29 14:10:08 +01:00
arnoson
684f504930
Implement tweening
2018-11-29 12:04:03 +01:00
Jürg Lehni
d46b6cbef4
Fix Emitter.once()
2018-11-28 11:40:17 +01:00
Jürg Lehni
b1705f628b
Fix typos
2018-11-21 11:58:22 +01:00
sasensi
a4a2fb7eef
Fix various documentation problems
...
- typos in comments
- wrong or missing types
- missing default values
2018-11-21 11:27:51 +01:00
sasensi
b363a5cc95
Remove Line from documentation
...
Line class was not displayed in online documentation but it was parsed
and a file was created for it because it lacked a @private JSDoc tag.
2018-11-21 11:21:51 +01:00
sasensi
dd2c15ac83
Add documentation for Color.random()
2018-11-21 11:18:02 +01:00
Takahiro Nishino
27d9903c74
Merge pull request #1609 from sapics/doc/add-param-type-in-raster-method
...
Add param type in raster method
2018-11-20 08:53:17 +09:00
sapics
531479c0a0
Add param type in raster method
...
Add param type in Raster#getPixel and Raster#setPixel
2018-11-20 08:44:38 +09:00
sasensi
ef7beacd8b
Fix several return values documentation
2018-11-17 09:37:06 +01:00
sasensi
12731f2fd1
Fix typo in Raster#getCanvas documentation
2018-11-16 18:58:18 +01:00
sapics
cfc5a912da
Replace url to avoid redirection
...
Replace http://jonathanpuckey.com to https://puckey.studio
2018-11-14 11:24:32 +01:00
sapics
d8f9eb8890
Replace http to https in comment
...
http://www.w3.org/TR/SVG/ * to https://www.w3.org/TR/SVG/ *
2018-11-14 11:24:04 +01:00
sapics
c219bb7345
Replace http to https in comment
2018-11-14 11:22:29 +01:00
Samuel Asensi
2968faad51
Fix empty image drawing ( #1605 )
...
Empty raster (for example coming from path with empty bound
rasterization, ...) drawing threw error.
This change prevent raster drawing in that case.
Closes #1320
2018-11-14 11:21:40 +01:00
DD Liu
f69748fc06
Merge pull request #23 from fsih/rasterSmoothing
...
Default raster smoothing to false for Scratch
2018-11-13 16:56:31 -05:00
sasensi
8202f78453
Fix typo in Color#convert documentation
2018-11-13 10:12:59 +01:00