Files
Unify/framework/client/animation/animation.property.js

38 lines
738 B
JavaScript
Raw Permalink Normal View History

2025-12-25 11:16:59 +01:00
/*
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
*/
export default class property{
name;
value;
composeCss() {
var functionNames = new Array( "rotate", "translate", "scaleX", "scaleY", "scale", "skewX", "skewY", "skew", "matrix" );
if( functionNames.includes( this.name ) ) {
return "transform: " + this.name + "( " + this.value + " ); ";
} else {
return "\n " + this.name + " : " + this.value + ";\n";
}
}
}