|
|
|
@ -13,6 +13,12 @@ fun interface TransformFunction {
|
|
|
|
|
fun matrixTransform(a: Number, b: Number, c: Number, d: Number, tx: Number, ty: Number) |
|
|
|
|
= TransformFunction { "matrix($a, $b, $c, $d, $tx, $ty)" } |
|
|
|
|
|
|
|
|
|
fun matrix3dTransform( |
|
|
|
|
a1: Number, b1: Number, c1: Number, d1: Number, |
|
|
|
|
a2: Number, b2: Number, c2: Number, d2: Number, |
|
|
|
|
a3: Number, b3: Number, c3: Number, d3: Number, |
|
|
|
|
a4: Number, b4: Number, c4: Number, d4: Number |
|
|
|
|
) = TransformFunction { "matrix3d($a1, $b1, $c1, $d1, $a2, $b2, $c2, $d2, $a3, $b3, $c3, $d3, $a4, $b4, $c4, $d4)" } |
|
|
|
|
|
|
|
|
|
fun StyleBuilder.transform(transformFunction: TransformFunction) { |
|
|
|
|
property("transform", transformFunction.apply()) |
|
|
|
|