@lvce-editor/editor-worker 19.77.1 → 19.77.3
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 +8 -0
- package/dist/diff-sdk.d.ts +1 -0
- package/dist/diff-sdk.js +1849 -386
- package/dist/editorWorkerMain.js +1962 -465
- package/dist/settings.json +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -172,3 +172,11 @@ Accepted commands run in order and retain normal-editor undo, selection, and
|
|
|
172
172
|
same-document synchronization behavior. Read state after awaiting a command.
|
|
173
173
|
Treat returned state as read-only. Await `dispose()` before reusing an ID;
|
|
174
174
|
disposal rejects new commands and drains commands already accepted.
|
|
175
|
+
|
|
176
|
+
### Bidirectional text
|
|
177
|
+
|
|
178
|
+
Enable `editor.rtl` to render right-to-left text and move the caret visually with
|
|
179
|
+
left/right arrows (including Shift selections). Source-code paragraphs remain
|
|
180
|
+
left-to-right. At a mixed-direction boundary the caret uses the higher embedding
|
|
181
|
+
level, so each logical column has one visual position. The setting defaults to
|
|
182
|
+
`false`; ASCII lines keep the existing fast path.
|
package/dist/diff-sdk.d.ts
CHANGED
|
@@ -183,6 +183,7 @@ export interface EditorState {
|
|
|
183
183
|
readonly redoStack: readonly any[];
|
|
184
184
|
readonly roundedSelection: boolean;
|
|
185
185
|
readonly rowHeight: number;
|
|
186
|
+
readonly rtl?: boolean;
|
|
186
187
|
readonly savedSelections: readonly any[];
|
|
187
188
|
readonly scrollBarHeight: number;
|
|
188
189
|
readonly scrollBarWidth: number;
|