Peter
6265d389b9
remove BOM
2017-07-31 17:05:18 -04:00
Peter
175463a0f6
different colors for different tiled images in debug mode.
...
If there are multiple tiled images as overlay, it might be important to
see how they are loaded. Different colors in the debug mode for the
different tiledImages visualize that. DebugGridColors have to be given
as a sting array with a color for each tiledImage. However, shorter
arrays will be recycled without error. Also, single strings are treated
as single entry arrays, for backwards compatibility.
2017-07-26 10:57:17 -04:00
Ian Gilman
d71ceebd72
Fixed issue with transparent images disappearing on Safari
2017-06-15 17:28:04 -07:00
Antoine Vandecreme
63a8a2ffa6
Allow tiled image rotation outside the 0 to 360 range
2017-01-21 20:13:32 +01:00
Antoine Vandecreme
fc69c6568d
Animate rotation
2017-01-21 19:40:21 +01:00
Antoine Vandecreme
de25b68b43
Add eslint and hound
2017-01-16 21:41:07 +01:00
Antoine Vandecreme
43bd0e972f
Fix sketch canvas not resizing properly. Fix #973
2017-01-08 11:13:32 +01:00
Ian Gilman
eb8b9ccd50
Merge pull request #1006 from avandecreme/master
...
Tiled image rotation
2016-10-26 09:58:12 -07:00
Antoine Vandecreme
4b48717010
Rollback sketchCanvas scaling when tiled image rotated
2016-10-25 21:41:42 +02:00
Antoine Vandecreme
5ac1502ccd
Take pixelDensityRatio into account when rotating
2016-10-24 22:03:31 +02:00
Antoine Vandecreme
2821c8f67b
Partialy fix edge smoothing.
2016-10-06 22:18:32 +02:00
A
e38c53ff31
Use canvas instead of sketchCanvas
2016-09-23 16:19:08 -04:00
A
c24e8ceedf
Fix IndexSizeError on IE and Edge #1033
...
Internet Explorer and Microsoft Edge throw IndexSizeError when you call context.drawImage with negative x or y or width or height greater than the canvas width or height respectively.
2016-09-23 15:57:35 -04:00
Antoine Vandecreme
2e3f57401f
Fix tiles missing with rotation + rotate around center
2016-08-28 12:10:35 +02:00
Antoine Vandecreme
a9f5e7ec73
Add unit test and fix code review comments.
2016-08-21 12:54:33 +02:00
Antoine Vandecreme
65b59c08d6
First draft of tiled image rotation.
2016-08-17 15:43:08 +02:00
Antoine Vandecreme
684029bc79
Optimize sketch canvas clearing and blending.
2016-04-27 11:08:44 -04:00
Ian Gilman
a244d7ef86
Merge pull request #825 from avandecreme/rotation
...
Fix edge smoothing with rotation.
2016-01-28 11:27:31 -08:00
Antoine Vandecreme
e10eced7d0
Use self instead of _this.
2016-01-26 19:30:09 -05:00
Antoine Vandecreme
43bb0d7741
Only use a larger sketch canvas if the viewport get rotated.
2016-01-26 12:04:34 -05:00
Antoine Vandecreme
a12b74ec17
Fix @lends for new JSDoc. Fix polymorphic functions doc ( #824 ).
2016-01-24 16:09:18 -05:00
Antoine Vandecreme
33021ac24f
Merge.
2016-01-23 18:49:58 -05:00
Antoine Vandecreme
c639dd5123
Fix edge smoothing with rotation.
2016-01-23 18:40:53 -05:00
Mei-Hui Su
69cce5770c
simplify the checks on compositeOperation
2016-01-20 09:48:15 -08:00
Mei-Hui Su
ac0438e07b
Fix the optional check to include null
2016-01-19 22:36:19 -08:00
Mei-Hui Su
41ee1e27fd
put back the 'options.'
2016-01-19 14:29:15 -08:00
Mei-Hui Su
c214e2f0c4
change option compositeOperation default to null instead of 'source-over'
2016-01-19 14:17:52 -08:00
Mei-Hui Su
efc9098ce4
Make setting of globalCompositeOperation optional in drawer.js
2016-01-19 11:49:04 -08:00
Mei-Hui Su
e89d1f4c97
fix couple of typos
2016-01-14 12:42:02 -08:00
Mei-Hui Su
3cfe8ecac2
Merge https://github.com/openseadragon/openseadragon
2016-01-14 12:32:54 -08:00
Mei-Hui Su
ea833a780c
Update to allow setting of globalCompositeOperation when
...
html <canvas> is used to process multiple tiledImages to blend
is a specific way.
(special handling,
when compositeOperation is 'source-over' and opacity is 1,
useSketch is false, otherwise useSketch is true
)
Valid values are 'source-atop', 'source-in', 'source-out',
'destination-over', 'destination-atop', 'destination-in',
'destination-out', 'lighter', 'copy' or 'xor'
http://www.w3schools.com/tags/canvas_globalcompositeoperation.asp
2016-01-06 07:58:36 -08:00
Antoine Vandecreme
ebbf4ea4a0
Rename scale functions with NoRotate suffix.
2015-12-22 18:19:22 -05:00
Antoine Vandecreme
52f8ad6aa2
Fix coordinates conversion with rotation.
2015-12-11 19:07:23 -05:00
Petar Petrov
8bee1e7b8b
doc tweak for edge smoothing changes - #755
2015-11-06 08:55:30 +02:00
Petar Petrov
515c15bf98
various fixes for edge smoothing - #755
2015-11-05 16:19:56 +02:00
Petar Petrov
8c4fcc9ca9
tile edge smoothing at high zoom - #755
2015-11-04 17:04:50 +02:00
Serge Markin
11024f44f2
FIXED: Rotation works improperly on retina display #683
2015-08-20 20:11:30 +08:00
Antoine Vandecreme
dd07771415
Fix drawer.clear
2015-04-22 18:30:49 -04:00
Antoine Vandecreme
9d053c545b
Fix Ian's comments.
2015-04-20 19:25:36 -04:00
Antoine Vandecreme
44395662d1
Add opacity support.
2015-04-19 16:10:37 -04:00
Philip Giuliani
0d056145a3
💄 Rename to drawRectangle
2015-04-15 18:31:56 +02:00
Philip Giuliani
9df77ee915
Return early in drawDebugInfo
2015-04-15 13:40:12 +02:00
Philip Giuliani
21d32b59f5
Pass tiledImage and context to the placeholderFillStyle function
2015-04-15 13:32:41 +02:00
Philip Giuliani
6677953d87
Save and restore inside of the drawer
2015-04-13 19:05:23 +02:00
Philip Giuliani
ff6e604b94
Add comment
2015-04-10 16:20:54 +02:00
Philip Giuliani
1a230d8b9f
Add viewportToDrawerRectangle to Drawer
2015-04-09 19:57:28 +02:00
Philip Giuliani
da819ac15a
Add possibility to draw gradients and images
2015-04-09 14:25:07 +02:00
Philip Giuliani
4523454ff1
Add option to define the fillStyle of the placeholder
2015-04-09 13:44:55 +02:00
Philip Giuliani
fc56c4e2ef
Add method to draw a placeholder
2015-04-08 20:13:56 +02:00
Ian Gilman
c27f68640f
Docs for clip feature, as well as get and set
2015-03-19 16:38:52 -07:00