where we set "zoomChanged". So we should have another state variable
waitForTiles to wait for tiles instead of re-using zoomChanged.
Conflicts:
loleaflet/src/layer/tile/CanvasTileLayer.js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I3bd71fb97694a56be5f49a9e7b7ac7b9c49caa88
(cherry picked from commit c9d6d9f569fcee3516a55d3f3a8719b7338687a4)
by moving allowJs and checkJs out of tsconfig as vscode assumes default
outDir and rootDir which we can set only via cli call to tsc as they are
makefile configurables.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I3ba3bc98018c6d738c8767ff9f4affc3c33602c3
There may be warnings on first run after application of this patch due
to ts->js files present src/ due to previous per file compilation.
Cleaning those files will get rid of the warnings. These are removed
from .gitignore files to avoid confusion.
Now we rely on tsc to do the incremental builds so it is much faster.
Checking of js files is disabled for now as it reports a lot of type
errors.
Caveat: Compilation of mocha tests, admin (those outside src/) are still
using the file by file compilation.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ic22b265de0b111165224885c4736486fffa016d8
Fix some issues it found and disable the following checks for now. Some
of them needs module support to work and some of them needs project
compilation using tsc rather than per file compilation.
cypress_test/ extends loleaflet's eslintrc so, its package.json needs to
have the typescript lint plugin as well.
Disabled checks:
@typescript-eslint/no-unused-vars // This can be enabled after fixing
all places it finds.
@typescript-eslint/no-inferrable-types // Lets do explicit typing
whenever we can.
no-var // This needs a lot of conversion of var to let.
@typescript-eslint/no-explicit-any
@typescript-eslint/no-namespace // ES5 has no module support
no-inner-declarations // ,,
no-constant-condition // This is sometimes useful
@typescript-eslint/triple-slash-reference // ES5 no module support.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib4fd8b4fcee42216d4322fd043a1873302db375a
Ensure grid lines drawn for specified area confines to that.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9b294db3e9cdf4721717b695aead35bce5333c08
use window instead of document.
now it works also in chrome.
always show curos on add.
Change-Id: Id58b8810fb6a8d5ba00369308cce1dd201b7340a
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
When Points were created with floating point numbers
the overlay wasn't shown on the right side of the chart.
Change-Id: I069927c5e6a97a7155878bdd8f4645b11dbe8493
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
- Fix positions and backgrounds
- Draw: no need to hide presentation controls anymore (was affecting position)
- Make sure scroll bar is not getting different styles from browser thus affecting position
- happening on FF
Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I479cf7d01023ffc611a3cfa6a5fb90fb0dbda1d7
Currently translated at 6.9% (26 of 372 strings)
Translated using Weblate (Malayalam)
Currently translated at 40.0% (2 of 5 strings)
Co-authored-by: Ron Stephen Mathew <ronstephenmathew@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/code-welcome-text/ml/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/ml/
Translation: Collabora Online/CODE welcome text
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I086eb775b52118a37a426e1300bc46108062add9
Currently translated at 100.0% (18 of 18 strings)
Translated using Weblate (Basque)
Currently translated at 100.0% (420 of 420 strings)
Translated using Weblate (Basque)
Currently translated at 77.7% (14 of 18 strings)
Translated using Weblate (Basque)
Currently translated at 100.0% (371 of 371 strings)
Co-authored-by: Gontzal Manuel Pujana Onaindia <thadahdenyse@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/collabora-online/android-lib/eu/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/help/eu/
Translate-URL: https://hosted.weblate.org/projects/collabora-online/ui/eu/
Translation: Collabora Online/Android lib
Translation: Collabora Online/Help
Translation: Collabora Online/UI
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I03404b92f62f11b8bbbc6d549a3370873a5461bb
Load full JSON on the beginning and later don't
rebuild on switching tabs.
Change-Id: I0b63c3f3dfa43a7b5cd4f580ab542e9f5022a5ec
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
this will allow to use toolboxes without id
Change-Id: Ic5eb5ac249b9d1317fccc2143f10af292f564b52
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Conflicts:
loleaflet/src/layer/tile/CanvasTileLayer.js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I2163918a721db540cc02a73e0d75753dbccc9996
In Writer the tiles wont be sent for margin areas so waiting for all
tiles will hang forever. This is more apparent in low zoom levels where
the page margins are visible. So lets put a cap on waiting time instead
and hope the tiles would have arrived by then. If not it will cause a
flicker, but this is better than the document freezing due to infinite
loop.
Conflicts:
loleaflet/src/layer/tile/CanvasTileLayer.js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5f2fe5bac7e20cb0cc1417df078a1722b55cd08a
Cancel the swipe's autoscroll animation frame as soon as we enter pinch
zoom and don't leak it.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I5ae4ffc00c426fdb4f30bae5e759c77ecc88e5a3
Conflicts:
loleaflet/src/layer/tile/CanvasTileLayer.js
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I9089ec3adf1982e19f1ff08acffed73859f75752
The fix is to avoid pinch zoom when swipe action has not finished yet.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6cc9bf01ed3411f3dceea10326c4be7a6f0914d4
Keep the lineWidth constant and equal to the 100% zoom value during zoom
animation.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I7a35654cc563eead7f58f4545dca3a307fa31422
When the canvas to draw the tiles is offscreen, always clear background
and draw grids. When drawing grids for offscreen canvas, use the correct
paneOffset as offscreen canvas has a extended pane area (meant to handle
zoom out).
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I202c6cd8540f0d3e501c6290412bf511ee28176b
Earlier it used the main canvas context for clearing and drawing grid
always. This breaks the offscreen canvas contents and overwrites the
main canvas when trying to update offscreen canvas.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I6fe21bd20b1862f32a1e06828b22567b566809bf
Tile section is already cleared if call arised from requestRedraw(). So
do per tile pre-clearing for async tiles painting.
Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: I406f6cf2a9c77f81237a1be5a9e6dcf0b600a1de
RowColSelCount is used for 2 different states.
Signed-off-by: Gökay Şatır <gokay.satir@collabora.com>
Change-Id: Ia5f68ca15881102a42016e80ea0b947c0e4d9106