@lvce-editor/editor-worker 19.77.2 → 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 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.
@@ -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;