Mihai Varga
d78642806a
Removed URL tiles specific methods
2015-05-11 17:55:38 +03:00
Mihai Varga
47e301cc92
Parts command from the server is parsed but not yet interpreted
2015-05-11 17:05:03 +03:00
Mihai Varga
4c6d87231c
Parts control for switching between parts
2015-05-11 17:05:03 +03:00
Mihai Varga
90b3b32bbc
Renamed method to _parseServerCmd
2015-05-11 17:05:03 +03:00
Mihai Varga
13582c7f04
Fixed typo
2015-05-11 17:05:03 +03:00
Mihai Varga
febaaa1900
Mouse event handlers for selection
2015-05-08 15:24:47 +03:00
Mihai Varga
1858147801
Twips to latlng and reverse methods
2015-05-08 15:24:26 +03:00
Mihai Varga
affdbc6ff1
Added search command (from the server) handler
2015-05-08 13:58:13 +03:00
Mihai Varga
5dabc12660
Search bar buttons are updated based on the current search index
2015-05-08 13:56:28 +03:00
Mihai Varga
c622852514
Removed the Draw plugin interface
...
We don't actually need this plugin because the server
dictates how the selection will work.
Will remove the whole plugin when I'm sure this won't have other
applications
2015-05-08 11:44:37 +03:00
Mihai Varga
5bde4775f6
Added cancel search button + search bar sends propper events
2015-05-08 11:10:48 +03:00
Tor Lillqvist
d3acdbb225
String::startsWith is Firefox-only it seems
2015-05-06 18:41:09 +03:00
Mihai Varga
15a889db91
Search bar implemented as a leaflet Control
...
It is not ready yet, buttons' functionality and the search
functionality is to be added
2015-05-06 12:39:03 +03:00
Mihai Varga
57a2663cb9
Search bar bax with prev and next buttons
2015-05-06 10:41:26 +03:00
Mihai Varga
1b5f9b1f22
Readme update that describes how to open a doc
2015-05-06 10:08:56 +03:00
Mihai Varga
bc5bee6751
Smoother scroll without intertia
2015-05-06 09:44:32 +03:00
Mihai Varga
b9351c6fed
Forgot to replace evt.data with textMsg
2015-05-06 09:37:44 +03:00
Mihai Varga
6c6f8c29de
Document file path and host are encoded in the url
...
Usage:
http://web-page?file_path=/PATH/TO/DOC&host=ws://localhost:9980
2015-05-06 09:35:22 +03:00
Mihai Varga
22276e7975
Better msg reading method that allows adding new types of msgs
2015-05-04 18:36:47 +03:00
Mihai Varga
4b31303cc0
Let leaflet track window resize
2015-05-04 18:02:32 +03:00
Mihai Varga
55508c6680
Enabled doc. nagivation by keyboard and mousewheel
...
Scrolling now works from the arrowkeys, pgUp, pgDown
Home and End buttons and also from the mouseWheel
TODO update the compressed file
2015-05-04 16:29:23 +03:00
Mihai Varga
bc29447b86
Removed trailing whitespaces from scrollbar code
2015-05-04 16:26:02 +03:00
Mihai Varga
7d3458eb5e
This fixes a bug that's triggered when zooming at document's end
2015-05-04 11:20:36 +03:00
Mihai Varga
a03e9f2e73
Updated readme to reflect the new changes
2015-05-04 11:20:36 +03:00
Mihai Varga
fa15ef1b20
Updated the example document
2015-05-04 11:20:36 +03:00
Mihai Varga
320e094a47
Scroll event handlers + document centering
...
The document is centered by setting map's maxBounds
There are 2 types of scroll events:
- one generated during scrolling which actually pan's the map
- one generated when scrolling stops, this is used to keep track of
scrolling events
When the document is zoomed, the scrollbars are placed at the right
offset as the document's dimension changes and this is done with
the scrollTo method after temporarily disabling the event listener.
2015-05-04 11:20:36 +03:00
Mihai Varga
f0502879b4
New containers + restored some methods implementations to their original
...
Added scrollContainer - the div that will get scrollbars
mockDoc - a mock document div of size equal to the document's, which
will cause the appearance of scrollbars
The size of the map now equals the visible area, so I've restored
the methods to work on this new size
2015-05-04 11:20:36 +03:00
Mihai Varga
c788ab8886
Event handlers for the new scrollbars
2015-05-04 11:20:36 +03:00
Mihai Varga
bee74de059
CSS updates for the new div elements
2015-05-04 11:20:36 +03:00
Mihai Varga
43c68037ec
Custom scrollbars for document navigation
...
jQuery scrollbars, they should be easy to replace if we find something
better, maybe something written in vanilla javascript
Github project: https://github.com/malihu/malihu-custom-scrollbar-plugin
MIT license available at:
https://github.com/malihu/malihu-custom-scrollbar-plugin/blob/master/LICENSE.txt
2015-05-04 11:20:36 +03:00
Mihai Varga
dd8a9f8145
Leaflet small fixes
2015-05-04 11:20:36 +03:00
Tor Lillqvist
1b06290d2b
Add a part parameter to the tile messages
...
The JS code always passes in 0 for now. The server parses the parameter and
calls LibreOfficeKitDocument::setPart() before calling paintTile().
Probably also the status, key, mouse and selection messages will need a part
number. The intent is after all that the protocol is as stateless as
possible. (So maybe we should also pass the document URL in each message?)
2015-04-27 21:30:26 +03:00
Mihai Varga
9cd120f7ab
Restore scrollbar offset
2015-04-27 16:03:50 +03:00
Mihai Varga
b6671341a7
The map handles keypress events but no panning keys
2015-04-27 10:18:13 +03:00
Mihai Varga
7fa1ae861d
The map should not yet handle keyboard events
2015-04-27 09:57:06 +03:00
Mihai Varga
caf7c2e6c6
The map should not trace a resize event
...
The container div should handle the resize by updating the scrollbars
This fixes the map crash during window resize.
2015-04-24 17:21:38 +03:00
Mihai Varga
497a50c76d
Tiles are added again in batch
...
This gives us smoother and faster tile loading
and a tile is requested just once
2015-04-22 20:49:20 +03:00
Mihai Varga
d0f77df767
Removed image link
2015-04-22 20:15:42 +03:00
Mihai Varga
caf1773e54
The map no longer moves when zooming == smoother zooming
...
The zoomed tiles now perfectly match the new ones that are about
to be received from the server.
The zooming factor is again exponentail (1.2) instead of linear.
TODO: when the window size modifies the gets paned out of the bounds
2015-04-22 17:49:06 +03:00
Jan Holesovsky
0214f331e7
test document: Make it clear the white area is deliberate.
2015-04-22 08:41:09 +02:00
Jan Holesovsky
ff81959c7b
Updated the loleaflet README.
2015-04-21 16:03:48 +02:00
Mihai Varga
37dfad0672
Removed pop that displays pixel location
2015-04-15 14:02:33 +03:00
Mihai Varga
3bf5939f8c
We no longer need the timeout
...
Another commit must have fixed the thing that caused the crash
2015-04-15 10:16:47 +03:00
Mihai Varga
62c394f5bd
This does not work well yet
2015-04-15 10:13:57 +03:00
Mihai Varga
57a0050421
Selection handler in leaflet
2015-04-13 20:46:09 +03:00
Mihai Varga
b666dc7d47
This better handles the scroll percentage after zooming
2015-04-13 10:39:12 +03:00
Mihai Varga
54d0af6fb8
How zoom works
2015-04-10 16:29:01 +03:00
Mihai Varga
144c9ab1df
Fixed some js lint errors
2015-04-10 16:23:23 +03:00
Mihai Varga
2aa7f55ea8
Zooming now works properly
...
The initial zoom level is 10 and it goes to:
1, which is 10% and 20, which is 200%
2015-04-10 16:15:55 +03:00
Mihai Varga
9ecc37d433
Method for adding map controls to the toolbar div
2015-04-10 14:23:46 +03:00