1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 19:55:39 +02:00
This commit is contained in:
syuilo
2026-04-22 19:10:18 +09:00
parent 09d58a3ecf
commit 20d9a03bb3
3 changed files with 4 additions and 35 deletions

View File

@@ -149,39 +149,7 @@ const isZenMode = ref(false);
const isRoomSettingsOpen = ref(false);
const isChanged = ref(false);
const data = localStorage.getItem('roomData') != null ? { ...JSON.parse(localStorage.getItem('roomData')!), ...{
heya: {
type: 'simple',
options: {
dimension: [300, 300],
window: 'demado',
wallN: {
material: null,
color: [0.9, 0.9, 0.9],
},
wallE: {
material: null,
color: [0.33, 0.34, 0.35],
},
wallS: {
material: null,
color: [0.9, 0.9, 0.9],
},
wallW: {
material: null,
color: [0.9, 0.9, 0.9],
},
flooring: {
material: 'wood',
color: [0.9, 0.9, 0.9],
},
ceiling: {
material: null,
color: [0.9, 0.9, 0.9],
},
},
},
} } : {
const data = localStorage.getItem('roomData') != null ? JSON.parse(localStorage.getItem('roomData')!) : {
heya: {
type: 'simple',
options: {

View File

@@ -1633,6 +1633,7 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
}
public updateHeyaOptions(options: RoomState['heya']['options']) {
this.roomState.heya.options = options;
this.heyaManager.applyOptions(options);
this.emit('changeRoomState', { roomState: this.roomState });
}

View File

@@ -32,14 +32,14 @@ export const wallMountSpotLight = defineObject({
label: 'Vertical angle',
min: 0,
max: 1,
step: 0.1,
step: 0.01,
},
angleH: {
type: 'range',
label: 'Horizontal angle',
min: 0,
max: 1,
step: 0.1,
step: 0.01,
},
},
default: {