@twick/live-player 0.15.12 → 0.15.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.
@@ -6032,6 +6032,7 @@ var stylesNew = `
6032
6032
  }
6033
6033
  .canvas {
6034
6034
  width: 100%;
6035
+ height: 100%;
6035
6036
  display: block;
6036
6037
  opacity: 1;
6037
6038
  transition: opacity 0.1s;
@@ -6153,11 +6154,21 @@ var TwickPlayer = class extends HTMLElement {
6153
6154
  const attr = this.getAttribute("width");
6154
6155
  return attr ? parseFloat(attr) : ((_a = this.defaultSettings) == null ? void 0 : _a.size.width) ?? 0;
6155
6156
  }
6157
+ set width(value) {
6158
+ if (Number.isFinite(value)) {
6159
+ this.setAttribute("width", String(value));
6160
+ }
6161
+ }
6156
6162
  get height() {
6157
6163
  var _a;
6158
6164
  const attr = this.getAttribute("height");
6159
6165
  return attr ? parseFloat(attr) : ((_a = this.defaultSettings) == null ? void 0 : _a.size.height) ?? 0;
6160
6166
  }
6167
+ set height(value) {
6168
+ if (Number.isFinite(value)) {
6169
+ this.setAttribute("height", String(value));
6170
+ }
6171
+ }
6161
6172
  get variables() {
6162
6173
  var _a;
6163
6174
  try {
@@ -6265,10 +6276,11 @@ var TwickPlayer = class extends HTMLElement {
6265
6276
  if (!this.defaultSettings) {
6266
6277
  return;
6267
6278
  }
6279
+ const resolutionScale = Number.isFinite(this.quality) && this.quality > 0 ? this.quality : this.defaultSettings.resolutionScale ?? 1;
6268
6280
  const settings = {
6269
6281
  ...this.defaultSettings,
6270
6282
  size: new Vector2(this.width, this.height),
6271
- resolutionScale: this.quality,
6283
+ resolutionScale,
6272
6284
  fps: this.fps
6273
6285
  };
6274
6286
  this.stage.configure(settings);
@@ -6278,4 +6290,4 @@ var TwickPlayer = class extends HTMLElement {
6278
6290
  if (!customElements.get(ID)) {
6279
6291
  customElements.define(ID, TwickPlayer);
6280
6292
  }
6281
- //# sourceMappingURL=internal-ELSJV37U-4FJFiKY2.mjs.map
6293
+ //# sourceMappingURL=internal-KYB5ZQ5E-Be1ZlZZg.mjs.map