Merge pull request #1119 from marcoarnulfo/fix/ges-jsx-keyframes

# Conflicts:
#	crates/script/src/tests.rs
This commit is contained in:
Brandon Thomas
2026-10-13 04:29:06 -04:00
3 changed files with 91 additions and 1 deletions
+8
View File
@@ -1318,6 +1318,14 @@ Object.defineProperty(ShapeLayer.prototype, "source", { get: function () { retur
function CameraLayer(comp, id) { return this.__init(comp, id, "CameraLayer"); }
CameraLayer.prototype = Object.create(Layer.prototype);
CameraLayer.prototype.constructor = CameraLayer;
// Camera scripts (Google Earth Studio exports among them) key `cameraLayer.position`,
// `.xRotation` and `.zoom` directly, as on AVLayer: return the live Property objects.
["pointOfInterest", "position", "orientation", "xRotation", "yRotation", "zRotation"].forEach(function (name) {
Object.defineProperty(CameraLayer.prototype, name, { get: function () { return this.transform[name]; } });
});
["zoom", "depthOfField", "focusDistance", "aperture", "blurLevel"].forEach(function (name) {
Object.defineProperty(CameraLayer.prototype, name, { get: function () { return this.cameraOptions[name]; } });
});
function LightLayer(comp, id) { return this.__init(comp, id, "LightLayer"); }
LightLayer.prototype = Object.create(Layer.prototype);