-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Support for values like:
transform(x,y,z)
Generalised to:
prefix(arg1,arg2,arg3...)
Under the current code this should be relatively easy to implement as it could use the same blending code with unit storing the prefix and the number of arguments. Then only changes would need to be in attrToStr() and parseStyle. Change in attrToStr() would be along the lines of:
if(unit starts with number) {
noArgs = number;
prefix = unit.remove(number);
returnStr = prefix + "(";
for(arg in args) {
returnStr = returnStr + arg.toString();
}
returnStr.slice(0,1);
returnStr = returnStr + ")";
return(returnStr);
}