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