Jachimike Onuoha
0f1de455e2
Recreated panHorizontal & panVertical bug
2021-11-29 16:40:26 -05:00
Alistair Buxton
eebfdc1391
Improve the flipping example
...
Adds tiled images to the viewer at creation so that they are properly
centred.
This also checks the current state of the test checkboxes on loading.
Some browsers, notably Firefox, will remember the value of checkboxes
across reloads. This can lead to the checkboxes being out of sync with
with viewer after a reload.
An alternative is to set autocomplete="off" on each checkbox element.
This will force the browser to reset the field to the default specified
in the HTML. However I think checking the actual value is preferable
as it means the defaults are only specified in one place.
2021-03-23 03:22:13 +00:00
Alistair Buxton
7552806a47
Force reload tiles when the tile's flip doesn't match the image
...
Flipping an image changes the bounds of each tile. The existing
code assumes that cannot happen. getTile() calculates the tile
bounds the first time it is asked for a particular tile. It then
caches and returns the same time on every subsequent call.
getTile() has a check to test if a tile exists in the cache. If
it does not, the tile is created and inserted. In order to make
tiles be rebuilt after a flip, we only need to check if the tile's
flip matches the image's flip. If not, we can recreate the tile
as if it did not exist.
To make this a bit clearer, the tile's flipped flag is now set
in getTile() rather than positionTile().
This makes setFlip() work.
2021-03-22 06:45:26 +00:00
Alistair Buxton
3161808a9d
Add a basic setFlip method to TiledImage
...
This doesn't fully work - even raising a bounds-change doesn't seem
to be enough.
2021-03-19 17:16:25 +00:00
Alistair Buxton
53052c8c08
Add flipping example
...
This isn't complete - the flip toggles do not work as setFlip() is
not implemented. The second image is currently always flipped.
2021-03-19 15:45:21 +00:00
Takuma Kira
344ddb924f
- Undo removing prefixUrl option in memorycheck-with-simple-image demo.
...
- Define destroy method in TileSource class, call ImageTileSource.freeupCanvasMemory method as optional from TileSource.destroy method and remove TODO.
2020-03-23 11:29:07 +09:00
Takuma Kira
6cb57aa66c
- Make ImageTileSource.freeupCanvasMemory method private and call it from ImageTileSource.destroy for consistency.
...
- Add comment to memorycheck-with-simple-image demo how to reproduce the problem.
- Simplify memorycheck-with-simple-image demo.
2020-03-19 12:02:50 +09:00
Takuma Kira
abc11e3eb6
- Add memorycheck-with-simple-image demo to reproduce "Total canvas memory use exceeds the maximum limit" warning and then "null is not an object (evaluating 'smallContext.drawImage')" error.
...
(To get them, click Create button 12 times on "iPad Air (3rd generation) -- 13.3" Simulator on Mac with Web Inspector by Safari.)
2020-03-18 14:36:56 +09:00
zero41120
a885c33433
1540 Remove support for array in the demo UI
2020-02-10 16:19:36 -08:00
Yansong Hong
956c830f3e
1540 Add point support on the demo page
2020-02-07 16:04:16 -08:00
zero41120
94183f7f18
1540 Change innerHTML to value to sync user input
2020-02-06 13:50:15 -08:00
zero41120
2d971af445
1540 Add feature to crop tiledImage with multiple polygons
2020-02-06 13:46:14 -08:00
Mark Allen Matney, Jr
42060a49b5
Added HTML tests for ImageJob timeout
2018-09-10 00:58:24 -07:00
Fabien Rohman
b055f6fe54
Fix issue #1504
2018-08-10 10:23:33 +02:00
Zsolt Ero
d44e907910
added tests for scaleFactors [1]
2018-02-16 21:14:28 +01:00
Jose
aabfa32595
Merge conflict resolved
2017-07-10 23:01:04 +02:00
John Perdue
bfa0ac0137
Added setDebugMode function to Viewer.
...
Added SetDebugMode tests.
Update in respose to PR review.
2017-06-19 21:29:41 +01:00
Ian Gilman
7d3a32d372
Reverting accidental change to basic.html
2017-05-24 09:40:45 -07:00
Ian Gilman
5dc6700f0c
Changelog for #1201
2017-05-23 10:02:19 -07:00
Sean Nichols
4e6badc548
Fix format of Range headers
2017-05-08 15:24:55 -04:00
Sean Nichols
b909caaf45
Add some tests for AJAX tile loading
2017-05-08 11:14:26 -04:00
Sean Nichols
6fdf81f266
Ignore falsy header values and improve ajaxHeaders documentation
2017-05-05 15:37:33 -04:00
Sean Nichols
15fe35a589
Improve documentation and option/argument names
2017-05-05 15:37:33 -04:00
Sean Nichols
ddab768696
Add options for loading tiles via AJAX and custom AJAX request headers.
2017-05-05 15:37:33 -04:00
Daniel Berthereau
f3198929b0
Added a demo file for the Zoomify format.
2017-03-13 00:00:00 +01:00
Jose
70bdc8839e
Some issues solved
2017-02-20 20:23:25 +01:00
Jose
d5b62aabcd
Patch to fix issue #697 , also contains improvements when panning under certain constrains
2017-02-19 17:36:53 +01:00
Antoine Vandecreme
0685d8a3a4
Use outline instead of border in overlay demo.
2016-04-01 09:19:40 -04:00
Antoine Vandecreme
577327a629
Change overlays to now always having Point location.
2016-03-30 15:12:50 -04:00
Antoine Vandecreme
3e3ce188b1
Add scaleWidth and scaleHeight options to overlays.
2016-03-25 16:49:58 -04:00
Tom Crane
f7c9585003
Support tile-less IIIF as per LegacyTileSource: Fix #737
2016-01-09 14:04:21 +00:00
Ian Gilman
0d43f7e01a
Fixing white space
2016-01-06 17:25:58 -08:00
Antoine Vandecreme
52f8ad6aa2
Fix coordinates conversion with rotation.
2015-12-11 19:07:23 -05:00
Grant Echols
9e142313d6
Added small checks around code to make m2 sample work locally.
2015-08-11 09:24:35 -06:00
Ian Gilman
e93a0862bd
Added demo for TileSource swapping
2015-07-03 10:19:10 -07:00
Rick Smith
cdf1942202
Create demo for creating an overlay
2015-06-23 16:02:46 -06:00
Ian Gilman
6ffc81760c
Merge pull request #662 from avandecreme/coordinates
...
Add coordinates conversion methods to TiledImage.
2015-06-19 13:13:12 -07:00
Antoine Vandecreme
fa868a039d
Fix editorconfig config.
2015-06-11 10:49:32 -04:00
Antoine Vandecreme
aa021d87c0
Add coordinates conversion methods to TiledImage.
2015-06-02 16:41:37 -04:00
Antoine Vandecreme
f5ede70018
Fix coordinates demo.
2015-05-09 12:49:32 -04:00
Ian Gilman
823e9c3d22
Non-Harvard version of M2 clip demo
2015-03-20 10:17:27 -07:00
Ian Gilman
e1d36ffb14
First version of clip feature
2015-03-18 10:03:44 -07:00
Ian Gilman
19ade7d76d
Improved zoom and pan constraints
2015-03-11 15:41:36 -07:00
Ian Gilman
815cbd6019
Detail on/off button (m2)
2015-03-09 15:32:38 -07:00
Ian Gilman
2cd54648f0
Demos of alternates and details in non-Harvard version (m2)
2015-02-16 10:45:46 -08:00
Ian Gilman
70e08a02ce
Positioning alternates better (m2)
2015-02-16 10:18:59 -08:00
Ian Gilman
725bc36c4e
Detail view (m2)
2015-02-13 15:55:57 -08:00
Ian Gilman
de18b3dc63
Refactoring (m2)
2015-02-13 14:32:17 -08:00
Ian Gilman
ae7adad5cf
Alternate images (m2)
2015-02-10 14:02:41 -08:00
Ian Gilman
5443eedebc
Fixed positioning issue when going to book mode with tall images (m2)
2015-02-10 11:53:56 -08:00