diff --git a/packages/geom/src/with-attribs.ts b/packages/geom/src/with-attribs.ts index c858f0557a..14b71e69af 100644 --- a/packages/geom/src/with-attribs.ts +++ b/packages/geom/src/with-attribs.ts @@ -12,6 +12,6 @@ import type { Attribs, IShape } from "@thi.ng/geom-api"; */ export const withAttribs = ( shape: T, - attribs: Attribs, + attribs: Attribs = {}, replace = true ) => shape.withAttribs(replace ? attribs : { ...shape.attribs, ...attribs });