p5 1.11.12 → 1.11.13

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/README.md CHANGED
@@ -110,7 +110,7 @@ Lead/Mentor Alumni
110
110
  | i18n (ko) | [@hana-cho](https://github.com/hana-cho) |
111
111
  | i18n (zh) | [@limzykenneth](https://github.com/limzykenneth), [@lirenjie95](https://github.com/lirenjie95) |
112
112
  | Math | [@GregStanton](https://github.com/GregStanton), [@holomorfo](https://github.com/holomorfo) |
113
- | p5.js-web-editor | [@iron-56](https://github.com/iron-56) |
113
+ | p5.js-web-editor | [@kitlord](https://github.com/kitlord) |
114
114
  | p5.js-website | [@Nwakaego-Ego](https://github.com/Nwakaego-Ego), [@clairep94](https://github.com/clairep94), [@doradocodes](https://github.com/doradocodes), [@ksen0](https://github.com/ksen0) |
115
115
  | p5.sound.js | [@ogbabydiesal](https://github.com/ogbabydiesal) |
116
116
  | Shapes | [@GregStanton](https://github.com/GregStanton) |
package/lib/p5.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! p5.js v1.11.12 March 30, 2026 */
1
+ /*! p5.js v1.11.13 April 08, 2026 */
2
2
  (function (f) {
3
3
  if (typeof exports === 'object' && typeof module !== 'undefined') {
4
4
  module.exports = f()
@@ -59397,7 +59397,7 @@
59397
59397
  * @property {String} VERSION
59398
59398
  * @final
59399
59399
  */
59400
- var VERSION = '1.11.12';
59400
+ var VERSION = '1.11.13';
59401
59401
  // GRAPHICS RENDERER
59402
59402
  /**
59403
59403
  * The default, two-dimensional renderer.
@@ -141002,16 +141002,24 @@
141002
141002
  _main.default.RendererGL.prototype._drawPoints = function (vertices, pointBuffers) {
141003
141003
  var gl = this.GL;
141004
141004
  var pointShader = this._getImmediatePointShader();
141005
- this._setPointUniforms(pointShader);
141006
- // Prepare position and optional per-vertex color buffers
141007
141005
  if (Array.isArray(pointBuffers)) {
141006
+ var geom = this.immediateMode.geometry;
141007
+ if (geom.vertices !== vertices) {
141008
+ geom.vertices = vertices;
141009
+ geom.dirtyFlags.vertices = true;
141010
+ if (geom.vertexStrokeColors.length > 0) {
141011
+ geom.vertexStrokeColors.length = 0;
141012
+ geom.dirtyFlags.vertexStrokeColors = true;
141013
+ }
141014
+ }
141015
+ this._setPointUniforms(pointShader);
141008
141016
  var _iteratorNormalCompletion4 = true;
141009
141017
  var _didIteratorError4 = false;
141010
141018
  var _iteratorError4 = undefined;
141011
141019
  try {
141012
141020
  for (var _iterator4 = pointBuffers[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
141013
141021
  var buff = _step4.value;
141014
- buff._prepareBuffer(this.immediateMode.geometry, pointShader);
141022
+ buff._prepareBuffer(geom, pointShader);
141015
141023
  }
141016
141024
  } catch (err) {
141017
141025
  _didIteratorError4 = true;
@@ -141028,7 +141036,7 @@
141028
141036
  }
141029
141037
  }
141030
141038
  } else {
141031
- // Backward compatibility if a raw GL buffer is passed
141039
+ this._setPointUniforms(pointShader);
141032
141040
  this._bindBuffer(pointBuffers, gl.ARRAY_BUFFER, this._vToNArray(vertices), Float32Array, gl.STATIC_DRAW);
141033
141041
  pointShader.enableAttrib(pointShader.attributes.aPosition, 3);
141034
141042
  }