openvideo 0.1.10 → 0.2.0
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/animation/gsap-animation.d.ts +1 -1
- package/dist/animation/presets.d.ts +31 -0
- package/dist/animation/types.d.ts +18 -0
- package/dist/browserAll-DjjOJsg2.js +7 -0
- package/dist/clips/base-clip.d.ts +2 -2
- package/dist/clips/caption-clip.d.ts +45 -42
- package/dist/clips/iclip.d.ts +10 -0
- package/dist/clips/text-clip.d.ts +17 -17
- package/dist/compositor.d.ts +3 -0
- package/dist/effect/effect.d.ts +4 -1
- package/dist/effect/glsl/custom-glsl.d.ts +15 -0
- package/dist/effect/glsl/gl-effect.d.ts +29 -7
- package/dist/index-DCWl03Hg.js +82357 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +35 -27
- package/dist/index.umd.js +2522 -495
- package/dist/json-serialization.d.ts +12 -1
- package/dist/sprite/base-sprite.d.ts +7 -2
- package/dist/sprite/pixi-sprite-renderer.d.ts +1 -0
- package/dist/studio.d.ts +21 -14
- package/dist/transition/glsl/gl-transition.d.ts +25 -5
- package/dist/utils/color.d.ts +8 -0
- package/dist/utils/stream-utils.d.ts +0 -5
- package/dist/webworkerAll-DY6Fccy4.js +17 -0
- package/package.json +3 -2
- package/dist/SharedSystems-BToBuu4Q.js +0 -2691
- package/dist/WebGLRenderer-CFWSnnJo.js +0 -2639
- package/dist/WebGPURenderer-7lmK3Jak.js +0 -1655
- package/dist/animation/easings.spec.d.ts +0 -1
- package/dist/animation/keyframe-animation.spec.d.ts +0 -1
- package/dist/browserAll-D7xrJ7bE.js +0 -1876
- package/dist/colorToUniform-C2jGzNe1.js +0 -97
- package/dist/index-B3edIoqh.js +0 -49178
- package/dist/webworkerAll-DvrCPjE-.js +0 -2643
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
const l = {
|
|
2
|
-
name: "local-uniform-bit",
|
|
3
|
-
vertex: {
|
|
4
|
-
header: (
|
|
5
|
-
/* wgsl */
|
|
6
|
-
`
|
|
7
|
-
|
|
8
|
-
struct LocalUniforms {
|
|
9
|
-
uTransformMatrix:mat3x3<f32>,
|
|
10
|
-
uColor:vec4<f32>,
|
|
11
|
-
uRound:f32,
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@group(1) @binding(0) var<uniform> localUniforms : LocalUniforms;
|
|
15
|
-
`
|
|
16
|
-
),
|
|
17
|
-
main: (
|
|
18
|
-
/* wgsl */
|
|
19
|
-
`
|
|
20
|
-
vColor *= localUniforms.uColor;
|
|
21
|
-
modelMatrix *= localUniforms.uTransformMatrix;
|
|
22
|
-
`
|
|
23
|
-
),
|
|
24
|
-
end: (
|
|
25
|
-
/* wgsl */
|
|
26
|
-
`
|
|
27
|
-
if(localUniforms.uRound == 1)
|
|
28
|
-
{
|
|
29
|
-
vPosition = vec4(roundPixels(vPosition.xy, globalUniforms.uResolution), vPosition.zw);
|
|
30
|
-
}
|
|
31
|
-
`
|
|
32
|
-
)
|
|
33
|
-
}
|
|
34
|
-
}, e = {
|
|
35
|
-
...l,
|
|
36
|
-
vertex: {
|
|
37
|
-
...l.vertex,
|
|
38
|
-
// replace the group!
|
|
39
|
-
header: l.vertex.header.replace("group(1)", "group(2)")
|
|
40
|
-
}
|
|
41
|
-
}, n = {
|
|
42
|
-
name: "local-uniform-bit",
|
|
43
|
-
vertex: {
|
|
44
|
-
header: (
|
|
45
|
-
/* glsl */
|
|
46
|
-
`
|
|
47
|
-
|
|
48
|
-
uniform mat3 uTransformMatrix;
|
|
49
|
-
uniform vec4 uColor;
|
|
50
|
-
uniform float uRound;
|
|
51
|
-
`
|
|
52
|
-
),
|
|
53
|
-
main: (
|
|
54
|
-
/* glsl */
|
|
55
|
-
`
|
|
56
|
-
vColor *= uColor;
|
|
57
|
-
modelMatrix = uTransformMatrix;
|
|
58
|
-
`
|
|
59
|
-
),
|
|
60
|
-
end: (
|
|
61
|
-
/* glsl */
|
|
62
|
-
`
|
|
63
|
-
if(uRound == 1.)
|
|
64
|
-
{
|
|
65
|
-
gl_Position.xy = roundPixels(gl_Position.xy, uResolution);
|
|
66
|
-
}
|
|
67
|
-
`
|
|
68
|
-
)
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
class a {
|
|
72
|
-
constructor() {
|
|
73
|
-
this.batcherName = "default", this.topology = "triangle-list", this.attributeSize = 4, this.indexSize = 6, this.packAsQuad = !0, this.roundPixels = 0, this._attributeStart = 0, this._batcher = null, this._batch = null;
|
|
74
|
-
}
|
|
75
|
-
get blendMode() {
|
|
76
|
-
return this.renderable.groupBlendMode;
|
|
77
|
-
}
|
|
78
|
-
get color() {
|
|
79
|
-
return this.renderable.groupColorAlpha;
|
|
80
|
-
}
|
|
81
|
-
reset() {
|
|
82
|
-
this.renderable = null, this.texture = null, this._batcher = null, this._batch = null, this.bounds = null;
|
|
83
|
-
}
|
|
84
|
-
destroy() {
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
function s(o, r, i) {
|
|
88
|
-
const t = (o >> 24 & 255) / 255;
|
|
89
|
-
r[i++] = (o & 255) / 255 * t, r[i++] = (o >> 8 & 255) / 255 * t, r[i++] = (o >> 16 & 255) / 255 * t, r[i++] = t;
|
|
90
|
-
}
|
|
91
|
-
export {
|
|
92
|
-
a as B,
|
|
93
|
-
l as a,
|
|
94
|
-
n as b,
|
|
95
|
-
s as c,
|
|
96
|
-
e as l
|
|
97
|
-
};
|