@reuters-graphics/graphics-components 3.0.12 → 3.0.13

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 (75) hide show
  1. package/dist/components/@types/global.d.ts +45 -0
  2. package/dist/components/Scroller/Scroller.mdx +2 -2
  3. package/dist/components/ScrollerBase/ScrollerBase.mdx +0 -5
  4. package/dist/components/ScrollerVideo/Debug.svelte +207 -0
  5. package/dist/components/ScrollerVideo/Debug.svelte.d.ts +5 -0
  6. package/dist/components/ScrollerVideo/ScrollerVideo.mdx +462 -0
  7. package/dist/components/ScrollerVideo/ScrollerVideo.stories.svelte +190 -0
  8. package/dist/components/ScrollerVideo/ScrollerVideo.stories.svelte.d.ts +19 -0
  9. package/dist/components/ScrollerVideo/ScrollerVideo.svelte +292 -0
  10. package/dist/components/ScrollerVideo/ScrollerVideo.svelte.d.ts +58 -0
  11. package/dist/components/ScrollerVideo/ScrollerVideoForeground.svelte +164 -0
  12. package/dist/components/ScrollerVideo/ScrollerVideoForeground.svelte.d.ts +17 -0
  13. package/dist/components/ScrollerVideo/demo/AdvancedUsecases.svelte +114 -0
  14. package/dist/components/ScrollerVideo/demo/AdvancedUsecases.svelte.d.ts +3 -0
  15. package/dist/components/ScrollerVideo/demo/Embedded.svelte +94 -0
  16. package/dist/components/ScrollerVideo/demo/Embedded.svelte.d.ts +3 -0
  17. package/dist/components/ScrollerVideo/demo/WithAi2svelteForegrounds.svelte +117 -0
  18. package/dist/components/ScrollerVideo/demo/WithAi2svelteForegrounds.svelte.d.ts +3 -0
  19. package/dist/components/ScrollerVideo/demo/WithScrollerBase.svelte +80 -0
  20. package/dist/components/ScrollerVideo/demo/WithScrollerBase.svelte.d.ts +3 -0
  21. package/dist/components/ScrollerVideo/demo/WithTextForegrounds.svelte +72 -0
  22. package/dist/components/ScrollerVideo/demo/WithTextForegrounds.svelte.d.ts +18 -0
  23. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/ai-chart.svelte +631 -0
  24. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/ai-chart.svelte.d.ts +3 -0
  25. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation1.svelte +428 -0
  26. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation1.svelte.d.ts +26 -0
  27. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation2.svelte +402 -0
  28. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation2.svelte.d.ts +26 -0
  29. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation3.svelte +398 -0
  30. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation3.svelte.d.ts +26 -0
  31. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation4.svelte +360 -0
  32. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation4.svelte.d.ts +26 -0
  33. package/dist/components/ScrollerVideo/demo/graphic/imgs/ai-chart-md.png +0 -0
  34. package/dist/components/ScrollerVideo/demo/graphic/imgs/ai-chart-sm.png +0 -0
  35. package/dist/components/ScrollerVideo/demo/graphic/imgs/ai-chart-xs.png +0 -0
  36. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation1-lg.png +0 -0
  37. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation1-md.png +0 -0
  38. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation1-sm.png +0 -0
  39. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation1-xl.png +0 -0
  40. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation1-xs.png +0 -0
  41. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation2-lg.png +0 -0
  42. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation2-md.png +0 -0
  43. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation2-sm.png +0 -0
  44. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation2-xl.png +0 -0
  45. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation2-xs.png +0 -0
  46. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation3-lg.png +0 -0
  47. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation3-md.png +0 -0
  48. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation3-sm.png +0 -0
  49. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation3-xl.png +0 -0
  50. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation3-xs.png +0 -0
  51. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation4-lg.png +0 -0
  52. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation4-md.png +0 -0
  53. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation4-sm.png +0 -0
  54. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation4-xl.png +0 -0
  55. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation4-xs.png +0 -0
  56. package/dist/components/ScrollerVideo/ts/ScrollerVideo.d.ts +248 -0
  57. package/dist/components/ScrollerVideo/ts/ScrollerVideo.js +762 -0
  58. package/dist/components/ScrollerVideo/ts/mp4box.d.ts +137 -0
  59. package/dist/components/ScrollerVideo/ts/state.svelte.d.ts +51 -0
  60. package/dist/components/ScrollerVideo/ts/state.svelte.js +25 -0
  61. package/dist/components/ScrollerVideo/ts/utils.d.ts +70 -0
  62. package/dist/components/ScrollerVideo/ts/utils.js +92 -0
  63. package/dist/components/ScrollerVideo/ts/videoDecoder.d.ts +11 -0
  64. package/dist/components/ScrollerVideo/ts/videoDecoder.js +193 -0
  65. package/dist/components/ScrollerVideo/videos/HPO.mp4 +0 -0
  66. package/dist/components/ScrollerVideo/videos/drone.mp4 +0 -0
  67. package/dist/components/ScrollerVideo/videos/goldengate.mp4 +0 -0
  68. package/dist/components/ScrollerVideo/videos/tennis.mp4 +0 -0
  69. package/dist/components/ScrollerVideo/videos/waves_lg.mp4 +0 -0
  70. package/dist/components/ScrollerVideo/videos/waves_md.mp4 +0 -0
  71. package/dist/components/ScrollerVideo/videos/waves_sm.mp4 +0 -0
  72. package/dist/components/SiteHeadline/SiteHeadline.mdx +4 -1
  73. package/dist/index.d.ts +3 -1
  74. package/dist/index.js +2 -0
  75. package/package.json +3 -1
@@ -0,0 +1,398 @@
1
+ <script>
2
+ // @ts-ignore img
3
+ import chartXs from '../imgs/annotation3-xs.png';
4
+ // @ts-ignore img
5
+ import chartSm from '../imgs/annotation3-sm.png';
6
+ // @ts-ignore img
7
+ import chartMd from '../imgs/annotation3-md.png';
8
+ // @ts{width}mg
9
+ import chartLg from '../imgs/annotation3-md.png';
10
+ // @ts-ignore img
11
+ import chartXl from '../imgs/annotation3-xl.png';
12
+
13
+ let width = null;
14
+ </script>
15
+
16
+ <div id="g-annotation3-box" bind:clientWidth={width}>
17
+ <!-- Artboard: xs -->
18
+ {#if width && width >= 0 && width < 510}
19
+ <div id="g-annotation3-xs" class="g-artboard" style="">
20
+ <div style="padding: 0 0 187.8788% 0;"></div>
21
+ <div
22
+ id="g-annotation3-xs-img"
23
+ class="g-aiImg"
24
+ style={`background-image: url(${chartXs});`}
25
+ ></div>
26
+ <div
27
+ id="g-ai0-1"
28
+ class="g-text g-aiAbs"
29
+ style="top:9.8387%;left:19.697%;width:65.4545%;"
30
+ >
31
+ <p>
32
+ Fierro is envelopedin the barrel for over two seconds, which is a long
33
+ time in such an unstable environment
34
+ </p>
35
+ </div>
36
+ <div
37
+ id="g-ai0-2"
38
+ class="g-text g-aiAbs"
39
+ style="top:72.2581%;left:20.303%;width:61.2121%;"
40
+ >
41
+ <p>
42
+ In comptitions, more points are scored for being deep inside a barrel
43
+ which raises the chance the wave will close out on top of them.
44
+ </p>
45
+ </div>
46
+ </div>
47
+ {/if}
48
+ <!-- Artboard: sm -->
49
+ {#if width && width >= 510 && width < 660}
50
+ <div id="g-annotation3-sm" class="g-artboard" style="">
51
+ <div style="padding: 0 0 56.2745% 0;"></div>
52
+ <div
53
+ id="g-annotation3-sm-img"
54
+ class="g-aiImg"
55
+ style={`background-image: url(${chartSm});`}
56
+ ></div>
57
+ <div
58
+ id="g-ai1-1"
59
+ class="g-text g-aiAbs"
60
+ style="top:1.7422%;left:46.7588%;width:51.1765%;"
61
+ >
62
+ <p>
63
+ Fierro is envelopedin the barrel for over two seconds, which is a long
64
+ time in such an unstable environment
65
+ </p>
66
+ </div>
67
+ <div
68
+ id="g-ai1-2"
69
+ class="g-text g-aiAbs"
70
+ style="top:33.4495%;left:66.1788%;width:29.8039%;"
71
+ >
72
+ <p>
73
+ Surfers often say time distorts inside the barrel, slowing down and
74
+ that the crashing wave noise falls silent, asthey expereince a sense
75
+ of awe
76
+ </p>
77
+ </div>
78
+ <div
79
+ id="g-ai1-3"
80
+ class="g-text g-aiAbs"
81
+ style="top:72.8223%;left:13.3333%;width:48.2353%;"
82
+ >
83
+ <p>
84
+ In comptitions, more points are scored for being deep inside a barrel
85
+ which raises the chance the wave will close out on top of them.
86
+ </p>
87
+ </div>
88
+ </div>
89
+ {/if}
90
+ <!-- Artboard: md -->
91
+ {#if width && width >= 660 && width < 930}
92
+ <div id="g-annotation3-md" class="g-artboard" style="">
93
+ <div style="padding: 0 0 56.3636% 0;"></div>
94
+ <div
95
+ id="g-annotation3-md-img"
96
+ class="g-aiImg"
97
+ style={`background-image: url(${chartMd});`}
98
+ ></div>
99
+ <div
100
+ id="g-ai2-1"
101
+ class="g-text g-aiAbs"
102
+ style="top:7.7957%;left:58.355%;width:28.0303%;"
103
+ >
104
+ <p>
105
+ Fierro is envelopedin the barrel for over two seconds, which is a long
106
+ time in such an unstable environment
107
+ </p>
108
+ </div>
109
+ <div
110
+ id="g-ai2-2"
111
+ class="g-text g-aiAbs"
112
+ style="top:45.9677%;left:69.837%;width:26.5152%;"
113
+ >
114
+ <p>
115
+ Surfers often say time distorts inside the barrel, slowing down and
116
+ that the crashing wave noise falls silent, as they expereince a sense
117
+ of awe
118
+ </p>
119
+ </div>
120
+ <div
121
+ id="g-ai2-3"
122
+ class="g-text g-aiAbs"
123
+ style="top:72.3118%;left:31.3158%;width:28.6364%;"
124
+ >
125
+ <p>
126
+ In comptitions, more points are scored for being deep inside a barrel
127
+ which raises the chance the wave will close out on top of them.
128
+ </p>
129
+ </div>
130
+ </div>
131
+ {/if}
132
+ <!-- Artboard: lg -->
133
+ {#if width && width >= 930 && width < 1200}
134
+ <div id="g-annotation3-lg" class="g-artboard" style="">
135
+ <div style="padding: 0 0 56.0215% 0;"></div>
136
+ <div
137
+ id="g-annotation3-lg-img"
138
+ class="g-aiImg"
139
+ style={`background-image: url(${chartLg});`}
140
+ ></div>
141
+ <div
142
+ id="g-ai3-1"
143
+ class="g-text g-aiAbs"
144
+ style="top:16.8906%;left:70.7526%;width:20.7527%;"
145
+ >
146
+ <p>
147
+ Fierro is envelopedin the barrel for over two seconds, which is a long
148
+ time in such an unstable environment
149
+ </p>
150
+ </div>
151
+ <div
152
+ id="g-ai3-2"
153
+ class="g-text g-aiAbs"
154
+ style="top:51.4395%;left:68.4341%;width:26.9892%;"
155
+ >
156
+ <p>
157
+ Surfers often say time distorts inside the barrel, slowing down and
158
+ that the crashing wave noise falls silent, as they expereince a sense
159
+ of awe
160
+ </p>
161
+ </div>
162
+ <div
163
+ id="g-ai3-3"
164
+ class="g-text g-aiAbs"
165
+ style="top:68.5221%;left:38.9959%;width:25.2688%;"
166
+ >
167
+ <p>
168
+ In comptitions, more points are scored for being deep inside a barrel
169
+ which raises the chance the wave will close out on top of them.
170
+ </p>
171
+ </div>
172
+ </div>
173
+ {/if}
174
+ <!-- Artboard: xl -->
175
+ {#if width && width >= 1200}
176
+ <div id="g-annotation3-xl" class="g-artboard" style="">
177
+ <div style="padding: 0 0 51.6667% 0;"></div>
178
+ <div
179
+ id="g-annotation3-xl-img"
180
+ class="g-aiImg"
181
+ style={`background-image: url(${chartXl});`}
182
+ ></div>
183
+ <div
184
+ id="g-ai4-1"
185
+ class="g-text g-aiAbs"
186
+ style="top:18.0645%;left:70.725%;width:20.6667%;"
187
+ >
188
+ <p>
189
+ Fierro is envelopedin the barrel for over two seconds, which is a long
190
+ time in such an unstable environment
191
+ </p>
192
+ </div>
193
+ <div
194
+ id="g-ai4-2"
195
+ class="g-text g-aiAbs"
196
+ style="top:NaN%;left:5.7255%;width:0.1667%;"
197
+ >
198
+ <p>&nbsp;</p>
199
+ <p class="g-pstyle0">Fierro is enveloped</p>
200
+ <p>&nbsp;</p>
201
+ <p class="g-pstyle0">in the barrel for over</p>
202
+ <p>&nbsp;</p>
203
+ <p class="g-pstyle0">2 seconds, which is a</p>
204
+ <p>&nbsp;</p>
205
+ <p class="g-pstyle0">long time in such an</p>
206
+ <p>&nbsp;</p>
207
+ <p class="g-pstyle0">unstable environment</p>
208
+ <p>&nbsp;</p>
209
+ <p class="g-pstyle0">Surfers often say time distorts inside</p>
210
+ <p>&nbsp;</p>
211
+ <p class="g-pstyle0">the barrel, slowing down and that the</p>
212
+ <p>&nbsp;</p>
213
+ <p class="g-pstyle0">crashing wave noise falls silent, as</p>
214
+ <p>&nbsp;</p>
215
+ <p class="g-pstyle0">they expereince a sense of awe</p>
216
+ <p>&nbsp;</p>
217
+ <p class="g-pstyle0">In comptitions, more points are</p>
218
+ <p>&nbsp;</p>
219
+ <p class="g-pstyle0">scored for being deep inside a</p>
220
+ <p>&nbsp;</p>
221
+ <p class="g-pstyle0">barrel which raises the chance</p>
222
+ <p>&nbsp;</p>
223
+ <p class="g-pstyle0">the wave will close out on top of them.</p>
224
+ </div>
225
+ <div
226
+ id="g-ai4-3"
227
+ class="g-text g-aiAbs"
228
+ style="top:55.4839%;left:68.4081%;width:26.0833%;"
229
+ >
230
+ <p>
231
+ Surfers often say time distorts inside the barrel, slowing down and
232
+ that the crashing wave noise falls silent, as they expereince a sense
233
+ of awe
234
+ </p>
235
+ </div>
236
+ <div
237
+ id="g-ai4-4"
238
+ class="g-text g-aiAbs"
239
+ style="top:73.871%;left:38.9915%;width:24.6667%;"
240
+ >
241
+ <p>
242
+ In comptitions, more points are scored for being deep inside a barrel
243
+ which raises the chance the wave will close out on top of them.
244
+ </p>
245
+ </div>
246
+ </div>
247
+ {/if}
248
+ </div>
249
+
250
+ <!-- End ai2html - 2024-07-19 13:15 -->
251
+
252
+ <!-- Generated by ai2html v0.100.0 - 2024-07-19 13:15 -->
253
+ <!-- ai file: annotation3.ai -->
254
+ <style>#g-annotation3-box,
255
+ #g-annotation3-box .g-artboard {
256
+ margin: 0 auto;
257
+ }
258
+
259
+ #g-annotation3-box p {
260
+ margin: 0;
261
+ }
262
+
263
+ #g-annotation3-box .g-aiAbs {
264
+ position: absolute;
265
+ }
266
+
267
+ #g-annotation3-box .g-aiImg {
268
+ position: absolute;
269
+ top: 0;
270
+ display: block;
271
+ width: 100% !important;
272
+ height: 100%;
273
+ background-size: contain;
274
+ background-repeat: no-repeat;
275
+ }
276
+
277
+ #g-annotation3-xs {
278
+ position: relative;
279
+ overflow: hidden;
280
+ }
281
+
282
+ #g-annotation3-xs p {
283
+ font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
284
+ font-weight: 400;
285
+ line-height: 16px;
286
+ opacity: 1;
287
+ letter-spacing: 0em;
288
+ font-size: 16px;
289
+ text-align: left;
290
+ color: rgb(252, 252, 252);
291
+ text-transform: none;
292
+ padding-bottom: 0;
293
+ padding-top: 0;
294
+ mix-blend-mode: normal;
295
+ font-style: normal;
296
+ height: auto;
297
+ position: static;
298
+ }
299
+
300
+ #g-annotation3-sm {
301
+ position: relative;
302
+ overflow: hidden;
303
+ }
304
+
305
+ #g-annotation3-sm p {
306
+ font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
307
+ font-weight: 400;
308
+ line-height: 16px;
309
+ opacity: 1;
310
+ letter-spacing: 0em;
311
+ font-size: 16px;
312
+ text-align: left;
313
+ color: rgb(252, 252, 252);
314
+ text-transform: none;
315
+ padding-bottom: 0;
316
+ padding-top: 0;
317
+ mix-blend-mode: normal;
318
+ font-style: normal;
319
+ height: auto;
320
+ position: static;
321
+ }
322
+
323
+ #g-annotation3-md {
324
+ position: relative;
325
+ overflow: hidden;
326
+ }
327
+
328
+ #g-annotation3-md p {
329
+ font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
330
+ font-weight: 400;
331
+ line-height: 16px;
332
+ opacity: 1;
333
+ letter-spacing: 0em;
334
+ font-size: 16px;
335
+ text-align: left;
336
+ color: rgb(252, 252, 252);
337
+ text-transform: none;
338
+ padding-bottom: 0;
339
+ padding-top: 0;
340
+ mix-blend-mode: normal;
341
+ font-style: normal;
342
+ height: auto;
343
+ position: static;
344
+ }
345
+
346
+ #g-annotation3-lg {
347
+ position: relative;
348
+ overflow: hidden;
349
+ }
350
+
351
+ #g-annotation3-lg p {
352
+ font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
353
+ font-weight: 400;
354
+ line-height: 16px;
355
+ opacity: 1;
356
+ letter-spacing: 0em;
357
+ font-size: 16px;
358
+ text-align: left;
359
+ color: rgb(252, 252, 252);
360
+ text-transform: none;
361
+ padding-bottom: 0;
362
+ padding-top: 0;
363
+ mix-blend-mode: normal;
364
+ font-style: normal;
365
+ height: auto;
366
+ position: static;
367
+ }
368
+
369
+ #g-annotation3-xl {
370
+ position: relative;
371
+ overflow: hidden;
372
+ }
373
+
374
+ #g-annotation3-xl p {
375
+ font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
376
+ font-weight: 400;
377
+ line-height: 24px;
378
+ opacity: 1;
379
+ letter-spacing: 0em;
380
+ font-size: 20px;
381
+ text-align: left;
382
+ color: rgb(252, 252, 252);
383
+ text-transform: none;
384
+ padding-bottom: 0;
385
+ padding-top: 0;
386
+ mix-blend-mode: normal;
387
+ font-style: normal;
388
+ height: auto;
389
+ position: static;
390
+ }
391
+
392
+ #g-annotation3-xl .g-pstyle0 {
393
+ line-height: 11px;
394
+ font-size: 9px;
395
+ color: rgb(0, 0, 0);
396
+ }
397
+
398
+ /* Custom CSS */</style>
@@ -0,0 +1,26 @@
1
+ export default Annotation3;
2
+ type Annotation3 = SvelteComponent<{
3
+ [x: string]: never;
4
+ }, {
5
+ [evt: string]: CustomEvent<any>;
6
+ }, {}> & {
7
+ $$bindings?: string | undefined;
8
+ };
9
+ declare const Annotation3: $$__sveltets_2_IsomorphicComponent<{
10
+ [x: string]: never;
11
+ }, {
12
+ [evt: string]: CustomEvent<any>;
13
+ }, {}, {}, string>;
14
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
15
+ new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
16
+ $$bindings?: Bindings;
17
+ } & Exports;
18
+ (internal: unknown, props: {
19
+ $$events?: Events;
20
+ $$slots?: Slots;
21
+ }): Exports & {
22
+ $set?: any;
23
+ $on?: any;
24
+ };
25
+ z_$$bindings?: Bindings;
26
+ }