Skip to content

Commit

Permalink
Add apply_delta
Browse files Browse the repository at this point in the history
  • Loading branch information
mwildehahn committed Jan 5, 2025
1 parent 826a4e0 commit cc2ae55
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions loro-rs/src/loro.udl
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ interface LoroText{
[Throws=UpdateTimeoutError]
void update([ByRef] string s, UpdateOptions options);

/// Apply a [delta](https://quilljs.com/docs/delta/) to the text container.
[Throws=LoroError]
void apply_delta(sequence<TextDelta> delta);

/// Update the current text based on the provided text.
///
/// This update calculation is line-based, which will be more efficient but less precise.
Expand Down

0 comments on commit cc2ae55

Please sign in to comment.