Skip to content

Commit 8920da6

Browse files
committed
docs: 문서 업데이트
1 parent 50047b7 commit 8920da6

3 files changed

Lines changed: 55 additions & 0 deletions

File tree

docs/plugin/api-reference/keys/page.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ interface KeyPosition {
4848
count: number;
4949
noteColor: string | { type: "gradient"; top: string; bottom: string };
5050
noteOpacity: number;
51+
noteEffectEnabled: boolean;
52+
noteGlowEnabled: boolean;
53+
noteGlowSize: number;
54+
noteGlowOpacity: number;
55+
noteGlowColor?: string | { type: "gradient"; top: string; bottom: string };
56+
noteAutoYCorrection: boolean;
5157
className?: string;
58+
zIndex?: number;
5259
counter: KeyCounterSettings;
5360
}
5461
```

docs/plugin/api-reference/plugin/page.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,23 @@ interface PluginDefinition {
6262
/** 최대 인스턴스 개수 (0 = 무제한, 기본값) */
6363
maxInstances?: number;
6464

65+
/**
66+
* 그리드에서 크기 조절 가능 여부
67+
* @default false
68+
*/
69+
resizable?: boolean;
70+
71+
/**
72+
* 설정 변경 시 유지할 축
73+
* resizable이 true일 때만 적용됨
74+
* - 'width': 가로 크기 유지, 세로는 콘텐츠 따라감
75+
* - 'height': 세로 크기 유지, 가로는 콘텐츠 따라감
76+
* - 'both': 둘 다 유지 (기본값)
77+
* - 'none': 둘 다 콘텐츠 따라감
78+
* @default 'both'
79+
*/
80+
preserveAxis?: "width" | "height" | "both" | "none";
81+
6582
/**
6683
* 리사이즈 앵커 (크기 변경 시 기준점)
6784
* @default "top-left"

docs/plugin/ui-api/page.mdx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,37 @@ dmn.ui.displayElement.add({
366366
});
367367
```
368368

369+
## Color Picker
370+
371+
색상 선택기를 표시합니다.
372+
373+
```javascript
374+
dmn.ui.pickColor({
375+
initialColor: "#ff0000",
376+
onColorChange: (color) => {
377+
console.log("색상 변경 중:", color);
378+
},
379+
onColorChangeComplete: (color) => {
380+
console.log("색상 선택 완료:", color);
381+
},
382+
// 선택적 옵션
383+
position: { x: 100, y: 100 }, // 직접 위치 지정
384+
referenceElement: document.getElementById("my-button"), // 요소 기준 위치
385+
});
386+
```
387+
388+
### 옵션
389+
390+
| 속성 | 타입 | 설명 |
391+
| ----------------------- | --------------- | ------------------------------------------- |
392+
| `initialColor` | string | 초기 색상 (HEX) |
393+
| `onColorChange` | (color) => void | 색상이 변경될 때마다 호출 |
394+
| `onColorChangeComplete` | (color) => void | 색상 선택이 완료되었을 때 호출 |
395+
| `onClose` | () => void | 색상 선택기가 닫힐 때 호출 |
396+
| `position` | \{ x, y \} | 표시 위치 (referenceElement가 없을 때 사용) |
397+
| `referenceElement` | HTMLElement | 이 요소를 기준으로 위치 설정 |
398+
| `id` | string | 고유 ID (중복 방지용) |
399+
369400
## 실전 예제: 설정 패널
370401

371402
```javascript

0 commit comments

Comments
 (0)