@htmlbricks/hb-player-live-camera-ptz 0.17.23 → 0.17.25
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/extra/docs.ts +67 -10
- package/package.json +7 -7
- package/release/docs.js +64 -11
- package/release/docs.js.map +1 -1
- package/release/docs.ts +67 -10
- package/release/manifest.json +198 -79
- package/release/release.js +1 -1
- package/release/release.js.map +1 -1
- package/release/webcomponent.type.d.ts +16 -7
package/extra/docs.ts
CHANGED
|
@@ -5,15 +5,23 @@ export const storybookArgs = {
|
|
|
5
5
|
presets: { control: { type: "object" } },
|
|
6
6
|
live_uri: { control: { type: "text" } },
|
|
7
7
|
current_preset: { control: { type: "text" } },
|
|
8
|
-
|
|
8
|
+
is_ptz_connected: { control: { type: "boolean" } },
|
|
9
|
+
is_ptz_panel_opened: { control: { type: "boolean" } },
|
|
10
|
+
|
|
9
11
|
initVideo: { action: "initVideoEvent" },
|
|
10
|
-
|
|
12
|
+
panelMove: { action: "panelMoveEvent" },
|
|
13
|
+
|
|
11
14
|
goToHome: { action: "goToHomeEvent" },
|
|
15
|
+
goToSelectedArea: { action: "goToSelectedAreaEvent" },
|
|
16
|
+
|
|
17
|
+
setPreset: { action: "setPresetEvent" },
|
|
18
|
+
goToPreset: { action: "goToPresetEvent" },
|
|
19
|
+
deletePreset: { action: "deletePresetEvent" },
|
|
20
|
+
|
|
21
|
+
zoomAction: { action: "zoomActionEvent" },
|
|
22
|
+
|
|
12
23
|
sendJoystickPosition: { action: "sendJoystickPositionEvent" },
|
|
13
24
|
sendDirection: { action: "sendDirectionEvent" },
|
|
14
|
-
addSceneAsPreset: { action: "addSceneAsPresetEvent" },
|
|
15
|
-
changePreset: { action: "changePresetEvent" },
|
|
16
|
-
sendRect: { action: "sendRectEvent" },
|
|
17
25
|
};
|
|
18
26
|
|
|
19
27
|
const cssVars: CssVar[] = [
|
|
@@ -38,6 +46,8 @@ const examples: { name: string; description?: string; data: Component }[] = [
|
|
|
38
46
|
name: "default",
|
|
39
47
|
data: {
|
|
40
48
|
live_uri: "",
|
|
49
|
+
is_ptz_connected: true,
|
|
50
|
+
is_ptz_panel_opened: true,
|
|
41
51
|
},
|
|
42
52
|
},
|
|
43
53
|
|
|
@@ -45,15 +55,23 @@ const examples: { name: string; description?: string; data: Component }[] = [
|
|
|
45
55
|
name: "withPresets",
|
|
46
56
|
data: {
|
|
47
57
|
live_uri: "",
|
|
58
|
+
is_ptz_connected: true,
|
|
59
|
+
is_ptz_panel_opened: true,
|
|
48
60
|
|
|
49
61
|
presets: [
|
|
50
62
|
{
|
|
51
63
|
name: "Preset 1",
|
|
52
|
-
|
|
64
|
+
token: "preset1",
|
|
65
|
+
x: 0,
|
|
66
|
+
y: 0,
|
|
67
|
+
z: 0,
|
|
53
68
|
},
|
|
54
69
|
{
|
|
55
70
|
name: "Preset 2",
|
|
56
|
-
|
|
71
|
+
token: "preset2",
|
|
72
|
+
x: 0,
|
|
73
|
+
y: 0,
|
|
74
|
+
z: 0,
|
|
57
75
|
},
|
|
58
76
|
],
|
|
59
77
|
},
|
|
@@ -62,20 +80,59 @@ const examples: { name: string; description?: string; data: Component }[] = [
|
|
|
62
80
|
name: "withPresetSelected",
|
|
63
81
|
data: {
|
|
64
82
|
live_uri: "",
|
|
65
|
-
|
|
83
|
+
is_ptz_connected: true,
|
|
84
|
+
is_ptz_panel_opened: true,
|
|
85
|
+
presets: [
|
|
86
|
+
{
|
|
87
|
+
name: "Preset 1",
|
|
88
|
+
token: "preset1",
|
|
89
|
+
x: 0,
|
|
90
|
+
y: 0,
|
|
91
|
+
z: 0,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "Preset 2",
|
|
95
|
+
token: "preset2",
|
|
96
|
+
x: 0,
|
|
97
|
+
y: 0,
|
|
98
|
+
z: 0,
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
current_preset: "preset1",
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "withPanelClosed",
|
|
106
|
+
data: {
|
|
107
|
+
live_uri: "",
|
|
108
|
+
is_ptz_connected: true,
|
|
66
109
|
presets: [
|
|
67
110
|
{
|
|
68
111
|
name: "Preset 1",
|
|
69
|
-
|
|
112
|
+
token: "preset1",
|
|
113
|
+
x: 0,
|
|
114
|
+
y: 0,
|
|
115
|
+
z: 0,
|
|
70
116
|
},
|
|
71
117
|
{
|
|
72
118
|
name: "Preset 2",
|
|
73
|
-
|
|
119
|
+
token: "preset2",
|
|
120
|
+
x: 0,
|
|
121
|
+
y: 0,
|
|
122
|
+
z: 0,
|
|
74
123
|
},
|
|
75
124
|
],
|
|
76
125
|
current_preset: "preset1",
|
|
77
126
|
},
|
|
78
127
|
},
|
|
128
|
+
{
|
|
129
|
+
name: "disconnected",
|
|
130
|
+
data: {
|
|
131
|
+
live_uri: "",
|
|
132
|
+
presets: [],
|
|
133
|
+
current_preset: "preset1",
|
|
134
|
+
},
|
|
135
|
+
},
|
|
79
136
|
];
|
|
80
137
|
export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
|
|
81
138
|
definitions: null as any,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-player-live-camera-ptz",
|
|
3
3
|
"displayName": "Svelte Boostrap Pagination WebComponent",
|
|
4
4
|
"description": "Svelte Boostrap Pagination WebComponent",
|
|
5
|
-
"version": "0.17.
|
|
5
|
+
"version": "0.17.25",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"prepublish": "npm run build:release"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@htmlbricks/hb-jsutils": "^0.17.
|
|
33
|
+
"@htmlbricks/hb-jsutils": "^0.17.25",
|
|
34
34
|
"@htmlbricks/manifester": "^0.0.22",
|
|
35
35
|
"@rollup/plugin-alias": "^3.1.2",
|
|
36
36
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
@@ -76,12 +76,12 @@
|
|
|
76
76
|
"html5-webcomponents"
|
|
77
77
|
],
|
|
78
78
|
"contributors": [],
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "ecd93e13f80dde16692ced404ff9dcb47fde53d5",
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@htmlbricks/hb-dialog": "^0.17.
|
|
82
|
-
"@htmlbricks/hb-pad-joystick": "^0.17.
|
|
83
|
-
"@htmlbricks/hb-player-live": "^0.17.
|
|
84
|
-
"@htmlbricks/hb-table": "^0.17.
|
|
81
|
+
"@htmlbricks/hb-dialog": "^0.17.25",
|
|
82
|
+
"@htmlbricks/hb-pad-joystick": "^0.17.25",
|
|
83
|
+
"@htmlbricks/hb-player-live": "^0.17.25",
|
|
84
|
+
"@htmlbricks/hb-table": "^0.17.25",
|
|
85
85
|
"style-to-object": "^0.3.0"
|
|
86
86
|
}
|
|
87
87
|
}
|
package/release/docs.js
CHANGED
|
@@ -2,15 +2,18 @@ export var storybookArgs = {
|
|
|
2
2
|
presets: { control: { type: "object" } },
|
|
3
3
|
live_uri: { control: { type: "text" } },
|
|
4
4
|
current_preset: { control: { type: "text" } },
|
|
5
|
-
|
|
5
|
+
is_ptz_connected: { control: { type: "boolean" } },
|
|
6
|
+
is_ptz_panel_opened: { control: { type: "boolean" } },
|
|
6
7
|
initVideo: { action: "initVideoEvent" },
|
|
7
|
-
|
|
8
|
+
panelMove: { action: "panelMoveEvent" },
|
|
8
9
|
goToHome: { action: "goToHomeEvent" },
|
|
10
|
+
goToSelectedArea: { action: "goToSelectedAreaEvent" },
|
|
11
|
+
setPreset: { action: "setPresetEvent" },
|
|
12
|
+
goToPreset: { action: "goToPresetEvent" },
|
|
13
|
+
deletePreset: { action: "deletePresetEvent" },
|
|
14
|
+
zoomAction: { action: "zoomActionEvent" },
|
|
9
15
|
sendJoystickPosition: { action: "sendJoystickPositionEvent" },
|
|
10
|
-
sendDirection: { action: "sendDirectionEvent" }
|
|
11
|
-
addSceneAsPreset: { action: "addSceneAsPresetEvent" },
|
|
12
|
-
changePreset: { action: "changePresetEvent" },
|
|
13
|
-
sendRect: { action: "sendRectEvent" }
|
|
16
|
+
sendDirection: { action: "sendDirectionEvent" }
|
|
14
17
|
};
|
|
15
18
|
var cssVars = [
|
|
16
19
|
{ name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
|
|
@@ -31,21 +34,31 @@ var examples = [
|
|
|
31
34
|
{
|
|
32
35
|
name: "default",
|
|
33
36
|
data: {
|
|
34
|
-
live_uri: ""
|
|
37
|
+
live_uri: "",
|
|
38
|
+
is_ptz_connected: true,
|
|
39
|
+
is_ptz_panel_opened: true
|
|
35
40
|
}
|
|
36
41
|
},
|
|
37
42
|
{
|
|
38
43
|
name: "withPresets",
|
|
39
44
|
data: {
|
|
40
45
|
live_uri: "",
|
|
46
|
+
is_ptz_connected: true,
|
|
47
|
+
is_ptz_panel_opened: true,
|
|
41
48
|
presets: [
|
|
42
49
|
{
|
|
43
50
|
name: "Preset 1",
|
|
44
|
-
|
|
51
|
+
token: "preset1",
|
|
52
|
+
x: 0,
|
|
53
|
+
y: 0,
|
|
54
|
+
z: 0
|
|
45
55
|
},
|
|
46
56
|
{
|
|
47
57
|
name: "Preset 2",
|
|
48
|
-
|
|
58
|
+
token: "preset2",
|
|
59
|
+
x: 0,
|
|
60
|
+
y: 0,
|
|
61
|
+
z: 0
|
|
49
62
|
},
|
|
50
63
|
]
|
|
51
64
|
}
|
|
@@ -54,19 +67,59 @@ var examples = [
|
|
|
54
67
|
name: "withPresetSelected",
|
|
55
68
|
data: {
|
|
56
69
|
live_uri: "",
|
|
70
|
+
is_ptz_connected: true,
|
|
71
|
+
is_ptz_panel_opened: true,
|
|
57
72
|
presets: [
|
|
58
73
|
{
|
|
59
74
|
name: "Preset 1",
|
|
60
|
-
|
|
75
|
+
token: "preset1",
|
|
76
|
+
x: 0,
|
|
77
|
+
y: 0,
|
|
78
|
+
z: 0
|
|
61
79
|
},
|
|
62
80
|
{
|
|
63
81
|
name: "Preset 2",
|
|
64
|
-
|
|
82
|
+
token: "preset2",
|
|
83
|
+
x: 0,
|
|
84
|
+
y: 0,
|
|
85
|
+
z: 0
|
|
65
86
|
},
|
|
66
87
|
],
|
|
67
88
|
current_preset: "preset1"
|
|
68
89
|
}
|
|
69
90
|
},
|
|
91
|
+
{
|
|
92
|
+
name: "withPanelClosed",
|
|
93
|
+
data: {
|
|
94
|
+
live_uri: "",
|
|
95
|
+
is_ptz_connected: true,
|
|
96
|
+
presets: [
|
|
97
|
+
{
|
|
98
|
+
name: "Preset 1",
|
|
99
|
+
token: "preset1",
|
|
100
|
+
x: 0,
|
|
101
|
+
y: 0,
|
|
102
|
+
z: 0
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "Preset 2",
|
|
106
|
+
token: "preset2",
|
|
107
|
+
x: 0,
|
|
108
|
+
y: 0,
|
|
109
|
+
z: 0
|
|
110
|
+
},
|
|
111
|
+
],
|
|
112
|
+
current_preset: "preset1"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: "disconnected",
|
|
117
|
+
data: {
|
|
118
|
+
live_uri: "",
|
|
119
|
+
presets: [],
|
|
120
|
+
current_preset: "preset1"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
70
123
|
];
|
|
71
124
|
export var componentSetup = {
|
|
72
125
|
definitions: null,
|
package/release/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAA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,WAAW,EAAE,IAAW;IACxB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,MAAM,EAAE,IAAW;IACnB,YAAY,EAAE,EAAE;IAChB,KAAK,EAAE,IAAW;IAClB,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,UAAU,EAAE,WAAW;IACvB,IAAI,EAAE,2BAA2B;IACjC,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,uCAAuC;IACjD,OAAO,EAAE,IAAW;CACpB,CAAC"}
|
package/release/docs.ts
CHANGED
|
@@ -5,15 +5,23 @@ export const storybookArgs = {
|
|
|
5
5
|
presets: { control: { type: "object" } },
|
|
6
6
|
live_uri: { control: { type: "text" } },
|
|
7
7
|
current_preset: { control: { type: "text" } },
|
|
8
|
-
|
|
8
|
+
is_ptz_connected: { control: { type: "boolean" } },
|
|
9
|
+
is_ptz_panel_opened: { control: { type: "boolean" } },
|
|
10
|
+
|
|
9
11
|
initVideo: { action: "initVideoEvent" },
|
|
10
|
-
|
|
12
|
+
panelMove: { action: "panelMoveEvent" },
|
|
13
|
+
|
|
11
14
|
goToHome: { action: "goToHomeEvent" },
|
|
15
|
+
goToSelectedArea: { action: "goToSelectedAreaEvent" },
|
|
16
|
+
|
|
17
|
+
setPreset: { action: "setPresetEvent" },
|
|
18
|
+
goToPreset: { action: "goToPresetEvent" },
|
|
19
|
+
deletePreset: { action: "deletePresetEvent" },
|
|
20
|
+
|
|
21
|
+
zoomAction: { action: "zoomActionEvent" },
|
|
22
|
+
|
|
12
23
|
sendJoystickPosition: { action: "sendJoystickPositionEvent" },
|
|
13
24
|
sendDirection: { action: "sendDirectionEvent" },
|
|
14
|
-
addSceneAsPreset: { action: "addSceneAsPresetEvent" },
|
|
15
|
-
changePreset: { action: "changePresetEvent" },
|
|
16
|
-
sendRect: { action: "sendRectEvent" },
|
|
17
25
|
};
|
|
18
26
|
|
|
19
27
|
const cssVars: CssVar[] = [
|
|
@@ -38,6 +46,8 @@ const examples: { name: string; description?: string; data: Component }[] = [
|
|
|
38
46
|
name: "default",
|
|
39
47
|
data: {
|
|
40
48
|
live_uri: "",
|
|
49
|
+
is_ptz_connected: true,
|
|
50
|
+
is_ptz_panel_opened: true,
|
|
41
51
|
},
|
|
42
52
|
},
|
|
43
53
|
|
|
@@ -45,15 +55,23 @@ const examples: { name: string; description?: string; data: Component }[] = [
|
|
|
45
55
|
name: "withPresets",
|
|
46
56
|
data: {
|
|
47
57
|
live_uri: "",
|
|
58
|
+
is_ptz_connected: true,
|
|
59
|
+
is_ptz_panel_opened: true,
|
|
48
60
|
|
|
49
61
|
presets: [
|
|
50
62
|
{
|
|
51
63
|
name: "Preset 1",
|
|
52
|
-
|
|
64
|
+
token: "preset1",
|
|
65
|
+
x: 0,
|
|
66
|
+
y: 0,
|
|
67
|
+
z: 0,
|
|
53
68
|
},
|
|
54
69
|
{
|
|
55
70
|
name: "Preset 2",
|
|
56
|
-
|
|
71
|
+
token: "preset2",
|
|
72
|
+
x: 0,
|
|
73
|
+
y: 0,
|
|
74
|
+
z: 0,
|
|
57
75
|
},
|
|
58
76
|
],
|
|
59
77
|
},
|
|
@@ -62,20 +80,59 @@ const examples: { name: string; description?: string; data: Component }[] = [
|
|
|
62
80
|
name: "withPresetSelected",
|
|
63
81
|
data: {
|
|
64
82
|
live_uri: "",
|
|
65
|
-
|
|
83
|
+
is_ptz_connected: true,
|
|
84
|
+
is_ptz_panel_opened: true,
|
|
85
|
+
presets: [
|
|
86
|
+
{
|
|
87
|
+
name: "Preset 1",
|
|
88
|
+
token: "preset1",
|
|
89
|
+
x: 0,
|
|
90
|
+
y: 0,
|
|
91
|
+
z: 0,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "Preset 2",
|
|
95
|
+
token: "preset2",
|
|
96
|
+
x: 0,
|
|
97
|
+
y: 0,
|
|
98
|
+
z: 0,
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
current_preset: "preset1",
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "withPanelClosed",
|
|
106
|
+
data: {
|
|
107
|
+
live_uri: "",
|
|
108
|
+
is_ptz_connected: true,
|
|
66
109
|
presets: [
|
|
67
110
|
{
|
|
68
111
|
name: "Preset 1",
|
|
69
|
-
|
|
112
|
+
token: "preset1",
|
|
113
|
+
x: 0,
|
|
114
|
+
y: 0,
|
|
115
|
+
z: 0,
|
|
70
116
|
},
|
|
71
117
|
{
|
|
72
118
|
name: "Preset 2",
|
|
73
|
-
|
|
119
|
+
token: "preset2",
|
|
120
|
+
x: 0,
|
|
121
|
+
y: 0,
|
|
122
|
+
z: 0,
|
|
74
123
|
},
|
|
75
124
|
],
|
|
76
125
|
current_preset: "preset1",
|
|
77
126
|
},
|
|
78
127
|
},
|
|
128
|
+
{
|
|
129
|
+
name: "disconnected",
|
|
130
|
+
data: {
|
|
131
|
+
live_uri: "",
|
|
132
|
+
presets: [],
|
|
133
|
+
current_preset: "preset1",
|
|
134
|
+
},
|
|
135
|
+
},
|
|
79
136
|
];
|
|
80
137
|
export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
|
|
81
138
|
definitions: null as any,
|