true if a and b has same size & position
(a: GridStackPosition, b: GridStackPosition)
| 487 | |
| 488 | /** true if a and b has same size & position */ |
| 489 | static samePos(a: GridStackPosition, b: GridStackPosition): boolean { |
| 490 | return a && b && a.x === b.x && a.y === b.y && (a.w || 1) === (b.w || 1) && (a.h || 1) === (b.h || 1); |
| 491 | } |
| 492 | |
| 493 | /** given a node, makes sure it's min/max are valid */ |
| 494 | static sanitizeMinMax(node: GridStackNode) { |
no outgoing calls
no test coverage detected