dphelper 3.2.7 → 3.2.9
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/README.md +19 -7
- package/index.cjs +1 -0
- package/index.js +1 -163
- package/package.json +53 -27
- package/types/dphelper.d.ts +665 -0
- package/CODE_OF_CONDUCT.md +0 -108
- package/FUNDING.yml +0 -12
- package/dphelper.umd.js +0 -163
- package/tools/ai/interface.d.ts +0 -12
- package/tools/anchor/interface.d.ts +0 -7
- package/tools/array/interface.d.ts +0 -22
- package/tools/audio/interface.d.ts +0 -11
- package/tools/avoid/interface.d.ts +0 -3
- package/tools/browser/interface.d.ts +0 -11
- package/tools/check/interface.d.ts +0 -5
- package/tools/color/interface.d.ts +0 -7
- package/tools/cookie/interface.d.ts +0 -13
- package/tools/coords/interface.d.ts +0 -9
- package/tools/credits/interface.d.ts +0 -12
- package/tools/date/interface.d.ts +0 -26
- package/tools/disable/interface.d.ts +0 -9
- package/tools/dispatch/interface.d.ts +0 -5
- package/tools/elements/interface.d.ts +0 -4
- package/tools/events/interface.d.ts +0 -7
- package/tools/fetch/interface.d.ts +0 -16
- package/tools/form/interface.d.ts +0 -14
- package/tools/format/interface.d.ts +0 -4
- package/tools/json/interface.d.ts +0 -9
- package/tools/load/interface.d.ts +0 -9
- package/tools/logging/interface.d.ts +0 -9
- package/tools/math/interface.d.ts +0 -14
- package/tools/memory/interface.d.ts +0 -4
- package/tools/navigation/interface.d.ts +0 -5
- package/tools/objects/interface.d.ts +0 -16
- package/tools/path/interface.d.ts +0 -5
- package/tools/promise/interface.d.ts +0 -4
- package/tools/sanitize/interface.d.ts +0 -3
- package/tools/screen/interface.d.ts +0 -12
- package/tools/scrollbar/interface.d.ts +0 -10
- package/tools/security/interface.d.ts +0 -16
- package/tools/shortcut/interface.d.ts +0 -3
- package/tools/socket/interface.d.ts +0 -13
- package/tools/sse/interface.d.ts +0 -9
- package/tools/svg/interface.d.ts +0 -13
- package/tools/sync/interface.d.ts +0 -14
- package/tools/system/interface.d.ts +0 -3
- package/tools/text/interface.d.ts +0 -13
- package/tools/timer/interface.d.ts +0 -4
- package/tools/tools/interface.d.ts +0 -6
- package/tools/translators/interface.d.ts +0 -3
- package/tools/triggers/interface.d.ts +0 -44
- package/tools/types/interface.d.ts +0 -6
- package/tools/ui/interface.d.ts +0 -4
- package/tools/window/interface.d.ts +0 -10
- package/types/index.d.ts +0 -2
- package/types/scripts/generate-imports.d.ts +0 -1
- package/types/scripts/over.d.ts +0 -1
- package/types/scripts/setProps.d.ts +0 -1
- package/types/scripts/setupGlobal.d.ts +0 -1
- package/types/tools/ai/index.d.ts +0 -1
- package/types/tools/anchor/index.d.ts +0 -1
- package/types/tools/array/index.d.ts +0 -1
- package/types/tools/audio/index.d.ts +0 -1
- package/types/tools/avoid/index.d.ts +0 -1
- package/types/tools/browser/index.d.ts +0 -1
- package/types/tools/check/index.d.ts +0 -1
- package/types/tools/color/index.d.ts +0 -1
- package/types/tools/cookie/index.d.ts +0 -1
- package/types/tools/coords/index.d.ts +0 -1
- package/types/tools/credits/index.d.ts +0 -1
- package/types/tools/date/index.d.ts +0 -1
- package/types/tools/disable/index.d.ts +0 -1
- package/types/tools/dispatch/index.d.ts +0 -1
- package/types/tools/elements/index.d.ts +0 -1
- package/types/tools/events/index.d.ts +0 -1
- package/types/tools/fetch/index.d.ts +0 -1
- package/types/tools/form/index.d.ts +0 -1
- package/types/tools/format/index.d.ts +0 -1
- package/types/tools/json/index.d.ts +0 -1
- package/types/tools/load/index.d.ts +0 -1
- package/types/tools/logging/index.d.ts +0 -1
- package/types/tools/math/index.d.ts +0 -1
- package/types/tools/memory/index.d.ts +0 -1
- package/types/tools/navigation/index.d.ts +0 -1
- package/types/tools/objects/index.d.ts +0 -1
- package/types/tools/path/index.d.ts +0 -1
- package/types/tools/promise/index.d.ts +0 -1
- package/types/tools/sanitize/index.d.ts +0 -1
- package/types/tools/screen/index.d.ts +0 -1
- package/types/tools/screen/popupManager.d.ts +0 -32
- package/types/tools/scrollbar/index.d.ts +0 -1
- package/types/tools/security/index.d.ts +0 -1
- package/types/tools/shortcut/index.d.ts +0 -1
- package/types/tools/socket/index.d.ts +0 -1
- package/types/tools/sse/index.d.ts +0 -1
- package/types/tools/svg/index.d.ts +0 -1
- package/types/tools/sync/index.d.ts +0 -1
- package/types/tools/system/index.d.ts +0 -1
- package/types/tools/text/index.d.ts +0 -1
- package/types/tools/timer/index.d.ts +0 -1
- package/types/tools/tools/index.d.ts +0 -1
- package/types/tools/translators/index.d.ts +0 -1
- package/types/tools/triggers/index.d.ts +0 -1
- package/types/tools/types/index.d.ts +0 -1
- package/types/tools/ui/index.d.ts +0 -1
- package/types/tools/window/index.d.ts +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
interface BrowserTool {
|
|
2
|
-
state(state: any, title: any, url: any): void
|
|
3
|
-
forw(times: number): void
|
|
4
|
-
back(times: number): void
|
|
5
|
-
reload(): void
|
|
6
|
-
href(url: string): void
|
|
7
|
-
offLine(text?: string): void
|
|
8
|
-
zoom(): number
|
|
9
|
-
status(code: number): string
|
|
10
|
-
interlock(onUpdate: (tabs: number) => void): void
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface CoordsTool {
|
|
2
|
-
degreesToRadians: (degrees: any) => any
|
|
3
|
-
latToMeters: (points: any) => any
|
|
4
|
-
toVector: (points: any) => any
|
|
5
|
-
convertToDecDegrees: (deg: any, minutes: any, sec: any, direction: any) => any
|
|
6
|
-
distance: (point1: any, point2: any) => any
|
|
7
|
-
polarToCartesian: (centerX: any, centerY: any, radius: any, angleInDegrees: any) => any
|
|
8
|
-
mapDegreesToPixels: (degree: number, minDegree: number, maxDegree: number, minPixel: number, maxPixel: number, padding: number) => number
|
|
9
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
interface DateTool {
|
|
2
|
-
days: (lang?: string) => string[]
|
|
3
|
-
months: (lang?: string) => string[]
|
|
4
|
-
year: () => number
|
|
5
|
-
toIso: (value: any, int?: string) => string | null
|
|
6
|
-
toMMDDYYYY: (value: any) => string
|
|
7
|
-
toYYYYMMDD: (value: any) => string | undefined
|
|
8
|
-
toHuman: (value: any) => string
|
|
9
|
-
convert: (value: any, format: string[]) => string | null
|
|
10
|
-
iso2Epoch: (value: any) => number
|
|
11
|
-
localIsoTime: (value: any) => string
|
|
12
|
-
utc: () => string
|
|
13
|
-
parse: (value: any, separator?: string) => string | null
|
|
14
|
-
addDays: (date: any, days: number) => Date
|
|
15
|
-
dateTimeToString: (dateObject: any) => string
|
|
16
|
-
isoToHuman: (value: any, symbol?: string) => string | null
|
|
17
|
-
fullDate: () => string
|
|
18
|
-
epoch: () => number
|
|
19
|
-
diffInDays: (d1: any, d2: any) => number
|
|
20
|
-
diffInWeeks: (d1: any, d2: any) => number
|
|
21
|
-
diffInMonths: (d1: any, d2: any) => number
|
|
22
|
-
diffInYears: (d1: any, d2: any) => number
|
|
23
|
-
dateToYMD: (date: any) => string
|
|
24
|
-
collection: (params: { date?: Date; type: string; locale?: string }) => string | undefined
|
|
25
|
-
timeZones: () => string[]
|
|
26
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface EventsTool {
|
|
2
|
-
list: (el: Element) => any
|
|
3
|
-
multi: (element: Element, eventNames: string, listener: EventListener) => void
|
|
4
|
-
copy: (el: string) => void
|
|
5
|
-
onDrag: (elem: string) => void
|
|
6
|
-
keys: (e: KeyboardEvent) => { key: string; ctrl: boolean; alt: boolean; shift: boolean }
|
|
7
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface FetchTool {
|
|
2
|
-
/**
|
|
3
|
-
* Perform a resilient fetch with automatic retries and exponential backoff.
|
|
4
|
-
*/
|
|
5
|
-
(url: string, options?: any, retries?: number, backoff?: number): Promise<Response>
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Perform a GET request.
|
|
9
|
-
*/
|
|
10
|
-
get: (url: string, options?: any) => Promise<Response>
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Perform a POST request with optional JSON body auto-serialization.
|
|
14
|
-
*/
|
|
15
|
-
post: (url: string, body: any, options?: any) => Promise<Response>
|
|
16
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface FormTool {
|
|
2
|
-
serialize: (form: HTMLFormElement) => { [key: string]: any }
|
|
3
|
-
confirmType: (type: string, value: any) => boolean
|
|
4
|
-
required: (value: any) => string | undefined
|
|
5
|
-
minLength: (value: any, num?: number) => string | undefined
|
|
6
|
-
maxLength: (value: any, num?: number) => string | undefined
|
|
7
|
-
maxPhoneNumber: (value: any, num?: number) => string | undefined
|
|
8
|
-
isNumeric: (value: any) => boolean
|
|
9
|
-
isEmail: (value: any) => boolean
|
|
10
|
-
pattern: (e: Event) => void
|
|
11
|
-
noSpecialChars: (e: Event) => void
|
|
12
|
-
table: (size: [number, number], id: string, elem: HTMLElement) => void
|
|
13
|
-
sanitize: (str: string) => string | undefined
|
|
14
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface JsonTool {
|
|
2
|
-
counter: (json: any, key?: string, val?: any) => number | null
|
|
3
|
-
toCsv: (jsonInput: any) => string
|
|
4
|
-
saveCsvAs: (csvData: string, fileName: string) => void
|
|
5
|
-
is: (str: string) => boolean
|
|
6
|
-
parse: (file: string) => any
|
|
7
|
-
sanitize: (str: string) => string
|
|
8
|
-
sanitizeJsonValue: (str: string) => string
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
interface LoadTool {
|
|
2
|
-
all: (context: any, cacheName?: string) => void
|
|
3
|
-
file: (filePath: string) => Promise<string>
|
|
4
|
-
fileToElement: (elementSelector: string, filePath: string) => Promise<void>
|
|
5
|
-
json: (filePath: string) => Promise<any>
|
|
6
|
-
remote: (path: string, method?: string, headers?: HeadersInit) => Promise<any>
|
|
7
|
-
script: (scripts: string[], elementSelector?: string) => void
|
|
8
|
-
toJson: (context: any, cacheName?: string) => void
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface MathTool {
|
|
2
|
-
rnd: () => number
|
|
3
|
-
tmr: () => number
|
|
4
|
-
add: (a: number, b: number) => number
|
|
5
|
-
sub: (a: number, b: number) => number
|
|
6
|
-
multi: (a: number, b: number) => number
|
|
7
|
-
div: (a: number, b: number) => number
|
|
8
|
-
rem: (a: number, b: number) => number
|
|
9
|
-
exp: (a: number, b: number) => number
|
|
10
|
-
isOdd: (a: number) => boolean
|
|
11
|
-
float2int: (a: number) => number
|
|
12
|
-
percent: (n: number, tot: number) => number
|
|
13
|
-
isPrime: (n: number) => boolean
|
|
14
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface ObjectsTool {
|
|
2
|
-
toArray: (object: Record<string, any>) => [string, any][]
|
|
3
|
-
replaceNullObjects: (data: Record<string, any>) => Record<string, any>
|
|
4
|
-
serialize: (value: any) => any
|
|
5
|
-
deSerialize: (valueNew: any) => any
|
|
6
|
-
sort: (o: Record<string, any>) => Record<string, any>
|
|
7
|
-
toXML: (obj: Record<string, any>) => string
|
|
8
|
-
find: (array: any[], key: string, value: any) => any
|
|
9
|
-
instance: (obj: any) => any
|
|
10
|
-
updateByKey: (obj: Record<string, any>, key: string, newValue: any) => Record<string, any>
|
|
11
|
-
findindex: (array: any[], key: string) => number
|
|
12
|
-
parse: (val: any) => any
|
|
13
|
-
isObject: (val: any) => boolean
|
|
14
|
-
diff: (obj1: Record<string, any>, obj2: Record<string, any>) => Record<string, { obj1: any, obj2: any }>
|
|
15
|
-
path: (prop: string, array: string[], separator?: string) => string
|
|
16
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface ScrollbarTool {
|
|
2
|
-
custom: (el: string, options: any) => void
|
|
3
|
-
indicator: (props: any) => void
|
|
4
|
-
position: {
|
|
5
|
-
get: (el: any) => void
|
|
6
|
-
set: (el: any) => void
|
|
7
|
-
}
|
|
8
|
-
smooth: (target: any, speed: any, smooth: any) => void
|
|
9
|
-
scrollTo: (container: string, element: string, gap?: number) => void
|
|
10
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface SecurityTool {
|
|
2
|
-
uuid: {
|
|
3
|
-
byVal: (string: string) => string
|
|
4
|
-
v4: string
|
|
5
|
-
v5: string
|
|
6
|
-
}
|
|
7
|
-
hashPass: (u: string, p: string, t?: string) => Promise<string>
|
|
8
|
-
crypt: (u: string, p: string, mode?: string) => string
|
|
9
|
-
deCrypt: (u: string, p: string, mode?: string) => string
|
|
10
|
-
AES_KeyGen: (passKey?: string) => string
|
|
11
|
-
SHA256_Hex: (passKey: string) => string
|
|
12
|
-
ulid: () => string
|
|
13
|
-
fingerprint: () => string
|
|
14
|
-
saveEncrypted: (key: string, value: string, secret: string) => void
|
|
15
|
-
getEncrypted: (key: string, secret: string) => string | null
|
|
16
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface SocketTool {
|
|
2
|
-
info: () => string
|
|
3
|
-
start: (element: any, server: any, name: string) => void
|
|
4
|
-
conn: (id: any, server: any, name: string) => void
|
|
5
|
-
connect: (server: any, name: string) => void
|
|
6
|
-
open: (id: any, server: any, name: string) => void
|
|
7
|
-
send: (mex: any, type?: string) => void
|
|
8
|
-
ping: (name: string) => void
|
|
9
|
-
receive: (el?: any, name?: string) => void
|
|
10
|
-
keepAlive: (name: string) => void
|
|
11
|
-
check: () => void
|
|
12
|
-
list: () => WebSocket[]
|
|
13
|
-
}
|
package/tools/sse/interface.d.ts
DELETED
package/tools/svg/interface.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface SvgTool {
|
|
2
|
-
init: (container: HTMLElement, source1: [HTMLElement, string], source2: [HTMLElement, string], cb?: Function) => void
|
|
3
|
-
check: () => boolean
|
|
4
|
-
update: (rect1: HTMLElement, rect2: HTMLElement, cxn: HTMLElement) => void
|
|
5
|
-
getCurve: (p1: [number, number], p2: [number, number], dx: number) => string
|
|
6
|
-
getIntersection: (dx: number, dy: number, cx: number, cy: number, w: number, h: number) => [number, number]
|
|
7
|
-
setConnector: (source: HTMLElement, side: string) => HTMLElement
|
|
8
|
-
removeConnection: (container: HTMLElement) => void
|
|
9
|
-
makeScrollable: (svgContainer: HTMLElement, scrollContainer: HTMLElement, elm1: HTMLElement, elm2: HTMLElement, rect1: HTMLElement, rect2: HTMLElement) => void
|
|
10
|
-
makeDraggable: (evt: Event) => void
|
|
11
|
-
toggle: (evt: Event, container: HTMLElement, source1: HTMLElement, source2: HTMLElement) => void
|
|
12
|
-
convert: (options: any) => string | void
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
interface SyncTool {
|
|
2
|
-
/**
|
|
3
|
-
* Synchronize data between tabs using BroadcastChannel.
|
|
4
|
-
*/
|
|
5
|
-
tab: (channelName: string, callback: (data: any) => void) => { post: (data: any) => void, close: () => void }
|
|
6
|
-
/**
|
|
7
|
-
* Create a Proxy object linked to localStorage for auto-sync with optional encryption.
|
|
8
|
-
*/
|
|
9
|
-
storageProxy: <T extends object>(key: string, initialValue: T, secret?: string) => T
|
|
10
|
-
/**
|
|
11
|
-
* Low-latency cross-tab event bus.
|
|
12
|
-
*/
|
|
13
|
-
pulse: (channelName: string, callback: (data: any) => void) => { emit: (data: any) => void, stop: () => void }
|
|
14
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
interface TextTool {
|
|
2
|
-
trim(s: string, c: string, b: number, e: number): string
|
|
3
|
-
capitalize(txt: string): string
|
|
4
|
-
lower(txt: string): string
|
|
5
|
-
upper(txt: string): string
|
|
6
|
-
nl2br(str: string): string
|
|
7
|
-
sanitize(str: string): string
|
|
8
|
-
camelCase: {
|
|
9
|
-
toSpace(string: string): string
|
|
10
|
-
toUnderscore(string: string): string
|
|
11
|
-
}
|
|
12
|
-
fitContainer(el: string): void
|
|
13
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
interface TriggersTool {
|
|
2
|
-
/**
|
|
3
|
-
* Add a trigger for custom events.
|
|
4
|
-
* @param event - The event name
|
|
5
|
-
* @param callback - The callback to execute when the event is triggered
|
|
6
|
-
*/
|
|
7
|
-
add: (event: string, callback: (...args: any[]) => void) => void
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Listen for a trigger event (alias for add).
|
|
11
|
-
*/
|
|
12
|
-
on: (event: string, callback: (...args: any[]) => void) => void
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Emit a trigger event and call all registered callbacks.
|
|
16
|
-
* @param event - The event name
|
|
17
|
-
* @param args - Arguments to pass to the callbacks
|
|
18
|
-
*/
|
|
19
|
-
emit: (event: string, ...args: any[]) => void
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Remove a trigger event and all its callbacks.
|
|
23
|
-
* @param event - The event name
|
|
24
|
-
*/
|
|
25
|
-
remove: (event: string) => void
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Remove a specific callback from an event.
|
|
29
|
-
* @param event - The event name
|
|
30
|
-
* @param callback - The callback to remove
|
|
31
|
-
*/
|
|
32
|
-
off: (event: string, callback: (...args: any[]) => void) => void
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Clear all triggers.
|
|
36
|
-
*/
|
|
37
|
-
clear: () => void
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* List all registered trigger events.
|
|
41
|
-
* @returns Array of event names
|
|
42
|
-
*/
|
|
43
|
-
list: () => string[]
|
|
44
|
-
}
|
package/tools/ui/interface.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
interface WindowTool {
|
|
2
|
-
enhancement(): void
|
|
3
|
-
animationframe(): any
|
|
4
|
-
center(params: { url: string; title: string; name: string; w: number; h: number }): void
|
|
5
|
-
onBeforeUnLoad(e: any): void
|
|
6
|
-
purge(d?: Document, time?: number): void
|
|
7
|
-
stopZoomWheel(e: any): void
|
|
8
|
-
setZoom(element?: string, zoom?: number): string
|
|
9
|
-
getZoom(element?: string): number
|
|
10
|
-
}
|
package/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/types/scripts/over.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
interface MonitorInfo {
|
|
2
|
-
id: string;
|
|
3
|
-
width: number;
|
|
4
|
-
height: number;
|
|
5
|
-
left: number;
|
|
6
|
-
top: number;
|
|
7
|
-
isPrimary: boolean;
|
|
8
|
-
}
|
|
9
|
-
interface PopupState {
|
|
10
|
-
id: string;
|
|
11
|
-
monitorId: string;
|
|
12
|
-
left: number;
|
|
13
|
-
top: number;
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
monitorFingerprint: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const popupManager: {
|
|
19
|
-
save: (id: string, win?: Window) => void;
|
|
20
|
-
restore: (id: string) => {
|
|
21
|
-
left: number;
|
|
22
|
-
top: number;
|
|
23
|
-
width: number;
|
|
24
|
-
height: number;
|
|
25
|
-
} | null;
|
|
26
|
-
remove: (id: string) => void;
|
|
27
|
-
list: () => Record<string, PopupState>;
|
|
28
|
-
clear: () => void;
|
|
29
|
-
getMonitors: () => MonitorInfo[];
|
|
30
|
-
getCurrentMonitor: () => MonitorInfo;
|
|
31
|
-
};
|
|
32
|
-
export default popupManager;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|