From 215a0e84e626715d11be7f0e5185d343f1b2ff14 Mon Sep 17 00:00:00 2001 From: Kim Ying <15070078+kimprice@users.noreply.github.com> Date: Thu, 7 Dec 2023 13:43:19 -0800 Subject: [PATCH 1/2] change img field editor to sprite (#1459) --- libs/screen/fieldeditors.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/screen/fieldeditors.ts b/libs/screen/fieldeditors.ts index 5e5ad6ede..3805b054b 100644 --- a/libs/screen/fieldeditors.ts +++ b/libs/screen/fieldeditors.ts @@ -83,10 +83,11 @@ namespace images { * An image * @param image the image */ - //% blockId=image_picker block="%image" shim=TD_ID - //% image.fieldEditor="images" - //% image.fieldOptions.columns=6 - //% image.fieldOptions.width=600 + //% blockId=image_picker block="$image" shim=TD_ID + //% image.fieldEditor="sprite" + //% image.fieldOptions.taggedTemplate="img" + //% image.fieldOptions.decompileIndirectFixedInstances="true" + //% image.fieldOptions.decompileArgumentAsString="true" //% weight=0 group="Create" export function _image(image: Image): Image { return image; From 637e85fedea1e025c77c1413021965ca1a4bdf75 Mon Sep 17 00:00:00 2001 From: Richard Knoll Date: Thu, 7 Dec 2023 15:45:30 -0800 Subject: [PATCH 2/2] Fix simulator build (#1460) * remove type roots * try to exclude node types --- sim/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sim/tsconfig.json b/sim/tsconfig.json index 34990d908..8964f3225 100644 --- a/sim/tsconfig.json +++ b/sim/tsconfig.json @@ -13,7 +13,7 @@ "newLine": "LF", "declaration": true, "sourceMap": false, - "typeRoots": ["../node_modules/@types"] + "types": [] }, "include": [ "../libs/*/sim/*.ts"