smarteye-e-components 0.0.39 → 0.0.40
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/smarteye-e-components.js +9 -9
- package/dist/smarteye-e-components.js.map +1 -1
- package/dist/smarteye-e-components.mjs +1405 -1047
- package/dist/smarteye-e-components.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/multi-video-area-layout-switch/index.vue.d.ts +8 -0
- package/lib/components/multi-video-area-layout-switch/model/index.d.ts +36 -0
- package/lib/components/multi-video-area-layout-switch/utils/index.d.ts +18 -0
- package/lib/components/video-areas-layout-show/index.vue.d.ts +14 -0
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.root[data-v-a063c331]{position:relative}.count-show[data-v-a063c331]{position:absolute;right:10px;color:#b7b7b7}.infinite-list-container[data-v-12d2a294]{height:100%;overflow:auto;position:relative;-webkit-overflow-scrolling:touch}.infinite-list-phantom[data-v-12d2a294]{position:absolute;left:0;top:0;right:0;z-index:-1}.infinite-list[data-v-12d2a294]{left:0;right:0;top:0;position:absolute}.infinite-list-item[data-v-12d2a294]{color:#555;box-sizing:border-box}:root{--device-offline-color: rgb(168, 168, 168);--device-online-color: rgb(1, 172, 1);--group-name-width: 160px;--device-opts-width: 80px}.group-head-db-click[data-v-93cfc8dc],.group-head-db-click .group-name[data-v-93cfc8dc]{cursor:pointer;user-select:none;position:relative}.group-head-count[data-v-93cfc8dc]{position:absolute;left:0px;display:inline-block;width:24px;height:24px;line-height:24px;top:calc(50% - 12px);text-align:center;font-size:10px}.device-show-div[data-v-93cfc8dc]{max-height:400px;overflow-y:auto}.dark .handle-ls-svg[data-v-93cfc8dc]{color:#fff}.handle-ls-svg[data-v-93cfc8dc]{vertical-align:-5px;cursor:pointer;margin-right:5px;color:#383838}.group-avatar[data-v-93cfc8dc]{vertical-align:-6px;color:gray}.device[data-v-93cfc8dc],.group[data-v-93cfc8dc]{margin:5px 0}.group-name[data-v-93cfc8dc]{display:inline-block;width:var(--group-name-width);cursor:default;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:middle;line-height:24px;padding-left:5px}.group-slot[data-v-93cfc8dc]{display:inline-block;width:calc(100% - var(--group-name-width) - 100px)}.device-slot[data-v-93cfc8dc]{display:inline-block;width:calc(var(--device-opts-width))}.device-avatar[data-v-93cfc8dc]{vertical-align:-2px;margin-right:4px;margin-left:2px;color:var(--device-offline-color)}.device-name[data-v-93cfc8dc]{display:inline-block;width:calc(100% - var(--device-opts-width) - 42px);cursor:default;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:bottom;color:var(--device-offline-color);padding-left:5px}.online-device .device-avatar[data-v-93cfc8dc],.online-device .device-name[data-v-93cfc8dc]{color:var(--device-online-color)}:root{--sec-main-search-height: 32px }.device-group-list[data-v-17e4082a]{height:100%}.device-group-list .search-panel[data-v-17e4082a]{height:var(--sec-main-search-height)}.device-group-list .device-panel[data-v-17e4082a]{height:calc(100% - var(--sec-main-search-height));overflow-y:auto}
|
|
1
|
+
.root[data-v-a063c331]{position:relative}.count-show[data-v-a063c331]{position:absolute;right:10px;color:#b7b7b7}.infinite-list-container[data-v-12d2a294]{height:100%;overflow:auto;position:relative;-webkit-overflow-scrolling:touch}.infinite-list-phantom[data-v-12d2a294]{position:absolute;left:0;top:0;right:0;z-index:-1}.infinite-list[data-v-12d2a294]{left:0;right:0;top:0;position:absolute}.infinite-list-item[data-v-12d2a294]{color:#555;box-sizing:border-box}:root{--device-offline-color: rgb(168, 168, 168);--device-online-color: rgb(1, 172, 1);--group-name-width: 160px;--device-opts-width: 80px}.group-head-db-click[data-v-93cfc8dc],.group-head-db-click .group-name[data-v-93cfc8dc]{cursor:pointer;user-select:none;position:relative}.group-head-count[data-v-93cfc8dc]{position:absolute;left:0px;display:inline-block;width:24px;height:24px;line-height:24px;top:calc(50% - 12px);text-align:center;font-size:10px}.device-show-div[data-v-93cfc8dc]{max-height:400px;overflow-y:auto}.dark .handle-ls-svg[data-v-93cfc8dc]{color:#fff}.handle-ls-svg[data-v-93cfc8dc]{vertical-align:-5px;cursor:pointer;margin-right:5px;color:#383838}.group-avatar[data-v-93cfc8dc]{vertical-align:-6px;color:gray}.device[data-v-93cfc8dc],.group[data-v-93cfc8dc]{margin:5px 0}.group-name[data-v-93cfc8dc]{display:inline-block;width:var(--group-name-width);cursor:default;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:middle;line-height:24px;padding-left:5px}.group-slot[data-v-93cfc8dc]{display:inline-block;width:calc(100% - var(--group-name-width) - 100px)}.device-slot[data-v-93cfc8dc]{display:inline-block;width:calc(var(--device-opts-width))}.device-avatar[data-v-93cfc8dc]{vertical-align:-2px;margin-right:4px;margin-left:2px;color:var(--device-offline-color)}.device-name[data-v-93cfc8dc]{display:inline-block;width:calc(100% - var(--device-opts-width) - 42px);cursor:default;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;vertical-align:bottom;color:var(--device-offline-color);padding-left:5px}.online-device .device-avatar[data-v-93cfc8dc],.online-device .device-name[data-v-93cfc8dc]{color:var(--device-online-color)}:root{--sec-main-search-height: 32px }.device-group-list[data-v-17e4082a]{height:100%}.device-group-list .search-panel[data-v-17e4082a]{height:var(--sec-main-search-height)}.device-group-list .device-panel[data-v-17e4082a]{height:calc(100% - var(--sec-main-search-height));overflow-y:auto}.svg-style[data-v-b01255ca]{height:24px;background-color:#ddd;display:inline-block;vertical-align:middle}.layout-item[data-v-b01255ca]{display:inline-block;cursor:pointer;box-sizing:border-box;border:2px solid rgba(0,0,0,0)}.layout-item[data-v-b01255ca]:hover{border:2px solid rgb(212,212,212)}.layout-item-select[data-v-b01255ca]:hover,.layout-item-select[data-v-b01255ca]{border:2px solid rgb(177,177,177)}.switch-panel[data-v-a690450e]{width:400px}.play-area[data-v-e5654385]{border:1px solid;border-right:0px;border-top:0px}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { VideoAreaLayout } from "./model";
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
3
|
+
onselect: (layout: VideoAreaLayout.ILayout, svg: string) => void;
|
|
4
|
+
svgSelect: import("vue").Ref<string>;
|
|
5
|
+
layout: VideoAreaLayout.ILayout[];
|
|
6
|
+
defaultLayout: VideoAreaLayout.ILayout;
|
|
7
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
8
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare namespace VideoAreaLayout {
|
|
2
|
+
interface IPoint {
|
|
3
|
+
row: number;
|
|
4
|
+
col: number;
|
|
5
|
+
}
|
|
6
|
+
interface IArea {
|
|
7
|
+
leftTop: IPoint;
|
|
8
|
+
rightBottom: IPoint;
|
|
9
|
+
}
|
|
10
|
+
interface ILayout {
|
|
11
|
+
name: string;
|
|
12
|
+
row: number;
|
|
13
|
+
col: number;
|
|
14
|
+
count: number;
|
|
15
|
+
area?: IArea;
|
|
16
|
+
areas?: Array<IArea>;
|
|
17
|
+
}
|
|
18
|
+
interface IAreaIdentifier {
|
|
19
|
+
id: string;
|
|
20
|
+
row: number;
|
|
21
|
+
col: number;
|
|
22
|
+
}
|
|
23
|
+
interface IRectLayout extends IAreaIdentifier {
|
|
24
|
+
layout: {
|
|
25
|
+
left: number;
|
|
26
|
+
top: number;
|
|
27
|
+
width: number;
|
|
28
|
+
height: number;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function genLayout(row: number, col: number, areas?: Array<[x1: number, y1: number, x2: number, y2: number]>): ILayout;
|
|
32
|
+
namespace Test {
|
|
33
|
+
function genLayout(row: number, col: number, area?: [x1: number, y1: number, x2: number, y2: number]): ILayout;
|
|
34
|
+
function getTestLayout(): ILayout;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VideoAreaLayout } from "../model/index";
|
|
2
|
+
export interface ISVGSize {
|
|
3
|
+
width: number;
|
|
4
|
+
height: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ISVGMultiplier {
|
|
7
|
+
col: number;
|
|
8
|
+
row: number;
|
|
9
|
+
}
|
|
10
|
+
declare const _default: {
|
|
11
|
+
TransLayoutToFrams(layout: VideoAreaLayout.ILayout): Array<VideoAreaLayout.IRectLayout>;
|
|
12
|
+
TransLayoutToSVG(layout: VideoAreaLayout.ILayout, svgSize: ISVGSize): string;
|
|
13
|
+
StorageDefaultLayout: {
|
|
14
|
+
get(): VideoAreaLayout.ILayout | null;
|
|
15
|
+
set(layout: VideoAreaLayout.ILayout): void;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import { VideoAreaLayout } from "../multi-video-area-layout-switch/model";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
layout: {
|
|
5
|
+
type: PropType<VideoAreaLayout.ILayout>;
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
frameRef: import("vue").ComputedRef<VideoAreaLayout.IRectLayout[]>;
|
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
layout: {
|
|
11
|
+
type: PropType<VideoAreaLayout.ILayout>;
|
|
12
|
+
};
|
|
13
|
+
}>>, {}>;
|
|
14
|
+
export default _sfc_main;
|