@solidrt/core 0.0.1 → 0.0.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/package.json +5 -1
- package/src/types.d.ts +11 -4
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidrt/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"author": "Antoine van Wel",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "src/index.ts",
|
|
7
8
|
"exports": {
|
|
@@ -17,6 +18,9 @@
|
|
|
17
18
|
"dependencies": {
|
|
18
19
|
"colord": "^2.9.3"
|
|
19
20
|
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@solidrt/flux-types": "0.0.2"
|
|
23
|
+
},
|
|
20
24
|
"peerDependencies": {
|
|
21
25
|
"@solidjs/signals": "2.0.0-beta.13",
|
|
22
26
|
"@solidjs/universal": "2.0.0-beta.13"
|
package/src/types.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
/// <reference types="@solidrt/flux-types" />
|
|
2
|
+
|
|
1
3
|
import type { Accessor, JSX as SolidJSX } from "@solidjs/signals"
|
|
2
4
|
|
|
3
5
|
declare global {
|
|
4
|
-
let Flux: {
|
|
5
|
-
on(event: string, callback: (data: any) => void): () => void
|
|
6
|
-
}
|
|
7
6
|
|
|
8
7
|
let ffi: {
|
|
9
8
|
createRoot(id: number): void
|
|
@@ -22,6 +21,7 @@ interface FlexboxProps {
|
|
|
22
21
|
gap?: number
|
|
23
22
|
rowGap?: number
|
|
24
23
|
columnGap?: number
|
|
24
|
+
flex?: number | "none" | "auto" | (string & {})
|
|
25
25
|
flexGrow?: number
|
|
26
26
|
flexShrink?: number
|
|
27
27
|
flexBasis?: number
|
|
@@ -77,6 +77,8 @@ export interface LayoutProps extends FlexboxProps, GridProps {
|
|
|
77
77
|
marginLeft?: Dimension
|
|
78
78
|
|
|
79
79
|
overflow?: "visible" | "clip" | "hidden" | "scroll"
|
|
80
|
+
overflowX?: "visible" | "clip" | "hidden" | "scroll"
|
|
81
|
+
overflowY?: "visible" | "clip" | "hidden" | "scroll"
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
import type { LCH } from "./color"
|
|
@@ -97,6 +99,8 @@ export interface TransformProps {
|
|
|
97
99
|
scale?: OA<number>
|
|
98
100
|
x?: OA<number>
|
|
99
101
|
y?: OA<number>
|
|
102
|
+
cx?: OA<number>
|
|
103
|
+
cy?: OA<number>
|
|
100
104
|
}
|
|
101
105
|
|
|
102
106
|
export interface PointerProps {
|
|
@@ -124,6 +128,7 @@ interface Position {
|
|
|
124
128
|
export interface WindowProps extends LayoutProps {
|
|
125
129
|
children?: Children
|
|
126
130
|
title?: string
|
|
131
|
+
fullscreen?: boolean
|
|
127
132
|
vsync?: boolean
|
|
128
133
|
fps?: boolean
|
|
129
134
|
}
|
|
@@ -159,9 +164,11 @@ export interface PathProps extends Position, PaintProps, PointerProps {
|
|
|
159
164
|
}
|
|
160
165
|
|
|
161
166
|
export interface TextProps extends PaintProps {
|
|
162
|
-
children
|
|
167
|
+
children?: Children
|
|
168
|
+
fontFamily?: "sans" | "mono" | (string & {})
|
|
163
169
|
fontSize?: number
|
|
164
170
|
fontStyle?: "normal" | "italic"
|
|
171
|
+
fontWeight?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
|
|
165
172
|
textAlign?: "left" | "right" | "center" | "justify"
|
|
166
173
|
maxLines?: number
|
|
167
174
|
}
|