mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-27 23:00:20 +08:00
Update SednaLib.js
This commit is contained in:
parent
daa405a347
commit
f0c29f26dd
@ -32,14 +32,6 @@ HTMLElement.prototype.qsa = function(STR){
|
|||||||
return this.querySelectorAll(STR);
|
return this.querySelectorAll(STR);
|
||||||
}
|
}
|
||||||
|
|
||||||
Array.prototype.inArray = function(ARGUMENT){
|
|
||||||
if(this.indexOf(ARGUMENT) != -1){
|
|
||||||
return true;
|
|
||||||
}else{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* --------- Полезные функции --------- */
|
/* --------- Полезные функции --------- */
|
||||||
Math.clamp = function(number, min, max) {//Ограничение диапазона
|
Math.clamp = function(number, min, max) {//Ограничение диапазона
|
||||||
return Math.max(min, Math.min(number, max));
|
return Math.max(min, Math.min(number, max));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user