@rosettadash/vue 0.1.1 → 0.1.3
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/package.json +26 -2
- package/src/domain/i18n/app-language-select/index.d.ts +29 -0
- package/src/domain/i18n/app-language-select/index.js +22 -0
- package/src/domain/i18n/app-language-select/index.js.map +1 -0
- package/src/domain/role-gate/role-gate.d.ts +21 -0
- package/src/domain/role-gate/role-gate.js +32 -4
- package/src/domain/role-gate/role-gate.js.map +1 -1
- package/src/domain/time-preset/time-preset.d.ts +4 -2
- package/src/domain/time-preset/time-preset.js +12 -2
- package/src/domain/time-preset/time-preset.js.map +1 -1
- package/src/index.d.ts +4 -0
- package/src/index.js +4 -0
- package/src/index.js.map +1 -1
- package/src/layout/scroll-region/index.d.ts +2 -0
- package/src/layout/scroll-region/index.js +2 -0
- package/src/layout/scroll-region/index.js.map +1 -0
- package/src/layout/scroll-region/scroll-region.d.ts +53 -0
- package/src/layout/scroll-region/scroll-region.js +28 -0
- package/src/layout/scroll-region/scroll-region.js.map +1 -0
- package/src/lib/custom-element-host.js +6 -2
- package/src/lib/custom-element-host.js.map +1 -1
- package/src/visual/chart/bar/bar-chart.d.ts +34 -0
- package/src/visual/chart/bar/bar-chart.js +71 -7
- package/src/visual/chart/bar/bar-chart.js.map +1 -1
- package/src/visual/chart/line/line-chart.d.ts +44 -0
- package/src/visual/chart/line/line-chart.js +104 -7
- package/src/visual/chart/line/line-chart.js.map +1 -1
- package/src/visual/display/3d-geo-globe/three-geo-globe.d.ts +18 -29
- package/src/visual/display/3d-geo-globe/three-geo-globe.js +19 -20
- package/src/visual/display/3d-geo-globe/three-geo-globe.js.map +1 -1
- package/src/visual/display/geo-map/index.d.ts +36 -0
- package/src/visual/display/geo-map/index.js +25 -0
- package/src/visual/display/geo-map/index.js.map +1 -0
- package/src/visual/input/date-range/date-range-filter.d.ts +32 -2
- package/src/visual/input/date-range/date-range-filter.js +38 -6
- package/src/visual/input/date-range/date-range-filter.js.map +1 -1
- package/src/visual/input/number/number-input.d.ts +25 -3
- package/src/visual/input/number/number-input.js +31 -5
- package/src/visual/input/number/number-input.js.map +1 -1
- package/src/visual/input/select/select-input.d.ts +15 -3
- package/src/visual/input/select/select-input.js +25 -7
- package/src/visual/input/select/select-input.js.map +1 -1
- package/src/visual/input/text/text-input.d.ts +1 -1
- package/src/visual/input/textarea/textarea-input.d.ts +1 -1
- package/src/visual/media/equirect-sphere-viewport/equirect-sphere-viewport.d.ts +205 -0
- package/src/visual/media/equirect-sphere-viewport/equirect-sphere-viewport.js +576 -0
- package/src/visual/media/equirect-sphere-viewport/equirect-sphere-viewport.js.map +1 -0
- package/src/visual/media/equirect-sphere-viewport/index.d.ts +2 -0
- package/src/visual/media/equirect-sphere-viewport/index.js +2 -0
- package/src/visual/media/equirect-sphere-viewport/index.js.map +1 -0
- package/src/visual/media/equirect-sphere-viewport/planet-shader.d.ts +6 -0
- package/src/visual/media/equirect-sphere-viewport/planet-shader.js +69 -0
- package/src/visual/media/equirect-sphere-viewport/planet-shader.js.map +1 -0
- package/src/visual/media/flat-video-viewport/flat-video-viewport.d.ts +160 -0
- package/src/visual/media/flat-video-viewport/flat-video-viewport.js +370 -0
- package/src/visual/media/flat-video-viewport/flat-video-viewport.js.map +1 -0
- package/src/visual/media/flat-video-viewport/index.d.ts +2 -0
- package/src/visual/media/flat-video-viewport/index.js +2 -0
- package/src/visual/media/flat-video-viewport/index.js.map +1 -0
- package/src/visual/media/youtube-embed/index.d.ts +29 -0
- package/src/visual/media/youtube-embed/index.js +21 -0
- package/src/visual/media/youtube-embed/index.js.map +1 -0
- package/src/visual/news/language-select/news-language-select.d.ts +1 -1
- package/src/visual/news/language-select/news-language-select.js +4 -4
- package/src/visual/news/language-select/news-language-select.js.map +1 -1
- package/src/visual/news/region-select/news-region-select.d.ts +1 -1
- package/src/visual/news/region-select/news-region-select.js +4 -4
- package/src/visual/news/region-select/news-region-select.js.map +1 -1
- package/src/visual/news/search-box/news-search-box.d.ts +1 -1
- package/src/visual/news/type-select/news-type-select.d.ts +1 -1
- package/src/visual/news/type-select/news-type-select.js +4 -4
- package/src/visual/news/type-select/news-type-select.js.map +1 -1
- package/src/visual/svg/inline/svg-inline.d.ts +2 -2
- package/src/visual/table/data-table.d.ts +25 -3
- package/src/visual/table/data-table.js +38 -10
- package/src/visual/table/data-table.js.map +1 -1
- package/src/visual/wasm/media/wasm-media.d.ts +3 -0
- package/src/visual/wasm/media/wasm-media.js +10 -1
- package/src/visual/wasm/media/wasm-media.js.map +1 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unified equirect viewport: rectilinear (Three.js unproject) blended to stereographic
|
|
3
|
+
* little-planet. Yaw/pitch define the projection center (center of attention).
|
|
4
|
+
*/
|
|
5
|
+
export const VIEWPORT_VERTEX_SHADER = `
|
|
6
|
+
varying vec2 vNdc;
|
|
7
|
+
void main() {
|
|
8
|
+
vNdc = position.xy;
|
|
9
|
+
gl_Position = vec4(position.xy, 0.0, 1.0);
|
|
10
|
+
}
|
|
11
|
+
`;
|
|
12
|
+
export const VIEWPORT_FRAGMENT_SHADER = `
|
|
13
|
+
precision highp float;
|
|
14
|
+
|
|
15
|
+
uniform sampler2D map;
|
|
16
|
+
uniform mat4 projectionMatrixInverse;
|
|
17
|
+
uniform mat4 cameraMatrixWorld;
|
|
18
|
+
uniform vec3 cameraOrigin;
|
|
19
|
+
uniform mat3 viewRot;
|
|
20
|
+
uniform float planetMix;
|
|
21
|
+
uniform float planetSpread;
|
|
22
|
+
uniform float aspect;
|
|
23
|
+
uniform float flipInterior;
|
|
24
|
+
|
|
25
|
+
varying vec2 vNdc;
|
|
26
|
+
|
|
27
|
+
const float PI = 3.141592653589793;
|
|
28
|
+
|
|
29
|
+
vec3 cameraWorldRay(vec2 ndc) {
|
|
30
|
+
vec4 clip = vec4(ndc.x, ndc.y, 0.5, 1.0);
|
|
31
|
+
vec4 view = projectionMatrixInverse * clip;
|
|
32
|
+
view /= view.w;
|
|
33
|
+
vec4 world = cameraMatrixWorld * view;
|
|
34
|
+
return normalize(world.xyz - cameraOrigin);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/** Stereographic disk in camera space; center = look direction (0,0,-1). */
|
|
38
|
+
vec3 stereographicLocal(vec2 ndc) {
|
|
39
|
+
vec2 p = ndc * planetSpread;
|
|
40
|
+
float r2 = dot(p, p);
|
|
41
|
+
return vec3(2.0 * p.x, 2.0 * p.y, r2 - 1.0) / (1.0 + r2);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Match Three.js SphereGeometry UV + horizontal flip used on interior sphere. */
|
|
45
|
+
vec2 equirectUv(vec3 dir) {
|
|
46
|
+
vec3 d = normalize(dir);
|
|
47
|
+
float theta = acos(clamp(d.y, -1.0, 1.0));
|
|
48
|
+
float phi = atan(d.z, -d.x);
|
|
49
|
+
float u = phi / (2.0 * PI) + 0.5;
|
|
50
|
+
float v = 1.0 - theta / PI;
|
|
51
|
+
if (flipInterior > 0.5) {
|
|
52
|
+
u = 1.0 - u;
|
|
53
|
+
}
|
|
54
|
+
return vec2(u, v);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
void main() {
|
|
58
|
+
vec2 ndc = vNdc;
|
|
59
|
+
ndc.x *= aspect;
|
|
60
|
+
|
|
61
|
+
float mixAmt = clamp(planetMix, 0.0, 1.0);
|
|
62
|
+
vec3 dirRect = cameraWorldRay(ndc);
|
|
63
|
+
vec3 dirStereo = viewRot * stereographicLocal(ndc);
|
|
64
|
+
vec3 dir = normalize(mix(dirRect, dirStereo, mixAmt));
|
|
65
|
+
|
|
66
|
+
gl_FragColor = texture2D(map, equirectUv(dir));
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
69
|
+
//# sourceMappingURL=planet-shader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"planet-shader.js","sourceRoot":"","sources":["../../../../../../../packages/vue/src/visual/media/equirect-sphere-viewport/planet-shader.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;;;;;;CAMrC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwDvC,CAAC"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { type FlatCropRect } from '@rosettadash/core';
|
|
2
|
+
import { type PropType, type StyleValue } from 'vue';
|
|
3
|
+
export type FlatVideoCropChange = FlatCropRect;
|
|
4
|
+
export interface FlatVideoViewportHandle {
|
|
5
|
+
play: () => Promise<void>;
|
|
6
|
+
pause: () => void;
|
|
7
|
+
stop: () => void;
|
|
8
|
+
seek: (time: number) => void;
|
|
9
|
+
getCurrentTime: () => number;
|
|
10
|
+
getDuration: () => number;
|
|
11
|
+
isPaused: () => boolean;
|
|
12
|
+
getOutputCanvas: () => HTMLCanvasElement | null;
|
|
13
|
+
startRecording: () => void;
|
|
14
|
+
stopRecording: () => Promise<Blob | null>;
|
|
15
|
+
}
|
|
16
|
+
export interface FlatVideoViewportProps {
|
|
17
|
+
videoSrc?: string | null;
|
|
18
|
+
sourceWidth: number;
|
|
19
|
+
sourceHeight: number;
|
|
20
|
+
cropX: number;
|
|
21
|
+
cropY: number;
|
|
22
|
+
cropWidth: number;
|
|
23
|
+
cropHeight: number;
|
|
24
|
+
outputWidth?: number;
|
|
25
|
+
outputHeight?: number;
|
|
26
|
+
lockAspectRatio?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
style?: StyleValue;
|
|
29
|
+
outputPreviewHost?: HTMLElement | null;
|
|
30
|
+
onCropChange?: (detail: FlatVideoCropChange) => void;
|
|
31
|
+
}
|
|
32
|
+
export declare const FlatVideoViewport: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
33
|
+
className: {
|
|
34
|
+
type: PropType<string | undefined>;
|
|
35
|
+
default: undefined;
|
|
36
|
+
};
|
|
37
|
+
style: {
|
|
38
|
+
type: PropType<StyleValue | undefined>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
videoSrc: {
|
|
42
|
+
type: PropType<string | null | undefined>;
|
|
43
|
+
default: undefined;
|
|
44
|
+
};
|
|
45
|
+
sourceWidth: {
|
|
46
|
+
type: NumberConstructor;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
sourceHeight: {
|
|
50
|
+
type: NumberConstructor;
|
|
51
|
+
required: true;
|
|
52
|
+
};
|
|
53
|
+
cropX: {
|
|
54
|
+
type: NumberConstructor;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
cropY: {
|
|
58
|
+
type: NumberConstructor;
|
|
59
|
+
required: true;
|
|
60
|
+
};
|
|
61
|
+
cropWidth: {
|
|
62
|
+
type: NumberConstructor;
|
|
63
|
+
required: true;
|
|
64
|
+
};
|
|
65
|
+
cropHeight: {
|
|
66
|
+
type: NumberConstructor;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
outputWidth: {
|
|
70
|
+
type: PropType<number | undefined>;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
outputHeight: {
|
|
74
|
+
type: PropType<number | undefined>;
|
|
75
|
+
default: number;
|
|
76
|
+
};
|
|
77
|
+
lockAspectRatio: {
|
|
78
|
+
type: PropType<boolean | undefined>;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
outputPreviewHost: {
|
|
82
|
+
type: PropType<HTMLElement | null | undefined>;
|
|
83
|
+
default: undefined;
|
|
84
|
+
};
|
|
85
|
+
onCropChange: {
|
|
86
|
+
type: PropType<((detail: FlatVideoCropChange) => void) | undefined>;
|
|
87
|
+
default: undefined;
|
|
88
|
+
};
|
|
89
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "cropChange"[], "cropChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
|
+
className: {
|
|
93
|
+
type: PropType<string | undefined>;
|
|
94
|
+
default: undefined;
|
|
95
|
+
};
|
|
96
|
+
style: {
|
|
97
|
+
type: PropType<StyleValue | undefined>;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
videoSrc: {
|
|
101
|
+
type: PropType<string | null | undefined>;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
sourceWidth: {
|
|
105
|
+
type: NumberConstructor;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
sourceHeight: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
required: true;
|
|
111
|
+
};
|
|
112
|
+
cropX: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
required: true;
|
|
115
|
+
};
|
|
116
|
+
cropY: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
required: true;
|
|
119
|
+
};
|
|
120
|
+
cropWidth: {
|
|
121
|
+
type: NumberConstructor;
|
|
122
|
+
required: true;
|
|
123
|
+
};
|
|
124
|
+
cropHeight: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
required: true;
|
|
127
|
+
};
|
|
128
|
+
outputWidth: {
|
|
129
|
+
type: PropType<number | undefined>;
|
|
130
|
+
default: number;
|
|
131
|
+
};
|
|
132
|
+
outputHeight: {
|
|
133
|
+
type: PropType<number | undefined>;
|
|
134
|
+
default: number;
|
|
135
|
+
};
|
|
136
|
+
lockAspectRatio: {
|
|
137
|
+
type: PropType<boolean | undefined>;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
outputPreviewHost: {
|
|
141
|
+
type: PropType<HTMLElement | null | undefined>;
|
|
142
|
+
default: undefined;
|
|
143
|
+
};
|
|
144
|
+
onCropChange: {
|
|
145
|
+
type: PropType<((detail: FlatVideoCropChange) => void) | undefined>;
|
|
146
|
+
default: undefined;
|
|
147
|
+
};
|
|
148
|
+
}>> & Readonly<{
|
|
149
|
+
onCropChange?: ((...args: any[]) => any) | undefined;
|
|
150
|
+
}>, {
|
|
151
|
+
className: string | undefined;
|
|
152
|
+
style: StyleValue;
|
|
153
|
+
outputWidth: number | undefined;
|
|
154
|
+
outputHeight: number | undefined;
|
|
155
|
+
videoSrc: string | null | undefined;
|
|
156
|
+
outputPreviewHost: HTMLElement | null | undefined;
|
|
157
|
+
lockAspectRatio: boolean | undefined;
|
|
158
|
+
onCropChange: ((detail: FlatVideoCropChange) => void) | undefined;
|
|
159
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
160
|
+
export type FlatVideoViewportComponent = typeof FlatVideoViewport;
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { clampCropToSource } from '@rosettadash/core';
|
|
3
|
+
import { defineComponent, h, onBeforeUnmount, onMounted, ref, watch, } from 'vue';
|
|
4
|
+
function clamp(value, low, high) {
|
|
5
|
+
return Math.min(high, Math.max(low, value));
|
|
6
|
+
}
|
|
7
|
+
function pickRecorderMimeType() {
|
|
8
|
+
const candidates = ['video/webm;codecs=vp9', 'video/webm;codecs=vp8', 'video/webm'];
|
|
9
|
+
for (const type of candidates) {
|
|
10
|
+
if (MediaRecorder.isTypeSupported(type)) {
|
|
11
|
+
return type;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
return 'video/webm';
|
|
15
|
+
}
|
|
16
|
+
function previewCanvasSize(cropWidth, cropHeight, maxEdge = 720) {
|
|
17
|
+
const safeCropWidth = Math.max(2, Math.round(cropWidth));
|
|
18
|
+
const safeCropHeight = Math.max(2, Math.round(cropHeight));
|
|
19
|
+
const scale = Math.min(1, maxEdge / Math.max(safeCropWidth, safeCropHeight));
|
|
20
|
+
return {
|
|
21
|
+
width: Math.max(2, Math.round((safeCropWidth * scale) / 2) * 2),
|
|
22
|
+
height: Math.max(2, Math.round((safeCropHeight * scale) / 2) * 2),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function fitCropSizeInHost(cropWidth, cropHeight, hostWidth, hostHeight, dpr = 1) {
|
|
26
|
+
const cropW = Math.max(2, Math.round(cropWidth));
|
|
27
|
+
const cropH = Math.max(2, Math.round(cropHeight));
|
|
28
|
+
const cropAspect = cropW / cropH;
|
|
29
|
+
const hostAspect = hostWidth / hostHeight;
|
|
30
|
+
let fitWidth;
|
|
31
|
+
let fitHeight;
|
|
32
|
+
if (cropAspect > hostAspect) {
|
|
33
|
+
fitWidth = hostWidth;
|
|
34
|
+
fitHeight = hostWidth / cropAspect;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
fitHeight = hostHeight;
|
|
38
|
+
fitWidth = hostHeight * cropAspect;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
width: Math.max(2, Math.round((fitWidth * dpr) / 2) * 2),
|
|
42
|
+
height: Math.max(2, Math.round((fitHeight * dpr) / 2) * 2),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function applyPreviewCanvasLayout(canvas, cropWidth, cropHeight, host) {
|
|
46
|
+
const dpr = Math.min(typeof window !== 'undefined' ? window.devicePixelRatio || 1 : 1, 2);
|
|
47
|
+
const rect = host === null || host === void 0 ? void 0 : host.getBoundingClientRect();
|
|
48
|
+
const { width, height } = rect && rect.width > 0 && rect.height > 0
|
|
49
|
+
? fitCropSizeInHost(cropWidth, cropHeight, rect.width, rect.height, dpr)
|
|
50
|
+
: previewCanvasSize(cropWidth, cropHeight);
|
|
51
|
+
canvas.width = width;
|
|
52
|
+
canvas.height = height;
|
|
53
|
+
canvas.style.removeProperty('width');
|
|
54
|
+
canvas.style.removeProperty('height');
|
|
55
|
+
canvas.style.removeProperty('max-width');
|
|
56
|
+
canvas.style.removeProperty('max-height');
|
|
57
|
+
canvas.style.removeProperty('aspect-ratio');
|
|
58
|
+
}
|
|
59
|
+
function drawFlatCropPreview(ctx, video, cropX, cropY, cropWidth, cropHeight, canvasWidth, canvasHeight) {
|
|
60
|
+
ctx.fillStyle = '#000';
|
|
61
|
+
ctx.fillRect(0, 0, canvasWidth, canvasHeight);
|
|
62
|
+
ctx.drawImage(video, cropX, cropY, cropWidth, cropHeight, 0, 0, canvasWidth, canvasHeight);
|
|
63
|
+
}
|
|
64
|
+
function cropToPercent(crop, sourceWidth, sourceHeight) {
|
|
65
|
+
return {
|
|
66
|
+
left: (crop.cropX / sourceWidth) * 100,
|
|
67
|
+
top: (crop.cropY / sourceHeight) * 100,
|
|
68
|
+
width: (crop.cropWidth / sourceWidth) * 100,
|
|
69
|
+
height: (crop.cropHeight / sourceHeight) * 100,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function pointerToSource(clientX, clientY, frameRect, sourceWidth, sourceHeight) {
|
|
73
|
+
const x = clamp(((clientX - frameRect.left) / frameRect.width) * sourceWidth, 0, sourceWidth);
|
|
74
|
+
const y = clamp(((clientY - frameRect.top) / frameRect.height) * sourceHeight, 0, sourceHeight);
|
|
75
|
+
return { x, y };
|
|
76
|
+
}
|
|
77
|
+
export const FlatVideoViewport = defineComponent({
|
|
78
|
+
name: 'RdFlatVideoViewport',
|
|
79
|
+
props: {
|
|
80
|
+
className: { type: String, default: undefined },
|
|
81
|
+
style: { type: [String, Object, Array], default: undefined },
|
|
82
|
+
videoSrc: { type: String, default: undefined },
|
|
83
|
+
sourceWidth: { type: Number, required: true },
|
|
84
|
+
sourceHeight: { type: Number, required: true },
|
|
85
|
+
cropX: { type: Number, required: true },
|
|
86
|
+
cropY: { type: Number, required: true },
|
|
87
|
+
cropWidth: { type: Number, required: true },
|
|
88
|
+
cropHeight: { type: Number, required: true },
|
|
89
|
+
outputWidth: { type: Number, default: 640 },
|
|
90
|
+
outputHeight: { type: Number, default: 360 },
|
|
91
|
+
lockAspectRatio: { type: Boolean, default: false },
|
|
92
|
+
outputPreviewHost: { type: Object, default: undefined },
|
|
93
|
+
onCropChange: {
|
|
94
|
+
type: Function,
|
|
95
|
+
default: undefined,
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
emits: ['cropChange'],
|
|
99
|
+
setup(props, { emit, expose, attrs }) {
|
|
100
|
+
const hostRef = ref(null);
|
|
101
|
+
const frameRef = ref(null);
|
|
102
|
+
const videoRef = ref(null);
|
|
103
|
+
const outputCanvasRef = ref(null);
|
|
104
|
+
const dragRef = ref(null);
|
|
105
|
+
let disposePreview = null;
|
|
106
|
+
const handle = {
|
|
107
|
+
play: () => __awaiter(this, void 0, void 0, function* () {
|
|
108
|
+
const video = videoRef.value;
|
|
109
|
+
if (!video) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
yield video.play();
|
|
113
|
+
}),
|
|
114
|
+
pause: () => { var _a; return (_a = videoRef.value) === null || _a === void 0 ? void 0 : _a.pause(); },
|
|
115
|
+
stop: () => {
|
|
116
|
+
const video = videoRef.value;
|
|
117
|
+
if (!video) {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
video.pause();
|
|
121
|
+
video.currentTime = 0;
|
|
122
|
+
},
|
|
123
|
+
seek: (time) => {
|
|
124
|
+
const video = videoRef.value;
|
|
125
|
+
if (!video) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
video.currentTime = clamp(time, 0, video.duration || time);
|
|
129
|
+
},
|
|
130
|
+
getCurrentTime: () => { var _a, _b; return (_b = (_a = videoRef.value) === null || _a === void 0 ? void 0 : _a.currentTime) !== null && _b !== void 0 ? _b : 0; },
|
|
131
|
+
getDuration: () => { var _a, _b; return (_b = (_a = videoRef.value) === null || _a === void 0 ? void 0 : _a.duration) !== null && _b !== void 0 ? _b : 0; },
|
|
132
|
+
isPaused: () => { var _a, _b; return (_b = (_a = videoRef.value) === null || _a === void 0 ? void 0 : _a.paused) !== null && _b !== void 0 ? _b : true; },
|
|
133
|
+
getOutputCanvas: () => outputCanvasRef.value,
|
|
134
|
+
startRecording: () => {
|
|
135
|
+
const canvas = outputCanvasRef.value;
|
|
136
|
+
const host = hostRef.value;
|
|
137
|
+
if (!canvas || !host || host.__recorder) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
const stream = canvas.captureStream(30);
|
|
141
|
+
const chunks = [];
|
|
142
|
+
host.__recordedChunks = chunks;
|
|
143
|
+
const recorder = new MediaRecorder(stream, { mimeType: pickRecorderMimeType() });
|
|
144
|
+
host.__recorder = recorder;
|
|
145
|
+
recorder.ondataavailable = (event) => {
|
|
146
|
+
if (event.data.size > 0) {
|
|
147
|
+
chunks.push(event.data);
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
recorder.start(200);
|
|
151
|
+
},
|
|
152
|
+
stopRecording: () => new Promise((resolve) => {
|
|
153
|
+
const host = hostRef.value;
|
|
154
|
+
const recorder = host === null || host === void 0 ? void 0 : host.__recorder;
|
|
155
|
+
if (!recorder || recorder.state === 'inactive') {
|
|
156
|
+
resolve(null);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
recorder.onstop = () => {
|
|
160
|
+
var _a;
|
|
161
|
+
const chunks = (_a = host === null || host === void 0 ? void 0 : host.__recordedChunks) !== null && _a !== void 0 ? _a : [];
|
|
162
|
+
if (host) {
|
|
163
|
+
host.__recorder = null;
|
|
164
|
+
host.__recordedChunks = [];
|
|
165
|
+
}
|
|
166
|
+
resolve(new Blob(chunks, { type: recorder.mimeType || 'video/webm' }));
|
|
167
|
+
};
|
|
168
|
+
recorder.stop();
|
|
169
|
+
}),
|
|
170
|
+
};
|
|
171
|
+
expose(handle);
|
|
172
|
+
function mountPreview() {
|
|
173
|
+
disposePreview === null || disposePreview === void 0 ? void 0 : disposePreview();
|
|
174
|
+
disposePreview = null;
|
|
175
|
+
const host = props.outputPreviewHost;
|
|
176
|
+
if (!host) {
|
|
177
|
+
return;
|
|
178
|
+
}
|
|
179
|
+
const canvas = document.createElement('canvas');
|
|
180
|
+
canvas.className = 'rd-flat-video-viewport__mirror';
|
|
181
|
+
canvas.setAttribute('aria-label', 'Output view (cropped region)');
|
|
182
|
+
host.appendChild(canvas);
|
|
183
|
+
outputCanvasRef.value = canvas;
|
|
184
|
+
const resize = () => {
|
|
185
|
+
applyPreviewCanvasLayout(canvas, props.cropWidth, props.cropHeight, host);
|
|
186
|
+
};
|
|
187
|
+
resize();
|
|
188
|
+
let animationId = 0;
|
|
189
|
+
const tick = () => {
|
|
190
|
+
const video = videoRef.value;
|
|
191
|
+
const ctx = canvas.getContext('2d');
|
|
192
|
+
if (video && ctx && video.readyState >= 2) {
|
|
193
|
+
drawFlatCropPreview(ctx, video, props.cropX, props.cropY, props.cropWidth, props.cropHeight, canvas.width, canvas.height);
|
|
194
|
+
}
|
|
195
|
+
animationId = requestAnimationFrame(tick);
|
|
196
|
+
};
|
|
197
|
+
tick();
|
|
198
|
+
const resizeObserver = new ResizeObserver(resize);
|
|
199
|
+
resizeObserver.observe(host);
|
|
200
|
+
disposePreview = () => {
|
|
201
|
+
cancelAnimationFrame(animationId);
|
|
202
|
+
resizeObserver.disconnect();
|
|
203
|
+
canvas.remove();
|
|
204
|
+
outputCanvasRef.value = null;
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
const emitCrop = (next) => {
|
|
208
|
+
var _a;
|
|
209
|
+
const clamped = clampCropToSource(next, props.sourceWidth, props.sourceHeight);
|
|
210
|
+
(_a = props.onCropChange) === null || _a === void 0 ? void 0 : _a.call(props, clamped);
|
|
211
|
+
emit('cropChange', clamped);
|
|
212
|
+
};
|
|
213
|
+
const applyDrag = (clientX, clientY) => {
|
|
214
|
+
var _a, _b;
|
|
215
|
+
const drag = dragRef.value;
|
|
216
|
+
const frame = frameRef.value;
|
|
217
|
+
if (!drag || !frame) {
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
const frameRect = frame.getBoundingClientRect();
|
|
221
|
+
const pointer = pointerToSource(clientX, clientY, frameRect, props.sourceWidth, props.sourceHeight);
|
|
222
|
+
const dx = pointer.x - drag.startX;
|
|
223
|
+
const dy = pointer.y - drag.startY;
|
|
224
|
+
const origin = drag.origin;
|
|
225
|
+
const outputAspect = ((_a = props.outputWidth) !== null && _a !== void 0 ? _a : 640) / ((_b = props.outputHeight) !== null && _b !== void 0 ? _b : 360);
|
|
226
|
+
if (drag.mode === 'move') {
|
|
227
|
+
emitCrop({
|
|
228
|
+
cropX: origin.cropX + dx,
|
|
229
|
+
cropY: origin.cropY + dy,
|
|
230
|
+
cropWidth: origin.cropWidth,
|
|
231
|
+
cropHeight: origin.cropHeight,
|
|
232
|
+
});
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
let nextX = origin.cropX;
|
|
236
|
+
let nextY = origin.cropY;
|
|
237
|
+
let nextW = origin.cropWidth;
|
|
238
|
+
let nextH = origin.cropHeight;
|
|
239
|
+
if (drag.mode.includes('e')) {
|
|
240
|
+
nextW = origin.cropWidth + dx;
|
|
241
|
+
}
|
|
242
|
+
if (drag.mode.includes('w')) {
|
|
243
|
+
nextW = origin.cropWidth - dx;
|
|
244
|
+
nextX = origin.cropX + dx;
|
|
245
|
+
}
|
|
246
|
+
if (drag.mode.includes('s')) {
|
|
247
|
+
nextH = origin.cropHeight + dy;
|
|
248
|
+
}
|
|
249
|
+
if (drag.mode.includes('n')) {
|
|
250
|
+
nextH = origin.cropHeight - dy;
|
|
251
|
+
nextY = origin.cropY + dy;
|
|
252
|
+
}
|
|
253
|
+
if (props.lockAspectRatio && outputAspect > 0) {
|
|
254
|
+
nextH = nextW / outputAspect;
|
|
255
|
+
if (drag.mode.includes('n')) {
|
|
256
|
+
nextY = origin.cropY + origin.cropHeight - nextH;
|
|
257
|
+
}
|
|
258
|
+
if (drag.mode.includes('w')) {
|
|
259
|
+
nextX = origin.cropX + origin.cropWidth - nextW;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
nextW = Math.max(2, nextW);
|
|
263
|
+
nextH = Math.max(2, nextH);
|
|
264
|
+
emitCrop({ cropX: nextX, cropY: nextY, cropWidth: nextW, cropHeight: nextH });
|
|
265
|
+
};
|
|
266
|
+
const onPointerDown = (event, mode) => {
|
|
267
|
+
const frame = frameRef.value;
|
|
268
|
+
if (!frame || event.button !== 0) {
|
|
269
|
+
return;
|
|
270
|
+
}
|
|
271
|
+
event.preventDefault();
|
|
272
|
+
event.stopPropagation();
|
|
273
|
+
const frameRect = frame.getBoundingClientRect();
|
|
274
|
+
const pointer = pointerToSource(event.clientX, event.clientY, frameRect, props.sourceWidth, props.sourceHeight);
|
|
275
|
+
dragRef.value = {
|
|
276
|
+
mode,
|
|
277
|
+
startX: pointer.x,
|
|
278
|
+
startY: pointer.y,
|
|
279
|
+
origin: {
|
|
280
|
+
cropX: props.cropX,
|
|
281
|
+
cropY: props.cropY,
|
|
282
|
+
cropWidth: props.cropWidth,
|
|
283
|
+
cropHeight: props.cropHeight,
|
|
284
|
+
},
|
|
285
|
+
};
|
|
286
|
+
const onWindowMove = (moveEvent) => {
|
|
287
|
+
applyDrag(moveEvent.clientX, moveEvent.clientY);
|
|
288
|
+
};
|
|
289
|
+
const onWindowUp = () => {
|
|
290
|
+
dragRef.value = null;
|
|
291
|
+
window.removeEventListener('pointermove', onWindowMove);
|
|
292
|
+
window.removeEventListener('pointerup', onWindowUp);
|
|
293
|
+
window.removeEventListener('pointercancel', onWindowUp);
|
|
294
|
+
};
|
|
295
|
+
window.addEventListener('pointermove', onWindowMove);
|
|
296
|
+
window.addEventListener('pointerup', onWindowUp);
|
|
297
|
+
window.addEventListener('pointercancel', onWindowUp);
|
|
298
|
+
};
|
|
299
|
+
onMounted(() => {
|
|
300
|
+
watch(() => [props.outputPreviewHost, props.videoSrc], () => mountPreview(), { immediate: true, flush: 'post' });
|
|
301
|
+
watch(() => [props.cropWidth, props.cropHeight], () => {
|
|
302
|
+
const canvas = outputCanvasRef.value;
|
|
303
|
+
if (!canvas) {
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
applyPreviewCanvasLayout(canvas, props.cropWidth, props.cropHeight, props.outputPreviewHost);
|
|
307
|
+
});
|
|
308
|
+
watch(() => props.videoSrc, (src) => {
|
|
309
|
+
const video = videoRef.value;
|
|
310
|
+
if (!video || !src) {
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
video.src = src;
|
|
314
|
+
video.load();
|
|
315
|
+
void video.play().catch(() => undefined);
|
|
316
|
+
}, { immediate: true });
|
|
317
|
+
});
|
|
318
|
+
onBeforeUnmount(() => {
|
|
319
|
+
disposePreview === null || disposePreview === void 0 ? void 0 : disposePreview();
|
|
320
|
+
disposePreview = null;
|
|
321
|
+
});
|
|
322
|
+
return () => {
|
|
323
|
+
const cropPct = cropToPercent({
|
|
324
|
+
cropX: props.cropX,
|
|
325
|
+
cropY: props.cropY,
|
|
326
|
+
cropWidth: props.cropWidth,
|
|
327
|
+
cropHeight: props.cropHeight,
|
|
328
|
+
}, props.sourceWidth, props.sourceHeight);
|
|
329
|
+
const rootClass = [
|
|
330
|
+
'rd-flat-video-viewport',
|
|
331
|
+
props.className,
|
|
332
|
+
typeof attrs.class === 'string' ? attrs.class : '',
|
|
333
|
+
]
|
|
334
|
+
.filter(Boolean)
|
|
335
|
+
.join(' ');
|
|
336
|
+
const handles = ['nw', 'ne', 'sw', 'se'];
|
|
337
|
+
return h('div', { ref: hostRef, class: rootClass, style: props.style, 'data-testid': 'rd-flat-video-viewport' }, [
|
|
338
|
+
h('div', {
|
|
339
|
+
ref: frameRef,
|
|
340
|
+
class: 'rd-flat-video-viewport__frame',
|
|
341
|
+
style: { aspectRatio: `${props.sourceWidth} / ${props.sourceHeight}` },
|
|
342
|
+
}, [
|
|
343
|
+
h('video', {
|
|
344
|
+
ref: videoRef,
|
|
345
|
+
class: 'rd-flat-video-viewport__video',
|
|
346
|
+
muted: true,
|
|
347
|
+
playsInline: true,
|
|
348
|
+
loop: false,
|
|
349
|
+
crossOrigin: 'anonymous',
|
|
350
|
+
}),
|
|
351
|
+
h('div', {
|
|
352
|
+
class: 'rd-flat-video-viewport__crop',
|
|
353
|
+
style: {
|
|
354
|
+
left: `${cropPct.left}%`,
|
|
355
|
+
top: `${cropPct.top}%`,
|
|
356
|
+
width: `${cropPct.width}%`,
|
|
357
|
+
height: `${cropPct.height}%`,
|
|
358
|
+
},
|
|
359
|
+
onPointerdown: (event) => onPointerDown(event, 'move'),
|
|
360
|
+
}, handles.map((handleName) => h('span', {
|
|
361
|
+
key: handleName,
|
|
362
|
+
class: `rd-flat-video-viewport__handle rd-flat-video-viewport__handle--${handleName}`,
|
|
363
|
+
onPointerdown: (event) => onPointerDown(event, handleName),
|
|
364
|
+
}))),
|
|
365
|
+
]),
|
|
366
|
+
]);
|
|
367
|
+
};
|
|
368
|
+
},
|
|
369
|
+
});
|
|
370
|
+
//# sourceMappingURL=flat-video-viewport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"flat-video-viewport.js","sourceRoot":"","sources":["../../../../../../../packages/vue/src/visual/media/flat-video-viewport/flat-video-viewport.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAqB,MAAM,mBAAmB,CAAC;AACzE,OAAO,EACL,eAAe,EACf,CAAC,EACD,eAAe,EACf,SAAS,EACT,GAAG,EACH,KAAK,GAGN,MAAM,KAAK,CAAC;AAoCb,SAAS,KAAK,CAAC,KAAa,EAAE,GAAW,EAAE,IAAY;IACrD,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AAC9C,CAAC;AAED,SAAS,oBAAoB;IAC3B,MAAM,UAAU,GAAG,CAAC,uBAAuB,EAAE,uBAAuB,EAAE,YAAY,CAAC,CAAC;IACpF,KAAK,MAAM,IAAI,IAAI,UAAU,EAAE,CAAC;QAC9B,IAAI,aAAa,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;YACxC,OAAO,IAAI,CAAC;QACd,CAA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AO,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CACzB,CAAC,CAAC,MAAM,EAAE;wBACR,GAAG,EAAE,UAAU;wBACf,KAAK,EAAE,kEAAkE,UAAU,EAAE;wBACrF,aAAa,EAAE,CAAC,KAAmB,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC;qBACzE,CAAC,CACH,CACF;iBACF,CACF;aACF,CAAC,CAAC;QACL,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/vue/src/visual/media/flat-video-viewport/index.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface YoutubeEmbedProps {
|
|
2
|
+
videoId?: string;
|
|
3
|
+
url?: string;
|
|
4
|
+
start?: number;
|
|
5
|
+
autoplay?: boolean;
|
|
6
|
+
mute?: boolean;
|
|
7
|
+
controls?: boolean;
|
|
8
|
+
title?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Vue wrapper around `<rd-youtube-embed>`. */
|
|
12
|
+
export declare const YoutubeEmbed: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
className: {
|
|
14
|
+
type: import("vue").PropType<string | undefined>;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
17
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, string[], string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
className: {
|
|
21
|
+
type: import("vue").PropType<string | undefined>;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
}>> & Readonly<{
|
|
25
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
26
|
+
}>, {
|
|
27
|
+
className: string | undefined;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
export type YoutubeEmbedComponent = typeof YoutubeEmbed;
|