Marek Lewandowski
|
f863b19b77
Intenral (utils): Fixed type returned by Rect#getBoundingRect().
|
5 年之前 |
Marek Lewandowski
|
4ce955fac5
Feature (utils): Introduced the Rect#getBoundingRect() method that returns a `Rect` instance containing all other rectangles.
|
5 年之前 |
Marek Lewandowski
|
0d6cd9c214
Tests (utils): Removed integration test for sequenced range Rect.
|
5 年之前 |
Marek Lewandowski
|
0de304531e
Tests: Added unit tests calculating Rect for a sequenced range.
|
5 年之前 |
Kamil Piechaczek
|
2283aa4f74
Internal: Bumped the year. [skip ci]
|
6 年之前 |
Aleksander Nowodzinski
|
11c2501ec2
Fix: `Rect#excludeScrollbarsAndBorders` should support RTL content. Fixed incorrect output of the method. Closes #297.
|
6 年之前 |
Piotr Jasiun
|
aee2e94059
Warn about rect-source-not-in-dom only in CK_DEBUG mode.
|
6 年之前 |
Maciej Bukowski
|
f9e6038ca8
Removed usage of logger.
|
6 年之前 |
Kamil Piechaczek
|
98899fd81e
Internal: Updated the license header. See ckeditor/ckeditor5#1557. [skip ci]
|
6 年之前 |
Kamil Piechaczek
|
3e031cfe15
Internal: Bumped the year. [skip ci]
|
6 年之前 |
Maciej Gołaszewski
|
bacc3a704c
Tests: Properly use sinon sandbox in tests.
|
7 年之前 |
Piotrek Koszuliński
|
1eba2cbdb7
Internal: Bumped the year. [skip ci]
|
8 年之前 |
Maciej Bukowski
|
52460a5abc
Added test for Rect class.
|
8 年之前 |
Kamil Piechaczek
|
f0070e2613
Fixed failing tests in Safari.
|
8 年之前 |
Kamil Piechaczek
|
417d9ab1f8
Used `Node#appendChild` method instead of `Node#append`.
|
8 年之前 |
Aleksander Nowodzinski
|
82dc93f5e3
Tests: Added tests to verify Rect class works for various cases of another window's context.
|
8 年之前 |
Aleksander Nowodzinski
|
ebf5029b4b
Made Rect class independent of global#window and document. Using rect source's window instead.
|
8 年之前 |
Aleksander Nowodzinski
|
ac9a54af45
Tests: Silenced Rect warnings.
|
8 年之前 |
Aleksander Nowodzinski
|
36a5abd385
Internal: A warning should show up when a Rect instance is for an HTML element or a DOM range not belonging to a rendered DOM tree. Closes #178.
|
8 年之前 |
Aleksander Nowodzinski
|
9878640f6e
Code refactoring in the Rect class: removed static Rect.getViewportRect and replaced it with new Rect( window ). Introduced a new instance method #excludeScrollbarsAndBorders.
|
8 年之前 |
Aleksander Nowodzinski
|
21665dba4c
Tests: Updated stubs to the latest Sinon API.
|
8 年之前 |
Kamil Piechaczek
|
51d37ed37a
Upgraded tests to the latest Chai and Sinon version.
|
8 年之前 |
Aleksander Nowodzinski
|
ab167f71a9
Implemented Rect class methods #isEqual() and #contains(). Allowed exclusion of borders and scrollbars.
|
8 年之前 |
Aleksander Nowodzinski
|
b1f09018dd
Other: Provided a static `Rect#getDomRangeRects` method for external usage. Closes #168.
|
8 年之前 |
Aleksander Nowodzinski
|
14e38d6c63
Fix: Rect utility should work for collapsed DOM Ranges. Closes #153.
|
8 年之前 |
Aleksander Nowodzinski
|
d6b2b2138c
Renamed Rect#_obj to Rect#_source. Code refactoring.
|
8 年之前 |
Aleksander Nowodzinski
|
64cc2f7775
Performance: Speed up Rect#getVisible nearly twice by avoiding window#getComputedStyles.
|
8 年之前 |
Aleksander Nowodzinski
|
e1088036e1
Fixed: Range#getVisible throws when used for document#body.
|
8 年之前 |
Aleksander Nowodzinski
|
114e54bbb8
Implemented Rect#getVisible method. Defined Rect#_obj property.
|
8 年之前 |
Piotrek Koszuliński
|
69b66d2a0c
Updated imports to use scoped packages.
|
9 年之前 |