@campus-admin/core 2.0.8 → 2.1.0
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/PersonalNotes-CpdpdMrP.js +703 -0
- package/dist/PersonalTodos-f4XMo1mg.js +601 -0
- package/dist/ca-BP878D3q.js +143 -0
- package/dist/i18n.d.ts +166 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1652 -1825
- package/dist/layout/CaHeaderBrand.vue.d.ts +4 -0
- package/dist/layout/header-tools.d.ts +30 -0
- package/dist/layout/personal-tools/PersonalNotes.vue.d.ts +9 -0
- package/dist/layout/personal-tools/PersonalTodos.vue.d.ts +9 -0
- package/dist/layout/personal-tools/TodoIcon.vue.d.ts +19 -0
- package/dist/layout/personal-tools/autosave.d.ts +5 -0
- package/dist/layout/personal-tools/done-lines.d.ts +20 -0
- package/dist/layout/personal-tools/list.d.ts +27 -0
- package/dist/layout/personal-tools/position.d.ts +12 -0
- package/dist/layout/personal-tools/shortcuts.d.ts +2 -0
- package/dist/layout/personal-tools/types.d.ts +75 -0
- package/dist/layout/quick-chat/CaQuickChat.vue.d.ts +16 -0
- package/dist/layout/quick-chat/selection.d.ts +4 -0
- package/dist/layout/quick-chat/shortcut.d.ts +1 -0
- package/dist/layout/quick-chat/types.d.ts +45 -0
- package/dist/position-zvf9vBh1.js +71 -0
- package/dist/session-Cvdtq46r.js +389 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +19 -0
- package/package.json +4 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { HeaderBrandProps } from './header-tools.js';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<HeaderBrandProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<HeaderBrandProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
declare const DEFAULT_ORDER: readonly ["search", "notes", "todos", "fullscreen", "language", "notifications", "assistant", "settings", "account"];
|
|
3
|
+
export type HeaderTool = typeof DEFAULT_ORDER[number];
|
|
4
|
+
/** Insert an application component into the top bar without wrapping it in an extra button. */
|
|
5
|
+
export interface HeaderToolItem {
|
|
6
|
+
key: string;
|
|
7
|
+
component: Component;
|
|
8
|
+
permission?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Keep the DOM, keyboard order, and visual order in sync. */
|
|
11
|
+
export declare function headerToolOrder(order?: readonly string[], extra?: readonly string[]): string[];
|
|
12
|
+
export declare function customHeaderTools(items?: readonly HeaderToolItem[]): Map<string, HeaderToolItem>;
|
|
13
|
+
export interface HeaderBrandProps {
|
|
14
|
+
name: string;
|
|
15
|
+
logo?: string;
|
|
16
|
+
subtitle?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Customize the header surface and brand without changing navigation or tools. */
|
|
19
|
+
export interface HeaderAppearance {
|
|
20
|
+
/** Height in CSS pixels. Defaults to 64. */
|
|
21
|
+
height?: number;
|
|
22
|
+
/** Any CSS background value, including an image or gradient. */
|
|
23
|
+
background?: string;
|
|
24
|
+
/** Optional decorative background layer rendered behind the header controls. */
|
|
25
|
+
backgroundComponent?: Component;
|
|
26
|
+
/** Optional replacement for the logo and name block. */
|
|
27
|
+
brandComponent?: Component<HeaderBrandProps>;
|
|
28
|
+
}
|
|
29
|
+
export declare function headerHeight(height?: number): string | undefined;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type PersonalToolsOptions } from './types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
token: string;
|
|
4
|
+
provider: NonNullable<PersonalToolsOptions['notes']>;
|
|
5
|
+
shortcuts?: PersonalToolsOptions['shortcut'];
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type PersonalToolsOptions } from './types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
token: string;
|
|
4
|
+
provider: NonNullable<PersonalToolsOptions['todos']>;
|
|
5
|
+
shortcuts?: PersonalToolsOptions['shortcut'];
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const _default: typeof __VLS_export;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const PATHS: {
|
|
2
|
+
grip: string;
|
|
3
|
+
search: string;
|
|
4
|
+
eye: string;
|
|
5
|
+
'eye-off': string;
|
|
6
|
+
close: string;
|
|
7
|
+
plus: string;
|
|
8
|
+
circle: string;
|
|
9
|
+
'circle-check': string;
|
|
10
|
+
clock: string;
|
|
11
|
+
trash: string;
|
|
12
|
+
check: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Props = {
|
|
15
|
+
name: keyof typeof PATHS;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 便签逐行“完成”(用户 2026-11-26):完成的行以“✓ ”开头,正文仍是纯文本,不改接口和数据库;
|
|
3
|
+
* 显示时这些行画删除线。快捷键默认 ⌘⇧X(Windows Ctrl+Shift+X),可在个人设置里改(动作 notesDone,见 src/shortcuts/)。
|
|
4
|
+
*/
|
|
5
|
+
export declare const DONE_MARK = "\u2713 ";
|
|
6
|
+
export declare function isDoneLine(line: string): boolean;
|
|
7
|
+
export declare function noteLines(text: string): {
|
|
8
|
+
text: string;
|
|
9
|
+
done: boolean;
|
|
10
|
+
}[];
|
|
11
|
+
export declare function hasDoneLine(text: string): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 切换 [start, end] 覆盖的各行:只要有一行没完成就全部标成完成,否则全部取消;空行不动。
|
|
14
|
+
* 选区落在下一行行首(选中整行时常见)不算那一行。返回新正文和新选区。
|
|
15
|
+
*/
|
|
16
|
+
export declare function toggleDoneLines(text: string, start: number, end: number): {
|
|
17
|
+
text: string;
|
|
18
|
+
start: number;
|
|
19
|
+
end: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type PersonalTodoItem as TodoItem } from './types.js';
|
|
2
|
+
export declare function newItem(text: string, id: string): TodoItem | null;
|
|
3
|
+
export declare function addItem(items: TodoItem[], text: string, id: string): TodoItem[];
|
|
4
|
+
export declare const toggleItem: (items: TodoItem[], id: string) => TodoItem[];
|
|
5
|
+
/** 改字:空白文字不改(调用方决定是否改为删除)。 */
|
|
6
|
+
export declare function editText(items: TodoItem[], id: string, text: string): TodoItem[];
|
|
7
|
+
export declare const setDue: (items: TodoItem[], id: string, due: string | null) => TodoItem[];
|
|
8
|
+
export declare const removeItem: (items: TodoItem[], id: string) => TodoItem[];
|
|
9
|
+
/** 把 id 的条目挪到 targetId 的位置:往下挪排在目标后面,往上挪排在目标前面。 */
|
|
10
|
+
export declare function moveItem(items: TodoItem[], id: string, targetId: string): TodoItem[];
|
|
11
|
+
/** 显示哪些条目:默认隐藏已完成;搜索按文字(不分大小写)过滤。 */
|
|
12
|
+
export declare function visibleItems(items: TodoItem[], showDone: boolean, query: string): TodoItem[];
|
|
13
|
+
/** 日期加可选时间,合成保存格式;没有日期就没有到期。 */
|
|
14
|
+
export declare function joinDue(date: string, time: string): string | null;
|
|
15
|
+
export declare function splitDue(due: string | null): {
|
|
16
|
+
date: string;
|
|
17
|
+
time: string;
|
|
18
|
+
};
|
|
19
|
+
/** 解析本地时间;日期不存在(如 2 月 30 日)或格式不对返回 null。 */
|
|
20
|
+
export declare function parseDue(due: string): {
|
|
21
|
+
at: Date;
|
|
22
|
+
hasTime: boolean;
|
|
23
|
+
} | null;
|
|
24
|
+
/** 未完成且已过期;只有日期时当天过完才算过期。 */
|
|
25
|
+
export declare function isOverdue(item: Pick<TodoItem, 'done' | 'due'>, now: Date): boolean;
|
|
26
|
+
/** Format an account-local due date through the active UI locale. */
|
|
27
|
+
export declare function formatDue(due: string, now: Date, locale: string): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type Point = {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
};
|
|
5
|
+
export type Size = {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
export declare function isTopNote(yPercent: number | null, viewportHeight: number, topSnapPx?: number): boolean;
|
|
10
|
+
export declare function clampPosition(point: Point, viewport: Size, card: Size): Point;
|
|
11
|
+
export declare function pixelPosition(point: Point, viewport: Size, card: Size): Point;
|
|
12
|
+
export declare function percentPosition(point: Point, viewport: Size, card: Size): Point;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { IconValue } from '@campus-admin/ui';
|
|
2
|
+
export declare const NOTE_COLORS: readonly ["yellow", "pink", "green", "blue", "purple", "gray"];
|
|
3
|
+
export type NoteColor = typeof NOTE_COLORS[number];
|
|
4
|
+
export interface PersonalNote {
|
|
5
|
+
note_id: string;
|
|
6
|
+
content: string;
|
|
7
|
+
color: NoteColor;
|
|
8
|
+
floating: boolean;
|
|
9
|
+
x: number | null;
|
|
10
|
+
y: number | null;
|
|
11
|
+
collapsed: boolean;
|
|
12
|
+
sort_order: number;
|
|
13
|
+
created_at: string;
|
|
14
|
+
updated_at: string;
|
|
15
|
+
}
|
|
16
|
+
export type PersonalNotePatch = Partial<Pick<PersonalNote, 'content' | 'color' | 'floating' | 'x' | 'y' | 'collapsed' | 'sort_order'>>;
|
|
17
|
+
export interface PersonalNoteSettings {
|
|
18
|
+
enabled: boolean;
|
|
19
|
+
max_per_user: number;
|
|
20
|
+
max_content_length: number;
|
|
21
|
+
autosave_ms: number;
|
|
22
|
+
}
|
|
23
|
+
export interface PersonalTodoItem {
|
|
24
|
+
id: string;
|
|
25
|
+
text: string;
|
|
26
|
+
done: boolean;
|
|
27
|
+
/** Local date or date and time, without a timezone. */
|
|
28
|
+
due: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface PersonalTodos {
|
|
31
|
+
color: NoteColor;
|
|
32
|
+
x: number | null;
|
|
33
|
+
y: number | null;
|
|
34
|
+
items: PersonalTodoItem[];
|
|
35
|
+
}
|
|
36
|
+
export type PersonalToolAction = 'todo' | 'notesHidden' | 'notesDone';
|
|
37
|
+
export interface PersonalToolShortcut {
|
|
38
|
+
label: string;
|
|
39
|
+
aria: string;
|
|
40
|
+
matches: (event: KeyboardEvent) => boolean;
|
|
41
|
+
}
|
|
42
|
+
/** Providers receive the current session token and own transport and persistence. */
|
|
43
|
+
export interface PersonalNotesPlacement {
|
|
44
|
+
/** Page that restores saved floating notes after a reload. */
|
|
45
|
+
homePath?: string;
|
|
46
|
+
/** Window-relative percentages for a newly floated note. */
|
|
47
|
+
initialPosition?: {
|
|
48
|
+
x: number;
|
|
49
|
+
y: number;
|
|
50
|
+
};
|
|
51
|
+
/** Distance from the window top that snaps a dropped note into the dock. */
|
|
52
|
+
topSnapPx?: number;
|
|
53
|
+
}
|
|
54
|
+
export interface PersonalToolsOptions {
|
|
55
|
+
notes?: {
|
|
56
|
+
icon?: IconValue;
|
|
57
|
+
placement?: PersonalNotesPlacement;
|
|
58
|
+
list: (token: string, signal: AbortSignal) => Promise<{
|
|
59
|
+
items: PersonalNote[];
|
|
60
|
+
settings: PersonalNoteSettings;
|
|
61
|
+
}>;
|
|
62
|
+
create: (token: string, signal: AbortSignal) => Promise<PersonalNote>;
|
|
63
|
+
patch: (token: string, signal: AbortSignal, id: string, fields: PersonalNotePatch) => Promise<PersonalNote>;
|
|
64
|
+
remove: (token: string, signal: AbortSignal, id: string) => Promise<void>;
|
|
65
|
+
};
|
|
66
|
+
todos?: {
|
|
67
|
+
icon?: IconValue;
|
|
68
|
+
load: (token: string, signal: AbortSignal) => Promise<PersonalTodos>;
|
|
69
|
+
save: (token: string, signal: AbortSignal, todos: PersonalTodos) => Promise<PersonalTodos>;
|
|
70
|
+
};
|
|
71
|
+
/** Omit for the built-in shortcuts, or return null to disable one action. */
|
|
72
|
+
shortcut?: (action: PersonalToolAction) => PersonalToolShortcut | null;
|
|
73
|
+
}
|
|
74
|
+
export declare const TODO_MAX_ITEMS = 200;
|
|
75
|
+
export declare const TODO_MAX_TEXT = 500;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { QuickChatOptions } from './types.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
options: QuickChatOptions;
|
|
4
|
+
token: string;
|
|
5
|
+
};
|
|
6
|
+
type __VLS_ModelProps = {
|
|
7
|
+
modelValue: boolean;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { QuickChatField, QuickChatSelection } from './types.js';
|
|
2
|
+
export declare function validSelection(fields: readonly QuickChatField[], selection: QuickChatSelection): QuickChatSelection;
|
|
3
|
+
export declare function changeSelection(fields: readonly QuickChatField[], selection: QuickChatSelection, key: string, value?: string): QuickChatSelection;
|
|
4
|
+
export declare function selectionReady(fields: readonly QuickChatField[], selection: QuickChatSelection): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function quickChatShortcutAllowed(event: Pick<KeyboardEvent, 'defaultPrevented' | 'isComposing' | 'repeat' | 'target'>): boolean;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { Component } from 'vue';
|
|
2
|
+
export type QuickChatSelection = Readonly<Record<string, string>>;
|
|
3
|
+
export interface QuickChatField {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
options: readonly {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
10
|
+
required?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface QuickChatRequest {
|
|
13
|
+
text: string;
|
|
14
|
+
selection: QuickChatSelection;
|
|
15
|
+
threadId?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface QuickChatReply {
|
|
18
|
+
reply?: string;
|
|
19
|
+
threadId?: string;
|
|
20
|
+
}
|
|
21
|
+
/** Contract for an application-supplied composer passed to QuickChatOptions.composer. */
|
|
22
|
+
export interface QuickChatComposerProps {
|
|
23
|
+
draft: string;
|
|
24
|
+
selection: QuickChatSelection;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
sending: boolean;
|
|
27
|
+
setDraft: (value: string) => void;
|
|
28
|
+
send: () => Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
export interface QuickChatShortcut {
|
|
31
|
+
label: string;
|
|
32
|
+
aria: string;
|
|
33
|
+
matches: (event: KeyboardEvent) => boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface QuickChatOptions {
|
|
36
|
+
/** Defaults to G or /. Set false to disable the global trigger. */
|
|
37
|
+
shortcut?: QuickChatShortcut | false;
|
|
38
|
+
title?: string;
|
|
39
|
+
placeholder?: string;
|
|
40
|
+
/** Fields run from parent to child. Selecting a new parent clears its downstream selections. */
|
|
41
|
+
loadFields?: (token: string, selection: QuickChatSelection, signal: AbortSignal) => Promise<readonly QuickChatField[]>;
|
|
42
|
+
send: (token: string, request: QuickChatRequest, signal: AbortSignal) => Promise<QuickChatReply>;
|
|
43
|
+
/** Replaces the input area while using the same panel, validation, and conversation state. */
|
|
44
|
+
composer?: Component<QuickChatComposerProps>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// packages/core/src/layout/personal-tools/types.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"yellow",
|
|
4
|
+
"pink",
|
|
5
|
+
"green",
|
|
6
|
+
"blue",
|
|
7
|
+
"purple",
|
|
8
|
+
"gray"
|
|
9
|
+
], t = {
|
|
10
|
+
todo: ["J", !1],
|
|
11
|
+
notesHidden: ["E", !0],
|
|
12
|
+
notesDone: ["X", !0]
|
|
13
|
+
};
|
|
14
|
+
function n(e, n, r = typeof navigator > "u" ? "" : navigator.platform) {
|
|
15
|
+
if (n) return n(e);
|
|
16
|
+
let [i, a] = t[e], o = /Mac|iPhone|iPad/i.test(r);
|
|
17
|
+
return {
|
|
18
|
+
label: o ? `⌘${a ? "⇧" : ""}${i}` : `Ctrl+${a ? "Shift+" : ""}${i}`,
|
|
19
|
+
aria: `${o ? "Meta" : "Control"}+${a ? "Shift+" : ""}${i}`,
|
|
20
|
+
matches: (e) => !e.defaultPrevented && !e.isComposing && !e.altKey && e.metaKey === o && e.ctrlKey === !o && e.shiftKey === a && (e.code === `Key${i}` || !e.code && e.key.toUpperCase() === i)
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
// packages/core/src/layout/personal-tools/autosave.ts
|
|
24
|
+
function r(e) {
|
|
25
|
+
let t, n, r = !1;
|
|
26
|
+
async function i() {
|
|
27
|
+
if (!(r || n === void 0)) {
|
|
28
|
+
t = void 0, n = void 0, r = !0;
|
|
29
|
+
try {
|
|
30
|
+
await e();
|
|
31
|
+
} finally {
|
|
32
|
+
r = !1, n !== void 0 && a();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function a() {
|
|
37
|
+
clearTimeout(t), !r && n !== void 0 && (t = setTimeout(() => void i(), Math.max(0, n - Date.now())));
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
schedule(e) {
|
|
41
|
+
n = Date.now() + e, a();
|
|
42
|
+
},
|
|
43
|
+
cancel() {
|
|
44
|
+
n = void 0, clearTimeout(t);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
// packages/core/src/layout/personal-tools/position.ts
|
|
49
|
+
function i(e, t, n = 20) {
|
|
50
|
+
return e !== null && t > 0 && e <= Math.round(n * 1e4 / t) / 100;
|
|
51
|
+
}
|
|
52
|
+
function a(e, t, n) {
|
|
53
|
+
return {
|
|
54
|
+
x: Math.max(0, Math.min(e.x, t.width - n.width)),
|
|
55
|
+
y: Math.max(0, Math.min(e.y, t.height - n.height))
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function o(e, t, n) {
|
|
59
|
+
return a({
|
|
60
|
+
x: e.x * t.width / 100,
|
|
61
|
+
y: e.y * t.height / 100
|
|
62
|
+
}, t, n);
|
|
63
|
+
}
|
|
64
|
+
function s(e, t, n) {
|
|
65
|
+
let { x: r, y: i } = a(e, t, n);
|
|
66
|
+
return {
|
|
67
|
+
x: t.width ? Math.round(r * 1e4 / t.width) / 100 : 0,
|
|
68
|
+
y: t.height ? Math.round(i * 1e4 / t.height) / 100 : 0
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
export { r as a, o as i, i as n, n as o, s as r, e as s, a as t };
|