1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 10:54:39 +00:00

style(prettier): format project

This commit is contained in:
2022-11-24 06:17:48 +07:00
parent 9a5c028ac0
commit aa8d740ca9
16 changed files with 159 additions and 84 deletions

View File

@@ -15,19 +15,45 @@ const activeProjection = ref<number>(0);
<template>
<div class="container">
<Accordion title="Перемещение">
<FormRange v-for="axis in axes" :label="`${axis} =`" :min="-10" :max="10" :step="0.1" :defaultValue="0"/>
<FormRange
v-for="axis in axes"
:label="`${axis} =`"
:min="-10"
:max="10"
:step="0.1"
:defaultValue="0"
/>
</Accordion>
<Accordion title="Вращение">
<FormRange v-for="axis in axes" :label="`${axis} =`" :min="0" :max="359" :step="1" :defaultValue="0"/>
<FormRange
v-for="axis in axes"
:label="`${axis} =`"
:min="0"
:max="359"
:step="1"
:defaultValue="0"
/>
</Accordion>
<Accordion title="Масштабирование">
<FormRange v-for="axis in axes" :key="axis" :label="`${axis} =`" :min="0.1" :max="5" :step="0.1"
:defaultValue="1"/>
<FormRange
v-for="axis in axes"
:key="axis"
:label="`${axis} =`"
:min="0.1"
:max="5"
:step="0.1"
:defaultValue="1"
/>
</Accordion>
<Accordion title="Проекции">
<GridContainer>
<GridElement v-for="(projection, i) in projections" :key="projection" :is-active="activeProjection === i"
:title="projection" @click="activeProjection = i"/>
<GridElement
v-for="(projection, i) in projections"
:key="projection"
:is-active="activeProjection === i"
:title="projection"
@click="activeProjection = i"
/>
</GridContainer>
</Accordion>
</div>

View File

@@ -5,9 +5,6 @@ const figures = ['Тетраэдр', 'Гексаэдр', 'Октаэдр', 'До
<template>
<h1>Выберете фигуру</h1>
<GridContainer>
<GridElement v-for="figure in figures" :key="figure" :title="figure"/>
<GridElement v-for="figure in figures" :key="figure" :title="figure" />
</GridContainer>
</template>
<style scoped lang="scss">
</style>