@playcanvas/web-components 0.2.3 → 0.2.4
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/dist/pwc.cjs +6 -3
- package/dist/pwc.cjs.map +1 -1
- package/dist/pwc.js +6 -3
- package/dist/pwc.js.map +1 -1
- package/dist/pwc.min.js +1 -1
- package/dist/pwc.min.js.map +1 -1
- package/dist/pwc.mjs +6 -3
- package/dist/pwc.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/sound-slot.ts +5 -3
- package/src/sky.ts +1 -0
package/dist/pwc.js
CHANGED
|
@@ -3933,7 +3933,6 @@
|
|
|
3933
3933
|
}
|
|
3934
3934
|
this.soundSlot = this.soundElement.component.addSlot(this._name, options);
|
|
3935
3935
|
this.asset = this._asset;
|
|
3936
|
-
this.soundSlot.play();
|
|
3937
3936
|
this._onReady();
|
|
3938
3937
|
}
|
|
3939
3938
|
disconnectedCallback() {
|
|
@@ -4105,13 +4104,16 @@
|
|
|
4105
4104
|
return this._volume;
|
|
4106
4105
|
}
|
|
4107
4106
|
static get observedAttributes() {
|
|
4108
|
-
return ['asset', '
|
|
4107
|
+
return ['asset', 'auto-play', 'duration', 'loop', 'name', 'overlap', 'pitch', 'start-time', 'volume'];
|
|
4109
4108
|
}
|
|
4110
4109
|
attributeChangedCallback(name, _oldValue, newValue) {
|
|
4111
4110
|
switch (name) {
|
|
4112
4111
|
case 'asset':
|
|
4113
4112
|
this.asset = newValue;
|
|
4114
4113
|
break;
|
|
4114
|
+
case 'auto-play':
|
|
4115
|
+
this.autoPlay = this.hasAttribute('auto-play');
|
|
4116
|
+
break;
|
|
4115
4117
|
case 'duration':
|
|
4116
4118
|
this.duration = parseFloat(newValue);
|
|
4117
4119
|
break;
|
|
@@ -4127,7 +4129,7 @@
|
|
|
4127
4129
|
case 'pitch':
|
|
4128
4130
|
this.pitch = parseFloat(newValue);
|
|
4129
4131
|
break;
|
|
4130
|
-
case '
|
|
4132
|
+
case 'start-time':
|
|
4131
4133
|
this.startTime = parseFloat(newValue);
|
|
4132
4134
|
break;
|
|
4133
4135
|
case 'volume':
|
|
@@ -4525,6 +4527,7 @@
|
|
|
4525
4527
|
this._scene.sky.node.setLocalScale(this._scale);
|
|
4526
4528
|
this._scene.sky.center = this._center;
|
|
4527
4529
|
this._scene.skyboxIntensity = this._intensity;
|
|
4530
|
+
this._scene.skyboxMip = this._level;
|
|
4528
4531
|
}
|
|
4529
4532
|
async _loadSkybox() {
|
|
4530
4533
|
var _a;
|