mirror of
https://github.com/exogen/t2-model-skinner.git
synced 2026-07-14 07:55:45 +00:00
parent
97b02c33f6
commit
169aed6274
146 changed files with 6957 additions and 6111 deletions
5
types/fabric.d.ts
vendored
Normal file
5
types/fabric.d.ts
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/// <reference types="fabric" />
|
||||
declare module "fabric" {
|
||||
// Re-export the DT namespace as the module's export.
|
||||
export { fabric };
|
||||
}
|
||||
19
types/model-viewer.d.ts
vendored
Normal file
19
types/model-viewer.d.ts
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import "react";
|
||||
import type { ModelViewerElement } from "@google/model-viewer";
|
||||
|
||||
type ModelViewerProps = React.DetailedHTMLProps<
|
||||
React.HTMLAttributes<ModelViewerElement>,
|
||||
ModelViewerElement
|
||||
> &
|
||||
// avoid the style clash (React owns `style`)
|
||||
Omit<Partial<ModelViewerElement>, "style" | "className">;
|
||||
|
||||
declare module "react" {
|
||||
namespace JSX {
|
||||
interface IntrinsicElements {
|
||||
"model-viewer": ModelViewerProps;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
28
types/pngjs-browser.d.ts
vendored
Normal file
28
types/pngjs-browser.d.ts
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
declare module "pngjs/browser" {
|
||||
import type { PNG as NodePNG } from "pngjs";
|
||||
|
||||
export class PNG extends NodePNG {
|
||||
data: Uint8Array;
|
||||
width: number;
|
||||
height: number;
|
||||
|
||||
constructor(options?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
inputHasAlpha?: boolean;
|
||||
});
|
||||
|
||||
on(eventName: "data", callback: (chunk: Uint8Array) => void);
|
||||
on(eventName: "end", callback: () => void);
|
||||
on(eventName: "error", callback: (err: Error | string) => void);
|
||||
|
||||
pack: () => PNG;
|
||||
|
||||
parse(
|
||||
arrayBuffer: ArrayBuffer,
|
||||
callback: (error: Error, data: PNG) => void
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue