Commit Graph
19 Commits
Author SHA1 Message Date
Philip Peitsch eb3d8aefbf Batch up calls that refresh the canvas CSS, size or annotations
These calls are UI render-related operations, and don't need to be done
immediately after every operation. Batching these up and doing them all
once after all ops are processed greatly improves the performance of
paragraph alignment updates with multiple paragraphs selected.
2014-02-05 22:53:37 +11:00
Philip Peitsch ae0c695971 Add paragraph alignment to the benchmark
This is disabled by default because it is very very slow (8s @ 10pages)
2014-02-05 22:53:36 +11:00
Friedrich W. H. Kossebau d2671e2a00 @returns -> @return 2014-01-31 15:33:43 +01:00
Philip Peitsch bb8daa3a9c Activate the undo manager in the performance benchmark 2014-01-24 10:22:20 +11:00
Philip Peitsch 6a7841d20e Allow background colour in benchmark to be set in the URL
Having different coloured results makes it easier to distinguish between
active instances of a benchmark (e.g., master + branch).
2014-01-24 10:22:20 +11:00
Philip Peitsch 678cc4c36c Redesign benchmark to be more usable on small screens (e.g., mobiles) 2014-01-23 23:55:09 +11:00
Philip Peitsch 23e2a7bd79 Remove non-useful benchmark step
Non-automated steps in a mostly automated benchmark is not the best
idea I ever had...
2014-01-23 23:55:09 +11:00
Philip Peitsch d92d02e510 Add bulk-operation benchmark steps
Add repeated insert, remove and move steps to see how behaviour scales.
2014-01-23 23:55:08 +11:00
lli 32f148930a Preserve the text style when splitting at the end of paragraph.
At the moment, splitting at the end of the following paragraph
<p style-name="standard">hello <span style-name="bold">world|</span></p>
will create a new paragraph like below
<p style-name="standard">|<span style-name="bold"></span></p>

The cursor is moved out of the span due to empty span is not considered as
a valid cursor position in the current design. this causes newly entered
text are not formatted correctly.

Merged DirectTextStyler and DirectParagraphStyler into
DirectFormattingController. These have become closely related concepts as
a result of changes in this patch.
2014-01-20 22:32:24 +11:00
Aditya Bhatt 6921bffe71 Rename TextManipulator to TextController 2014-01-15 13:37:47 +05:30
Philip Peitsch 3f2b2f0fb9 Support different selection view renderers
In certain cases it is useful to be able to swap out the technique used
to render cursor selections on the document. For example, SVG polygon
based rendering interacts badly with mouse events on the WebKit build
shipped on MacOS X 10.7.5.
2013-12-19 01:55:51 +11:00
lli 66e25e096d Move selection related operations into the new SelectionController.js 2013-12-18 23:26:30 +11:00
Philip Peitsch 2ec3d857ec Re-implement the selection commands using new StepsTranslator interfaces
This re-implementation also addresses problems when navigating passed
annotations as identified in issue #65 & #65.

This also fixes a large performance issue with extending or moving the
cursor via short-cut keys.
2013-12-11 00:50:25 +11:00
Philip Peitsch 085f4c2adc Add an apply direct formatting benchmark action
Additionally, the benchmark will now take configuration options via the
query parameters rather than after the hash.
2013-12-06 01:27:20 +11:00
Philip Peitsch 5db32daa9d Ensure expand to word and paragraph boundaries keep selection direction
SessionController had some internal confusion about whether to work in
selection or range+bool. This cleans these up to ensure the direction is
properly preserved throughought.
2013-11-30 00:58:51 +11:00
Philip Peitsch 4d1c51feb4 Isolate document download speed from open speed in benchmark 2013-11-22 00:47:38 +11:00
Philip Peitsch 0a707b9129 Add required member information to benchmark 2013-11-21 21:35:06 +11:00
Philip Peitsch bbf92720db Add missing constructor docs 2013-11-21 11:43:39 +11:00
Philip Peitsch d6f6437c27 Moved from programs/benchmarking to programs/benchmark 2013-11-21 11:43:39 +11:00