Port of src/ast/transform/scale.ts: from = from × scale.
src/ast/transform/scale.ts
from = from × scale