Public
Edited
Jan 1, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
paths = {
const paths = []

const p1 = [
[0, 0],
[0, 1],
[1, 1]
]
const p2 = [
[0, 0],
[1, 0],
[1, 1]
]

const p3 = polygonBoolean(p2, p1, 'or')
console.log(p3)

return paths
}
Insert cell
Insert cell
polygonBoolean = (await import("https://cdn.skypack.dev/2d-polygon-boolean")).default
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more