import type { ralTypes } from '@/components/ral' import { Vector3 } from 'three' import { type patternTypes } from '~/components/pattern' export const predefPillarColors = ['3004', '7043', '6028', '5013', '8016', '1020', '3005', '4009'] export const predefLamelleColors = ['3009', '9003', '6027', '5024', '9001', '1012', '3007', '4007'] const n = 4 const min = 1370 export const use_lamelle_height = () => useState('lamelle_height', () => 0.115) export const use_lamelles_count = () => useState('lamelles_count', () => 14) export const use_fence_section = () => useState('fence_section', () => min * 0.001) export const use_remove_pillar = () => useState('remove_pillar', () => false) export const use_pillar_color = () => useState('pillar_color') export const use_lamelle_color = () => useState('lamelle_color') export const use_pattern = () => useState('pattern', () => 'Без узора') export const use_section_count = () => useState('section_count', () => n) export const use_extra_section = () => useState('extra_section', () => 0) export const use_total_length = () => useState('total_length', () => (((min + 104) * n) + 104) * 0.001) export const use_min_length = () => useState('min_length', () => 700) export const use_max_size = () => useState('max_size', () => 20) export const use_explosion_state = () => useState('explosion_state', () => false) export const use_goto_camera = () => useState('gotocam', () => undefined) export const use_goto_target = () => useState('gotocontrols', () => undefined) export const use_open_calc = () => useState('open_calc', () => [])