@usman404/crowjs 1.0.2 → 1.0.3

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.
@@ -97,8 +97,11 @@ export class GridFrame extends Frame{
97
97
  {
98
98
  //check if grid is configured or not
99
99
  if(this.grid===null){
100
- console.log("element can't be added: gird not configured,");
101
- console.log("call .gridConfig(rows, cols) to configure grid before adding any elements!");
100
+ this.gridConfig(this.rows, this.cols);
101
+ console.log(`grid configured automatically [${this.rows}x${this.cols}]`);
102
+
103
+ // console.log("element can't be added: gird not configured,");
104
+ // console.log("call .gridConfig(rows, cols) first to configure grid before adding any elements!");
102
105
  return;
103
106
  }
104
107
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usman404/crowjs",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "lightweight and extensible GUI library built on top of p5.js",
5
5
  "keywords": [
6
6
  "CROWJS"