Skip to content

BoundingRect

bhsd edited this page Jun 3, 2024 · 1 revision

This is an internal document. For visitors, you can now go back to the home page.

// BoundingRect
var {BoundingRect} = require('../lib/rect');
var token = Parser.parse('{{a\n|b=1\n}}').querySelector('parameter'),
	rect = new BoundingRect(token, 5);
assert.equal(token, 'b=1\n');
assert.strictEqual(rect.top, 1);
assert.strictEqual(rect.left, 1);
Clone this wiki locally