12 lines
259 B
TypeScript
12 lines
259 B
TypeScript
import type { Layer } from '../App.types.ts';
|
|
import { getLayers } from '../state.ts';
|
|
|
|
export function getNewLayer(): Layer {
|
|
return {
|
|
id: crypto.randomUUID(),
|
|
isLocked: false,
|
|
isVisible: true,
|
|
name: `새 레이어 ${getLayers().length}${1}`,
|
|
};
|
|
}
|