Skip to content

Commit

Permalink
Bump aframe-master dist/ builds. (c87e4db...4f711a4)
Browse files Browse the repository at this point in the history
  • Loading branch information
SupermediumBot committed Nov 21, 2024
1 parent 4f711a4 commit be79043
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
17 changes: 12 additions & 5 deletions dist/aframe-master.js
Original file line number Diff line number Diff line change
Expand Up @@ -6426,12 +6426,14 @@ module.exports.Component = registerComponent('animation', {
var key;
var from;
var to;
var split = splitDot(data.property);
var property = split[0] === 'object3D' ? split[1] : split[0];

// Parse coordinates.
from = data.from !== '' ? utils.coordinates.parse(data.from) // If data.from defined, use that.
: getComponentProperty(el, data.property); // If data.from not defined, get on the fly.
to = utils.coordinates.parse(data.to);
if (data.property === PROP_ROTATION) {
if (property === PROP_ROTATION) {
toRadians(from);
toRadians(to);
}
Expand All @@ -6445,7 +6447,7 @@ module.exports.Component = registerComponent('animation', {
}

// If animating object3D transformation, run more optimized updater.
if (data.property === PROP_POSITION || data.property === PROP_ROTATION || data.property === PROP_SCALE) {
if (property === PROP_POSITION || property === PROP_ROTATION || property === PROP_SCALE) {
config.update = function () {
var lastValue = {};
return function (anim) {
Expand All @@ -6458,7 +6460,7 @@ module.exports.Component = registerComponent('animation', {
lastValue.x = value.x;
lastValue.y = value.y;
lastValue.z = value.z;
el.object3D[data.property].set(value.x, value.y, value.z);
el.object3D[property].set(value.x, value.y, value.z);
};
}();
return;
Expand Down Expand Up @@ -6487,7 +6489,6 @@ module.exports.Component = registerComponent('animation', {
*/
updateConfig: function () {
var propType;

// Route config type.
propType = getPropertyType(this.el, this.data.property);
if (isRawProperty(this.data) && this.data.type === TYPE_COLOR) {
Expand Down Expand Up @@ -6591,6 +6592,12 @@ function getPropertyType(el, property) {
var split;
var propertyName;
split = property.split('.');
// Object3D.
if (split[0] === 'object3D' && !split[2]) {
if (split[1] === 'position' || split[1] === 'rotation' || split[1] === 'scale') {
return 'vec3';
}
}
componentName = split[0];
propertyName = split[1];
component = el.components[componentName] || components[componentName];
Expand Down Expand Up @@ -24540,7 +24547,7 @@ __webpack_require__(/*! ./core/a-mixin */ "./src/core/a-mixin.js");
// Extras.
__webpack_require__(/*! ./extras/components/ */ "./src/extras/components/index.js");
__webpack_require__(/*! ./extras/primitives/ */ "./src/extras/primitives/index.js");
console.log('A-Frame Version: 1.6.0 (Date 2024-11-20, Commit #c3754af3)');
console.log('A-Frame Version: 1.6.0 (Date 2024-11-21, Commit #4f711a4e)');
console.log('THREE Version (https://github.com/supermedium/three.js):', THREE.REVISION);

// Wait for ready state, unless user asynchronously initializes A-Frame.
Expand Down
2 changes: 1 addition & 1 deletion dist/aframe-master.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/aframe-master.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/aframe-master.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ require('./core/a-mixin');
require('./extras/components/');
require('./extras/primitives/');

console.log('A-Frame Version: 1.6.0 (Date 2024-11-20, Commit #c3754af3)');
console.log('A-Frame Version: 1.6.0 (Date 2024-11-21, Commit #4f711a4e)');
console.log('THREE Version (https://github.com/supermedium/three.js):',
THREE.REVISION);

Expand Down

0 comments on commit be79043

Please sign in to comment.