Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
reearth-app[bot] committed Oct 29, 2024
2 parents ba9a2e3 + d837a91 commit 9da6e63
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 9da6e63

Please sign in to comment.