lume
Version:
38 lines • 1.19 kB
TypeScript
import { type ElementAttributes } from '@lume/element';
import { Mesh } from './Mesh.js';
import type { MeshAttributes } from './Mesh.js';
import type { ElementWithBehaviors, TorusGeometryBehavior, TorusGeometryBehaviorAttributes } from '../behaviors/index.js';
export type TorusAttributes = MeshAttributes | TorusGeometryBehaviorAttributes;
/**
* @class Torus -
*
* Element: `<lume-torus>`
*
* Extends from `Mesh` to apply default behaviors of
* [`torus-geometry`](../behaviors/mesh-behaviors/geometries/TorusGeometryBehavior)
* and
* [`phong-material`](../behaviors/mesh-behaviors/materials/PhongMaterialBehavior).
*
* @extends Mesh
*/
export declare class Torus extends Mesh {
initialBehaviors: {
geometry: string;
material: string;
};
}
export interface Torus extends ElementWithBehaviors<TorusGeometryBehavior, TorusGeometryBehaviorAttributes> {
}
declare module 'solid-js' {
namespace JSX {
interface IntrinsicElements {
'lume-torus': ElementAttributes<Torus, TorusAttributes>;
}
}
}
declare global {
interface HTMLElementTagNameMap {
'lume-torus': Torus;
}
}
//# sourceMappingURL=Torus.d.ts.map