Skip to content

Commit

Permalink
refactor(web): update style filed default value & input type model (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
airslice authored Oct 29, 2024
1 parent 69c3c22 commit d837a91
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ const fieldComponents = {
assetsTypes={IMAGE_TYPES}
onChange={props.onUpdate}
/>
),
model: (props: FieldProps) => (
<AssetField
inputMethod="asset"
value={props.value as string}
assetsTypes={["glb"]}
onChange={props.onUpdate}
/>
)
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export const markerNodes: AppearanceNode[] = [
id: "imageSize",
title: "Image Size",
field: "number",
defaultValue: 100
defaultValue: 1
},
{
id: "imageSizeInMeters",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const modelNodes: AppearanceNode[] = [
{
id: "url",
title: "Url",
field: "text",
field: "model",
defaultValue: ""
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ export type AppearanceField =
| "select"
| "text"
| "typography"
| "image";
| "image"
| "model";

export type AppearanceNodes = Record<AppearanceType, AppearanceNode[]>;

Expand Down

0 comments on commit d837a91

Please sign in to comment.