1242 p.opacity +
1243 ")";
1244 } else {
1245 var color_value =1246 "hsla(" +
1247 p.color.hsl.h +
1248 "," +
1113 pos_y = e.clientY;
1114 } else {
1115 var pos_x = e.offsetX || e.clientX,
1116 pos_y = e.offsetY || e.clientY;1117 }
1118
1119 pJS.interactivity.mouse.pos_x = pos_x;
1112 var pos_x = e.clientX,
1113 pos_y = e.clientY;
1114 } else {
1115 var pos_x = e.offsetX || e.clientX,1116 pos_y = e.offsetY || e.clientY;
1117 }
1118
994 }
995
996 if (pJS.tmp.repulse_clicking) {
997 var repulseRadius = Math.pow( 998 pJS.interactivity.modes.repulse.distance / 6,
999 3,
1000 );
897 if (!pJS.tmp.bubble_duration_end) {
898 if (dist_mouse <= pJS.interactivity.modes.bubble.distance) {
899 if (p_obj_bubble != undefined) var obj = p_obj_bubble;
900 else var obj = p_obj; 901 if (obj != bubble_param) {
902 var value =
903 p_obj -
The var
keyword is soft-deprecated, and should not be used to redeclare existing variables.
It is possible to re-declare the same variable using the var
keyword:
var a = 1;
var a = 10; // valid!
However, this can have unintentional side effects on the code:
var x = 10;
{
var x = 20;
}
console.log(x); // 20
var db = dbDriver.loadTables()
{
var db = db.get("usersId:1234") // bad practice!
}
// always use 'let' or 'const'
const db = dbDriver.loadTables();
{
const users = db.get("userId:1234") // avoid shadowing
}