@idmwx/idmui-gl4 3.7.4 → 3.7.6

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.
@@ -1,79 +0,0 @@
1
- export interface CaptureRect {
2
- x: number;
3
- y: number;
4
- width: number;
5
- height: number;
6
- }
7
- export declare class GifRecorder {
8
- private frames;
9
- private captureRect;
10
- private _isRecording;
11
- private _frameDelay;
12
- private canvas;
13
- private ctx;
14
- private pixelRatio;
15
- private logoImage;
16
- private logoLoaded;
17
- private videoCancellations;
18
- /**
19
- * 设置截图区域
20
- */
21
- setArea(rect: CaptureRect): void;
22
- /**
23
- * 加载 logo 图片
24
- */
25
- private loadLogo;
26
- /**
27
- * 设置帧间隔
28
- */
29
- setFrameDelay(delay: number): void;
30
- /**
31
- * 获取截图区域
32
- */
33
- getArea(): CaptureRect | null;
34
- /**
35
- * 开始录制
36
- */
37
- startRecording(): void;
38
- /**
39
- * 停止录制
40
- */
41
- stopRecording(): void;
42
- /**
43
- * 捕获当前帧
44
- * @param element 要截图的 DOM 元素(通常是地图容器)
45
- */
46
- captureFrame(element: HTMLElement, time: string): Promise<void>;
47
- private processImage;
48
- /**
49
- * 获取当前帧数
50
- */
51
- getFrameCount(): number;
52
- /**
53
- * 合成 GIF
54
- */
55
- generateGif(): Promise<Blob | null>;
56
- /**
57
- * 合成 MP4 视频(使用 MediaRecorder API)
58
- */
59
- generateMp4(): Promise<Blob | null>;
60
- /**
61
- * 下载 GIF 文件
62
- */
63
- downloadGif(blob: Blob, title?: string): void;
64
- /**
65
- * 下载 MP4 文件
66
- */
67
- downloadMp4(blob: Blob, title?: string): void;
68
- /**
69
- * 保存为文件
70
- */
71
- saveAsFile(blob: Blob): Promise<void>;
72
- /**
73
- * 重置录制器
74
- */
75
- reset(): void;
76
- get isRecording(): boolean;
77
- get frameDelay(): number;
78
- }
79
- export default GifRecorder;
@@ -1,88 +0,0 @@
1
- export default _sfc_main;
2
- declare namespace _sfc_main {
3
- const name: string;
4
- namespace props {
5
- namespace isPlaying {
6
- export const type: BooleanConstructor;
7
- const _default: boolean;
8
- export { _default as default };
9
- }
10
- namespace enabled {
11
- const type_1: BooleanConstructor;
12
- export { type_1 as type };
13
- const _default_1: boolean;
14
- export { _default_1 as default };
15
- }
16
- namespace frequency {
17
- const type_2: NumberConstructor;
18
- export { type_2 as type };
19
- const _default_2: number;
20
- export { _default_2 as default };
21
- }
22
- namespace currentTimestamp {
23
- const type_3: NumberConstructor;
24
- export { type_3 as type };
25
- const _default_3: undefined;
26
- export { _default_3 as default };
27
- }
28
- namespace token {
29
- const type_4: StringConstructor;
30
- export { type_4 as type };
31
- const _default_4: string;
32
- export { _default_4 as default };
33
- }
34
- }
35
- const emits: string[];
36
- function data(): {
37
- recorder: null;
38
- actionStatus: number;
39
- startX: number;
40
- startY: number;
41
- selection: {
42
- x: number;
43
- y: number;
44
- width: number;
45
- height: number;
46
- };
47
- frameCount: number;
48
- gifBlob: null;
49
- mp4Blob: null;
50
- gifUrl: string;
51
- mp4Url: string;
52
- exportErrors: never[];
53
- generating: boolean;
54
- generationTimer: null;
55
- };
56
- namespace computed {
57
- function selectionStyle(): any;
58
- function computedUTCTime(): (ts: any) => string;
59
- }
60
- namespace watch {
61
- export namespace frameCount {
62
- function handler(newVal: any): void;
63
- }
64
- export namespace enabled_1 {
65
- function handler(newVal: any): void;
66
- }
67
- export { enabled_1 as enabled };
68
- export namespace actionStatus {
69
- function handler(newV: any): void;
70
- }
71
- }
72
- function beforeUnmount(): void;
73
- namespace methods {
74
- function handleMouseDown(e: any): void;
75
- function handleMouseMove(e: any): void;
76
- function handleMouseUp(): void;
77
- function handleConfirm(): void;
78
- function handleCancel(): void;
79
- function handleExitRecord(): void;
80
- function startRecord(): void;
81
- function captureCurrentFrame(): Promise<void>;
82
- function createExports(): void;
83
- function clear(): void;
84
- function handleUpload(): Promise<void>;
85
- function handleDownloadGif(): void;
86
- function handleDownloadMp4(): void;
87
- }
88
- }
@@ -1,21 +0,0 @@
1
- import { d as l } from "./chunk-ANSXOGKI-4a29720f.js";
2
- import "./chunk-3VYIPD3A-7b9fcd81.js";
3
- import "./index-86e9dc45.js";
4
- import "axios";
5
- import "vuetify";
6
- import "vue";
7
- import "mapbox-gl";
8
- import "moment";
9
- import "@idm-plugin/geo";
10
- import "@idm-plugin/meteo";
11
- import "echarts";
12
- import "@turf/turf";
13
- import "@idm-plugin/tag2";
14
- import "@mapbox/sphericalmercator";
15
- import "@idm-plugin/tag";
16
- import "shpjs";
17
- import "gif.js";
18
- import "@idm-plugin/aliclient";
19
- export {
20
- l as rasterize
21
- };
@@ -1,21 +0,0 @@
1
- import { m as k } from "./chunk-T4JIPPZO-3e8c3c38.js";
2
- import "./chunk-3VYIPD3A-7b9fcd81.js";
3
- import "./index-86e9dc45.js";
4
- import "axios";
5
- import "vuetify";
6
- import "vue";
7
- import "mapbox-gl";
8
- import "moment";
9
- import "@idm-plugin/geo";
10
- import "@idm-plugin/meteo";
11
- import "echarts";
12
- import "@turf/turf";
13
- import "@idm-plugin/tag2";
14
- import "@mapbox/sphericalmercator";
15
- import "@idm-plugin/tag";
16
- import "shpjs";
17
- import "gif.js";
18
- import "@idm-plugin/aliclient";
19
- export {
20
- k as toBlob
21
- };
@@ -1,20 +0,0 @@
1
- import { W as g } from "./chunk-3VYIPD3A-7b9fcd81.js";
2
- import "./index-86e9dc45.js";
3
- import "axios";
4
- import "vuetify";
5
- import "vue";
6
- import "mapbox-gl";
7
- import "moment";
8
- import "@idm-plugin/geo";
9
- import "@idm-plugin/meteo";
10
- import "echarts";
11
- import "@turf/turf";
12
- import "@idm-plugin/tag2";
13
- import "@mapbox/sphericalmercator";
14
- import "@idm-plugin/tag";
15
- import "shpjs";
16
- import "gif.js";
17
- import "@idm-plugin/aliclient";
18
- export {
19
- g as toCanvas
20
- };
@@ -1,46 +0,0 @@
1
- import { d as u } from "./chunk-ANSXOGKI-4a29720f.js";
2
- import { l as g } from "./index-86e9dc45.js";
3
- import "./chunk-3VYIPD3A-7b9fcd81.js";
4
- import "axios";
5
- import "vuetify";
6
- import "vue";
7
- import "mapbox-gl";
8
- import "moment";
9
- import "@idm-plugin/geo";
10
- import "@idm-plugin/meteo";
11
- import "echarts";
12
- import "@turf/turf";
13
- import "@idm-plugin/tag2";
14
- import "@mapbox/sphericalmercator";
15
- import "@idm-plugin/tag";
16
- import "shpjs";
17
- import "gif.js";
18
- import "@idm-plugin/aliclient";
19
- async function S(i, l) {
20
- let { scale: m = 1, width: o, height: p, meta: e = {} } = l, s = Number.isFinite(o), n = Number.isFinite(p), d = Number.isFinite(m) && m !== 1 || s || n;
21
- if (g() && d)
22
- return await u(i, { ...l, format: "png", quality: 1, meta: e });
23
- let t = new Image();
24
- if (t.decoding = "sync", t.loading = "eager", t.src = i, await t.decode(), s && n)
25
- t.style.width = `${o}px`, t.style.height = `${p}px`;
26
- else if (s) {
27
- let r = Number.isFinite(e.w0) ? e.w0 : t.naturalWidth, a = Number.isFinite(e.h0) ? e.h0 : t.naturalHeight, h = o / Math.max(1, r);
28
- t.style.width = `${o}px`, t.style.height = `${Math.round(a * h)}px`;
29
- } else if (n) {
30
- let r = Number.isFinite(e.w0) ? e.w0 : t.naturalWidth, a = Number.isFinite(e.h0) ? e.h0 : t.naturalHeight, h = p / Math.max(1, a);
31
- t.style.height = `${p}px`, t.style.width = `${Math.round(r * h)}px`;
32
- } else {
33
- let r = Math.round(t.naturalWidth * m), a = Math.round(t.naturalHeight * m);
34
- if (t.style.width = `${r}px`, t.style.height = `${a}px`, typeof i == "string" && i.startsWith("data:image/svg+xml"))
35
- try {
36
- let h = decodeURIComponent(i.split(",")[1]).replace(/width="[^"]*"/, `width="${r}"`).replace(/height="[^"]*"/, `height="${a}"`);
37
- i = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(h)}`, t.src = i;
38
- } catch {
39
- }
40
- }
41
- return t;
42
- }
43
- export {
44
- S as toImg,
45
- S as toSvg
46
- };