@linear_non/stellar-libs 1.0.12 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linear_non/stellar-libs",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Reusable JavaScript libraries for Non-Linear Studio projects.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -27,11 +27,13 @@ export default class SpritePlayer {
27
27
  alpha_path = null, // { mobile, desktop }
28
28
  fileAlpha = null,
29
29
  useAlpha = false,
30
+ useWorker = true,
30
31
  }) {
31
32
  const rect = bounds(container)
32
33
  this.progress = gsap.utils.clamp(0, 1, progress)
33
34
  this.persistent = persistent
34
35
  this.isAlpha = !!useAlpha
36
+ this.useWorker = useWorker
35
37
 
36
38
  this.dom = { container, reference: container, images: [], alphaImages: [] }
37
39
  this.canvas = {
@@ -90,7 +92,7 @@ export default class SpritePlayer {
90
92
  total,
91
93
  urls: Array.isArray(list) ? list : [],
92
94
  cache,
93
- useWorker: true,
95
+ useWorker: this.useWorker,
94
96
  })
95
97
  this._loaders.push(loader)
96
98
  return loader.load()