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
Improved handling of http::Request and http::Response
in Socket directly with better error handling and
automatic socket shutdown on error.
We shouldn't need to manually serialize into the
socket's buffer when sending a Request or Response.
Change-Id: I6dfcd2fe4f6b88cd2fa8c749045ce25a8c52fe9a
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
The server, upon request via /echo URL,
returns in the body of the response whatever
is sent in the URL past the "/echo/" prefix.
And use socket::flush() where possible.
Change-Id: Idbb9b70cde69b9030f3f7768185f7ecf0ea321fd
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
To be used as a loopback http test server.
Change-Id: Ifb6109f9d49d8cedb8e8502fed8bf426898201a2
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Reduces the chance of transient timeouts
due to network issues or load.
Change-Id: I286aa0035546f0c409dddb86654256fce2eb1983
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
We shouldn't need to erase from the in-buffer manually
anywhere. This utility encapsulates this functionality
well and protects against off-by-one errors.
Change-Id: I53616444ac9811a1e22d23d96a9cac8965b8518b
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>