Commit Graph

219 Commits

Author SHA1 Message Date
Ian Gilman
31c15aed69 Merge branch 'collections' into ian
fixed Conflicts:
	src/viewer.js
	test/demo/collections/main.js
2014-11-04 09:58:09 -08:00
Ian Gilman
43292c9bcb Merge branch 'collections' into margins 2014-11-04 09:42:45 -08:00
Ian Gilman
de2d473db6 Merge branch 'master' into collections
fixed Conflicts:
	test/test.html
2014-11-04 09:41:28 -08:00
Ian Gilman
ab33d984d3 More unit test fixes 2014-11-04 09:38:16 -08:00
Ian Gilman
00c2881c64 Fixed test breakages 2014-11-03 17:14:17 -08:00
Ian Gilman
a68be6ac68 You can now open multiple images when creating via OpenSeadragon() 2014-10-29 17:14:46 -07:00
Ian Gilman
95836a6ad1 Major overhaul to Viewer.open() 2014-10-29 16:11:21 -07:00
nein09
19844c8f42 Incorporate code review feedback, add a times method to the Rect class. 2014-10-29 09:42:19 -07:00
nein09
e0fbf869c9 Replace more magic numbers with constants. 2014-10-27 18:06:37 -07:00
nein09
2d70ee32fc Remove randomness from test cases. 2014-10-27 17:58:59 -07:00
Ian Gilman
fb6280644a Merge branch 'collections' into margins
fixed Conflicts:
	test/demo/collections/main.js
2014-10-24 15:27:14 -07:00
Ian Gilman
3e1870cde0 Navigator now updates for item index changes and removals 2014-10-24 15:18:32 -07:00
nein09
c1ae3d08f7 More constants, fewer magic numbers. 2014-10-23 16:30:34 -07:00
nein09
72a0ecc195 Force a zoom factor of 2 and make that a constant; find the viewer position in the window for imageToWindowCoordinates (still not sure where the 20 x 20 pixel padding is coming from 2014-10-23 16:13:02 -07:00
Ian Gilman
46cd2ab800 Fixed issue with top/left margins; cleaned up naming 2014-10-21 17:11:09 -07:00
nein09
8494b7ee7f Take out multiplication to avoid precision errors because it doesn't; add viewportToImageRectangle test 2014-10-21 11:19:41 -07:00
nein09
7cf4556cdc Merge remote-tracking branch 'origin/master' into viewport-tests 2014-10-20 15:43:21 -07:00
Ian Gilman
a14bea39aa More margins work 2014-10-17 14:27:24 -07:00
Ian Gilman
2d8652046a First stab at margins 2014-10-16 14:00:07 -07:00
nein09
d9bd3343cc viewerElementToImageCoordinates 2014-10-15 17:00:11 -07:00
nein09
c6dd2f213d imageToViewerElementCoordinates and imageToWindowCoordinates 2014-10-15 16:54:09 -07:00
nein09
59ee91ea1a add test for windowToImageCoordinates 2014-10-15 12:22:52 -07:00
nein09
13045e2ac4 Use propEqual to verify Point values, add a stub test for imageToWindowCoordinates 2014-10-15 11:45:19 -07:00
nein09
e8d4c00c5f Add viewport.js to test.html so tests get run. Use built-in Point functions. Add a helper function to get a random number. 2014-10-09 16:58:45 -07:00
nein09
119ff4226d Add a new test file to hold the viewport tests, and a few new tests to it. 2014-10-02 13:20:28 -07:00
Ian Gilman
e02209092c Navigator now works with multiple images 2014-09-23 16:15:03 -07:00
Ian Gilman
63996a7d92 Merge branch 'master' into collections
fixed Conflicts:
	src/viewport.js
2014-09-17 16:05:23 -07:00
Rob Sanderson
38da88c794 Fixing 2.0 test info.json 2014-09-04 12:28:52 -07:00
Ian Gilman
349e6125ea Improved collections demo: gridTest, crossTest 2014-08-26 15:27:55 -07:00
Ian Gilman
08a38a8602 More test fixes. 2014-08-19 15:27:04 -07:00
Ian Gilman
b2e2b2b125 Renamed layers.js to multi-image.js 2014-08-19 15:03:45 -07:00
Ian Gilman
98111212cd Converted layer tests to multi-image tests 2014-08-19 15:02:35 -07:00
Ian Gilman
796588ace2 Unit test fixes. 2014-08-18 16:32:21 -07:00
Ian Gilman
8efad6f3a0 Fixed home/constraints for multi-image. 2014-08-18 16:04:49 -07:00
Ian Gilman
5c7c1d5b6c Moved Viewport.goHome to Viewer.goHome. 2014-08-12 16:44:53 -07:00
Ian Gilman
48603ba260 Drawer creation now supports width or height rather than scale. 2014-07-31 15:54:20 -07:00
Ian Gilman
298bcc25fb Merge branch 'master' into ian 2014-07-30 09:26:15 -07:00
Rob Sanderson
cbdb0d19be IIIF 2.0 Tiles test 2014-07-28 12:45:52 -07:00
Rob Sanderson
984fb8c531 Fixed drawer, renamed source, fixed tests 2014-07-28 11:53:06 -07:00
Ian Gilman
f97202833f Merge branch 'master' into ian
fixed Conflicts:
	src/viewport.js
2014-07-24 09:40:43 -07:00
iangilman
1e4288f770 Merge pull request #423 from henri-astre-msft/fitBoundsWithConstraints
add fitBoundsWithConstraints() to the viewport.
2014-07-24 09:28:53 -07:00
Ian Gilman
a3973a25e7 Added scaling to drawer. 2014-07-22 11:13:22 -07:00
Ian Gilman
ea6ee54136 Added x and y to drawer. 2014-07-17 16:24:28 -07:00
Henri Astre
d39971f80e renaming fitBounds to fitboundswithconstraints
it looks like github for windows is not detecting filename changes when
a letter change from upper to lower case.
2014-06-23 16:16:38 -07:00
Henri Astre
318071d3ce Cleanup for PR comments
- raise 'constrain' event inside applyBoundaryConstraints
- fix demo title/filename
- various fixes (default immediately to false + add private for
documentation)
2014-06-23 16:10:01 -07:00
Henri Astre
e7d8cff109 adding demo to show benefit of fitBoundsWithConstraints 2014-06-20 16:18:04 -07:00
Henri Astre
a563bdb658 fix .close() called after .destroy() + spacing 2014-06-18 10:35:23 -07:00
Henri Astre
764fa3e34a Fix memory leak while destroying the viewer. 2014-06-17 17:26:10 -07:00
Ian Gilman
eb58d3fd11 Fixed QUnit dependency 2014-06-05 09:53:03 -07:00
Mark Salsbery
41034705c1 Removed mousenter/mouseleave DOM Event Handling from Unit Tests 2014-05-05 10:44:17 -07:00