edytor 0.1.0-next.20 → 0.1.0-next.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
Edytor aims to be for Svelte what Slate.js is for React: a heavily customizable editor with an API to build any kind of collaborative rich text editor.
|
|
17
17
|
|
|
18
|
-
> **Work in progress.** Edytor is a pre-release (`0.1.0-next.
|
|
18
|
+
> **Work in progress.** Edytor is a pre-release (`0.1.0-next.21`, `edytor@next` on npm) and not ready for production; the API changes between releases without a compatibility layer. The untagged `edytor@0.0.11` on npm predates the current API. Issues and PRs are welcome: when you report a bug, include the document's JSON value.
|
|
19
19
|
|
|
20
20
|
## Features
|
|
21
21
|
|
|
@@ -95,7 +95,12 @@ export class ColumnResize {
|
|
|
95
95
|
const strips = this.shown ? this.gaps(origin) : [];
|
|
96
96
|
const drag = this.drag;
|
|
97
97
|
const guide = drag && {
|
|
98
|
-
|
|
98
|
+
// Where the hover guide showed: the band's middle, never the gap's (it would jump onto the `+`).
|
|
99
|
+
x: drag.start +
|
|
100
|
+
this.widthAt(drag) +
|
|
101
|
+
bandOf({ left: 0, right: drag.gap }).width / 2 -
|
|
102
|
+
GUIDE / 2 -
|
|
103
|
+
origin.left,
|
|
99
104
|
top: drag.top - origin.top,
|
|
100
105
|
height: drag.height
|
|
101
106
|
};
|