Skip to content

Support for complex numerical types #2

@raidiun

Description

@raidiun

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);
    }

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions