oro.niccolo
d897e5454f
Added navigator's region rotation
...
When the "navigatorRotate" option is set to false, rotate the navigator's region accordigly to the image rotation.
2023-05-23 09:27:32 +02:00
Ian Gilman
b1274515aa
Tiny basic.html tweak
2023-04-27 14:27:40 -07:00
Tom
8a4c95ef4b
conditional usage of draw() vs event handlers depending on initialization context
2023-03-13 21:39:54 -04:00
Tom
6d1895364f
updates to threejsdrawer, bugxfixes/improvements
2023-03-13 17:43:35 -04:00
Tom
ade59513df
move tile update logic back to TiledImage to keep drawing logic cleaner
2023-03-13 15:56:04 -04:00
Tom
641951aaed
split canvas from html rendering
2023-03-12 11:42:03 -04:00
Tom
6159ca7c7c
cleaning up drawer APIs
2023-03-11 11:38:21 -05:00
Tom
a6e621b562
fix cropping when viewer is rotated
2023-03-06 14:29:39 -05:00
Tom
7c81d068e6
revert debugging changes in overlay demo
2023-03-05 16:12:30 -05:00
Tom
d1b8001adc
finished many implementation details and demo
2023-03-05 16:08:32 -05:00
Tom
376ee38d3c
ThreeJSRenderer nearly complete, starting refactor of core to support plugin drawers.
2023-02-21 18:59:40 -05:00
Ian Gilman
1351ac018a
Merge pull request #2256 from pearcetm/resize-listener
...
work in progress about viewer resize behavior
2022-12-16 13:48:45 -08:00
Tom
564121428c
removed polling vs resizeviewer option from demo
2022-12-14 11:31:12 -05:00
Tom
9daa8feec1
cleaning up changes; modified demo
2022-12-14 09:21:52 -05:00
Tom
69297c0181
Updated resize behavior
2022-12-13 16:49:23 -05:00
Tom
37a024f023
bugfix in getCenter during zoom animation
2022-12-10 07:02:16 -05:00
Tom
86c105beaa
bugfix in getCenter during zoom animation
2022-12-10 06:57:53 -05:00
Tom
54af53cf4e
work in progress about viewer resize behavior
2022-12-07 17:46:25 -05:00
Tom
524b42c778
demo update
2022-12-06 17:21:03 -05:00
Tom
757bf8690e
fix Viewport._fixBounds to work with boundary constraints, and updated the demo page to show the behavior.
2022-12-06 16:42:13 -05:00
Ronny Mikalsen
01a9e3b168
fix: change tileSources in demo for iiif
...
Tile sources on wellcomelibrary.org is no longer available
2022-03-14 14:12:21 +01:00
Jachimike Onuoha
0a06c5b6a4
Updated boolean logic for preventVerticalPan and preventHorizontalPan
2021-12-06 23:33:58 -05:00
Jachimike Onuoha
1fde705785
Fixed Arrowkey panning bug
2021-12-02 14:45:55 -05:00
Jachimike Onuoha
2edf48e880
Temporary fix for arrow key panVertical bug
2021-11-30 17:43:11 -05:00
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
Ian Gilman
f531a18531
Fixed mouse positioning (m2)
2015-02-10 11:42:36 -08:00
Ian Gilman
5161793948
m2 readme
2015-02-04 10:23:24 -08:00
Ian Gilman
80d8d2e96f
Prepped m2 demo for merging
2015-02-04 10:18:36 -08:00
Ian Gilman
408a8f6fd3
400+ collection; repeated nexts (m2)
2015-01-23 16:00:58 -08:00
Ian Gilman
a923c3f09c
Fixed issues with panning in scroll view (m2)
2015-01-22 11:52:08 -08:00
Ian Gilman
54be2b4b48
Fixed issues with window resizing (m2)
2015-01-20 17:19:20 -08:00
Ian Gilman
ec2e4a4e8f
Refactored how scrolling works (m2)
2015-01-20 16:10:24 -08:00
Ian Gilman
adbde4682f
Constraining while zooming out (m2)
2015-01-20 11:23:56 -08:00
Ian Gilman
8c9fbafb06
Resize (m2)
2015-01-15 14:32:42 -08:00
Ian Gilman
1da3418cbe
Selection and hover for thumbs mode (m2)
2015-01-14 17:09:39 -08:00
Ian Gilman
fe2aa52caf
Proper buffer for page and book modes (m2)
2015-01-14 15:09:48 -08:00
Ian Gilman
0c63f35de1
Consistent height for pages (m2)
2015-01-13 16:15:40 -08:00
Ian Gilman
e37564e58c
Better constraints for zooming out from corners
2015-01-13 15:49:53 -08:00
Ian Gilman
8f45207820
m2 constraints
2015-01-13 15:33:03 -08:00
Ian Gilman
0429d8fe7f
Using real book images (m2)
2015-01-09 15:46:57 -08:00
Ian Gilman
c1d93acb27
Better next/previous support (m2)
2015-01-09 15:11:11 -08:00
Ian Gilman
a470d10f4d
* Scroll view: go to current page when entering mode; clamp at first and last (m2)
2015-01-09 14:04:45 -08:00
Ian Gilman
70e461c214
* Correct page height for thumbs (m2)
2015-01-09 13:53:48 -08:00
Ian Gilman
4fa6fea850
Scrollwheel for thumbs (m2)
2015-01-09 11:45:53 -08:00
Ian Gilman
3956e6013a
Clicking into thumbnails (m2)
2015-01-08 14:04:31 -08:00
Ian Gilman
c3d9b102c5
First version of m2 POC
2015-01-08 13:22:23 -08:00
Ian Gilman
a7d9f7dcd5
Fixed broken defaultZoomLevel and homeFillsViewer options
2015-01-02 11:44:35 -08:00
Ian Gilman
c6b1efe85d
Added pause and "add more" buttons to animation demo
2014-12-19 15:55:24 -08:00
Ian Gilman
c9708399a1
Fixed bug with passing single literal tilesource on construction
2014-12-19 15:32:19 -08:00
Ian Gilman
f1610425bc
Navigator now updates when items are moved
2014-12-19 13:57:08 -08:00
Ian Gilman
40d8f84187
Testing
2014-12-12 16:28:02 -08:00