Skip to content

Commit

Permalink
3.23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton-ashley committed Oct 15, 2024
1 parent a64807e commit 4f97784
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
11 changes: 8 additions & 3 deletions p5play.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* p5play
* @version 3.22
* @version 3.23
* @author quinton-ashley
* @license AGPL-3.0
*/
Expand Down Expand Up @@ -4725,8 +4725,8 @@ p5.prototype.registerMethod('init', function p5playInit() {
if (frames && Array.isArray(frames)) {
frameCount = frames.length;
} else frameCount ??= frames || 1;
w ??= width || owner.anis.w || owner.width;
h ??= height || owner.anis.h || owner.height;
w ??= width || owner.anis.w;
h ??= height || owner.anis.h;
x ??= col || 0;
y ??= line || row || 0;
if (pos) {
Expand All @@ -4741,6 +4741,11 @@ p5.prototype.registerMethod('init', function p5playInit() {
h = frameSize[1];
}

if (owner instanceof $.Group) {
owner.w ??= owner.width;
owner.h ??= owner.height;
}

let tileSize = owner.tileSize;

if (!w || !h) {
Expand Down
4 changes: 2 additions & 2 deletions p5play.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@
"version": "git add -A",
"postversion": "git push"
},
"version": "3.22.21"
"version": "3.23.0"
}
2 changes: 1 addition & 1 deletion planck.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4f97784

Please sign in to comment.