Skip to content

Commit

Permalink
feat(geom-api): update Attribs, add known opt. attrib hints
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Jun 1, 2024
1 parent b682d34 commit ab0fdba
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions packages/geom-api/src/shape.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
import type { ICopy, IObjectOf, IToHiccup } from "@thi.ng/api";
import type { Vec } from "@thi.ng/vectors";
import type { ICopy, IToHiccup } from "@thi.ng/api";
import type { ReadonlyVec, Vec } from "@thi.ng/vectors";
import type { SamplingOpts } from "./sample";

export type Attribs = IObjectOf<any>;
export interface Attribs {
__samples?: SamplingOpts | number;
rotate?: number;
rotateX?: number;
rotateY?: number;
rotateZ?: number;
scale?: number | ReadonlyVec;
translate?: ReadonlyVec;
transform?: ReadonlyVec;
fill?: any;
stroke?: any;
weight?: number;
[id: string]: any;
}

export interface IAttributed<T> {
attribs?: Attribs;
Expand Down

0 comments on commit ab0fdba

Please sign in to comment.