1
0
Fork 0

add(core): Add Path.rotate(...) function analogue to Point.rotate(...)

This commit is contained in:
Jonathan Haas 2024-04-05 14:13:22 +02:00
parent 7e694de977
commit 849563d1ec
No known key found for this signature in database
GPG key ID: 0E7873037C5924E8
4 changed files with 119 additions and 1 deletions

View file

@ -701,7 +701,7 @@ export function __addNonEnumProp(obj, name, value) {
* @param {string} param - The name of the parameter to use in the logs
* @param {string} method - The name of the method to use in the logs
* @param {object} log - A logging object
* @return {bool} result - True if it is a valid coordinate, false when not
* @return {number} the given value parameter, converted to a number if possible
*/
export function __asNumber(value, param, method, log) {
if (typeof value === 'number') return value