@revideo/2d 0.4.7-alpha.1027 → 0.4.7-five.1022

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.
Files changed (164) hide show
  1. package/editor/editor/tsconfig.build.tsbuildinfo +1 -1
  2. package/editor/index.js +380 -151
  3. package/editor/index.js.map +1 -1
  4. package/lib/code/CodeCursor.d.ts +74 -74
  5. package/lib/code/CodeDiffer.d.ts +21 -16
  6. package/lib/code/CodeDiffer.js +39 -41
  7. package/lib/code/CodeFragment.d.ts +16 -8
  8. package/lib/code/CodeFragment.js +36 -36
  9. package/lib/code/CodeHighlighter.d.ts +59 -59
  10. package/lib/code/CodeHighlighter.js +1 -1
  11. package/lib/code/CodeMetrics.d.ts +12 -8
  12. package/lib/code/CodeMetrics.js +26 -24
  13. package/lib/code/CodeRange.d.ts +21 -5
  14. package/lib/code/CodeRange.js +131 -124
  15. package/lib/code/CodeScope.d.ts +18 -8
  16. package/lib/code/CodeSelection.d.ts +9 -4
  17. package/lib/code/CodeSelection.js +8 -8
  18. package/lib/code/CodeSignal.d.ts +74 -47
  19. package/lib/code/CodeTokenizer.d.ts +1 -1
  20. package/lib/code/CodeTokenizer.js +41 -41
  21. package/lib/code/DefaultHighlightStyle.d.ts +2 -2
  22. package/lib/code/DefaultHighlightStyle.js +96 -96
  23. package/lib/code/LezerHighlighter.d.ts +21 -19
  24. package/lib/code/diff.d.ts +12 -9
  25. package/lib/code/diff.js +218 -205
  26. package/lib/code/extractRange.d.ts +7 -4
  27. package/lib/code/extractRange.js +79 -71
  28. package/lib/code/index.d.ts +1 -1
  29. package/lib/code/index.js +1 -1
  30. package/lib/components/Audio.d.ts +11 -11
  31. package/lib/components/Bezier.d.ts +18 -18
  32. package/lib/components/Circle.d.ts +95 -90
  33. package/lib/components/Code.d.ts +244 -211
  34. package/lib/components/CodeBlock.d.ts +1 -1
  35. package/lib/components/CubicBezier.d.ts +36 -36
  36. package/lib/components/Curve.d.ts +208 -198
  37. package/lib/components/Grid.d.ts +47 -42
  38. package/lib/components/HlsVideo.d.ts +62 -0
  39. package/lib/components/HlsVideo.d.ts.map +1 -0
  40. package/lib/components/HlsVideo.js +169 -0
  41. package/lib/components/Icon.d.ts +55 -50
  42. package/lib/components/Img.d.ts +86 -79
  43. package/lib/components/Knot.d.ts +97 -78
  44. package/lib/components/Latex.d.ts +12 -12
  45. package/lib/components/Layout.d.ts +455 -413
  46. package/lib/components/Line.d.ts +61 -49
  47. package/lib/components/Media.d.ts +37 -37
  48. package/lib/components/Node.d.ts +1 -1
  49. package/lib/components/Path.d.ts +1 -1
  50. package/lib/components/Polygon.d.ts +60 -55
  51. package/lib/components/QuadBezier.d.ts +29 -29
  52. package/lib/components/Ray.d.ts +28 -28
  53. package/lib/components/Rect.d.ts +115 -108
  54. package/lib/components/SVG.d.ts +1 -1
  55. package/lib/components/Shape.d.ts +1 -1
  56. package/lib/components/Spline.d.ts +46 -40
  57. package/lib/components/Txt.d.ts +55 -44
  58. package/lib/components/TxtLeaf.d.ts +20 -16
  59. package/lib/components/Video.d.ts +0 -1
  60. package/lib/components/Video.d.ts.map +1 -1
  61. package/lib/components/Video.js +2 -7
  62. package/lib/components/View2D.d.ts +22 -22
  63. package/lib/components/index.d.ts +1 -1
  64. package/lib/components/types.d.ts +22 -9
  65. package/lib/curves/ArcSegment.d.ts +36 -24
  66. package/lib/curves/CircleSegment.d.ts +26 -16
  67. package/lib/curves/CubicBezierSegment.d.ts +18 -13
  68. package/lib/curves/CurveDrawingInfo.d.ts +9 -9
  69. package/lib/curves/CurvePoint.d.ts +13 -13
  70. package/lib/curves/CurveProfile.d.ts +5 -5
  71. package/lib/curves/CurveProfile.js +1 -1
  72. package/lib/curves/KnotInfo.d.ts +8 -8
  73. package/lib/curves/LineSegment.d.ts +19 -14
  74. package/lib/curves/Polynomial.d.ts +110 -110
  75. package/lib/curves/Polynomial2D.d.ts +20 -20
  76. package/lib/curves/PolynomialSegment.d.ts +42 -37
  77. package/lib/curves/QuadBezierSegment.d.ts +12 -12
  78. package/lib/curves/Segment.d.ts +12 -7
  79. package/lib/curves/UniformPolynomialCurveSampler.d.ts +34 -34
  80. package/lib/curves/createCurveProfileLerp.d.ts +17 -6
  81. package/lib/curves/getBezierSplineProfile.d.ts +8 -4
  82. package/lib/curves/getCircleProfile.d.ts +10 -4
  83. package/lib/curves/getPathProfile.d.ts +2 -2
  84. package/lib/curves/getPointAtDistance.d.ts +7 -4
  85. package/lib/curves/getPolylineProfile.d.ts +8 -4
  86. package/lib/curves/getRectProfile.d.ts +9 -4
  87. package/lib/curves/index.d.ts +1 -1
  88. package/lib/curves/index.js +1 -1
  89. package/lib/decorators/canvasStyleSignal.d.ts +3 -3
  90. package/lib/decorators/colorSignal.d.ts +1 -1
  91. package/lib/decorators/compound.d.ts +4 -2
  92. package/lib/decorators/computed.d.ts +1 -1
  93. package/lib/decorators/defaultStyle.d.ts +5 -2
  94. package/lib/decorators/filtersSignal.d.ts +28 -8
  95. package/lib/decorators/index.d.ts +1 -1
  96. package/lib/decorators/index.js +1 -1
  97. package/lib/decorators/initializers.d.ts +5 -2
  98. package/lib/decorators/initializers.js +18 -19
  99. package/lib/decorators/nodeName.d.ts +1 -1
  100. package/lib/decorators/nodeName.js +4 -4
  101. package/lib/decorators/signal.d.ts +40 -20
  102. package/lib/decorators/spacingSignal.d.ts +1 -1
  103. package/lib/decorators/vector2Signal.d.ts +13 -7
  104. package/lib/index.d.ts +1 -1
  105. package/lib/index.js +1 -1
  106. package/lib/jsx-dev-runtime.d.ts +3 -3
  107. package/lib/jsx-dev-runtime.js +3 -3
  108. package/lib/jsx-runtime.d.ts +19 -9
  109. package/lib/jsx-runtime.js +18 -18
  110. package/lib/partials/Filter.d.ts +24 -16
  111. package/lib/partials/Gradient.d.ts +30 -24
  112. package/lib/partials/Pattern.d.ts +14 -9
  113. package/lib/partials/ShaderConfig.d.ts +81 -74
  114. package/lib/partials/index.d.ts +1 -1
  115. package/lib/partials/index.js +1 -1
  116. package/lib/partials/types.d.ts +19 -6
  117. package/lib/scenes/Scene2D.d.ts +42 -23
  118. package/lib/scenes/index.d.ts +1 -1
  119. package/lib/scenes/index.js +1 -1
  120. package/lib/scenes/makeScene2D.d.ts +7 -5
  121. package/lib/scenes/useScene2D.d.ts +2 -2
  122. package/lib/tsconfig.build.tsbuildinfo +1 -1
  123. package/lib/tsconfig.tsbuildinfo +1 -0
  124. package/lib/utils/diff.d.ts +25 -18
  125. package/lib/utils/diff.js +84 -87
  126. package/lib/utils/index.d.ts +1 -1
  127. package/lib/utils/index.js +1 -1
  128. package/lib/utils/is.d.ts +4 -2
  129. package/lib/utils/is.js +2 -2
  130. package/lib/utils/makeSignalExtensions.d.ts +11 -4
  131. package/lib/utils/video/mp4-parser-manager.d.ts +0 -1
  132. package/lib/utils/video/mp4-parser-manager.d.ts.map +1 -1
  133. package/lib/utils/video/mp4-parser-manager.js +4 -21
  134. package/lib/utils/video/mp4-parser.d.ts +63 -0
  135. package/lib/utils/video/mp4-parser.d.ts.map +1 -0
  136. package/lib/utils/video/mp4-parser.js +264 -0
  137. package/package.json +4 -4
  138. package/src/lib/components/Video.ts +1 -7
  139. package/src/lib/utils/video/mp4-parser-manager.ts +5 -24
  140. package/src/lib/utils/video/mp4-parser.ts +340 -0
  141. package/lib/utils/video/parser/index.d.ts +0 -2
  142. package/lib/utils/video/parser/index.d.ts.map +0 -1
  143. package/lib/utils/video/parser/index.js +0 -2
  144. package/lib/utils/video/parser/parser.d.ts +0 -21
  145. package/lib/utils/video/parser/parser.d.ts.map +0 -1
  146. package/lib/utils/video/parser/parser.js +0 -165
  147. package/lib/utils/video/parser/sampler.d.ts +0 -16
  148. package/lib/utils/video/parser/sampler.d.ts.map +0 -1
  149. package/lib/utils/video/parser/sampler.js +0 -56
  150. package/lib/utils/video/parser/segment.d.ts +0 -43
  151. package/lib/utils/video/parser/segment.d.ts.map +0 -1
  152. package/lib/utils/video/parser/segment.js +0 -153
  153. package/lib/utils/video/parser/sink.d.ts +0 -9
  154. package/lib/utils/video/parser/sink.d.ts.map +0 -1
  155. package/lib/utils/video/parser/sink.js +0 -22
  156. package/lib/utils/video/parser/utils.d.ts +0 -10
  157. package/lib/utils/video/parser/utils.d.ts.map +0 -1
  158. package/lib/utils/video/parser/utils.js +0 -22
  159. package/src/lib/utils/video/parser/index.ts +0 -1
  160. package/src/lib/utils/video/parser/parser.ts +0 -253
  161. package/src/lib/utils/video/parser/sampler.ts +0 -72
  162. package/src/lib/utils/video/parser/segment.ts +0 -202
  163. package/src/lib/utils/video/parser/sink.ts +0 -29
  164. package/src/lib/utils/video/parser/utils.ts +0 -31
@@ -0,0 +1,169 @@
1
+ var __decorate =
2
+ (this && this.__decorate) ||
3
+ function (decorators, target, key, desc) {
4
+ var c = arguments.length,
5
+ r =
6
+ c < 3
7
+ ? target
8
+ : desc === null
9
+ ? (desc = Object.getOwnPropertyDescriptor(target, key))
10
+ : desc,
11
+ d;
12
+ if (typeof Reflect === 'object' && typeof Reflect.decorate === 'function')
13
+ r = Reflect.decorate(decorators, target, key, desc);
14
+ else
15
+ for (var i = decorators.length - 1; i >= 0; i--)
16
+ if ((d = decorators[i]))
17
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
+ var HlsVideo_1;
21
+ import {BBox, DependencyContext, PlaybackState, viaProxy} from '@revideo/core';
22
+ import Hls from 'hls.js';
23
+ import {computed, initial, nodeName, signal} from '../decorators';
24
+ import {drawImage} from '../utils';
25
+ import {Media} from './Media';
26
+ let HlsVideo = (HlsVideo_1 = class HlsVideo extends Media {
27
+ constructor(props) {
28
+ super(props);
29
+ this.lastFrame = null;
30
+ }
31
+ desiredSize() {
32
+ const custom = super.desiredSize();
33
+ if (custom.x === null && custom.y === null) {
34
+ const image = this.video();
35
+ return {
36
+ x: image.videoWidth,
37
+ y: image.videoHeight,
38
+ };
39
+ }
40
+ return custom;
41
+ }
42
+ mediaElement() {
43
+ return this.video();
44
+ }
45
+ seekedMedia() {
46
+ return this.seekedVideo();
47
+ }
48
+ fastSeekedMedia() {
49
+ return this.fastSeekedVideo();
50
+ }
51
+ video() {
52
+ const src = viaProxy(this.fullSource());
53
+ const key = `${this.key}/${src}`;
54
+ let video = HlsVideo_1.pool[key];
55
+ if (!video) {
56
+ video = document.createElement('video');
57
+ video.crossOrigin = 'anonymous';
58
+ const hls = new Hls();
59
+ hls.loadSource(src);
60
+ hls.attachMedia(video);
61
+ HlsVideo_1.pool[key] = video;
62
+ }
63
+ if (video.readyState < 2) {
64
+ DependencyContext.collectPromise(
65
+ new Promise(resolve => {
66
+ const onCanPlay = () => {
67
+ resolve();
68
+ video.removeEventListener('canplay', onCanPlay);
69
+ };
70
+ const onError = () => {
71
+ const reason = this.getErrorReason(video.error?.code);
72
+ console.log(`ERROR: Error loading video: ${src}, ${reason}`);
73
+ };
74
+ video.addEventListener('canplay', onCanPlay);
75
+ video.addEventListener('error', onError);
76
+ }),
77
+ );
78
+ }
79
+ return video;
80
+ }
81
+ seekedVideo() {
82
+ const video = this.video();
83
+ const time = this.clampTime(this.time());
84
+ video.playbackRate = this.playbackRate();
85
+ if (!video.paused) {
86
+ video.pause();
87
+ }
88
+ if (this.lastTime === time) {
89
+ return video;
90
+ }
91
+ this.setCurrentTime(time);
92
+ return video;
93
+ }
94
+ fastSeekedVideo() {
95
+ const video = this.video();
96
+ const time = this.clampTime(this.time());
97
+ video.playbackRate = this.playbackRate();
98
+ if (this.lastTime === time) {
99
+ return video;
100
+ }
101
+ const playing =
102
+ this.playing() && time < video.duration && video.playbackRate > 0;
103
+ if (playing) {
104
+ if (video.paused) {
105
+ DependencyContext.collectPromise(video.play());
106
+ }
107
+ } else {
108
+ if (!video.paused) {
109
+ video.pause();
110
+ }
111
+ }
112
+ if (Math.abs(video.currentTime - time) > 0.3) {
113
+ this.setCurrentTime(time);
114
+ } else if (!playing) {
115
+ video.currentTime = time;
116
+ }
117
+ return video;
118
+ }
119
+ async seekFunction() {
120
+ const playbackState = this.view().playbackState();
121
+ if (
122
+ playbackState === PlaybackState.Playing ||
123
+ playbackState === PlaybackState.Presenting
124
+ ) {
125
+ return this.fastSeekedVideo();
126
+ }
127
+ if (playbackState === PlaybackState.Rendering) {
128
+ return this.seekedVideo();
129
+ }
130
+ return this.seekedVideo();
131
+ }
132
+ async draw(context) {
133
+ this.drawShape(context);
134
+ const alpha = this.alpha();
135
+ if (alpha > 0) {
136
+ const video = await this.seekFunction();
137
+ const box = BBox.fromSizeCentered(this.computedSize());
138
+ context.save();
139
+ context.clip(this.getPath());
140
+ if (alpha < 1) {
141
+ context.globalAlpha *= alpha;
142
+ }
143
+ context.imageSmoothingEnabled = this.smoothing();
144
+ drawImage(context, video, box);
145
+ context.restore();
146
+ }
147
+ if (this.clip()) {
148
+ context.clip(this.getPath());
149
+ }
150
+ await this.drawChildren(context);
151
+ }
152
+ applyFlex() {
153
+ super.applyFlex();
154
+ const video = this.video();
155
+ this.element.style.aspectRatio = (
156
+ this.ratio() ?? video.videoWidth / video.videoHeight
157
+ ).toString();
158
+ }
159
+ });
160
+ HlsVideo.pool = {};
161
+ __decorate([initial(1), signal()], HlsVideo.prototype, 'alpha', void 0);
162
+ __decorate([initial(true), signal()], HlsVideo.prototype, 'smoothing', void 0);
163
+ __decorate([initial(true), signal()], HlsVideo.prototype, 'png', void 0);
164
+ __decorate([computed()], HlsVideo.prototype, 'video', null);
165
+ __decorate([computed()], HlsVideo.prototype, 'seekedVideo', null);
166
+ __decorate([computed()], HlsVideo.prototype, 'fastSeekedVideo', null);
167
+ HlsVideo = HlsVideo_1 = __decorate([nodeName('HlsVideo')], HlsVideo);
168
+ export {HlsVideo};
169
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGxzVmlkZW8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvSGxzVmlkZW8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QUZ2QixPQUFPLENBQUMsSUFBSSxDQUFDO0lBQ2IsTUFBTSxFQUFFO3FDQUNnRDtBQWtDakQ7SUFEUCxRQUFRLEVBQUU7cUNBb0NWO0FBR1M7SUFEVCxRQUFRLEVBQUU7MkNBa0JWO0FBR1M7SUFEVCxRQUFRLEVBQUU7K0NBOEJWO0FBOUpVLFFBQVE7SUFEcEIsUUFBUSxDQUFDLFVBQVUsQ0FBQztHQUNSLFFBQVEsQ0FrTnBCIn0=
@@ -1,58 +1,63 @@
1
- import { ColorSignal, PossibleColor, SignalValue, SimpleSignal } from '@revideo/core';
2
- import { Img, ImgProps } from './Img';
1
+ import {
2
+ ColorSignal,
3
+ PossibleColor,
4
+ SignalValue,
5
+ SimpleSignal,
6
+ } from '@revideo/core';
7
+ import {Img, ImgProps} from './Img';
3
8
  export interface IconProps extends ImgProps {
4
- /**
5
- * {@inheritDoc Icon.icon}
6
- */
7
- icon: SignalValue<string>;
8
- /**
9
- * {@inheritDoc Icon.color}
10
- */
11
- color?: SignalValue<PossibleColor>;
9
+ /**
10
+ * {@inheritDoc Icon.icon}
11
+ */
12
+ icon: SignalValue<string>;
13
+ /**
14
+ * {@inheritDoc Icon.color}
15
+ */
16
+ color?: SignalValue<PossibleColor>;
12
17
  }
13
18
  /**
14
19
  * An Icon Component that provides easy access to over 150k icons.
15
20
  * See https://icones.js.org/collection/all for all available Icons.
16
21
  */
17
22
  export declare class Icon extends Img {
18
- /**
19
- * The identifier of the icon.
20
- *
21
- * @remarks
22
- * You can find identifiers on [Icônes](https://icones.js.org).
23
- * They can look like this:
24
- * * `mdi:language-typescript`
25
- * * `ph:anchor-simple-bold`
26
- * * `ph:activity-bold`
27
- */
28
- icon: SimpleSignal<string, this>;
29
- /**
30
- * The color of the icon
31
- *
32
- * @remarks
33
- * Provide the color in one of the following formats:
34
- * * named color like `red`, `darkgray`, …
35
- * * hexadecimal string with # like `#bada55`, `#141414`
36
- * Value can be either RGB or RGBA: `#bada55`, `#bada55aa` (latter is partially transparent)
37
- * The shorthand version (e.g. `#abc` for `#aabbcc` is also possible.)
38
- *
39
- * @defaultValue 'white'
40
- */
41
- color: ColorSignal<this>;
42
- constructor(props: IconProps);
43
- /**
44
- * Create the URL that will be used as the Image source
45
- * @returns Address to Iconify API for the requested Icon.
46
- */
47
- protected svgUrl(): string;
48
- /**
49
- * overrides `Image.src` getter
50
- */
51
- protected getSrc(): string;
52
- /**
53
- * overrides `Image.src` setter to warn the user that the value
54
- * is not used
55
- */
56
- protected setSrc(src: string | null): void;
23
+ /**
24
+ * The identifier of the icon.
25
+ *
26
+ * @remarks
27
+ * You can find identifiers on [Icônes](https://icones.js.org).
28
+ * They can look like this:
29
+ * * `mdi:language-typescript`
30
+ * * `ph:anchor-simple-bold`
31
+ * * `ph:activity-bold`
32
+ */
33
+ icon: SimpleSignal<string, this>;
34
+ /**
35
+ * The color of the icon
36
+ *
37
+ * @remarks
38
+ * Provide the color in one of the following formats:
39
+ * * named color like `red`, `darkgray`, …
40
+ * * hexadecimal string with # like `#bada55`, `#141414`
41
+ * Value can be either RGB or RGBA: `#bada55`, `#bada55aa` (latter is partially transparent)
42
+ * The shorthand version (e.g. `#abc` for `#aabbcc` is also possible.)
43
+ *
44
+ * @defaultValue 'white'
45
+ */
46
+ color: ColorSignal<this>;
47
+ constructor(props: IconProps);
48
+ /**
49
+ * Create the URL that will be used as the Image source
50
+ * @returns Address to Iconify API for the requested Icon.
51
+ */
52
+ protected svgUrl(): string;
53
+ /**
54
+ * overrides `Image.src` getter
55
+ */
56
+ protected getSrc(): string;
57
+ /**
58
+ * overrides `Image.src` setter to warn the user that the value
59
+ * is not used
60
+ */
61
+ protected setSrc(src: string | null): void;
57
62
  }
58
- //# sourceMappingURL=Icon.d.ts.map
63
+ //# sourceMappingURL=Icon.d.ts.map
@@ -1,19 +1,26 @@
1
- import { Color, PossibleVector2, SerializedVector2, SignalValue, SimpleSignal, Vector2 } from '@revideo/core';
2
- import { DesiredLength } from '../partials';
3
- import { Rect, RectProps } from './Rect';
1
+ import {
2
+ Color,
3
+ PossibleVector2,
4
+ SerializedVector2,
5
+ SignalValue,
6
+ SimpleSignal,
7
+ Vector2,
8
+ } from '@revideo/core';
9
+ import {DesiredLength} from '../partials';
10
+ import {Rect, RectProps} from './Rect';
4
11
  export interface ImgProps extends RectProps {
5
- /**
6
- * {@inheritDoc Img.src}
7
- */
8
- src?: SignalValue<string | null>;
9
- /**
10
- * {@inheritDoc Img.alpha}
11
- */
12
- alpha?: SignalValue<number>;
13
- /**
14
- * {@inheritDoc Img.smoothing}
15
- */
16
- smoothing?: SignalValue<boolean>;
12
+ /**
13
+ * {@inheritDoc Img.src}
14
+ */
15
+ src?: SignalValue<string | null>;
16
+ /**
17
+ * {@inheritDoc Img.alpha}
18
+ */
19
+ alpha?: SignalValue<number>;
20
+ /**
21
+ * {@inheritDoc Img.smoothing}
22
+ */
23
+ smoothing?: SignalValue<boolean>;
17
24
  }
18
25
  /**
19
26
  * A node for displaying images.
@@ -49,68 +56,68 @@ export interface ImgProps extends RectProps {
49
56
  * ```
50
57
  */
51
58
  export declare class Img extends Rect {
52
- private static pool;
53
- /**
54
- * The source of this image.
55
- *
56
- * @example
57
- * Using a local image:
58
- * ```tsx
59
- * import image from './example.png';
60
- * // ...
61
- * view.add(<Img src={image} />)
62
- * ```
63
- * Loading an image from the internet:
64
- * ```tsx
65
- * view.add(<Img src="https://example.com/image.png" />)
66
- * ```
67
- */
68
- readonly src: SimpleSignal<string, this>;
69
- /**
70
- * The alpha value of this image.
71
- *
72
- * @remarks
73
- * Unlike opacity, the alpha value affects only the image itself, leaving the
74
- * fill, stroke, and children intact.
75
- */
76
- readonly alpha: SimpleSignal<number, this>;
77
- /**
78
- * Whether the image should be smoothed.
79
- *
80
- * @remarks
81
- * When disabled, the image will be scaled using the nearest neighbor
82
- * interpolation with no smoothing. The resulting image will appear pixelated.
83
- *
84
- * @defaultValue true
85
- */
86
- readonly smoothing: SimpleSignal<boolean, this>;
87
- constructor(props: ImgProps);
88
- protected desiredSize(): SerializedVector2<DesiredLength>;
89
- protected image(): HTMLImageElement;
90
- protected imageCanvas(): CanvasRenderingContext2D;
91
- protected filledImageCanvas(): CanvasRenderingContext2D;
92
- protected draw(context: CanvasRenderingContext2D): Promise<void>;
93
- protected applyFlex(): void;
94
- /**
95
- * Get color of the image at the given position.
96
- *
97
- * @param position - The position in local space at which to sample the color.
98
- */
99
- getColorAtPoint(position: PossibleVector2): Color;
100
- /**
101
- * The natural size of this image.
102
- *
103
- * @remarks
104
- * The natural size is the size of the source image unaffected by the size
105
- * and scale properties.
106
- */
107
- naturalSize(): Vector2;
108
- /**
109
- * Get color of the image at the given pixel.
110
- *
111
- * @param position - The pixel's position.
112
- */
113
- getPixelColor(position: PossibleVector2): Color;
114
- protected collectAsyncResources(): void;
59
+ private static pool;
60
+ /**
61
+ * The source of this image.
62
+ *
63
+ * @example
64
+ * Using a local image:
65
+ * ```tsx
66
+ * import image from './example.png';
67
+ * // ...
68
+ * view.add(<Img src={image} />)
69
+ * ```
70
+ * Loading an image from the internet:
71
+ * ```tsx
72
+ * view.add(<Img src="https://example.com/image.png" />)
73
+ * ```
74
+ */
75
+ readonly src: SimpleSignal<string, this>;
76
+ /**
77
+ * The alpha value of this image.
78
+ *
79
+ * @remarks
80
+ * Unlike opacity, the alpha value affects only the image itself, leaving the
81
+ * fill, stroke, and children intact.
82
+ */
83
+ readonly alpha: SimpleSignal<number, this>;
84
+ /**
85
+ * Whether the image should be smoothed.
86
+ *
87
+ * @remarks
88
+ * When disabled, the image will be scaled using the nearest neighbor
89
+ * interpolation with no smoothing. The resulting image will appear pixelated.
90
+ *
91
+ * @defaultValue true
92
+ */
93
+ readonly smoothing: SimpleSignal<boolean, this>;
94
+ constructor(props: ImgProps);
95
+ protected desiredSize(): SerializedVector2<DesiredLength>;
96
+ protected image(): HTMLImageElement;
97
+ protected imageCanvas(): CanvasRenderingContext2D;
98
+ protected filledImageCanvas(): CanvasRenderingContext2D;
99
+ protected draw(context: CanvasRenderingContext2D): Promise<void>;
100
+ protected applyFlex(): void;
101
+ /**
102
+ * Get color of the image at the given position.
103
+ *
104
+ * @param position - The position in local space at which to sample the color.
105
+ */
106
+ getColorAtPoint(position: PossibleVector2): Color;
107
+ /**
108
+ * The natural size of this image.
109
+ *
110
+ * @remarks
111
+ * The natural size is the size of the source image unaffected by the size
112
+ * and scale properties.
113
+ */
114
+ naturalSize(): Vector2;
115
+ /**
116
+ * Get color of the image at the given pixel.
117
+ *
118
+ * @param position - The pixel's position.
119
+ */
120
+ getPixelColor(position: PossibleVector2): Color;
121
+ protected collectAsyncResources(): void;
115
122
  }
116
- //# sourceMappingURL=Img.d.ts.map
123
+ //# sourceMappingURL=Img.d.ts.map
@@ -1,89 +1,108 @@
1
- import { PossibleVector2, Signal, SignalValue, Vector2Signal } from '@revideo/core';
2
- import { KnotInfo } from '../curves';
3
- import { Node, NodeProps } from './Node';
1
+ import {
2
+ PossibleVector2,
3
+ Signal,
4
+ SignalValue,
5
+ Vector2Signal,
6
+ } from '@revideo/core';
7
+ import {KnotInfo} from '../curves';
8
+ import {Node, NodeProps} from './Node';
4
9
  export interface KnotProps extends NodeProps {
5
- /**
6
- * {@inheritDoc Knot.startHandle}
7
- */
8
- startHandle?: SignalValue<PossibleVector2>;
9
- /**
10
- * {@inheritDoc Knot.endHandle}
11
- */
12
- endHandle?: SignalValue<PossibleVector2>;
13
- /**
14
- * {@inheritDoc Knot.auto}
15
- */
16
- auto?: SignalValue<PossibleKnotAuto>;
17
- startHandleAuto?: SignalValue<number>;
18
- endHandleAuto?: SignalValue<number>;
10
+ /**
11
+ * {@inheritDoc Knot.startHandle}
12
+ */
13
+ startHandle?: SignalValue<PossibleVector2>;
14
+ /**
15
+ * {@inheritDoc Knot.endHandle}
16
+ */
17
+ endHandle?: SignalValue<PossibleVector2>;
18
+ /**
19
+ * {@inheritDoc Knot.auto}
20
+ */
21
+ auto?: SignalValue<PossibleKnotAuto>;
22
+ startHandleAuto?: SignalValue<number>;
23
+ endHandleAuto?: SignalValue<number>;
19
24
  }
20
25
  export type KnotAuto = {
21
- startHandle: number;
22
- endHandle: number;
26
+ startHandle: number;
27
+ endHandle: number;
23
28
  };
24
29
  export type PossibleKnotAuto = KnotAuto | number | [number, number];
25
- export type KnotAutoSignal<TOwner> = Signal<PossibleKnotAuto, KnotAuto, TOwner> & {
26
- endHandle: Signal<number, number, TOwner>;
27
- startHandle: Signal<number, number, TOwner>;
30
+ export type KnotAutoSignal<TOwner> = Signal<
31
+ PossibleKnotAuto,
32
+ KnotAuto,
33
+ TOwner
34
+ > & {
35
+ endHandle: Signal<number, number, TOwner>;
36
+ startHandle: Signal<number, number, TOwner>;
28
37
  };
29
38
  /**
30
39
  * A node representing a knot of a {@link Spline}.
31
40
  */
32
41
  export declare class Knot extends Node {
33
- /**
34
- * The position of the knot's start handle. The position is provided relative
35
- * to the knot's position.
36
- *
37
- * @remarks
38
- * By default, the position of the start handle will be the mirrored position
39
- * of the {@link endHandle}.
40
- *
41
- * If neither an end handle nor a start handle is provided, the positions of
42
- * the handles gets calculated automatically to create smooth curve through
43
- * the knot. The smoothness of the resulting curve can be controlled via the
44
- * {@link Spline.smoothness} property.
45
- *
46
- * It is also possible to blend between a user-defined position and the
47
- * auto-calculated position by using the {@link auto} property.
48
- *
49
- * @defaultValue Mirrored position of the endHandle.
50
- */
51
- readonly startHandle: Vector2Signal<this>;
52
- /**
53
- * The position of the knot's end handle. The position is provided relative
54
- * to the knot's position.
55
- *
56
- * @remarks
57
- * By default, the position of the end handle will be the mirrored position
58
- * of the {@link startHandle}.
59
- *
60
- * If neither an end handle nor a start handle is provided, the positions of
61
- * the handles gets calculated automatically to create smooth curve through
62
- * the knot. The smoothness of the resulting curve can be controlled via the
63
- * {@link Spline.smoothness} property.
64
- *
65
- * It is also possible to blend between a user-defined position and the
66
- * auto-calculated position by using the {@link auto} property.
67
- *
68
- * @defaultValue Mirrored position of the startHandle.
69
- */
70
- readonly endHandle: Vector2Signal<this>;
71
- /**
72
- * How much to blend between the user-provided handles and the auto-calculated
73
- * handles.
74
- *
75
- * @remarks
76
- * This property has no effect if no explicit handles are provided for the
77
- * knot.
78
- *
79
- * @defaultValue 0
80
- */
81
- readonly auto: KnotAutoSignal<this>;
82
- get startHandleAuto(): Signal<number, number, this, import("@revideo/core").SignalContext<number, number, this>>;
83
- get endHandleAuto(): Signal<number, number, this, import("@revideo/core").SignalContext<number, number, this>>;
84
- constructor(props: KnotProps);
85
- points(): KnotInfo;
86
- private getDefaultEndHandle;
87
- private getDefaultStartHandle;
42
+ /**
43
+ * The position of the knot's start handle. The position is provided relative
44
+ * to the knot's position.
45
+ *
46
+ * @remarks
47
+ * By default, the position of the start handle will be the mirrored position
48
+ * of the {@link endHandle}.
49
+ *
50
+ * If neither an end handle nor a start handle is provided, the positions of
51
+ * the handles gets calculated automatically to create smooth curve through
52
+ * the knot. The smoothness of the resulting curve can be controlled via the
53
+ * {@link Spline.smoothness} property.
54
+ *
55
+ * It is also possible to blend between a user-defined position and the
56
+ * auto-calculated position by using the {@link auto} property.
57
+ *
58
+ * @defaultValue Mirrored position of the endHandle.
59
+ */
60
+ readonly startHandle: Vector2Signal<this>;
61
+ /**
62
+ * The position of the knot's end handle. The position is provided relative
63
+ * to the knot's position.
64
+ *
65
+ * @remarks
66
+ * By default, the position of the end handle will be the mirrored position
67
+ * of the {@link startHandle}.
68
+ *
69
+ * If neither an end handle nor a start handle is provided, the positions of
70
+ * the handles gets calculated automatically to create smooth curve through
71
+ * the knot. The smoothness of the resulting curve can be controlled via the
72
+ * {@link Spline.smoothness} property.
73
+ *
74
+ * It is also possible to blend between a user-defined position and the
75
+ * auto-calculated position by using the {@link auto} property.
76
+ *
77
+ * @defaultValue Mirrored position of the startHandle.
78
+ */
79
+ readonly endHandle: Vector2Signal<this>;
80
+ /**
81
+ * How much to blend between the user-provided handles and the auto-calculated
82
+ * handles.
83
+ *
84
+ * @remarks
85
+ * This property has no effect if no explicit handles are provided for the
86
+ * knot.
87
+ *
88
+ * @defaultValue 0
89
+ */
90
+ readonly auto: KnotAutoSignal<this>;
91
+ get startHandleAuto(): Signal<
92
+ number,
93
+ number,
94
+ this,
95
+ import('@revideo/core').SignalContext<number, number, this>
96
+ >;
97
+ get endHandleAuto(): Signal<
98
+ number,
99
+ number,
100
+ this,
101
+ import('@revideo/core').SignalContext<number, number, this>
102
+ >;
103
+ constructor(props: KnotProps);
104
+ points(): KnotInfo;
105
+ private getDefaultEndHandle;
106
+ private getDefaultStartHandle;
88
107
  }
89
- //# sourceMappingURL=Knot.d.ts.map
108
+ //# sourceMappingURL=Knot.d.ts.map