@conscience-technology/ovenn 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/components/AIMessage/AIMessage.module.css +10 -0
- package/assets/components/AIMessage/AIMessage.tsx +6 -2
- package/assets/components/Breadcrumb/Breadcrumb.module.css +82 -23
- package/assets/components/Breadcrumb/Breadcrumb.tsx +44 -26
- package/assets/components/Breadcrumb/index.ts +1 -0
- package/assets/components/Button/Button.module.css +2 -4
- package/assets/components/Callout/Callout.module.css +44 -18
- package/assets/components/Callout/Callout.tsx +9 -4
- package/assets/components/Callout/index.ts +1 -1
- package/assets/components/Canvas/Canvas.module.css +13 -0
- package/assets/components/Canvas/Canvas.tsx +378 -94
- package/assets/components/Canvas/clipboard.ts +5 -1
- package/assets/components/Canvas/collision.ts +5 -1
- package/assets/components/Canvas/graph.ts +14 -5
- package/assets/components/Canvas/history.ts +11 -4
- package/assets/components/Canvas/index.ts +2 -1
- package/assets/components/Canvas/types.ts +36 -1
- package/assets/components/CanvasEdge/tokens.css +14 -1
- package/assets/components/CanvasNode/tokens.css +13 -10
- package/assets/components/ChatInput/ChatInput.tsx +1 -1
- package/assets/components/ColorField/ColorField.module.css +6 -1
- package/assets/components/ColorPicker/ColorPicker.module.css +3 -0
- package/assets/components/CommandPalette/CommandPalette.module.css +114 -0
- package/assets/components/CommandPalette/CommandPalette.tsx +206 -21
- package/assets/components/CommandPalette/index.ts +1 -0
- package/assets/components/Drawer/Drawer.module.css +30 -0
- package/assets/components/Drawer/Drawer.tsx +75 -16
- package/assets/components/Drawer/index.ts +1 -0
- package/assets/components/Icon/Icon.tsx +3 -0
- package/assets/components/Input/Input.module.css +3 -3
- package/assets/components/Select/Select.module.css +1 -1
- package/assets/components/SocialLoginButton/SocialLoginButton.module.css +198 -0
- package/assets/components/SocialLoginButton/SocialLoginButton.tsx +86 -0
- package/assets/components/SocialLoginButton/assets/amazon.svg +1 -0
- package/assets/components/SocialLoginButton/assets/apple.svg +3 -0
- package/assets/components/SocialLoginButton/assets/discord.svg +3 -0
- package/assets/components/SocialLoginButton/assets/facebook-white.png +0 -0
- package/assets/components/SocialLoginButton/assets/facebook.png +0 -0
- package/assets/components/SocialLoginButton/assets/github.svg +3 -0
- package/assets/components/SocialLoginButton/assets/google-mark.png +0 -0
- package/assets/components/SocialLoginButton/assets/kakao.svg +3 -0
- package/assets/components/SocialLoginButton/assets/line-icon.png +0 -0
- package/assets/components/SocialLoginButton/assets/line-white.png +0 -0
- package/assets/components/SocialLoginButton/assets/linkedin-white.png +0 -0
- package/assets/components/SocialLoginButton/assets/linkedin.png +0 -0
- package/assets/components/SocialLoginButton/assets/microsoft.svg +6 -0
- package/assets/components/SocialLoginButton/assets/naver.png +0 -0
- package/assets/components/SocialLoginButton/assets/slack.svg +17 -0
- package/assets/components/SocialLoginButton/assets/spotify.svg +3 -0
- package/assets/components/SocialLoginButton/assets/twitch.svg +21 -0
- package/assets/components/SocialLoginButton/assets/wechat.png +0 -0
- package/assets/components/SocialLoginButton/assets/x.svg +3 -0
- package/assets/components/SocialLoginButton/index.ts +2 -0
- package/assets/components/SocialLoginButton/provider-tokens.css +30 -0
- package/assets/components/SocialLoginButton/providers.ts +23 -0
- package/assets/components/_data.ts +1 -1
- package/assets/components/component-registry.json +30 -1
- package/assets/components/index.ts +1 -0
- package/assets/components/tokens.css +13 -6
- package/assets/prompts/ASSEMBLY.md +2 -0
- package/assets/prompts/CATALOG.md +1 -0
- package/assets/prompts/axes/material.md +4 -4
- package/assets/prompts/axes/shape.md +2 -2
- package/assets/prompts/components/_variants.md +1 -1
- package/assets/prompts/components/ai-message.md +6 -2
- package/assets/prompts/components/breadcrumb.md +11 -5
- package/assets/prompts/components/button.md +1 -1
- package/assets/prompts/components/callout.md +8 -4
- package/assets/prompts/components/canvas-edge.md +1 -1
- package/assets/prompts/components/canvas-node.md +1 -1
- package/assets/prompts/components/canvas.md +24 -8
- package/assets/prompts/components/command-palette.md +52 -44
- package/assets/prompts/components/drawer.md +15 -1
- package/assets/prompts/components/list-item.md +1 -1
- package/assets/prompts/components/social-login-button.md +117 -0
- package/assets/prompts/design-examples/ai-chat-full-page.png +0 -0
- package/assets/prompts/design-examples/catalog.json +9 -9
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.module.css +37 -1
- package/assets/prompts/design-examples/sources/ai-chat-full-page/ChatExperience.tsx +113 -18
- package/assets/prompts/design-examples/sources/ai-chat-full-page/FullPageChat.tsx +2 -2
- package/assets/prompts/design-examples/sources/ai-chat-full-page/REFERENCE.md +3 -1
- package/assets/prompts/design-examples/sources/ai-chat-full-page/useChatDemo.ts +99 -51
- package/assets/prompts/tokens/material.md +5 -2
- package/assets/prompts/tokens/radius.md +1 -1
- package/assets/prompts/use-cases/chat-chat-input.md +382 -74
- package/assets/prompts/use-cases/data-list-item.md +38 -431
- package/assets/prompts/use-cases/feedback-drawer.md +112 -33
- package/assets/prompts/use-cases/overlay-command-palette.md +2004 -0
- package/assets/prompts/use-cases/structure-canvas.md +1016 -0
- package/package.json +1 -1
|
@@ -1,22 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { useRef, useState } from "react";
|
|
3
|
+
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import type { ChatAttachment } from "@/components/ovenn/ChatInput";
|
|
4
5
|
import { useDemoTextStream } from "./useDemoTextStream";
|
|
5
6
|
|
|
6
|
-
export type ChatDemoMessage = {
|
|
7
|
+
export type ChatDemoMessage = {
|
|
8
|
+
id: string;
|
|
9
|
+
role: "user" | "assistant";
|
|
10
|
+
text: string;
|
|
11
|
+
isStreaming?: boolean;
|
|
12
|
+
interruption?: "failed" | "stopped";
|
|
13
|
+
attachments?: ChatAttachment[];
|
|
14
|
+
};
|
|
7
15
|
export type ChatDemoThread = {
|
|
8
16
|
id: string;
|
|
9
17
|
title: string;
|
|
10
18
|
draft: string;
|
|
19
|
+
attachments: ChatAttachment[];
|
|
11
20
|
messages: ChatDemoMessage[];
|
|
12
21
|
};
|
|
13
22
|
|
|
14
|
-
export function useChatDemo(getReply: (text: string) => string, getTitle: (text: string) => string) {
|
|
23
|
+
export function useChatDemo(getReply: (text: string, hasAttachments: boolean) => string, getTitle: (text: string) => string, initialMessages: ChatDemoMessage[] = []) {
|
|
15
24
|
const sequence = useRef(1);
|
|
16
25
|
const delivery = useDemoTextStream();
|
|
17
26
|
const pendingThreads = useRef(new Set<string>());
|
|
18
27
|
const [threads, setThreads] = useState<ChatDemoThread[]>([
|
|
19
|
-
{ id: "chat-0", title: "", draft: "",
|
|
28
|
+
{ id: "chat-0", title: initialMessages.length ? getTitle(initialMessages[0].text) : "", draft: "", attachments: [], messages: initialMessages },
|
|
20
29
|
]);
|
|
21
30
|
const [activeId, setActiveId] = useState("chat-0");
|
|
22
31
|
const activeThread = threads.find((thread) => thread.id === activeId) ?? threads[0];
|
|
@@ -25,41 +34,87 @@ export function useChatDemo(getReply: (text: string) => string, getTitle: (text:
|
|
|
25
34
|
setThreads((previous) => previous.map((thread) => thread.id === activeId ? { ...thread, draft } : thread));
|
|
26
35
|
};
|
|
27
36
|
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
if (!
|
|
51
|
-
|
|
37
|
+
const imageUrls = useRef(new Set<string>());
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
const used = new Set<string>();
|
|
40
|
+
for (const thread of threads) {
|
|
41
|
+
for (const attachment of [...thread.attachments, ...thread.messages.flatMap((message) => message.attachments ?? [])]) {
|
|
42
|
+
if (attachment.kind === "image" && attachment.src) used.add(attachment.src);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
for (const url of imageUrls.current) {
|
|
46
|
+
if (used.has(url)) continue;
|
|
47
|
+
URL.revokeObjectURL(url);
|
|
48
|
+
imageUrls.current.delete(url);
|
|
49
|
+
}
|
|
50
|
+
}, [threads]);
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
const urls = imageUrls.current;
|
|
53
|
+
return () => { urls.forEach((url) => URL.revokeObjectURL(url)); urls.clear(); };
|
|
54
|
+
}, []);
|
|
55
|
+
|
|
56
|
+
const attach = (files: File[]) => {
|
|
57
|
+
const attachments = files.map((file): ChatAttachment => {
|
|
58
|
+
const id = `attachment-${sequence.current++}`;
|
|
59
|
+
if (!file.type.startsWith("image/")) return { id, kind: "file", filename: file.name };
|
|
60
|
+
const src = URL.createObjectURL(file);
|
|
61
|
+
imageUrls.current.add(src);
|
|
62
|
+
return { id, kind: "image", src, alt: file.name };
|
|
63
|
+
});
|
|
64
|
+
setThreads((previous) => previous.map((thread) => thread.id === activeId ? {
|
|
65
|
+
...thread, attachments: [...thread.attachments, ...attachments],
|
|
66
|
+
} : thread));
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const removeAttachment = (id: string) => {
|
|
70
|
+
setThreads((previous) => previous.map((thread) => thread.id === activeId ? {
|
|
71
|
+
...thread, attachments: thread.attachments.filter((attachment) => attachment.id !== id),
|
|
72
|
+
} : thread));
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const streamReply = (threadId: string, assistantId: string, prompt: ChatDemoMessage) => {
|
|
76
|
+
pendingThreads.current.add(threadId);
|
|
77
|
+
delivery.start(threadId, getReply(prompt.text, !!prompt.attachments?.length), (text, isStreaming) => {
|
|
78
|
+
if (!isStreaming) pendingThreads.current.delete(threadId);
|
|
79
|
+
setThreads((previous) => previous.map((thread) => thread.id === threadId ? {
|
|
52
80
|
...thread,
|
|
53
|
-
messages: thread.messages.map((message) => message.id === assistantId ? {
|
|
81
|
+
messages: thread.messages.map((message) => message.id === assistantId ? {
|
|
82
|
+
...message, text, isStreaming, interruption: undefined,
|
|
83
|
+
} : message),
|
|
54
84
|
} : thread));
|
|
55
85
|
});
|
|
56
86
|
};
|
|
57
87
|
|
|
88
|
+
const send = (text: string, useDraft = true) => {
|
|
89
|
+
const value = text.trim();
|
|
90
|
+
const attachments = useDraft ? activeThread.attachments : [];
|
|
91
|
+
if ((!value && !attachments.length) || pendingThreads.current.has(activeId)) return;
|
|
92
|
+
const messageId = `${activeId}-${activeThread.messages.length}`;
|
|
93
|
+
const assistantId = `${messageId}-assistant`;
|
|
94
|
+
const prompt: ChatDemoMessage = { id: `${messageId}-user`, role: "user", text: value, attachments };
|
|
95
|
+
const failed = value === "/fail";
|
|
96
|
+
const firstFile = attachments[0];
|
|
97
|
+
const title = value || (firstFile?.kind === "file" ? firstFile.filename : firstFile?.alt) || "";
|
|
98
|
+
setThreads((previous) => previous.map((thread) => thread.id === activeId ? {
|
|
99
|
+
...thread,
|
|
100
|
+
title: thread.title || getTitle(title),
|
|
101
|
+
draft: useDraft ? "" : thread.draft,
|
|
102
|
+
attachments: useDraft ? [] : thread.attachments,
|
|
103
|
+
messages: [...thread.messages, prompt, {
|
|
104
|
+
id: assistantId, role: "assistant", text: "",
|
|
105
|
+
interruption: failed ? "failed" : undefined, isStreaming: !failed,
|
|
106
|
+
}],
|
|
107
|
+
} : thread));
|
|
108
|
+
if (!failed) streamReply(activeId, assistantId, prompt);
|
|
109
|
+
};
|
|
110
|
+
|
|
58
111
|
const stop = () => {
|
|
59
112
|
delivery.stop(activeId);
|
|
60
113
|
pendingThreads.current.delete(activeId);
|
|
61
114
|
setThreads((previous) => previous.map((thread) => thread.id === activeId ? {
|
|
62
|
-
...thread, messages: thread.messages.map((message) => message.isStreaming ? {
|
|
115
|
+
...thread, messages: thread.messages.map((message) => message.isStreaming ? {
|
|
116
|
+
...message, isStreaming: false, interruption: message.text ? undefined : "stopped",
|
|
117
|
+
} : message),
|
|
63
118
|
} : thread));
|
|
64
119
|
};
|
|
65
120
|
|
|
@@ -70,22 +125,22 @@ export function useChatDemo(getReply: (text: string) => string, getTitle: (text:
|
|
|
70
125
|
const targetId = activeId;
|
|
71
126
|
const assistantId = `${targetId}-${index}-assistant`;
|
|
72
127
|
delivery.stop(targetId);
|
|
73
|
-
pendingThreads.current.add(targetId);
|
|
74
128
|
setThreads((previous) => previous.map((thread) => thread.id === targetId ? {
|
|
75
129
|
...thread,
|
|
76
130
|
messages: [
|
|
77
131
|
...thread.messages.slice(0, index),
|
|
78
|
-
{
|
|
132
|
+
{ ...thread.messages[index], text: value },
|
|
79
133
|
{ id: assistantId, role: "assistant", text: "", isStreaming: true },
|
|
80
134
|
],
|
|
81
135
|
} : thread));
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
136
|
+
streamReply(targetId, assistantId, { ...activeThread.messages[index], text: value });
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
const retry = (messageId: string) => {
|
|
140
|
+
if (pendingThreads.current.has(activeId)) return;
|
|
141
|
+
const index = activeThread.messages.findIndex((message) => message.id === messageId && message.interruption);
|
|
142
|
+
const prompt = activeThread.messages[index - 1];
|
|
143
|
+
if (prompt?.role === "user") streamReply(activeId, messageId, prompt);
|
|
89
144
|
};
|
|
90
145
|
|
|
91
146
|
const regenerate = (messageId: string) => {
|
|
@@ -94,28 +149,21 @@ export function useChatDemo(getReply: (text: string) => string, getTitle: (text:
|
|
|
94
149
|
const prompt = activeThread.messages[index - 1];
|
|
95
150
|
if (index < 1 || prompt?.role !== "user") return;
|
|
96
151
|
const targetId = activeId;
|
|
97
|
-
pendingThreads.current.add(targetId);
|
|
98
152
|
setThreads((previous) => previous.map((thread) => thread.id === targetId ? {
|
|
99
153
|
...thread,
|
|
100
154
|
messages: [...thread.messages.slice(0, index), { id: messageId, role: "assistant", text: "", isStreaming: true }],
|
|
101
155
|
} : thread));
|
|
102
|
-
|
|
103
|
-
if (!streaming) pendingThreads.current.delete(targetId);
|
|
104
|
-
setThreads((previous) => previous.map((thread) => thread.id === targetId ? {
|
|
105
|
-
...thread,
|
|
106
|
-
messages: thread.messages.map((message) => message.id === messageId ? { ...message, text, isStreaming: streaming } : message),
|
|
107
|
-
} : thread));
|
|
108
|
-
});
|
|
156
|
+
streamReply(targetId, messageId, prompt);
|
|
109
157
|
};
|
|
110
158
|
|
|
111
159
|
const createThread = () => {
|
|
112
|
-
const empty = threads.find((thread) => thread.messages.length === 0 && !thread.draft && !thread.title);
|
|
160
|
+
const empty = threads.find((thread) => thread.messages.length === 0 && !thread.draft.trim() && !thread.title && !thread.attachments.length);
|
|
113
161
|
if (empty) {
|
|
114
162
|
setActiveId(empty.id);
|
|
115
163
|
return;
|
|
116
164
|
}
|
|
117
165
|
const id = `chat-${sequence.current++}`;
|
|
118
|
-
setThreads((previous) => [...previous, { id, title: "", draft: "", messages: [] }]);
|
|
166
|
+
setThreads((previous) => [...previous, { id, title: "", draft: "", attachments: [], messages: [] }]);
|
|
119
167
|
setActiveId(id);
|
|
120
168
|
};
|
|
121
169
|
|
|
@@ -129,11 +177,11 @@ export function useChatDemo(getReply: (text: string) => string, getTitle: (text:
|
|
|
129
177
|
pendingThreads.current.delete(id);
|
|
130
178
|
const remaining = threads.filter((thread) => thread.id !== id);
|
|
131
179
|
if (!remaining.length) {
|
|
132
|
-
remaining.push({ id: `chat-${sequence.current++}`, title: "", draft: "", messages: [] });
|
|
180
|
+
remaining.push({ id: `chat-${sequence.current++}`, title: "", draft: "", attachments: [], messages: [] });
|
|
133
181
|
}
|
|
134
182
|
setThreads(remaining);
|
|
135
183
|
if (activeId === id) setActiveId(remaining[remaining.length - 1].id);
|
|
136
184
|
};
|
|
137
185
|
|
|
138
|
-
return { threads, activeThread, setActiveId, createThread, renameThread, deleteThread, setDraft, send, stop, edit, regenerate, isStreaming: activeThread.messages.some((message) => message.isStreaming) };
|
|
186
|
+
return { threads, activeThread, setActiveId, createThread, renameThread, deleteThread, setDraft, attach, removeAttachment, send, stop, edit, regenerate, retry, isStreaming: activeThread.messages.some((message) => message.isStreaming) };
|
|
139
187
|
}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|---|---|
|
|
11
11
|
| `--surface-glass-bg` | Mode별 tint와 불투명도로 합성한 딤드 표면 |
|
|
12
12
|
| `--surface-glass-border` | `--fg` 라이트5%/다크10% + `--bg`, `--hairline` 두께 |
|
|
13
|
+
| `--surface-glass-field-opacity` | 박스 입력 컨트롤과 메뉴 배경의 불투명도45% |
|
|
14
|
+
| `--surface-glass-field-bg/filled-bg/active-bg` | 기본·채움·활성 입력 배경을45%로 합성 |
|
|
13
15
|
| `--surface-glass-blur` | 8px backdrop blur |
|
|
14
16
|
| `--surface-glass-radius` | `--radius-lg` |
|
|
15
17
|
| `--surface-glass-selected-bg` | `--fg` 8% + `--bg` 92% |
|
|
@@ -21,12 +23,13 @@
|
|
|
21
23
|
| 딤드 있음 | 72% | 40% | 8px | dim/blur Modal·Drawer |
|
|
22
24
|
| CommandPalette | 70% | 70% | 8px | 전역 명령 창 |
|
|
23
25
|
| 일반 딤드 없음 | 80% | 58% | 16px | DatePicker, transparent Modal·none Drawer |
|
|
26
|
+
| 박스 입력 컨트롤 | 45% | 45% | 별도 추가 없음 | Input·Textarea·Select/Combobox 트리거 |
|
|
24
27
|
| ColorPicker | 42% | 42% | 10px | 색상판/입력은 읽을 수 있게 유지, 외곽은 5% 중성 경계 |
|
|
25
|
-
| 메뉴 |
|
|
28
|
+
| 메뉴 | 45% | 45% | 16px | ContextMenu·DropdownMenu·Select의 공통 표면 |
|
|
26
29
|
|
|
27
30
|
다크는 `--surface-glass-tint`로 전경4%를 배경에 섞고, `--surface-glass-border-contrast`를10%로 높여 검은 바탕과 표면의 경계를 구분한다. 라이트는 각각0%·5%다. 불투명도는 `--surface-glass-opacity`·`--surface-glass-floating-opacity`에 저장하며, 로컬 Mode/Material scope도 이 값을 따른다.
|
|
28
31
|
|
|
29
|
-
딤드가 없는 화면은 배경의 색·텍스트가 직접 간섭하므로 불투명도와 블러를 높인다. `--surface-glass-floating-bg`·`--surface-glass-floating-blur`에 값을 저장하고 `--material-floating-bg/filter`로 활성화한다.
|
|
32
|
+
딤드가 없는 화면은 배경의 색·텍스트가 직접 간섭하므로 불투명도와 블러를 높인다. `--surface-glass-floating-bg`·`--surface-glass-floating-blur`에 값을 저장하고 `--material-floating-bg/filter`로 활성화한다. ColorPicker 색상판과 색상 수치 입력은 불투명하게 유지한다. 박스 입력 컨트롤은 `--material-field-bg/filled-bg/active-bg`로 활성화하며 Solid·로컬 Solid·투명도 감소에서는 기존 불투명 표면으로 돌아간다. line과 readOnly의 투명 배경은 그대로 유지한다.
|
|
30
33
|
|
|
31
34
|
### 사용
|
|
32
35
|
- 전역 재질 전환은 [[axes/material]]의 `solid | glass`를 사용한다. `--surface-glass-*`는 재질 원본이며, 활성 표면은 `--material-*` 별칭을 참조한다.
|
|
@@ -6,7 +6,7 @@ Tooltip < Button < Card < Modal 순서는 어떤 프로젝트에서도 유지.
|
|
|
6
6
|
|
|
7
7
|
모서리 형태는 `corner-shape: var(--corner-shape)`로 연결한다. 반경을 상속하는 내부 표면은 `corner-shape: inherit`도 함께 쓴다. 미니 Checkbox·Badge는 `corner-shape-mini`를 사용한다. Switch는 자체 soft/crisp variant의 로컬 토큰을 유지하며 전역 Shape와 독립적이다.
|
|
8
8
|
|
|
9
|
-
Squircle 보정 배율은 `radius-scale`(standard
|
|
9
|
+
Squircle 보정 배율은 `radius-scale`(standard 1.75, soft 1.72, pill 1.8, crisp 1)이다. standard의 기준 반경 10% 축소와 soft의 큰 단계 축소는 배율 이전 기준값에 유지한다. none/full은 배율을 적용하지 않는다. soft의 액션 컨트롤 radius-pill-sm/md/lg는 해당 control 높이의 44%를 상한으로 두어 pill처럼 차는 것을 막는다. 작은 부품은 높이 절반 정규화 때문에 같은 모양이 될 수 있으므로 실제 화면에서 축별 곡선 차이를 확인한다.
|
|
10
10
|
|
|
11
11
|
- 표면 위 SVG 외곽선은 CSS의 radius·corner-shape에서 같은 경로를 생성한다. 별도 rect rx로 일반 원호를 겹치면 squircle과 어긋난다. border/outline 같은 동일 요소의 네이티브 경계와 구분한다.
|
|
12
12
|
|