@opentui/core 0.0.0-20251026-8b7fde6b → 0.0.0-20251026-63abf532

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/index.js CHANGED
@@ -133,7 +133,7 @@ import {
133
133
  white,
134
134
  wrapWithDelegates,
135
135
  yellow
136
- } from "./index-hgxcxzxa.js";
136
+ } from "./index-g5xctwrm.js";
137
137
  // src/text-buffer-view.ts
138
138
  class TextBufferView {
139
139
  lib;
@@ -406,6 +406,21 @@ class EditBuffer extends EventEmitter {
406
406
  offset: boundary.offset
407
407
  };
408
408
  }
409
+ offsetToPosition(offset) {
410
+ this.guard();
411
+ const result = this.lib.editBufferOffsetToPosition(this.bufferPtr, offset);
412
+ if (!result)
413
+ return null;
414
+ return { row: result.row, col: result.col };
415
+ }
416
+ positionToOffset(row, col) {
417
+ this.guard();
418
+ return this.lib.editBufferPositionToOffset(this.bufferPtr, row, col);
419
+ }
420
+ getLineStartOffset(row) {
421
+ this.guard();
422
+ return this.lib.editBufferGetLineStartOffset(this.bufferPtr, row);
423
+ }
409
424
  debugLogRope() {
410
425
  this.guard();
411
426
  this.lib.editBufferDebugLogRope(this.bufferPtr);
@@ -6010,5 +6025,5 @@ export {
6010
6025
  ASCIIFont
6011
6026
  };
6012
6027
 
6013
- //# debugId=D41B45ED184D9AE064756E2164756E21
6028
+ //# debugId=6D1D4813A8D6270C64756E2164756E21
6014
6029
  //# sourceMappingURL=index.js.map