How to use the @projectstorm/geometry.Polygon.boundingBoxFromPoints function in @projectstorm/geometry

To help you get started, we’ve selected a few @projectstorm/geometry examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github projectstorm / react-diagrams / packages / react-diagrams-core / src / entities / link / LinkModel.ts View on Github external
getBoundingBox(): Rectangle {
		return Polygon.boundingBoxFromPoints(
			_.map(this.points, (point: PointModel) => {
				return point.getPosition();
			})
		);
	}