2100 Commits

Author SHA1 Message Date
Tom
9d6a785aac add comment; clean up console.log messages from testing 2024-04-27 16:41:18 -04:00
Tom
f2c8db5db0 fix #2517 2024-04-27 16:38:30 -04:00
Tom
7ce5499868 fix comments 2024-04-11 12:45:11 -04:00
Tom
f7c8e4cf33 fix canvas drawer when viewport is flipped and tiled image is rotated. fix webgl drawer debug info when viewport is flipped. 2024-04-10 16:42:15 -04:00
frameflare
0ba2f75213 Signed-off-by: frameflare <yangzenghua@outlook.com>
chore: fix some comments

Signed-off-by: frameflare <yangzenghua@outlook.com>
2024-04-07 10:50:24 +08:00
eug-L
4451131999 update flags for setMaxZoomPixelRatio 2024-04-05 12:47:15 +08:00
eug-L
b0926b3e69 Getter & setter for Viewport.maxZoomPixelRatio 2024-04-04 16:02:09 +08:00
eug-L
5990e5649b update error message for Viewport.imageToViewportZoom 2024-04-03 23:06:42 +08:00
Ian Gilman
262d04c6c6
Merge pull request #2492 from pearcetm/fix-webgl-tilepadding
Make WebGLDrawer deal with tiles with padding
2024-03-07 09:29:19 -08:00
Tom
029a40aa21 deal with tiles that have padding 2024-03-05 15:39:54 -05:00
Tom
3e04c8854e make navigator.update's parameter optional, default to navigator.viewer.viewport 2024-03-05 13:01:42 -05:00
Aiosa
e0f442209b Fix black viewport with testing filtering demo on webgl renderer. Introduce managed mock getters for tests. 2024-03-05 10:48:07 +01:00
Tom
2cb1835533 fix docs 2024-03-04 21:32:14 -05:00
Tom
c177246675 fix #2490 2024-03-04 21:28:12 -05:00
Aiosa
e2c633a23b Small bugfixes, rename some properties. Add more redraw calls. 2024-03-04 19:23:47 +01:00
Aiosa
47419a090a Fix circular references in JSON test log serialization. 2024-03-04 10:49:05 +01:00
Aiosa
52ef8156c0 Fixed: internal cache not allways calling destructor, refresh handler was not called on internal cache. Polish code. Improve filtering demo. 2024-03-03 17:59:39 +01:00
Aiosa
a9b50a8fdb Test fixes (except gl null reference error - test fails sometimes). 2024-03-03 16:39:15 +01:00
Aiosa
135fa76fde Merge webgl PR - problems with tained canvas and texture upload. 2024-03-03 15:17:54 +01:00
Aiosa
360f0d6796 Fix docs, commit before upstream merge. 2024-03-03 14:50:01 +01:00
Tom
e4fd005fb0 Mark TiledImage as needing an update when position, scale, or rotation are set with immediately=true 2024-02-29 16:44:09 -05:00
Ian Gilman
01e70ab7d8
Merge pull request #2472 from pearcetm/canvas-fallback
In webgl drawer, fall back to canvas drawer for tiled images with tainted data
2024-02-27 09:33:06 -08:00
Tom
b6501a3786 fix typo in docs. change to options object for requestDrawer API 2024-02-22 13:30:05 -05:00
Tom
5df791fc82 support viewport flipping for clip and cropping polygons in webglviewer 2024-02-21 18:12:22 -05:00
Tom
ae5f08b9bd call _setClip for test spyOnce 2024-02-21 17:53:23 -05:00
Tom
a0bcbc4d21 fix clip behavior with webgl drawer 2024-02-21 17:49:46 -05:00
Tom
c6e3e06194 Merge branch 'master' into canvas-fallback 2024-02-21 16:13:36 -05:00
Tom
99c35aa3cb consolidate drawer creation into viewer api. add drawer-error event 2024-02-21 16:01:18 -05:00
Tom
02898cfc17 clean up bound event handlers in webgldrawer.destroy 2024-02-12 18:05:33 -05:00
Ian Gilman
4c331a2000
Merge pull request #2468 from thec0keman/fix-this-scoping
Fix `this` scoping
2024-02-12 09:52:01 -08:00
Tom
6e4914ada3 better cleanup for html drawer in destroy 2024-02-12 09:32:17 -05:00
Tom
8967e2bb03 support hot-swapping drawers with viewer.setDrawer() 2024-02-12 09:30:26 -05:00
Tom
0a154a3b21 In webgl drawer, fall back to canvas drawer for tiled images with tainted data 2024-02-11 11:51:38 -05:00
Aiosa
63f0adbc15 Fix issues with tile reference in cache: keep the 'most fresh' ref. 2024-02-11 17:18:03 +01:00
Aiosa
d91df0126b Add base drawer options and fix docs. Implement 'simple internal cache' for drawer data, optional to use. 2024-02-11 11:27:02 +01:00
Tom
3f21f84df4 clean up code added for testing 2024-02-09 18:16:30 -05:00
Tom
c734de531f fix placeholder positioning for canvas drawer 2024-02-09 17:18:54 -05:00
Tom
d4e82d374e account for viewport rotation in addition to tiledImage rotation 2024-02-09 15:19:40 -05:00
Tom
5b2c6d7ed9 add support for placeholderFillStyle to webgl drawer. fix spring logic to avoid getting stuck updating due to floating point math. update tilesource-swap demo. 2024-02-09 15:06:52 -05:00
John Ratcliff
8f483a3ba0 Fix this scoping 2024-02-09 11:23:38 -08:00
Aiosa
cae6ec6bee Revert weird tiledImage check - tests worked now also without. Add generic drawerswitcher utility for demos. 2024-02-08 13:11:10 +01:00
Aiosa
a97fe34d74 Remove merge marks. 2024-02-05 09:47:10 +01:00
Aiosa
9ef2d46e75 Fix tests: always fetch up-to-date pixel values, prevent adding loaded tile to the 'bestTiles' array. Enforce _needsDraw check to be based on lastDrawn - we are async now. 2024-02-05 09:42:26 +01:00
Aiosa
fcf20be8ea Drawers now use new cache API to draw onto a canvas. The type conversion now requires also the tile argument so that conversion can rely on the tile metadata. 2024-02-04 18:48:25 +01:00
Aiosa
3fa13570ef Resolve Merge with First WebGL PR: code is merged, but not operable [drawer refactoring needs interaction implemented with cache system]. 2024-02-04 15:41:05 +01:00
Ian Gilman
e3c3634266
Merge pull request #2466 from pearcetm/fix-docs
fix jsdoc formatting for drawer classes
2024-02-02 09:26:43 -08:00
Tom
3ced918fb4 fix jsdoc formatting for drawer classes 2024-02-01 14:29:10 -05:00
Tom
23e50b6038 fix jsdoc formatting for drawer classes 2024-02-01 14:24:25 -05:00
Ian Gilman
2e0868023a
Merge pull request #2464 from jonasengelmann/fix/touch-gesture-dragToPan
Fix dragToPan when flickEnabled is activated
2024-02-01 09:38:28 -08:00
jonasengelmann
e08274e2b0 fix dragToPan when flickEnabled is activated #2463 2024-02-01 18:01:21 +01:00