forked from martanne/vis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
view: clean up and add documentation
- Loading branch information
Showing
4 changed files
with
413 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ Vis Editor API Documenation | |
|
||
vis | ||
text | ||
view | ||
buffer | ||
array | ||
map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
View | ||
==== | ||
|
||
Provides a viewport of a text instance and mangages selections. | ||
|
||
Lifecycle | ||
--------- | ||
|
||
.. doxygengroup:: view_life | ||
:content-only: | ||
|
||
Viewport | ||
-------- | ||
|
||
The cursor of the primary selection is always visible. | ||
|
||
.. doxygengroup:: view_viewport | ||
:content-only: | ||
|
||
Dimension | ||
--------- | ||
|
||
.. doxygengroup:: view_size | ||
:content-only: | ||
|
||
Draw | ||
---- | ||
|
||
.. doxygengroup:: view_draw | ||
:content-only: | ||
|
||
Selections | ||
---------- | ||
|
||
A selection is a non-empty, directed range with two endpoints called *cursor* | ||
and *anchor*. A selection can be anchored in which case the anchor remains | ||
fixed while only the position of the cursor is adjusted. For non-anchored | ||
selections both endpoints are updated. A singleton selection | ||
covers one character on which both cursor and anchor reside. There always | ||
exists a primary selection which remains visible (i.e. changes to its position | ||
will adjust the viewport). | ||
|
||
Creation and Destruction | ||
~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. doxygengroup:: view_selnew | ||
:content-only: | ||
|
||
Navigation | ||
~~~~~~~~~~ | ||
|
||
.. doxygengroup:: view_navigate | ||
:content-only: | ||
|
||
Cover | ||
~~~~~ | ||
|
||
.. doxygengroup:: view_cover | ||
:content-only: | ||
|
||
Anchor | ||
~~~~~~ | ||
|
||
.. doxygengroup:: view_anchor | ||
:content-only: | ||
|
||
Cursor | ||
~~~~~~ | ||
|
||
Selection endpoint to which cursor motions apply. | ||
|
||
Properties | ||
^^^^^^^^^^ | ||
|
||
.. doxygengroup:: view_props | ||
:content-only: | ||
|
||
Placement | ||
^^^^^^^^^ | ||
|
||
.. doxygengroup:: view_place | ||
:content-only: | ||
|
||
Motions | ||
^^^^^^^^ | ||
|
||
These functions perform motions based on the current selection cursor position. | ||
|
||
.. doxygengroup:: view_motions | ||
:content-only: | ||
|
||
Primary Selection | ||
~~~~~~~~~~~~~~~~~ | ||
|
||
These are convenience function which operate on the primary selection. | ||
|
||
.. doxygengroup:: view_primary | ||
:content-only: | ||
|
||
Save and Restore | ||
~~~~~~~~~~~~~~~~ | ||
|
||
.. doxygengroup:: view_save | ||
:content-only: | ||
|
||
Style | ||
----- | ||
|
||
.. doxygengroup:: view_style | ||
:content-only: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.