@scarlett-player/watermark 1.4.1 → 1.5.1
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/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -10,21 +10,21 @@ interface WatermarkConfig {
|
|
|
10
10
|
text?: string;
|
|
11
11
|
/** Image URL to display instead of text */
|
|
12
12
|
imageUrl?: string;
|
|
13
|
-
/** Position on the player
|
|
13
|
+
/** Position on the player - default: 'bottom-right' */
|
|
14
14
|
position?: WatermarkPosition;
|
|
15
|
-
/** Opacity 0-1
|
|
15
|
+
/** Opacity 0-1 - default: 0.5 */
|
|
16
16
|
opacity?: number;
|
|
17
|
-
/** Font size in px for text watermarks
|
|
17
|
+
/** Font size in px for text watermarks - default: 14 */
|
|
18
18
|
fontSize?: number;
|
|
19
|
-
/** Image height in px
|
|
19
|
+
/** Image height in px - default: 40. Only applies when imageUrl is set. */
|
|
20
20
|
imageHeight?: number;
|
|
21
21
|
/** Padding from edges in px. Default: 10px for top/side, 40px for bottom to clear controls. When set, applies to all positions. */
|
|
22
22
|
padding?: number;
|
|
23
|
-
/** Whether to periodically move the watermark to a random position
|
|
23
|
+
/** Whether to periodically move the watermark to a random position - default: false */
|
|
24
24
|
dynamic?: boolean;
|
|
25
|
-
/** Interval in ms for dynamic repositioning
|
|
25
|
+
/** Interval in ms for dynamic repositioning - default: 10000 */
|
|
26
26
|
dynamicInterval?: number;
|
|
27
|
-
/** Delay in ms before showing watermark after play
|
|
27
|
+
/** Delay in ms before showing watermark after play - default: 0 */
|
|
28
28
|
showDelay?: number;
|
|
29
29
|
/** Index signature for PluginConfig compatibility */
|
|
30
30
|
[key: string]: unknown;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,21 +10,21 @@ interface WatermarkConfig {
|
|
|
10
10
|
text?: string;
|
|
11
11
|
/** Image URL to display instead of text */
|
|
12
12
|
imageUrl?: string;
|
|
13
|
-
/** Position on the player
|
|
13
|
+
/** Position on the player - default: 'bottom-right' */
|
|
14
14
|
position?: WatermarkPosition;
|
|
15
|
-
/** Opacity 0-1
|
|
15
|
+
/** Opacity 0-1 - default: 0.5 */
|
|
16
16
|
opacity?: number;
|
|
17
|
-
/** Font size in px for text watermarks
|
|
17
|
+
/** Font size in px for text watermarks - default: 14 */
|
|
18
18
|
fontSize?: number;
|
|
19
|
-
/** Image height in px
|
|
19
|
+
/** Image height in px - default: 40. Only applies when imageUrl is set. */
|
|
20
20
|
imageHeight?: number;
|
|
21
21
|
/** Padding from edges in px. Default: 10px for top/side, 40px for bottom to clear controls. When set, applies to all positions. */
|
|
22
22
|
padding?: number;
|
|
23
|
-
/** Whether to periodically move the watermark to a random position
|
|
23
|
+
/** Whether to periodically move the watermark to a random position - default: false */
|
|
24
24
|
dynamic?: boolean;
|
|
25
|
-
/** Interval in ms for dynamic repositioning
|
|
25
|
+
/** Interval in ms for dynamic repositioning - default: 10000 */
|
|
26
26
|
dynamicInterval?: number;
|
|
27
|
-
/** Delay in ms before showing watermark after play
|
|
27
|
+
/** Delay in ms before showing watermark after play - default: 0 */
|
|
28
28
|
showDelay?: number;
|
|
29
29
|
/** Index signature for PluginConfig compatibility */
|
|
30
30
|
[key: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scarlett-player/watermark",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Watermark Plugin for Scarlett Player - anti-piracy text/image overlay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"tsup": "^8.5.1",
|
|
31
31
|
"typescript": "^5.3.0",
|
|
32
32
|
"vitest": "^1.6.0",
|
|
33
|
-
"@scarlett-player/core": "1.
|
|
33
|
+
"@scarlett-player/core": "1.5.1"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"video",
|