blecsd 0.4.0 → 0.6.2
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 +169 -147
- package/dist/blend-BZDmQFAm.d.ts +1215 -0
- package/dist/{border-DGNDfT6T.d.ts → border-Br-Jc027.d.ts} +2 -2
- package/dist/{cell-DwIu2ryP.d.ts → cell-5Ty_3yMs.d.ts} +1 -1
- package/dist/cellRenderer-D0-DJXWl.d.ts +374 -0
- package/dist/chunk-3PGACJB6.js +1 -0
- package/dist/{chunk-DNRXW56C.js → chunk-4EV3YS7F.js} +1 -1
- package/dist/chunk-4XW4WIPH.js +1 -0
- package/dist/chunk-7CLV3LTZ.js +4 -0
- package/dist/chunk-7ZFQO3OQ.js +1 -0
- package/dist/chunk-AM6IDSXI.js +1 -0
- package/dist/chunk-APPZ3YHO.js +0 -0
- package/dist/chunk-EHYOVHRL.js +2 -0
- package/dist/chunk-EKE2BXPS.js +1 -0
- package/dist/chunk-EOFT3PNU.js +1 -0
- package/dist/chunk-ESMSDY3P.js +1 -0
- package/dist/chunk-FJLSHFCF.js +1 -0
- package/dist/chunk-FUW7OD3H.js +1 -0
- package/dist/chunk-GIMWA5WA.js +1 -0
- package/dist/chunk-GRMSEMU7.js +1 -0
- package/dist/chunk-I7AUKTXE.js +1 -0
- package/dist/chunk-IXUFU6TE.js +3 -0
- package/dist/chunk-JB5KFQPD.js +1 -0
- package/dist/chunk-JCLNGU3K.js +1 -0
- package/dist/chunk-JN2OGNK3.js +1 -0
- package/dist/chunk-JRRJCATR.js +1 -0
- package/dist/chunk-JWIVZCKW.js +1 -0
- package/dist/chunk-K5UMVDQX.js +1 -0
- package/dist/chunk-KYNS3GBJ.js +2 -0
- package/dist/chunk-L4FIDOS6.js +1 -0
- package/dist/chunk-LIVVHEOU.js +1 -0
- package/dist/chunk-LNEISTXM.js +1 -0
- package/dist/chunk-M5FXA5FL.js +1 -0
- package/dist/chunk-MEJJLDEQ.js +1 -0
- package/dist/chunk-NYIMY4UV.js +1 -0
- package/dist/chunk-PQZTNWLA.js +1 -0
- package/dist/chunk-QS5QXZNJ.js +1 -0
- package/dist/chunk-SXOBHRXF.js +2 -0
- package/dist/chunk-T2EQLWMN.js +1 -0
- package/dist/chunk-T62UPG63.js +4 -0
- package/dist/chunk-TPBILYDM.js +10 -0
- package/dist/chunk-UWS6FIU5.js +1 -0
- package/dist/chunk-W64J7C25.js +4 -0
- package/dist/chunk-W6RELN6A.js +1 -0
- package/dist/chunk-XYMPBCYW.js +1 -0
- package/dist/chunk-ZAJI53SZ.js +1 -0
- package/dist/cli/init.js +1 -1
- package/dist/{componentStorage-CJTh-TPO.d.ts → componentStorage-CXJvx4Lt.d.ts} +2 -2
- package/dist/components/index.d.ts +7762 -7682
- package/dist/components/index.js +5 -1
- package/dist/core/index.d.ts +4851 -4261
- package/dist/core/index.js +1 -1
- package/dist/debug/index.d.ts +310 -84
- package/dist/debug/index.js +8 -1
- package/dist/{dirtyTracking-C4v8MmM9.d.ts → dirtyTracking-D0SQrEeo.d.ts} +2 -2
- package/dist/{doubleBuffer-CKQFmlPN.d.ts → doubleBuffer-d9yVNtj1.d.ts} +22 -2
- package/dist/errors/index.js +1 -1
- package/dist/{events-9ForpTfM.d.ts → events-CGqK6LGt.d.ts} +2 -2
- package/dist/{inputActions-Fyw14_Gm.d.ts → factories-vW7bn_He.d.ts} +21 -786
- package/dist/{gameLoop-CSTb7e0L.d.ts → gameLoop-C1AyRWyP.d.ts} +3 -3
- package/dist/index.d.ts +25 -1217
- package/dist/index.js +1 -3
- package/dist/input/index.d.ts +1 -1
- package/dist/input/index.js +1 -1
- package/dist/inputStream-BoFAEJ7g.d.ts +1385 -0
- package/dist/interactiveSystem-Dtv3xERg.d.ts +2292 -0
- package/dist/{keyParser-m7fWto6g.d.ts → keyParser-DReXe2j-.d.ts} +28 -28
- package/dist/{mouseParser-B7p5ow7K.d.ts → mouseParser-CTNGolIA.d.ts} +1 -1
- package/dist/{packedStore-BgvnEdE7.d.ts → packedStore-480t2X74.d.ts} +1 -1
- package/dist/panelMovement-DSLYdNOL.d.ts +1909 -0
- package/dist/{parser-iMHmQuUh.d.ts → parser-Q1YLXYpF.d.ts} +1 -1
- package/dist/positioning-DiUivJXa.d.ts +917 -0
- package/dist/{renderable-CwqGwrEV.d.ts → renderable-IbSJao5y.d.ts} +2 -2
- package/dist/{scheduler-DeeZleia.d.ts → scheduler-NbHT3-D2.d.ts} +1 -1
- package/dist/schemas/index.d.ts +6 -6
- package/dist/schemas/index.js +1 -1
- package/dist/style/index.d.ts +851 -0
- package/dist/style/index.js +1 -0
- package/dist/styleInheritance-CuRb5Dmp.d.ts +251 -0
- package/dist/systems/index.d.ts +786 -1882
- package/dist/systems/index.js +1 -1
- package/dist/terminal/index.d.ts +5542 -2460
- package/dist/terminal/index.js +1 -1
- package/dist/terminalBuffer-BbUz27qM.d.ts +691 -0
- package/dist/{terminus-14-bold-HWSPRLJD.js → terminus-14-bold-ZS4IH465.js} +1 -1
- package/dist/{terminus-14-normal-T3SWMH4D.js → terminus-14-normal-HD5N7F5W.js} +1 -1
- package/dist/testing/index.d.ts +923 -0
- package/dist/testing/index.js +7 -0
- package/dist/text/index.d.ts +263 -0
- package/dist/text/index.js +3 -0
- package/dist/textWrap-sY-PZzE7.d.ts +761 -0
- package/dist/{tilemap-BirMJdbu.d.ts → tilemap-ByvTsepD.d.ts} +5 -5
- package/dist/{types-CPB4CpbH.d.ts → types-B8LmNkzG.d.ts} +1 -1
- package/dist/utils/index.d.ts +829 -782
- package/dist/utils/index.js +32 -1
- package/dist/{virtualScrollback-D9uLFe8l.d.ts → virtualScrollback-CiooIebp.d.ts} +4 -4
- package/dist/virtualViewport-fIlbIGPt.d.ts +657 -0
- package/dist/{virtualizedLineStore-DwPEvPkk.d.ts → virtualizedLineStore-DfyhojPZ.d.ts} +1 -1
- package/dist/widgets/bigText.d.ts +13 -13
- package/dist/widgets/bigText.js +1 -1
- package/dist/widgets/fonts/index.d.ts +1 -1
- package/dist/widgets/fonts/index.js +1 -1
- package/dist/widgets/index.d.ts +1620 -910
- package/dist/widgets/index.js +24 -1
- package/package.json +23 -22
- package/dist/3d/index.d.ts +0 -5
- package/dist/3d/index.js +0 -1
- package/dist/audio/index.d.ts +0 -177
- package/dist/audio/index.js +0 -1
- package/dist/chunk-25OEBENM.js +0 -3
- package/dist/chunk-26STV7ZS.js +0 -1
- package/dist/chunk-2NMGUEFC.js +0 -4
- package/dist/chunk-35LCBY6P.js +0 -1
- package/dist/chunk-4PRDJTCM.js +0 -1
- package/dist/chunk-5PELJRUQ.js +0 -1
- package/dist/chunk-5VEKHA3B.js +0 -5
- package/dist/chunk-6KEM3OS2.js +0 -11
- package/dist/chunk-6XWY6GB7.js +0 -1
- package/dist/chunk-735KKTP3.js +0 -1
- package/dist/chunk-7SWJNDOL.js +0 -26
- package/dist/chunk-APKUNIMB.js +0 -1
- package/dist/chunk-CJCSZRV6.js +0 -1
- package/dist/chunk-DMBMCCLN.js +0 -1
- package/dist/chunk-DQTVJITR.js +0 -1
- package/dist/chunk-DSKQ5J4R.js +0 -1
- package/dist/chunk-E4CJRSND.js +0 -1
- package/dist/chunk-EF4DC6IN.js +0 -1
- package/dist/chunk-EJAKECSN.js +0 -1
- package/dist/chunk-FNQRUMFD.js +0 -1
- package/dist/chunk-GJ3RS2VG.js +0 -1
- package/dist/chunk-KTVEMB2I.js +0 -1
- package/dist/chunk-KYAPE44E.js +0 -8
- package/dist/chunk-LI4Y7TBZ.js +0 -1
- package/dist/chunk-NHOL4BN6.js +0 -1
- package/dist/chunk-NPNUUSIB.js +0 -1
- package/dist/chunk-NZ55KBM6.js +0 -1
- package/dist/chunk-OFRWGW2G.js +0 -1
- package/dist/chunk-OMMJ7B5P.js +0 -1
- package/dist/chunk-OMU5BSAS.js +0 -2
- package/dist/chunk-P3ZLIQJP.js +0 -1
- package/dist/chunk-PWI36BQJ.js +0 -1
- package/dist/chunk-QQMUDJ32.js +0 -2
- package/dist/chunk-R3ICZOE4.js +0 -1
- package/dist/chunk-RZ7FGVI6.js +0 -1
- package/dist/chunk-S6WS46FE.js +0 -1
- package/dist/chunk-TSARUU56.js +0 -1
- package/dist/chunk-WJRVUAZR.js +0 -33
- package/dist/chunk-WY5EZOOL.js +0 -1
- package/dist/chunk-YY6RZCZH.js +0 -4
- package/dist/chunk-ZPGJCHXH.js +0 -1
- package/dist/chunk-ZPL2J25N.js +0 -1
- package/dist/game/index.d.ts +0 -486
- package/dist/game/index.js +0 -1
- package/dist/index-DBS5Uefn.d.ts +0 -3156
- package/dist/viewport3d-xI33-_wq.d.ts +0 -182
- package/dist/virtualViewport-DTSN6jFk.d.ts +0 -1856
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { W as World, E as Entity } from './types-
|
|
1
|
+
import { W as World, E as Entity } from './types-B8LmNkzG.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Renderable component for visual styling of entities.
|
|
@@ -299,4 +299,4 @@ declare function isEffectivelyVisible(world: World, eid: Entity): boolean;
|
|
|
299
299
|
*/
|
|
300
300
|
declare function isDetached(world: World, eid: Entity): boolean;
|
|
301
301
|
|
|
302
|
-
export { DEFAULT_BG as D, Renderable as R, type StyleData as S,
|
|
302
|
+
export { DEFAULT_BG as D, Renderable as R, type StyleData as S, getStyle as a, show as b, hide as c, setVisible as d, isEffectivelyVisible as e, isDetached as f, getRenderable as g, hasRenderable as h, isVisible as i, markClean as j, isDirty as k, DEFAULT_FG as l, markDirty as m, type RenderableData as n, type StyleOptions as o, setStyle as s, toggle as t };
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -84,11 +84,11 @@ type Dimension = z.infer<typeof DimensionSchema>;
|
|
|
84
84
|
* ```
|
|
85
85
|
*/
|
|
86
86
|
declare const PositionValueSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodEnum<{
|
|
87
|
+
center: "center";
|
|
87
88
|
left: "left";
|
|
88
|
-
top: "top";
|
|
89
89
|
right: "right";
|
|
90
|
+
top: "top";
|
|
90
91
|
bottom: "bottom";
|
|
91
|
-
center: "center";
|
|
92
92
|
}>]>;
|
|
93
93
|
type PositionValue = z.infer<typeof PositionValueSchema>;
|
|
94
94
|
|
|
@@ -804,11 +804,11 @@ declare const WidgetDimensionSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodStri
|
|
|
804
804
|
* ```
|
|
805
805
|
*/
|
|
806
806
|
declare const WidgetPositionSchema: z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodEnum<{
|
|
807
|
+
center: "center";
|
|
807
808
|
left: "left";
|
|
808
|
-
top: "top";
|
|
809
809
|
right: "right";
|
|
810
|
+
top: "top";
|
|
810
811
|
bottom: "bottom";
|
|
811
|
-
center: "center";
|
|
812
812
|
}>]>;
|
|
813
813
|
/**
|
|
814
814
|
* Schema for animation/spinner interval in milliseconds (10-60000).
|
|
@@ -854,9 +854,9 @@ declare const FilePathSchema: z.ZodString;
|
|
|
854
854
|
* ```
|
|
855
855
|
*/
|
|
856
856
|
declare const TextAlignSchema: z.ZodEnum<{
|
|
857
|
+
center: "center";
|
|
857
858
|
left: "left";
|
|
858
859
|
right: "right";
|
|
859
|
-
center: "center";
|
|
860
860
|
}>;
|
|
861
861
|
/**
|
|
862
862
|
* Schema for vertical alignment ('top' | 'middle' | 'bottom').
|
|
@@ -887,8 +887,8 @@ declare const VAlignSchema: z.ZodEnum<{
|
|
|
887
887
|
declare const WidgetBorderSchema: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
888
888
|
type: z.ZodOptional<z.ZodEnum<{
|
|
889
889
|
bg: "bg";
|
|
890
|
-
none: "none";
|
|
891
890
|
line: "line";
|
|
891
|
+
none: "none";
|
|
892
892
|
}>>;
|
|
893
893
|
fg: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
894
894
|
bg: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
package/dist/schemas/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{k as AnimationFrameSchema,l as AnimationOptionsSchema,e as DimensionConstraintsSchema,c as DimensionValueSchema,p as ListBehaviorOptionsSchema,q as ListItemSchema,g as PaddingOptionsSchema,f as PaddingValueSchema,j as ScrollableOptionsSchema,d as SetDimensionsSchema,a as SetPositionSchema,o as SliderPercentageSchema,m as SliderRangeSchema,n as SliderStepSchema,h as StyleColorSchema,i as StyleOptionsSchema,b as ZIndexSchema}from'../chunk-Z4EZERNE.js';import'../chunk-I7AUKTXE.js';import {z as z$1}from'zod';var z=z$1.number().int().positive(),D=z$1.number().int().nonnegative(),F=z$1.number().min(0).max(100),B=z$1.string().refine(t=>!!(/^#[0-9a-fA-F]{3,8}$/.test(t)||/^rgba?\(/.test(t)||/^hsla?\(/.test(t)||/^[a-zA-Z]+$/.test(t)),{message:"Invalid color format"}),N=z$1.union([z$1.number(),z$1.string().regex(/^\d+(\.\d+)?%$/,'Percentage must be in format "50%"')]),W=z$1.union([z$1.number(),z$1.string().regex(/^\d+(\.\d+)?%$/,'Percentage must be in format "50%"'),z$1.enum(["center","left","right","top","bottom"])]);var r=z$1.object({tickRate:z$1.number().int().min(1).max(240),maxUpdatesPerFrame:z$1.number().int().min(1).max(30),interpolate:z$1.boolean()}),V=z$1.object({targetFPS:z$1.number().min(0).max(240).optional(),fixedTimestep:z$1.boolean().optional(),maxDeltaTime:z$1.number().positive().max(1).optional(),fixedTimestepMode:r.optional()}),X=z$1.object({fps:z$1.number().nonnegative(),frameTime:z$1.number().nonnegative(),frameCount:z$1.number().int().nonnegative(),runningTime:z$1.number().nonnegative(),tickCount:z$1.number().int().nonnegative(),ticksPerSecond:z$1.number().nonnegative(),interpolationAlpha:z$1.number().min(0).max(1),skippedUpdates:z$1.number().int().nonnegative()});var c=z$1.object({x:z$1.number().positive(),y:z$1.number().positive()}).nullable(),Y=z$1.object({constrainToParent:z$1.boolean().optional(),constrainAxis:z$1.enum(["x","y"]).nullable().optional(),snapToGrid:c.optional(),minX:z$1.number().finite().optional(),maxX:z$1.number().finite().optional(),minY:z$1.number().finite().optional(),maxY:z$1.number().finite().optional(),bringToFront:z$1.boolean().optional(),frontZIndex:z$1.number().int().min(0).max(65535).optional()}).refine(t=>t.minX!==void 0&&t.maxX!==void 0?t.minX<=t.maxX:true,{message:"minX must be <= maxX"}).refine(t=>t.minY!==void 0&&t.maxY!==void 0?t.minY<=t.maxY:true,{message:"minY must be <= maxY"}),s=z$1.object({type:z$1.literal("key"),key:z$1.string(),raw:z$1.string().optional()}),p=z$1.object({type:z$1.literal("mouse"),action:z$1.string(),x:z$1.number().int().nonnegative(),y:z$1.number().int().nonnegative(),button:z$1.string().optional()}),k=z$1.discriminatedUnion("type",[s,p]),L=z$1.object({lastX:z$1.number().int().nonnegative(),lastY:z$1.number().int().nonnegative(),lastFg:z$1.number().int().nonnegative(),lastBg:z$1.number().int().nonnegative(),lastAttrs:z$1.number().int().nonnegative(),alternateScreen:z$1.boolean()}),M=z$1.object({x:z$1.number().finite(),y:z$1.number().finite(),width:z$1.number().finite().nonnegative(),height:z$1.number().finite().nonnegative()}),$=z$1.object({x:z$1.number().finite(),y:z$1.number().finite(),width:z$1.number().finite().nonnegative(),height:z$1.number().finite().nonnegative(),z:z$1.number().int().min(0).max(65535)}),w=z$1.enum(["focus","blur"]);var u=z$1.enum(["ascii","utf8","utf-8","utf16le","utf-16le","ucs2","ucs-2","base64","base64url","latin1","binary","hex"]),Q=z$1.object({isAlternateBuffer:z$1.boolean().optional(),isMouseEnabled:z$1.boolean().optional()}),G=z$1.object({isAlternateBuffer:z$1.boolean().optional(),isMouseEnabled:z$1.boolean().optional(),timeout:z$1.number().int().nonnegative().max(3e5).optional(),maxBuffer:z$1.number().int().positive().max(104857600).optional(),encoding:u.optional()}),U=z$1.object({content:z$1.string().optional(),extension:z$1.string().regex(/^\.\w+$/,"Extension must start with a dot").optional(),editor:z$1.string().min(1).optional(),isAlternateBuffer:z$1.boolean().optional(),isMouseEnabled:z$1.boolean().optional()});var l=z$1.number().int().min(0).max(4294967295),m=z$1.union([z$1.string().regex(/^#[0-9a-fA-F]{3,8}$/,"Invalid hex color format"),l]),Z=z$1.union([z$1.number().int().positive(),z$1.string().regex(/^\d+(\.\d+)?%$/,'Percentage must be in format "50%"'),z$1.literal("auto")]),K=z$1.union([z$1.number().int(),z$1.string().regex(/^\d+(\.\d+)?%$/,'Percentage must be in format "50%"'),z$1.enum(["center","left","right","top","bottom"])]),R=z$1.number().int().min(10).max(6e4),q=z$1.number().min(.1).max(10),H=z$1.string().min(1).refine(t=>!t.includes("\0"),{message:"Path must not contain null bytes"}),J=z$1.enum(["left","center","right"]),_=z$1.enum(["top","middle","bottom"]),ee=z$1.union([z$1.boolean(),z$1.object({type:z$1.enum(["line","bg","none"]).optional(),fg:m.optional(),bg:m.optional()})]).optional(),ne=z$1.union([z$1.number().int().min(0).max(255),z$1.object({left:z$1.number().int().min(0).max(255).optional(),top:z$1.number().int().min(0).max(255).optional(),right:z$1.number().int().min(0).max(255).optional(),bottom:z$1.number().int().min(0).max(255).optional()})]).optional(),te=z$1.number().min(0).max(1),oe=z$1.string().min(1).refine(t=>!t.includes("\0"),{message:"Tree path must not contain null bytes"});export{u as BufferEncodingSchema,B as ColorStringSchema,M as ComputedLayoutSchema,N as DimensionSchema,Y as DragConstraintsSchema,U as EditorOptionsSchema,$ as EntityBoundsSchema,G as ExecOptionsSchema,H as FilePathSchema,r as FixedTimestepConfigSchema,w as FocusEventTypeSchema,V as GameLoopOptionsSchema,R as IntervalSchema,X as LoopStatsSchema,D as NonNegativeIntSchema,te as OpacitySchema,L as OutputStateSchema,l as PackedColorSchema,F as PercentageSchema,W as PositionValueSchema,z as PositiveIntSchema,k as QueuedInputEventSchema,s as QueuedKeyEventSchema,p as QueuedMouseEventSchema,c as SnapToGridSchema,Q as SpawnOptionsSchema,q as SpeedMultiplierSchema,J as TextAlignSchema,oe as TreePathSchema,_ as VAlignSchema,ee as WidgetBorderSchema,m as WidgetColorSchema,Z as WidgetDimensionSchema,ne as WidgetPaddingSchema,K as WidgetPositionSchema};
|