@jitl/opentui-core 0.1.97 → 0.2.15
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/NativeSpanFeed.d.ts +2 -2
- package/README.md +2 -1
- package/Renderable.d.ts +12 -1
- package/audio.d.ts +89 -0
- package/buffer.d.ts +6 -5
- package/console.d.ts +3 -1
- package/edit-buffer.d.ts +1 -1
- package/editor-view.d.ts +1 -1
- package/{index-yxe6e14n.js → index-46f5e8m6.js} +1388 -1721
- package/index-46f5e8m6.js.map +36 -0
- package/index-5zwezmgj.js +639 -0
- package/index-5zwezmgj.js.map +11 -0
- package/index-axv7cw60.js +44 -0
- package/index-axv7cw60.js.map +10 -0
- package/{index-rhfjv9c1.js → index-g9agybj3.js} +4626 -984
- package/index-g9agybj3.js.map +82 -0
- package/index-k18nf2r7.js +21 -0
- package/{ffi-x3zvcksd.js.map → index-k18nf2r7.js.map} +1 -1
- package/{index-tkk6cmr2.js → index-rp7vz5rh.js} +125 -23
- package/index-rp7vz5rh.js.map +10 -0
- package/{index-kcpn1hka.js → index-xwsdfq5x.js} +16 -6
- package/index-xwsdfq5x.js.map +10 -0
- package/index.d.ts +1 -0
- package/index.js +37 -17
- package/index.js.map +1 -1
- package/lib/RGBA.d.ts +22 -6
- package/lib/clipboard.d.ts +1 -1
- package/lib/{keymapping.d.ts → keybinding.internal.d.ts} +10 -2
- package/lib/objects-in-viewport.d.ts +4 -4
- package/lib/parse.keypress-kitty.d.ts +1 -0
- package/lib/parse.keypress.d.ts +1 -0
- package/lib/render-geometry.d.ts +8 -0
- package/lib/stdin-parser.d.ts +4 -1
- package/lib/terminal-capability-detection.d.ts +2 -0
- package/lib/terminal-palette.d.ts +20 -5
- package/lib/tree-sitter/assets/update.d.ts +1 -0
- package/lib/tree-sitter/client.d.ts +2 -0
- package/lib/tree-sitter/default-parsers.d.ts +1 -1
- package/lib/tree-sitter/index.d.ts +0 -2
- package/lib/tree-sitter/update-assets.d.ts +3 -0
- package/lib/tree-sitter/update-assets.js +377 -0
- package/lib/tree-sitter/update-assets.js.map +12 -0
- package/lib/tree-sitter-styled-text.d.ts +6 -4
- package/node22-bun-ffi-structs-ha8fmzzb.js +396 -0
- package/node22-bun-ffi-structs-ha8fmzzb.js.map +10 -0
- package/package.json +23 -22
- package/parser.worker.js +161 -24
- package/parser.worker.js.map +12 -5
- package/platform/bun-ffi-structs.d.ts +2 -0
- package/platform/ffi.d.ts +126 -0
- package/platform/node22-bun-ffi-structs.d.ts +33 -0
- package/platform/node22-ffi.d.ts +33 -0
- package/{compat → platform}/runtime.d.ts +6 -0
- package/platform/worker.d.ts +4 -0
- package/renderables/Code.d.ts +4 -0
- package/renderables/Markdown.d.ts +62 -0
- package/renderables/ScrollBox.d.ts +1 -0
- package/renderables/Select.d.ts +3 -1
- package/renderables/TabSelect.d.ts +3 -1
- package/renderables/TextBufferRenderable.d.ts +1 -0
- package/renderables/TextTable.d.ts +15 -1
- package/renderables/Textarea.d.ts +5 -3
- package/renderables/markdown-parser.d.ts +1 -0
- package/renderer-theme-mode.d.ts +29 -0
- package/renderer.d.ts +142 -16
- package/runtime-plugin-support-configure.d.ts +4 -0
- package/runtime-plugin-support-configure.js +20 -0
- package/{index-re3ntm60.js.map → runtime-plugin-support-configure.js.map} +1 -1
- package/runtime-plugin-support.d.ts +3 -3
- package/runtime-plugin-support.js +9 -18
- package/runtime-plugin-support.js.map +3 -3
- package/runtime-plugin.d.ts +1 -4
- package/runtime-plugin.js +5 -5
- package/syntax-style.d.ts +11 -3
- package/testing/terminal-capabilities.d.ts +7 -0
- package/testing/test-recorder.d.ts +6 -6
- package/testing/test-renderer.d.ts +34 -2
- package/testing.d.ts +2 -0
- package/testing.js +329 -23
- package/testing.js.map +7 -5
- package/text-buffer-view.d.ts +2 -1
- package/text-buffer.d.ts +1 -1
- package/types.d.ts +33 -1
- package/zig-structs.d.ts +111 -20
- package/zig.d.ts +57 -7
- package/3d/SpriteResourceManager.d.ts +0 -74
- package/3d/SpriteUtils.d.ts +0 -13
- package/3d/TextureUtils.d.ts +0 -24
- package/3d/ThreeRenderable.d.ts +0 -40
- package/3d/WGPURenderer.d.ts +0 -61
- package/3d/animation/ExplodingSpriteEffect.d.ts +0 -71
- package/3d/animation/PhysicsExplodingSpriteEffect.d.ts +0 -76
- package/3d/animation/SpriteAnimator.d.ts +0 -124
- package/3d/animation/SpriteParticleGenerator.d.ts +0 -62
- package/3d/canvas.d.ts +0 -44
- package/3d/index.d.ts +0 -12
- package/3d/physics/PlanckPhysicsAdapter.d.ts +0 -19
- package/3d/physics/RapierPhysicsAdapter.d.ts +0 -19
- package/3d/physics/physics-interface.d.ts +0 -27
- package/3d.d.ts +0 -2
- package/3d.js +0 -33843
- package/3d.js.map +0 -155
- package/Worker-vajwjk0s.js +0 -94
- package/Worker-vajwjk0s.js.map +0 -10
- package/compat/FFIType.d.ts +0 -304
- package/compat/Worker.d.ts +0 -1
- package/compat/bun-ffi-structs.d.ts +0 -2
- package/compat/ffi.d.ts +0 -86
- package/compat/nodejs/Worker.d.ts +0 -16
- package/compat/nodejs/bun-ffi-structs/index.d.ts +0 -46
- package/compat/nodejs/ffi.d.ts +0 -21
- package/compat/nodejs/registerResolveJs.d.ts +0 -1
- package/compat/nodejs/runtime.d.ts +0 -7
- package/compat/nodejs/test.d.ts +0 -4
- package/compat/nodejs/trampoline.worker.d.ts +0 -1
- package/compat/test.d.ts +0 -1
- package/compat/testHelpers.d.ts +0 -18
- package/ffi-x3zvcksd.js +0 -25
- package/index-5yqvbmcz.js +0 -220
- package/index-5yqvbmcz.js.map +0 -10
- package/index-bnfz2g63.js +0 -654
- package/index-bnfz2g63.js.map +0 -10
- package/index-cbvybypy.js +0 -43
- package/index-cbvybypy.js.map +0 -10
- package/index-kcpn1hka.js.map +0 -10
- package/index-re3ntm60.js +0 -51
- package/index-rhfjv9c1.js.map +0 -70
- package/index-tkk6cmr2.js.map +0 -10
- package/index-yxe6e14n.js.map +0 -42
- package/runtime-hdpkc6qf.js +0 -220
- package/runtime-hdpkc6qf.js.map +0 -17
- /package/{compat/nodejs/registerBun.d.ts → native-event-worker-repro.worker.d.ts} +0 -0
package/3d/canvas.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { GPUCanvasContextMock } from "bun-webgpu";
|
|
2
|
-
import { SuperSampleType } from "./WGPURenderer.js";
|
|
3
|
-
import type { OptimizedBuffer } from "../buffer.js";
|
|
4
|
-
export declare enum SuperSampleAlgorithm {
|
|
5
|
-
STANDARD = 0,
|
|
6
|
-
PRE_SQUEEZED = 1
|
|
7
|
-
}
|
|
8
|
-
export declare class CLICanvas {
|
|
9
|
-
private device;
|
|
10
|
-
private readbackBuffer;
|
|
11
|
-
private width;
|
|
12
|
-
private height;
|
|
13
|
-
private gpuCanvasContext;
|
|
14
|
-
superSampleDrawTimeMs: number;
|
|
15
|
-
mapAsyncTimeMs: number;
|
|
16
|
-
superSample: SuperSampleType;
|
|
17
|
-
private computePipeline;
|
|
18
|
-
private computeBindGroupLayout;
|
|
19
|
-
private computeOutputBuffer;
|
|
20
|
-
private computeParamsBuffer;
|
|
21
|
-
private computeReadbackBuffer;
|
|
22
|
-
private updateScheduled;
|
|
23
|
-
private screenshotGPUBuffer;
|
|
24
|
-
private superSampleAlgorithm;
|
|
25
|
-
private destroyed;
|
|
26
|
-
constructor(device: GPUDevice, width: number, height: number, superSample: SuperSampleType, sampleAlgo?: SuperSampleAlgorithm);
|
|
27
|
-
destroy(): void;
|
|
28
|
-
setSuperSampleAlgorithm(superSampleAlgorithm: SuperSampleAlgorithm): void;
|
|
29
|
-
getSuperSampleAlgorithm(): SuperSampleAlgorithm;
|
|
30
|
-
getContext(type: string, attrs?: WebGLContextAttributes): GPUCanvasContextMock;
|
|
31
|
-
setSize(width: number, height: number): void;
|
|
32
|
-
addEventListener(event: string, listener: any, options?: any): void;
|
|
33
|
-
removeEventListener(event: string, listener: any, options?: any): void;
|
|
34
|
-
dispatchEvent(event: Event): void;
|
|
35
|
-
setSuperSample(superSample: SuperSampleType): void;
|
|
36
|
-
saveToFile(filePath: string): Promise<void>;
|
|
37
|
-
private initComputePipeline;
|
|
38
|
-
private updateComputeParams;
|
|
39
|
-
private scheduleUpdateComputeBuffers;
|
|
40
|
-
private updateComputeBuffers;
|
|
41
|
-
private runComputeShaderSuperSampling;
|
|
42
|
-
private updateReadbackBuffer;
|
|
43
|
-
readPixelsIntoBuffer(buffer: OptimizedBuffer): Promise<void>;
|
|
44
|
-
}
|
package/3d/index.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * from "./WGPURenderer.js";
|
|
2
|
-
export * from "./ThreeRenderable.js";
|
|
3
|
-
export * from "./TextureUtils.js";
|
|
4
|
-
export * from "./canvas.js";
|
|
5
|
-
export * from "./SpriteUtils.js";
|
|
6
|
-
export * from "./animation/SpriteAnimator.js";
|
|
7
|
-
export * from "./animation/ExplodingSpriteEffect.js";
|
|
8
|
-
export * from "./animation/SpriteParticleGenerator.js";
|
|
9
|
-
export * from "./animation/PhysicsExplodingSpriteEffect.js";
|
|
10
|
-
export * from "./physics/RapierPhysicsAdapter.js";
|
|
11
|
-
export * from "./physics/PlanckPhysicsAdapter.js";
|
|
12
|
-
export * from "./SpriteResourceManager.js";
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as planck from "planck";
|
|
2
|
-
import type { PhysicsVector2, PhysicsRigidBodyDesc, PhysicsColliderDesc, PhysicsRigidBody, PhysicsWorld } from "./physics-interface.js";
|
|
3
|
-
export declare class PlanckRigidBody implements PhysicsRigidBody {
|
|
4
|
-
private planckBody;
|
|
5
|
-
constructor(planckBody: planck.Body);
|
|
6
|
-
applyImpulse(force: PhysicsVector2): void;
|
|
7
|
-
applyTorqueImpulse(torque: number): void;
|
|
8
|
-
getTranslation(): PhysicsVector2;
|
|
9
|
-
getRotation(): number;
|
|
10
|
-
get nativeBody(): planck.Body;
|
|
11
|
-
}
|
|
12
|
-
export declare class PlanckPhysicsWorld implements PhysicsWorld {
|
|
13
|
-
private planckWorld;
|
|
14
|
-
constructor(planckWorld: planck.World);
|
|
15
|
-
createRigidBody(desc: PhysicsRigidBodyDesc): PhysicsRigidBody;
|
|
16
|
-
createCollider(colliderDesc: PhysicsColliderDesc, rigidBody: PhysicsRigidBody): void;
|
|
17
|
-
removeRigidBody(rigidBody: PhysicsRigidBody): void;
|
|
18
|
-
static createFromPlanckWorld(planckWorld: planck.World): PlanckPhysicsWorld;
|
|
19
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import RAPIER from "@dimforge/rapier2d-simd-compat";
|
|
2
|
-
import type { PhysicsVector2, PhysicsRigidBodyDesc, PhysicsColliderDesc, PhysicsRigidBody, PhysicsWorld } from "./physics-interface.js";
|
|
3
|
-
export declare class RapierRigidBody implements PhysicsRigidBody {
|
|
4
|
-
private rapierBody;
|
|
5
|
-
constructor(rapierBody: RAPIER.RigidBody);
|
|
6
|
-
applyImpulse(force: PhysicsVector2): void;
|
|
7
|
-
applyTorqueImpulse(torque: number): void;
|
|
8
|
-
getTranslation(): PhysicsVector2;
|
|
9
|
-
getRotation(): number;
|
|
10
|
-
get nativeBody(): RAPIER.RigidBody;
|
|
11
|
-
}
|
|
12
|
-
export declare class RapierPhysicsWorld implements PhysicsWorld {
|
|
13
|
-
private rapierWorld;
|
|
14
|
-
constructor(rapierWorld: RAPIER.World);
|
|
15
|
-
createRigidBody(desc: PhysicsRigidBodyDesc): PhysicsRigidBody;
|
|
16
|
-
createCollider(colliderDesc: PhysicsColliderDesc, rigidBody: PhysicsRigidBody): void;
|
|
17
|
-
removeRigidBody(rigidBody: PhysicsRigidBody): void;
|
|
18
|
-
static createFromRapierWorld(rapierWorld: RAPIER.World): RapierPhysicsWorld;
|
|
19
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export interface PhysicsVector2 {
|
|
2
|
-
x: number;
|
|
3
|
-
y: number;
|
|
4
|
-
}
|
|
5
|
-
export interface PhysicsRigidBodyDesc {
|
|
6
|
-
translation: PhysicsVector2;
|
|
7
|
-
linearDamping: number;
|
|
8
|
-
angularDamping: number;
|
|
9
|
-
}
|
|
10
|
-
export interface PhysicsColliderDesc {
|
|
11
|
-
width: number;
|
|
12
|
-
height: number;
|
|
13
|
-
restitution: number;
|
|
14
|
-
friction: number;
|
|
15
|
-
density: number;
|
|
16
|
-
}
|
|
17
|
-
export interface PhysicsRigidBody {
|
|
18
|
-
applyImpulse(force: PhysicsVector2): void;
|
|
19
|
-
applyTorqueImpulse(torque: number): void;
|
|
20
|
-
getTranslation(): PhysicsVector2;
|
|
21
|
-
getRotation(): number;
|
|
22
|
-
}
|
|
23
|
-
export interface PhysicsWorld {
|
|
24
|
-
createRigidBody(desc: PhysicsRigidBodyDesc): PhysicsRigidBody;
|
|
25
|
-
createCollider(colliderDesc: PhysicsColliderDesc, rigidBody: PhysicsRigidBody): void;
|
|
26
|
-
removeRigidBody(rigidBody: PhysicsRigidBody): void;
|
|
27
|
-
}
|
package/3d.d.ts
DELETED