feat: add random variable (#725)
Some checks are pending
Build-Apk / build (push) Waiting to run

This commit is contained in:
lisonge 2024-09-02 21:24:05 +08:00
parent af97a9da32
commit fa787a17e1

View File

@ -444,6 +444,7 @@ data class RawSubscription(
exp.setVariable("bottom", rect.bottom.toDouble())
exp.setVariable("width", rect.width().toDouble())
exp.setVariable("height", rect.height().toDouble())
exp.setVariable("random", Math.random())
}
private fun getExpression(value: String?): Expression? {