@orca-fe/x-map
Version:
23 lines (22 loc) • 670 B
TypeScript
import * as THREE from 'three';
import ThreeObject, { ThreeObjectOptions } from './ThreeObject';
declare type Building = {
path: [number, number][];
height: number;
};
export interface PolygonParams extends ThreeObjectOptions {
buildings: Building[];
fill: {
color: THREE.Color | string | number;
opacity: number;
};
}
export default class BuildingObject extends ThreeObject {
object3D: THREE.Group;
protected buildings: PolygonParams['buildings'];
protected fill: PolygonParams['fill'];
constructor(options: PolygonParams);
createObject: () => void;
updatePosition(): void;
}
export {};