Commit Graph

208 Commits

Author SHA1 Message Date
Tom
16fc72d8fb Take zoom constraint into account within _fitBounds when constraints = true and immediately = false 2023-02-07 18:12:26 -05:00
Ian Gilman
3342b7880d
Merge pull request #2249 from pearcetm/rotated-constraints-fix
fixed viewport constraint behavior when viewer is rotated
2022-12-15 13:57:44 -08: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
7e1b5c5665 fixed typo in documentation 2022-12-07 18:03:59 -05:00
Tom
524b42c778 demo update 2022-12-06 17:21:03 -05:00
Tom
66b4b29424 small cleanup 2022-12-06 16:53:19 -05:00
Tom
256514bca6 small cleanup 2022-12-06 16:52:48 -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
Tom
845cbced69 reverted Viewport.setRotation, created Viewport.setRotationWithPivot 2022-12-05 19:40:30 -05:00
Tom
05997d359c reverted Viewport.setRotation, created Viewport.setRotationWithPivot 2022-12-05 19:38:46 -05:00
Tom
78c6295acf update unit tests 2022-12-02 22:08:15 -05:00
Tom
8744a429f1 added documentation to _raiseConstraintsEvent 2022-12-02 18:48:28 -05:00
Tom
aede32c335 added documentation to getConstrainedBounds 2022-12-02 18:46:57 -05:00
Tom
ac18d5629d fixed viewport constraint behavior when viewer is rotated 2022-12-02 16:43:39 -05:00
Ian Gilman
c92fe116c5
Merge pull request #2246 from pearcetm/boundary-constraints-fix
boundary constraint logic fix
2022-11-30 14:12:16 -08:00
Tom
bd8e8a9e7f add line spacing 2022-11-30 16:48:04 -05:00
Tom
5aa5d7ad56 removed extra space 2022-11-29 17:43:14 -05:00
Tom
554149cf4f merged .gitignore changes 2022-11-28 17:56:05 -05:00
Tom
968cb96bc4 added before-destroy event; reverted viewport boundary constraint changes 2022-11-28 17:54:23 -05:00
Tom
6d35f6df2c boundary constraint logic fix 2022-11-28 17:45:21 -05:00
Tom
6fa8e6695d viewport _applyBoundaryConstraints fix 2022-11-26 12:04:05 -05:00
Tom
7454d4323d updated setRotation param order to match rotateBy/rotateTo, deprecation warning for setting degrees, and private API 2022-11-16 18:07:56 -05:00
Tom
2f174ad552 updated rotateBy 2022-11-15 23:51:44 -05:00
Tom
7f2725ba49 Slight API tweaks; added checks to rotationPivot 2022-11-15 19:01:19 -05:00
Tom
84bbc27a17 Add rotateBy and rotateTo to the API 2022-11-12 18:20:26 -05:00
Tom
bfddf7355b Add rotateBy and rotateTo to the API 2022-11-12 18:18:25 -05:00
Tom
51807a77f0 implemented rotation about a pivot point in viewport coordinates 2022-11-11 22:15:52 -05:00
Shyamkumar Yadav
5baa8d3252
docs: change @return -> @returns 2022-10-10 01:12:18 +05:30
Ian Gilman
d3ef767487
Merge pull request #2136 from jonasengelmann/master
Viewport rotation animation
2022-08-23 14:13:22 -07:00
jonasengelmann
5f50d9e59e reworked setRotation to allow all degree values 2022-08-22 15:34:29 +02:00
jonasengelmann
ddd4a05e5e Revert "always return Euclidean modulo of current rotation"
This reverts commit 32af983910.
2022-07-07 16:31:35 +02:00
jonasengelmann
32af983910 always return Euclidean modulo of current rotation 2022-06-29 20:32:47 +02:00
jonasengelmann
3cdd94e465 constrained rotation to shortest path 2022-06-29 19:47:26 +02:00
Ian Gilman
71a1f06e35
Merge pull request #2160 from joedf/patch-2
apply only zoom constraint by default for scroll events
2022-06-09 15:41:17 -07:00
Ian Gilman
f31179c9ce Updated copyright to 2022 2022-06-08 15:02:29 -07:00
Joe DF
5b7be6be05 implement fixes from iangilman 2022-05-19 16:52:56 -04:00
Joe DF
325f65fe5c attempt no.2 to fix #2160 2022-05-18 11:16:28 -04:00
Joe DF
7d6437b2cd Revert "apply only zoom constraint by default for scroll events"
This reverts commit a6d1472134.
2022-05-18 10:48:58 -04:00
Joe DF
a6d1472134 apply only zoom constraint by default for scroll events 2022-05-12 15:31:51 -04:00
jonasengelmann
62e24ac1ab ensure constructor backward compatibility 2022-04-19 16:43:00 +02:00
jonasengelmann
c16d1e3dff ensure backward compatibility 2022-04-01 10:06:18 +02:00
jonasengelmann
d62538f42e fixed white space 2022-03-31 23:50:38 +02:00
jonasengelmann
ef8e7ad9c5 fixed typo 2022-03-30 23:41:43 +02:00
jonasengelmann
dc2a1534d3 removed modulo for degrees to avoid spining 2022-03-30 22:59:29 +02:00
jonasengelmann
8746e8b243 fixed wrong getHomeBounds 2022-03-30 22:37:14 +02:00
jonasengelmann
1cbc2d96c1 fixed initial degree option 2022-03-29 19:18:25 +02:00
jonasengelmann
8519e30a3a added viewport rotation animation 2022-03-29 16:50:18 +02:00
Clay Coleman
322a22cb68 Allow silencing multi-image warnings 2022-02-25 12:11:06 -06:00
Mark Salsbery
c4351f64e8 stricter linting 2020-06-25 16:01:14 -07:00