/* Copyright (c) 2020, 2023, The Unified Company. This code is part of Unify. This program is free software; you can redistribute it and/or modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE, as published by the Free Software Foundation. See the GNU AFFERO GENERAL PUBLIC LICENSE, for more details. https://unifyjs.org */ import property from "./animation.property.js"; export default class keyFrame{ percent; properties = new Array(); setProperty( name, value ) { var newProperty = new property(); newProperty.name = name; if(typeof value == "number") { value += "px"; } newProperty.value = value; this.properties.push( newProperty ); } composeCss() { var properties = this.properties; var propertyLines = ""; for (var i = 0; i < properties.length; i++) { propertyLines += properties[i].composeCss(); } return propertyLines; } }