@opentui/core 0.5.3 → 0.5.6

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
@@ -7,7 +7,7 @@ OpenTUI is a native terminal UI core written in Zig with TypeScript bindings. Th
7
7
  - [Getting Started](https://opentui.com/docs/getting-started) - API and usage guide
8
8
  - [Development Guide](docs/development.md) - Building, testing, and contributing
9
9
  - [Tree-Sitter](https://opentui.com/docs/reference/tree-sitter) - Syntax highlighting integration
10
- - [Renderables vs Constructs](https://opentui.com/docs/core-concepts/renderables-vs-constructs) - Understanding the component model
10
+ - [Renderables](https://opentui.com/docs/core-concepts/renderables) - Understanding the component model
11
11
  - [Environment Variables](https://opentui.com/docs/reference/env-vars) - Configuration options
12
12
 
13
13
  ## Install
@@ -40,7 +40,7 @@ Run native performance benchmarks:
40
40
  bun run bench:native
41
41
  ```
42
42
 
43
- See [src/zig/bench.zig](src/zig/bench.zig) for available options like `--filter` and `--mem`.
43
+ See [the native benchmark runner](../native/src/bench.zig) for options such as `--filter` and `--mem`.
44
44
 
45
45
  NativeSpanFeed TypeScript benchmarks:
46
46
 
package/buffer.d.ts CHANGED
@@ -59,9 +59,9 @@ export declare class OptimizedBuffer {
59
59
  destroy(): void;
60
60
  drawTextBuffer(textBufferView: TextBufferView, x: number, y: number): void;
61
61
  drawEditorView(editorView: EditorView, x: number, y: number): void;
62
- drawSuperSampleBuffer(x: number, y: number, pixelDataPtr: PointerInput, pixelDataLength: number, format: "bgra8unorm" | "rgba8unorm", alignedBytesPerRow: number): void;
62
+ drawSuperSampleBuffer(x: number, y: number, pixelData: PointerInput | Uint8Array, pixelDataLength: number, format: "bgra8unorm" | "rgba8unorm", alignedBytesPerRow: number): void;
63
63
  drawImage(image: NativeImage, x: number, y: number, width: number, height: number, pixelWidth?: number, pixelHeight?: number, sourceX?: number, sourceY?: number, sourceWidth?: number, sourceHeight?: number, protocol?: ImageRenderProtocol): boolean;
64
- drawPackedBuffer(dataPtr: PointerInput, dataLen: number, posX: number, posY: number, terminalWidthCells: number, terminalHeightCells: number): void;
64
+ drawPackedBuffer(data: PointerInput | Uint8Array, dataLen: number, posX: number, posY: number, terminalWidthCells: number, terminalHeightCells: number): void;
65
65
  drawGrayscaleBuffer(posX: number, posY: number, intensities: Float32Array, srcWidth: number, srcHeight: number, fg?: RGBA | null, bg?: RGBA | null): void;
66
66
  drawGrayscaleBufferSupersampled(posX: number, posY: number, intensities: Float32Array, srcWidth: number, srcHeight: number, fg?: RGBA | null, bg?: RGBA | null): void;
67
67
  resize(width: number, height: number): void;