import { Block, isBlockPositionEqual } from "blockwise";const a: Block = { x: 0, y: 0, w: 1, h: 1 };const b: Block = { x: 0, y: 0, w: 1, h: 1 };const c: Block = { x: 0, y: 1, w: 1, h: 1 };console.log(isBlockPositionEqual(a, b)); // trueconsole.log(isBlockPositionEqual(a, c)); // false Copy
import { Block, isBlockPositionEqual } from "blockwise";const a: Block = { x: 0, y: 0, w: 1, h: 1 };const b: Block = { x: 0, y: 0, w: 1, h: 1 };const c: Block = { x: 0, y: 1, w: 1, h: 1 };console.log(isBlockPositionEqual(a, b)); // trueconsole.log(isBlockPositionEqual(a, c)); // false
Example