import { __argAttribs } from "./args.js" ; import type { PCLikeConstructor } from "@thi.ng/geom-api" ; export const __pclike = ( ctor , args ) => { const attr = __argAttribs ( args ) ; return new ctor ( args . length === 1 ? args [ 0 ] : args , attr ) ; } ;