Skip to content

Commit

Permalink
export plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Nov 11, 2024
1 parent 311ddc9 commit 3a6b5ba
Show file tree
Hide file tree
Showing 91 changed files with 3,827 additions and 60 deletions.
45 changes: 45 additions & 0 deletions dist/rexaiospinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,32 @@
return pathData;
};

//import CatmullRomInterpolation from '../../utils/math/interpolation/CatmullRomInterpolation.js';

const CatmullRomInterpolation = Phaser.Math.Interpolation.CatmullRom;

var CatmullRomTo = function (points, iterations, pathData) {
var pathDataCnt = pathData.length;
var p0x = pathData[pathDataCnt - 2];
var p0y = pathData[pathDataCnt - 1];

var xList = [p0x];
var yList = [p0y];
for (var i = 0, cnt = points.length; i < cnt; i += 2) {
xList.push(points[i]);
yList.push(points[i + 1]);
}

for (var i = 1, last = iterations - 1; i <= last; i++) {
var t = i / last;
pathData.push(
CatmullRomInterpolation(xList, t),
CatmullRomInterpolation(yList, t)
);
}
return pathData;
};

var DuplicateLast = function (pathData) {
var len = pathData.length;
if (len < 2) {
Expand Down Expand Up @@ -1836,6 +1862,18 @@
return this;
},

catmullRomTo(...points) {
CatmullRomTo(
points,
this.iterations,
this.pathData
);

this.lastPointX = points[points.length-2];
this.lastPointY = points[points.length-1];
return this;
},

close() {
// Line to first point
var startX = this.pathData[0],
Expand Down Expand Up @@ -2273,6 +2311,13 @@
return this;
}

catmullRomTo(...points) {
this.builder.catmullRomTo(...points);

this.dirty = true;
return this;
}

close() {
this.builder.close();

Expand Down
2 changes: 1 addition & 1 deletion dist/rexaiospinner.min.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions dist/rexarrowspinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,32 @@
return pathData;
};

//import CatmullRomInterpolation from '../../utils/math/interpolation/CatmullRomInterpolation.js';

const CatmullRomInterpolation = Phaser.Math.Interpolation.CatmullRom;

var CatmullRomTo = function (points, iterations, pathData) {
var pathDataCnt = pathData.length;
var p0x = pathData[pathDataCnt - 2];
var p0y = pathData[pathDataCnt - 1];

var xList = [p0x];
var yList = [p0y];
for (var i = 0, cnt = points.length; i < cnt; i += 2) {
xList.push(points[i]);
yList.push(points[i + 1]);
}

for (var i = 1, last = iterations - 1; i <= last; i++) {
var t = i / last;
pathData.push(
CatmullRomInterpolation(xList, t),
CatmullRomInterpolation(yList, t)
);
}
return pathData;
};

var DuplicateLast = function (pathData) {
var len = pathData.length;
if (len < 2) {
Expand Down Expand Up @@ -1836,6 +1862,18 @@
return this;
},

catmullRomTo(...points) {
CatmullRomTo(
points,
this.iterations,
this.pathData
);

this.lastPointX = points[points.length-2];
this.lastPointY = points[points.length-1];
return this;
},

close() {
// Line to first point
var startX = this.pathData[0],
Expand Down Expand Up @@ -2273,6 +2311,13 @@
return this;
}

catmullRomTo(...points) {
this.builder.catmullRomTo(...points);

this.dirty = true;
return this;
}

close() {
this.builder.close();

Expand Down
2 changes: 1 addition & 1 deletion dist/rexarrowspinner.min.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions dist/rexboxspinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -1725,6 +1725,32 @@
return pathData;
};

//import CatmullRomInterpolation from '../../utils/math/interpolation/CatmullRomInterpolation.js';

const CatmullRomInterpolation = Phaser.Math.Interpolation.CatmullRom;

var CatmullRomTo = function (points, iterations, pathData) {
var pathDataCnt = pathData.length;
var p0x = pathData[pathDataCnt - 2];
var p0y = pathData[pathDataCnt - 1];

var xList = [p0x];
var yList = [p0y];
for (var i = 0, cnt = points.length; i < cnt; i += 2) {
xList.push(points[i]);
yList.push(points[i + 1]);
}

for (var i = 1, last = iterations - 1; i <= last; i++) {
var t = i / last;
pathData.push(
CatmullRomInterpolation(xList, t),
CatmullRomInterpolation(yList, t)
);
}
return pathData;
};

var DuplicateLast = function (pathData) {
var len = pathData.length;
if (len < 2) {
Expand Down Expand Up @@ -1836,6 +1862,18 @@
return this;
},

catmullRomTo(...points) {
CatmullRomTo(
points,
this.iterations,
this.pathData
);

this.lastPointX = points[points.length-2];
this.lastPointY = points[points.length-1];
return this;
},

close() {
// Line to first point
var startX = this.pathData[0],
Expand Down Expand Up @@ -2273,6 +2311,13 @@
return this;
}

catmullRomTo(...points) {
this.builder.catmullRomTo(...points);

this.dirty = true;
return this;
}

close() {
this.builder.close();

Expand Down
2 changes: 1 addition & 1 deletion dist/rexboxspinner.min.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions dist/rexcheckbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,32 @@
return pathData;
};

//import CatmullRomInterpolation from '../../utils/math/interpolation/CatmullRomInterpolation.js';

const CatmullRomInterpolation = Phaser.Math.Interpolation.CatmullRom;

var CatmullRomTo = function (points, iterations, pathData) {
var pathDataCnt = pathData.length;
var p0x = pathData[pathDataCnt - 2];
var p0y = pathData[pathDataCnt - 1];

var xList = [p0x];
var yList = [p0y];
for (var i = 0, cnt = points.length; i < cnt; i += 2) {
xList.push(points[i]);
yList.push(points[i + 1]);
}

for (var i = 1, last = iterations - 1; i <= last; i++) {
var t = i / last;
pathData.push(
CatmullRomInterpolation(xList, t),
CatmullRomInterpolation(yList, t)
);
}
return pathData;
};

var DuplicateLast = function (pathData) {
var len = pathData.length;
if (len < 2) {
Expand Down Expand Up @@ -965,6 +991,18 @@
return this;
},

catmullRomTo(...points) {
CatmullRomTo(
points,
this.iterations,
this.pathData
);

this.lastPointX = points[points.length-2];
this.lastPointY = points[points.length-1];
return this;
},

close() {
// Line to first point
var startX = this.pathData[0],
Expand Down Expand Up @@ -1402,6 +1440,13 @@
return this;
}

catmullRomTo(...points) {
this.builder.catmullRomTo(...points);

this.dirty = true;
return this;
}

close() {
this.builder.close();

Expand Down
2 changes: 1 addition & 1 deletion dist/rexcheckbox.min.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions dist/rexcheckboxplugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,32 @@
return pathData;
};

//import CatmullRomInterpolation from '../../utils/math/interpolation/CatmullRomInterpolation.js';

const CatmullRomInterpolation = Phaser.Math.Interpolation.CatmullRom;

var CatmullRomTo = function (points, iterations, pathData) {
var pathDataCnt = pathData.length;
var p0x = pathData[pathDataCnt - 2];
var p0y = pathData[pathDataCnt - 1];

var xList = [p0x];
var yList = [p0y];
for (var i = 0, cnt = points.length; i < cnt; i += 2) {
xList.push(points[i]);
yList.push(points[i + 1]);
}

for (var i = 1, last = iterations - 1; i <= last; i++) {
var t = i / last;
pathData.push(
CatmullRomInterpolation(xList, t),
CatmullRomInterpolation(yList, t)
);
}
return pathData;
};

var DuplicateLast = function (pathData) {
var len = pathData.length;
if (len < 2) {
Expand Down Expand Up @@ -965,6 +991,18 @@
return this;
},

catmullRomTo(...points) {
CatmullRomTo(
points,
this.iterations,
this.pathData
);

this.lastPointX = points[points.length-2];
this.lastPointY = points[points.length-1];
return this;
},

close() {
// Line to first point
var startX = this.pathData[0],
Expand Down Expand Up @@ -1402,6 +1440,13 @@
return this;
}

catmullRomTo(...points) {
this.builder.catmullRomTo(...points);

this.dirty = true;
return this;
}

close() {
this.builder.close();

Expand Down
2 changes: 1 addition & 1 deletion dist/rexcheckboxplugin.min.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions dist/rexcircularprogress.js
Original file line number Diff line number Diff line change
Expand Up @@ -1900,6 +1900,32 @@
return pathData;
};

//import CatmullRomInterpolation from '../../utils/math/interpolation/CatmullRomInterpolation.js';

const CatmullRomInterpolation = Phaser.Math.Interpolation.CatmullRom;

var CatmullRomTo = function (points, iterations, pathData) {
var pathDataCnt = pathData.length;
var p0x = pathData[pathDataCnt - 2];
var p0y = pathData[pathDataCnt - 1];

var xList = [p0x];
var yList = [p0y];
for (var i = 0, cnt = points.length; i < cnt; i += 2) {
xList.push(points[i]);
yList.push(points[i + 1]);
}

for (var i = 1, last = iterations - 1; i <= last; i++) {
var t = i / last;
pathData.push(
CatmullRomInterpolation(xList, t),
CatmullRomInterpolation(yList, t)
);
}
return pathData;
};

var DuplicateLast = function (pathData) {
var len = pathData.length;
if (len < 2) {
Expand Down Expand Up @@ -2011,6 +2037,18 @@
return this;
},

catmullRomTo(...points) {
CatmullRomTo(
points,
this.iterations,
this.pathData
);

this.lastPointX = points[points.length-2];
this.lastPointY = points[points.length-1];
return this;
},

close() {
// Line to first point
var startX = this.pathData[0],
Expand Down Expand Up @@ -2448,6 +2486,13 @@
return this;
}

catmullRomTo(...points) {
this.builder.catmullRomTo(...points);

this.dirty = true;
return this;
}

close() {
this.builder.close();

Expand Down
2 changes: 1 addition & 1 deletion dist/rexcircularprogress.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 3a6b5ba

Please sign in to comment.