Mihai Varga
70ff917752
loleaflet: spreadsheet tabs html/css
2015-07-15 15:11:39 +03:00
Mihai Varga
9eedcb9dbe
loleaflet: tiles preview container
2015-07-14 18:52:38 +03:00
Mihai Varga
16e3d615fd
loleaflet: preview container
2015-07-14 11:06:45 +03:00
Mihai Varga
0d41a804eb
loleaflet: enabled mouse selection in viewing mode
...
Mouse selection is enabled by by calling
map.enableSelection() which disables dragging and selection
can be disabled to re-enable dragging by calling
map.disableSelection()
The above only work for 'view' and 'readonly' mode
2015-07-13 15:53:02 +03:00
Mihai Varga
c881fd2f8f
loleaflet: manually add controls in the html file
2015-07-10 18:01:19 +03:00
Mihai Varga
9eea9a63c7
loleaflet: exposed the setPermission API: map.setPermission(perm)
...
Where perm can be: edit, view or readonly
This also replaces the editMode and readOnly flags
2015-07-10 12:28:56 +03:00
Mihai Varga
da568fc097
loleaflet: fixed short document panning in view mode
2015-07-09 15:09:25 +03:00
Mihai Varga
4e03f31276
loleaflet: start in readOnly mode option
2015-07-09 14:50:21 +03:00
Mihai Varga
fca2f030fe
Just mention that this will be the future toolbar
2015-06-30 15:05:32 +03:00
Mihai Varga
5ccda335ef
Start in edit mode by specifying it in the URL
...
http://.../host=host_address&file_path=file_path&edit=true
2015-06-29 16:43:47 +03:00
Mihai Varga
4b996b644d
Copy event handler
...
I implemented the solution found here
http://stackoverflow.com/questions/17527870/how-does-trello-access-the-users-clipboard#answer-17528590
which basically creates an invisible text area, sets focus to it,
selects the text, enables firing the oncopy then focus is restored to
the document.
2015-06-24 13:32:56 +03:00
Mihai Varga
22232e070f
Dragging will be handled in the js code
2015-05-26 20:56:27 +03:00
Mihai Varga
531cccc026
Mouse handlers
...
It works for: click, dblclick and dragging
2015-05-20 16:54:40 +03:00
Mihai Varga
fe40e3d592
Less space between the toolbar and the document
2015-05-15 13:07:05 +03:00
Mihai Varga
5e4225c860
In fact, it is better not to prefix the url
2015-05-13 12:05:13 +03:00
Mihai Varga
04d2b531a1
Check if file:// is added in the url
2015-05-13 12:01:10 +03:00
Mihai Varga
0a7e20e851
Encode spaces in the URL
2015-05-13 11:54:12 +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
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
bc5bee6751
Smoother scroll without intertia
2015-05-06 09:44:32 +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
fa15ef1b20
Updated the example document
2015-05-04 11:20:36 +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
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
Mihai Varga
37dfad0672
Removed pop that displays pixel location
2015-04-15 14:02:33 +03:00
Mihai Varga
57a0050421
Selection handler in leaflet
2015-04-13 20:46:09 +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
Mihai Varga
94f8076332
Map initial maxBounds are set in the constructor
2015-04-08 11:38:45 +03:00
Mihai Varga
4d8028613b
Document is placed in the middle of the screen
2015-04-08 11:01:45 +03:00
Mihai Varga
98e9b6ecb0
Added draw control to the example html doc
2015-04-06 17:02:43 +03:00
Mihai Varga
67e183105f
This places the controls above the map (in another div)
...
I have no experience with css but this works
TODO: needs proper fixing
2015-04-03 12:01:02 +03:00
Mihai Varga
61210a92a3
Initialize the outer div (container) in map's constructor
...
This will be later used to get the center of the viewspace
2015-04-02 19:36:22 +03:00
Mihai Varga
48c92dd555
Document is no longer dragable and scrollable
...
Mouse scrolling is now actualy scrolling instead of zooming
2015-04-01 13:10:17 +03:00
Mihai Varga
4944fcc57d
Detached controls from the map and added scrollbars
...
The "controls" div holds map controls suchs as the Zoom button and
it's separated from the map in order to have the controls on the top
of the page all the time.
The "document-container" div is the actual display of the document, is
what the user sees and it should be no larger than the screen size.
The "map" div is the actual document and it has the document's size
and width, this being inside the smaller "document-container" will
cause the content to overflow, creating scrollbars
2015-03-30 19:20:04 +03:00
Mihai Varga
624873cf47
Added instructions on how to use loleaflet + an example
2015-03-23 19:24:39 +02:00
Mihai Varga
87dc6f5b8f
Set LF line terminator
2015-03-09 15:58:37 +02:00
Mihai Varga
bb6fd2206a
Unmodified Leaflet
...
Checkout date: 09/03/2015
HEAD: a92c8a3c21f8d580de2dfd1e937ea90db76787b6
2015-03-09 12:16:17 +02:00