@aivex/ui 1.2.0-dev.2 → 1.2.0-dev.3
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/dist/Button-C_GP2mJ-.cjs +2 -0
- package/dist/Button-C_GP2mJ-.cjs.map +1 -0
- package/dist/{Switch-c8rHebeK.js → Button-CzqDPqUT.js} +1956 -4599
- package/dist/Button-CzqDPqUT.js.map +1 -0
- package/dist/IconButton-B-MspnYP.cjs +2 -0
- package/dist/IconButton-B-MspnYP.cjs.map +1 -0
- package/dist/IconButton-DTGSfJme.js +560 -0
- package/dist/IconButton-DTGSfJme.js.map +1 -0
- package/dist/Switch-B2irM7Pp.js +2656 -0
- package/dist/Switch-B2irM7Pp.js.map +1 -0
- package/dist/Switch-CMKBdqkX.cjs +42 -0
- package/dist/Switch-CMKBdqkX.cjs.map +1 -0
- package/dist/comment.cjs +114 -0
- package/dist/comment.cjs.map +1 -0
- package/dist/comment.js +13624 -0
- package/dist/comment.js.map +1 -0
- package/dist/components/Coachmark/Coachmark.d.ts +54 -0
- package/dist/components/Coachmark/index.d.ts +2 -0
- package/dist/components/Comment/CommentInput.d.ts +30 -0
- package/dist/components/Comment/CommentPin.d.ts +17 -0
- package/dist/components/Comment/MentionInput.d.ts +30 -0
- package/dist/components/Comment/MentionList.d.ts +14 -0
- package/dist/components/Comment/index.d.ts +4 -0
- package/dist/components/Comment/types.d.ts +12 -0
- package/dist/components/Comment/useMentionSuggestion.d.ts +15 -0
- package/dist/components/Logo/index.d.ts +2 -1
- package/dist/components/ShapeEditor/ShapeEditor.d.ts +1 -1
- package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +2 -1
- package/dist/components/ShapeEditor/_model/props.d.ts +11 -0
- package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +3 -0
- package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +4 -0
- package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +2 -0
- package/dist/components/Slider/Slider.d.ts +3 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1933 -2284
- package/dist/index.js.map +1 -1
- package/dist/shape-editor.cjs +1 -1
- package/dist/shape-editor.cjs.map +1 -1
- package/dist/shape-editor.js +1105 -1061
- package/dist/shape-editor.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +13 -2
- package/dist/Switch-DX-FkCbT.cjs +0 -42
- package/dist/Switch-DX-FkCbT.cjs.map +0 -1
- package/dist/Switch-c8rHebeK.js.map +0 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2
|
+
import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
|
|
3
|
+
import { type ButtonProps } from "@/components/Button";
|
|
4
|
+
/** 버튼은 라벨을 children으로 받고, 스타일(variant/color/size)은 Coachmark가 고정한다. */
|
|
5
|
+
export interface CoachmarkButtonProps extends Omit<ButtonProps, "asChild" | "children" | "className" | "color" | "ref" | "size" | "style" | "variant"> {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
type CoachmarkRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
|
|
9
|
+
declare function CoachmarkRoot(props: CoachmarkRootProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
type CoachmarkTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {
|
|
11
|
+
ref?: Ref<HTMLButtonElement>;
|
|
12
|
+
};
|
|
13
|
+
/** 코치마크를 붙일 요소. asChild로 임의 요소를 감싼다. */
|
|
14
|
+
declare function CoachmarkTrigger({ ref, ...props }: CoachmarkTriggerProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
type CoachmarkAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
|
|
16
|
+
/** 클릭 트리거 없이 특정 요소를 기준점으로만 쓸 때 사용한다. */
|
|
17
|
+
declare function CoachmarkAnchor(props: CoachmarkAnchorProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
interface CoachmarkContentProps extends Omit<ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, "children" | "title"> {
|
|
19
|
+
/** 상단 타이틀. 생략하면 타이틀 영역을 렌더하지 않는다. */
|
|
20
|
+
title?: ReactNode;
|
|
21
|
+
/** 본문(텍스트·이미지 등, min 40 / max 200px, 초과 시 스크롤). */
|
|
22
|
+
children?: ReactNode;
|
|
23
|
+
/** 좌측 하단 보조 버튼(예: 넘기기). */
|
|
24
|
+
tertiaryButton?: CoachmarkButtonProps;
|
|
25
|
+
/** 우측 보조 버튼(예: 이전). */
|
|
26
|
+
secondaryButton?: CoachmarkButtonProps;
|
|
27
|
+
/** 우측 주요 버튼(예: 다음). */
|
|
28
|
+
primaryButton?: CoachmarkButtonProps;
|
|
29
|
+
/** 지정하면 타이틀 우측에 닫기(X) 버튼을 렌더한다. */
|
|
30
|
+
onClose?: () => void;
|
|
31
|
+
/** 닫기 버튼 aria-label. 기본 "닫기". */
|
|
32
|
+
closeAriaLabel?: string;
|
|
33
|
+
ref?: Ref<HTMLDivElement>;
|
|
34
|
+
}
|
|
35
|
+
declare function CoachmarkContent({ className, sideOffset, title, children, tertiaryButton, secondaryButton, primaryButton, onClose, closeAriaLabel, ref, ...props }: CoachmarkContentProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
/**
|
|
37
|
+
* 특정 요소를 가리키며 안내·온보딩 정보를 띄우는 코치마크(Popover-Bubble, 3848:11976).
|
|
38
|
+
* `@radix-ui/react-popover` 기반이라 side/정렬/충돌 회피/화살표 위치를 Radix가 처리한다.
|
|
39
|
+
* 진한 배경 위에 타이틀·닫기·본문·버튼(넘기기/이전/다음)을 담는다.
|
|
40
|
+
*
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <Coachmark open={open} onOpenChange={setOpen}>
|
|
43
|
+
* <Coachmark.Anchor asChild><TriggerEl /></Coachmark.Anchor>
|
|
44
|
+
* <Coachmark.Content side="bottom" title="…" onClose={dismiss}>본문</Coachmark.Content>
|
|
45
|
+
* </Coachmark>
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
declare const Coachmark: typeof CoachmarkRoot & {
|
|
49
|
+
Trigger: typeof CoachmarkTrigger;
|
|
50
|
+
Anchor: typeof CoachmarkAnchor;
|
|
51
|
+
Content: typeof CoachmarkContent;
|
|
52
|
+
};
|
|
53
|
+
export type { CoachmarkAnchorProps, CoachmarkContentProps, CoachmarkRootProps, CoachmarkTriggerProps, };
|
|
54
|
+
export { Coachmark };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { JSONContent } from "@tiptap/react";
|
|
2
|
+
import type { CommentUser } from "./types";
|
|
3
|
+
export interface CommentInputProps {
|
|
4
|
+
/** 작성자(입력행 아바타). */
|
|
5
|
+
user?: CommentUser;
|
|
6
|
+
value: string;
|
|
7
|
+
onChange: (value: string) => void;
|
|
8
|
+
/** 전송(Enter 또는 Send 버튼). 값이 비어 있으면 호출되지 않는다. */
|
|
9
|
+
onSubmit: () => void;
|
|
10
|
+
/** 헤더 닫기 버튼·Esc. */
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
/** 헤더 타이틀(호스트 i18n). 기본 "Comment". */
|
|
13
|
+
title?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
/** 전송 버튼 라벨(호스트 i18n). 기본 "Send". */
|
|
16
|
+
submitLabel?: string;
|
|
17
|
+
/** 전송 중 여부 — 버튼 비활성(스피너 등은 호스트가 submitLabel 자리로). */
|
|
18
|
+
pending?: boolean;
|
|
19
|
+
/** 멘션(@) 후보. 생략하면 멘션 없이 동작. */
|
|
20
|
+
userList?: CommentUser[];
|
|
21
|
+
mentionEmptyText?: string;
|
|
22
|
+
initialContent?: JSONContent;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 새 코멘트 입력 패널 — 옵스 new-editor의 NewCommentPanel 이식(도메인/위치 결합 제거).
|
|
27
|
+
* 코멘트 스레드와 동일한 크롬: 헤더(타이틀+닫기) + 입력행(아바타 · 멘션 입력 · 오른쪽
|
|
28
|
+
* Send 버튼). 화면 배치(핀 오른쪽 등)는 호스트가 감싸는 컨테이너에서 담당한다.
|
|
29
|
+
*/
|
|
30
|
+
export declare function CommentInput({ user, value, onChange, onSubmit, onClose, title, placeholder, submitLabel, pending, userList, mentionEmptyText, initialContent, className, }: CommentInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CommentUser } from "./types";
|
|
2
|
+
export interface CommentPinProps {
|
|
3
|
+
/** 스레드 참여자(작성자 우선). 최대 maxAvatars명까지 아바타를 겹쳐 그린다. */
|
|
4
|
+
users: CommentUser[];
|
|
5
|
+
selected?: boolean;
|
|
6
|
+
/** 해결(resolve)된 코멘트 — 반투명 표시. */
|
|
7
|
+
resolved?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
maxAvatars?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 코멘트 핀(다트) — 옵스 에디터 CommentDart의 말풍선 부분 이식.
|
|
14
|
+
* 좌하단이 뾰족한 말풍선(팁이 코멘트 지점을 가리킴). 위치·스케일 고정은 호스트가
|
|
15
|
+
* ShapeEditor overlayMarkers(anchor "topLeft") 등으로 담당한다.
|
|
16
|
+
*/
|
|
17
|
+
export declare function CommentPin({ users, selected, resolved, onClick, maxAvatars, className, }: CommentPinProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type JSONContent } from "@tiptap/react";
|
|
2
|
+
import { type Ref } from "react";
|
|
3
|
+
import type { CommentUser } from "./types";
|
|
4
|
+
export interface MentionInputHandle {
|
|
5
|
+
/** 입력기에 포커스를 준다(예: 전송 버튼 클릭 후 포커스 유지). */
|
|
6
|
+
focus: () => void;
|
|
7
|
+
}
|
|
8
|
+
export interface MentionInputProps {
|
|
9
|
+
value: string;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
/** Enter(멘션 목록 닫힌 상태) 제출. */
|
|
13
|
+
onSubmit?: () => void;
|
|
14
|
+
/** Esc(멘션 목록 닫힌 상태) 취소. */
|
|
15
|
+
onEscape?: () => void;
|
|
16
|
+
/** 멘션(@) 후보. 빈 배열이면 멘션 없이 플레인 입력처럼 동작한다. */
|
|
17
|
+
userList?: CommentUser[];
|
|
18
|
+
initialContent?: JSONContent;
|
|
19
|
+
/** 멘션 후보 없음 문구(호스트 i18n). */
|
|
20
|
+
mentionEmptyText?: string;
|
|
21
|
+
/** 마운트 시 자동 포커스(기본 true). */
|
|
22
|
+
autoFocus?: boolean;
|
|
23
|
+
/** 명령형 핸들(포커스 제어). */
|
|
24
|
+
handleRef?: Ref<MentionInputHandle>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 멘션(@) 지원 코멘트 입력기 — 옵스 에디터 MentionInput 이식.
|
|
28
|
+
* value는 평문 직렬화(`@[이름](id)`)로 주고받는다.
|
|
29
|
+
*/
|
|
30
|
+
export default function MentionInput({ value, onChange, placeholder, onSubmit, onEscape, userList, initialContent, mentionEmptyText, autoFocus, handleRef, }: MentionInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { CommentUser } from "./types";
|
|
2
|
+
export interface MentionListHandle {
|
|
3
|
+
onKeyDown: (event: KeyboardEvent) => boolean;
|
|
4
|
+
}
|
|
5
|
+
interface MentionListProps {
|
|
6
|
+
items: CommentUser[];
|
|
7
|
+
command: (item: CommentUser) => void;
|
|
8
|
+
/** 후보 없음 문구(호스트 i18n). 기본 "No results found." */
|
|
9
|
+
emptyText?: string;
|
|
10
|
+
ref?: React.Ref<MentionListHandle>;
|
|
11
|
+
}
|
|
12
|
+
/** 멘션(@) 자동완성 목록 — 옵스 에디터 MentionList 이식(도메인 결합 제거). */
|
|
13
|
+
declare const MentionList: import("react").MemoExoticComponent<({ items, command, emptyText, ref, }: MentionListProps) => import("react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export default MentionList;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { CommentInput, type CommentInputProps } from "./CommentInput";
|
|
2
|
+
export { CommentPin, type CommentPinProps } from "./CommentPin";
|
|
3
|
+
export { default as MentionInput, type MentionInputHandle, type MentionInputProps, } from "./MentionInput";
|
|
4
|
+
export type { CommentUser } from "./types";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comment 모듈의 도메인 무관 유저 표현 — 옵스의 UserInfo에서 코멘트 UI가 실제로
|
|
3
|
+
* 쓰는 필드만 추린 것. 호스트가 자기 유저 모델을 이 형태로 매핑해 넘긴다.
|
|
4
|
+
*/
|
|
5
|
+
export interface CommentUser {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
email?: string;
|
|
9
|
+
avatarUrl?: string;
|
|
10
|
+
/** 아바타 배경색(개인 색). 없으면 Avatar가 이름 기반으로 자동 배정. */
|
|
11
|
+
color?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { CommentUser } from "./types";
|
|
2
|
+
/** tiptap Mention 확장에 꽂는 자동완성 설정 — 옵스 에디터 이식(CommentUser 기반). */
|
|
3
|
+
export declare const useMentionSuggestion: (userList: CommentUser[], onOpenChange?: (isOpen: boolean) => void, emptyText?: string) => {
|
|
4
|
+
items: ({ query }: {
|
|
5
|
+
query: string;
|
|
6
|
+
}) => CommentUser[];
|
|
7
|
+
render: () => {
|
|
8
|
+
onStart: (props: Record<string, any>) => void;
|
|
9
|
+
onUpdate(props: Record<string, any>): void;
|
|
10
|
+
onKeyDown(props: {
|
|
11
|
+
event: KeyboardEvent;
|
|
12
|
+
}): boolean;
|
|
13
|
+
onExit(): void;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode, type SVGProps } from "react";
|
|
2
2
|
export interface LogoProps extends Omit<SVGProps<SVGSVGElement>, "color"> {
|
|
3
|
-
/** Logo color (applied to the monochrome master fill). Defaults to
|
|
3
|
+
/** Logo color (applied to the monochrome master fill). Defaults to brand Black #0D0D12 (LOGO 마스터 496:270). */
|
|
4
4
|
color?: string;
|
|
5
5
|
/** Accessible title. When omitted the logo is decorative (aria-hidden). */
|
|
6
6
|
title?: string;
|
|
@@ -11,6 +11,7 @@ export declare const AiVisionTLogo: (props: LogoProps) => ReactNode;
|
|
|
11
11
|
export declare const AiVisionSLogo: (props: LogoProps) => ReactNode;
|
|
12
12
|
export declare const AiVisionMLogo: (props: LogoProps) => ReactNode;
|
|
13
13
|
export declare const AiVDataLogo: (props: LogoProps) => ReactNode;
|
|
14
|
+
export declare const AiVDataSymbol: (props: LogoProps) => ReactNode;
|
|
14
15
|
export declare const AiVOpsLogo: (props: LogoProps) => ReactNode;
|
|
15
16
|
export declare const AiVotLogo: (props: LogoProps) => ReactNode;
|
|
16
17
|
export declare const AiViewLogo: (props: LogoProps) => ReactNode;
|
|
@@ -4,6 +4,6 @@ import type { ShapeEditorProps } from "./_model/props";
|
|
|
4
4
|
* 그리기·히트테스트·뷰포트는 `EditorRenderer`(Konva/Pixi)에 위임한다. `backend`로 교체.
|
|
5
5
|
* 갭(회전/꼭짓점추가 등)은 여기서 한 번 구현하면 양쪽 렌더러에 적용된다.
|
|
6
6
|
*/
|
|
7
|
-
export default function ShapeEditor<TMeta, TMarkerMeta = unknown>({ imageUrl, displayImageUrl, renderImageState, dimmed, initialShapes, selectedIds: controlledSelectedIds, activeTool, draftStyle, draftMeta, readOnly, locked, onLockedInteraction, onIdleEscape, overrideShapeInteraction, defaultViewSettings, viewSettings, onViewSettingsChange, showMinimap, showViewSettings, getContextMenuItems, strings, canMergeSelection, brushSize, zoomBound, zoomAnimationDuration, rois, excludedZones, guideMask, maskPalette, overlayMarkers, renderOverlayMarker, onOverlayMarkerClick, renderImageOverlay, getSelectionLabel, formatSelectionInfo, externalTools, assistant, keymap, handleRef, backend, onActiveToolChange, onSelectionChange, onEditingChange, onShapesCreated, onShapesUpdated, onShapesDeleted, onDrawSessionChange, onViewportChange, }: ShapeEditorProps<TMeta, TMarkerMeta> & {
|
|
7
|
+
export default function ShapeEditor<TMeta, TMarkerMeta = unknown>({ imageUrl, displayImageUrl, renderImageState, dimmed, initialShapes, selectedIds: controlledSelectedIds, activeTool, draftStyle, draftMeta, readOnly, disableMarquee, locked, onLockedInteraction, onIdleEscape, overrideShapeInteraction, defaultViewSettings, viewSettings, onViewSettingsChange, showMinimap, showViewSettings, getContextMenuItems, strings, canMergeSelection, brushSize, zoomBound, zoomAnimationDuration, rois, excludedZones, guideMask, maskPalette, overlayMarkers, renderOverlayMarker, onOverlayMarkerClick, renderImageOverlay, getSelectionLabel, hideSelectionLabelDot, formatSelectionInfo, externalTools, assistant, keymap, handleRef, backend, onActiveToolChange, onSelectionChange, onEditingChange, onShapesCreated, onShapesUpdated, onShapesDeleted, onDrawSessionChange, onViewportChange, }: ShapeEditorProps<TMeta, TMarkerMeta> & {
|
|
8
8
|
backend?: "konva" | "pixi";
|
|
9
9
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,9 +4,10 @@ import type { EditorSelectionInfo } from "../_model/props";
|
|
|
4
4
|
export declare function buildSelectionInfo<TMeta>(shape: EditorShape<TMeta>, points: Point[]): EditorSelectionInfo<TMeta>;
|
|
5
5
|
/** formatSelectionInfo 미지정 시 기본 텍스트. */
|
|
6
6
|
export declare function defaultSelectionInfoText<TMeta>(info: EditorSelectionInfo<TMeta>): string;
|
|
7
|
-
export declare function SelectionInfo<TMeta>({ shapes, getLabel, formatInfo, register, }: {
|
|
7
|
+
export declare function SelectionInfo<TMeta>({ shapes, getLabel, hideDot, formatInfo, register, }: {
|
|
8
8
|
shapes: EditorShape<TMeta>[];
|
|
9
9
|
getLabel?: (shape: EditorShape<TMeta>) => string | undefined;
|
|
10
|
+
hideDot?: boolean;
|
|
10
11
|
formatInfo?: (info: EditorSelectionInfo<TMeta>) => string;
|
|
11
12
|
register: (id: string, el: HTMLDivElement | null) => void;
|
|
12
13
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -150,6 +150,12 @@ export interface ShapeEditorProps<TMeta = unknown, TMarkerMeta = unknown> {
|
|
|
150
150
|
overrideShapeInteraction?: (shape: EditorShape<TMeta>) => Partial<ShapeInteraction> | null | undefined;
|
|
151
151
|
/** 선택 도형 id. 제공하면 selection은 호스트가 소유하는 controlled 모드로 동작한다. */
|
|
152
152
|
selectedIds?: string[];
|
|
153
|
+
/**
|
|
154
|
+
* true면 SELECT 도구의 빈 공간 드래그 마퀴(범위 선택)를 끈다 — 클릭 단건 선택만.
|
|
155
|
+
* 빈 공간 클릭 시 선택 해제는 그대로 동작한다. 단건 선택만 허용하는 뷰어형
|
|
156
|
+
* 호스트(검수 상세 등)에서 켠다.
|
|
157
|
+
*/
|
|
158
|
+
disableMarquee?: boolean;
|
|
153
159
|
activeTool: Tool;
|
|
154
160
|
/** 없으면 그리기 비활성. */
|
|
155
161
|
draftStyle?: ShapeStyle;
|
|
@@ -202,6 +208,11 @@ export interface ShapeEditorProps<TMeta = unknown, TMarkerMeta = unknown> {
|
|
|
202
208
|
* 도메인 무관 — meta 해석은 호스트.
|
|
203
209
|
*/
|
|
204
210
|
getSelectionLabel?: (shape: EditorShape<TMeta>) => string | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* 선택 라벨 배지에서 도형 색을 나타내는 색 점을 숨긴다. 기본 false(표시).
|
|
213
|
+
* 클래스 색이 도메인상 의미가 없는 호스트에서 사용.
|
|
214
|
+
*/
|
|
215
|
+
hideSelectionLabelDot?: boolean;
|
|
205
216
|
/**
|
|
206
217
|
* 선택 도형 아래 표시할 정보 텍스트. 에디터가 계산한 픽셀 데이터(info)를 받아
|
|
207
218
|
* 프로덕트별 템플릿으로 포맷한다. 미지정 시 기본값 `W x H px`. 빈 문자열이면 숨김.
|
|
@@ -85,6 +85,9 @@ export declare class KonvaRenderer implements EditorRenderer {
|
|
|
85
85
|
/** 드래그 중 선택 테두리를 라이브 좌표로 동기화. */
|
|
86
86
|
private updateSelectionBordersLive;
|
|
87
87
|
private selectionOutlinePoints;
|
|
88
|
+
/** 그리는 중 폴리곤 초안 마지막 파라미터 — 줌 시 정점 원 크기 재계산용
|
|
89
|
+
* (선은 strokeScaleEnabled=false로 화면 고정이라 재도색 불필요). */
|
|
90
|
+
private lastPreviewPoly;
|
|
88
91
|
clearPreview(): void;
|
|
89
92
|
clearMarquee(): void;
|
|
90
93
|
private preview;
|
|
@@ -113,6 +113,10 @@ export declare class PixiRenderer {
|
|
|
113
113
|
private previewMaskSprite;
|
|
114
114
|
private previewMaskTexture;
|
|
115
115
|
private previewReady;
|
|
116
|
+
/** 그리는 중 초안(폴리곤/박스) 마지막 파라미터 — 줌 시 화면고정 두께로 재도색용. */
|
|
117
|
+
private lastPreview;
|
|
118
|
+
/** 줌 후 초안을 현재 스케일 기준 두께/정점 크기로 다시 그린다. */
|
|
119
|
+
private repaintPreview;
|
|
116
120
|
private ensurePreview;
|
|
117
121
|
clearPreview(): void;
|
|
118
122
|
clearMarquee(): void;
|
|
@@ -24,6 +24,8 @@ export interface InteractionControllerCtx<TMeta> {
|
|
|
24
24
|
selRef: RefObject<string[]>;
|
|
25
25
|
draftRef: RefObject<ShapeStyle | undefined>;
|
|
26
26
|
readOnlyRef: RefObject<boolean | undefined>;
|
|
27
|
+
/** true면 SELECT 도구 마퀴(범위 선택) 비활성 — 클릭 단건 선택만. */
|
|
28
|
+
disableMarqueeRef?: RefObject<boolean | undefined>;
|
|
27
29
|
/** 편집 잠금(완료 등). true면 편집 시도를 막고 onLockedInteraction 호출. */
|
|
28
30
|
lockedRef: RefObject<boolean | undefined>;
|
|
29
31
|
onLockedInteraction: () => void;
|
|
@@ -2,8 +2,10 @@ import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
|
2
2
|
import type { ComponentPropsWithoutRef, Ref } from "react";
|
|
3
3
|
export interface SliderProps extends ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
|
|
4
4
|
trackClassName?: string | ((index: number) => string | undefined);
|
|
5
|
+
/** 트랙 자체(높이 등)를 한 번씩 다르게 써야 하는 호스트를 위한 국소 오버라이드. */
|
|
6
|
+
trackRootClassName?: string;
|
|
5
7
|
thumbClassName?: string | ((index: number) => string | undefined);
|
|
6
8
|
ref?: Ref<HTMLSpanElement>;
|
|
7
9
|
}
|
|
8
|
-
declare function Slider({ className, trackClassName, thumbClassName, defaultValue, value, min, max, step, onValueChange, ref, ...props }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function Slider({ className, trackClassName, trackRootClassName, thumbClassName, defaultValue, value, min, max, step, onValueChange, ref, ...props }: SliderProps): import("react/jsx-runtime").JSX.Element;
|
|
9
11
|
export { Slider };
|