{#if value}
zoom("in", scene, zoom_speed)} />
zoom("out", scene, zoom_speed)} />
handle_undo()} />
Show Axes
{ if (show_axes) { change_show_axes(scene, show_axes); } else { dispose(); } }} />
{ if (visible_submenu === "camera") { visible_submenu = null; } else { visible_submenu = "camera"; } }} >
Camera Position
{#if visible_submenu === "camera"}
{#each camera_position as camera_value, index}
Axis {label_dict[index + 1]}
change_camera_position(scene, camera_position, zoom_speed)} />
{/each}
{/if}
{ if (visible_submenu === "light") { visible_submenu = null; } else { visible_submenu = "light"; } }} >
Light Position
{#if visible_submenu === "light"} {#each lights as light, index}
Light Type
{ change_light( scene, e.currentTarget.value, light.position, index ); }} > {#each light_list as light_type}
{light_type}
{/each}
{#each light.position as light_value, index}
Axis {label_dict[index + 1]}
change_light(scene, light.type, light.position, index)} />
{/each}
{/each}
= 5} on:click={() => { if (lights.length < 5) { lights = [...lights, { type: "HemiLight", position: [0, 1, 0] }]; add_new_light(scene, [0, 1, 0]); } }}>Add Light
{/if}
{/if}