This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
maxrects-lua [2021/02/13 10:00] muragami [:insert(width,height,data)] |
maxrects-lua [2021/02/13 10:21] (current) muragami [:insertCollection(collect,sort)] |
||
|---|---|---|---|
| Line 138: | Line 138: | ||
| Inserts a rectangle into the collection, using the algorithm to assign a location. If the rectangle can't fit, returns false. Copies .data into the stored node in the collection. | Inserts a rectangle into the collection, using the algorithm to assign a location. If the rectangle can't fit, returns false. Copies .data into the stored node in the collection. | ||
| + | ==== : | ||
| + | |||
| + | * **collect**: | ||
| + | * **// | ||
| + | |||
| + | * **return**: Boolean, Number. True if all were inserted, False if only some fit. The number is the amount added. | ||
| + | |||
| + | Inserts rectangles into the collection, from an array table. If you define sort to one of: ' | ||
| ==== : | ==== : | ||