Skip to content

Commit

Permalink
feat(server): Add Visible field to built-in widgets (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
KaWaite committed Jan 30, 2023
1 parent d240344 commit 8c1d82e
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 4 deletions.
69 changes: 65 additions & 4 deletions server/pkg/builtin/manifest.yml
Expand Up @@ -1478,10 +1478,6 @@ extensions:
field: item_datatype
type: string
value: number
# - id: navigator
# type: widget
# title: Navigator
# description: Navigator widget
- id: menu
type: widget
name: Menu (legacy)
Expand Down Expand Up @@ -1662,6 +1658,17 @@ extensions:
field: buttonType
type: string
value: camera
- id: visible
title: Visible
type: string
defaultValue: always
choices:
- key: always
label: Always
- key: desktop
label: Desktop only
- key: mobile
label: Mobile only
- id: menu
title: Menu
list: true
Expand Down Expand Up @@ -1747,6 +1754,17 @@ extensions:
type: string
title: Background color
ui: color
- id: visible
title: Visible
type: string
defaultValue: always
choices:
- key: always
label: Always
- key: desktop
label: Desktop only
- key: mobile
label: Mobile only
- id: camera
title: Camera flight sequence
list: true
Expand Down Expand Up @@ -1798,6 +1816,17 @@ extensions:
- id: autoStart
title: Auto start
type: bool
- id: visible
title: Visible
type: string
defaultValue: always
choices:
- key: always
label: Always
- key: desktop
label: Desktop only
- key: mobile
label: Mobile only
- id: stories
title: Stories
representativeField: layer
Expand Down Expand Up @@ -1881,6 +1910,22 @@ extensions:
zone: outer
section: center
area: bottom
schema:
groups:
- id: default
title: Timeline
fields:
- id: visible
title: Visible
type: string
defaultValue: always
choices:
- key: always
label: Always
- key: desktop
label: Desktop only
- key: mobile
label: Mobile only
- id: navigator
type: widget
name: Navigator
Expand All @@ -1891,3 +1936,19 @@ extensions:
zone: outer
section: right
area: top
schema:
groups:
- id: default
title: Navigator
fields:
- id: visible
title: Visible
type: string
defaultValue: always
choices:
- key: always
label: Always
- key: desktop
label: Desktop only
- key: mobile
label: Mobile only
38 changes: 38 additions & 0 deletions server/pkg/builtin/manifest_ja.yml
Expand Up @@ -828,6 +828,12 @@ extensions:
title: リンク
buttonCamera:
title: カメラ
visible:
title: 表示
choices:
always: 常に
desktop: デスクトップのみ
mobile: モバイルのみ
menu:
title: メニュー
fields:
Expand Down Expand Up @@ -868,6 +874,12 @@ extensions:
title: 画像高さ
overlayBgcolor:
title: 背景色
visible:
title: 表示
choices:
always: 常に
desktop: デスクトップのみ
mobile: モバイルのみ
camera:
title: カメラアニメーション
fields:
Expand All @@ -892,6 +904,12 @@ extensions:
title: カメラ
autoStart:
title: 自動再生
visible:
title: 表示
choices:
always: 常に
desktop: デスクトップのみ
mobile: モバイルのみ
stories:
title: ストーリー
fields:
Expand Down Expand Up @@ -931,6 +949,26 @@ extensions:
timeline:
name: タイムライン
description: 時系列データを表示するために、時刻を変更したり時間を再生したりすることができます。
propertySchema:
default:
title: デフォルト
fields:
visible:
title: 表示
choices:
always: 常に
desktop: デスクトップのみのみ
mobile: モバイルのみ
navigator:
name: ナビゲーター
description: ナビゲータを操作することで地球を様々な角度から見ることができます。
propertySchema:
default:
title: デフォルト
fields:
visible:
title: 表示
choices:
always: 常に
desktop: デスクトップのみ
mobile: モバイルのみ

0 comments on commit 8c1d82e

Please sign in to comment.