@fugood/bricks-project 2.25.0-beta.3 → 2.25.0-beta.4
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 +2 -2
- package/package.json.bak +2 -2
- package/types/bricks/Sketch.ts +5 -3
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-project",
|
|
3
|
-
"version": "2.25.0-beta.
|
|
3
|
+
"version": "2.25.0-beta.4",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc --noEmit",
|
|
7
7
|
"build": "bun scripts/build.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@fugood/bricks-cli": "^2.25.0-beta.
|
|
10
|
+
"@fugood/bricks-cli": "^2.25.0-beta.4",
|
|
11
11
|
"@huggingface/gguf": "^0.3.2",
|
|
12
12
|
"@iarna/toml": "^3.0.0",
|
|
13
13
|
"@modelcontextprotocol/sdk": "^1.15.0",
|
package/package.json.bak
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fugood/bricks-ctor",
|
|
3
|
-
"version": "2.25.0-beta.
|
|
3
|
+
"version": "2.25.0-beta.4",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"typecheck": "tsc --noEmit",
|
|
7
7
|
"build": "bun scripts/build.js"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@fugood/bricks-cli": "^2.25.0-beta.
|
|
10
|
+
"@fugood/bricks-cli": "^2.25.0-beta.4",
|
|
11
11
|
"@huggingface/gguf": "^0.3.2",
|
|
12
12
|
"@iarna/toml": "^3.0.0",
|
|
13
13
|
"@modelcontextprotocol/sdk": "^1.15.0",
|
package/types/bricks/Sketch.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* Auto generated by build script
|
|
2
2
|
*
|
|
3
|
-
* Drawing canvas with
|
|
3
|
+
* Drawing canvas with undo/redo, import/export state, and image export
|
|
4
4
|
*/
|
|
5
5
|
import type { SwitchCondInnerStateCurrentCanvas, SwitchCondData, SwitchDef } from '../switch'
|
|
6
6
|
import type { Data, DataLink } from '../data'
|
|
@@ -148,13 +148,15 @@ Default property:
|
|
|
148
148
|
}
|
|
149
149
|
*/
|
|
150
150
|
property?: BrickBasicProperty & {
|
|
151
|
+
/* Initial sketch state to load on mount (object or JSON string from a previous export). When `BRICK_SKETCH_STATE` outlet feeds the same value back via binding, the echo is detected and ignored to avoid an update loop. */
|
|
152
|
+
initialState?: string | DataLink | DataLink | {} | DataLink
|
|
151
153
|
/* Drawing tool */
|
|
152
154
|
tool?: 'pen' | 'eraser' | DataLink
|
|
153
155
|
/* Stroke color */
|
|
154
156
|
strokeColor?: string | DataLink
|
|
155
157
|
/* Stroke width (px) */
|
|
156
158
|
strokeWidth?: number | DataLink
|
|
157
|
-
/* Vary stroke width by pen pressure
|
|
159
|
+
/* Vary stroke width by pen pressure */
|
|
158
160
|
pressureSensitive?: boolean | DataLink
|
|
159
161
|
/* Canvas layout. `cover` fits the brick frame; `extend` lets the canvas grow with content */
|
|
160
162
|
layoutType?: 'cover' | 'extend' | DataLink
|
|
@@ -229,7 +231,7 @@ Default property:
|
|
|
229
231
|
}
|
|
230
232
|
}
|
|
231
233
|
|
|
232
|
-
/* Drawing canvas with
|
|
234
|
+
/* Drawing canvas with undo/redo, import/export state, and image export */
|
|
233
235
|
export type BrickSketch = Brick &
|
|
234
236
|
BrickSketchDef & {
|
|
235
237
|
templateKey: 'BRICK_SKETCH'
|