@munusshih/p5.export 0.1.0-beta.3 → 0.1.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/p5.export.js +4 -3
- package/dist/p5.export.js.map +1 -1
- package/dist/p5.export.min.js +1 -1
- package/dist/p5.export.min.js.map +1 -1
- package/package.json +2 -2
package/dist/p5.export.js
CHANGED
|
@@ -789,6 +789,7 @@ function bn(t) {
|
|
|
789
789
|
}
|
|
790
790
|
return new Proxy(a, {
|
|
791
791
|
get(p, h) {
|
|
792
|
+
if (h === "__p5ExportRealGrad") return p;
|
|
792
793
|
if (h === "addColorStop" && typeof p[h] == "function")
|
|
793
794
|
return function(f, m) {
|
|
794
795
|
return v.stops.push({ offset: f, color: m }), p[h].call(p, f, m);
|
|
@@ -810,10 +811,10 @@ function bn(t) {
|
|
|
810
811
|
set(a, l, u) {
|
|
811
812
|
if ((l === "fillStyle" || l === "strokeStyle") && u && typeof u == "object") {
|
|
812
813
|
const g = u.__p5ExportGradId;
|
|
813
|
-
e.push([1, l, g ? { __p5ExportGradId: g } : u]);
|
|
814
|
+
e.push([1, l, g ? { __p5ExportGradId: g } : u]), a[l] = u.__p5ExportRealGrad || u;
|
|
814
815
|
} else
|
|
815
|
-
e.push([1, l, u]);
|
|
816
|
-
return
|
|
816
|
+
e.push([1, l, u]), a[l] = u;
|
|
817
|
+
return !0;
|
|
817
818
|
}
|
|
818
819
|
}), r;
|
|
819
820
|
}
|