import { Meta, StoryObj } from "@storybook/react"; import { Cartesian3, Color, Transforms } from "cesium"; import BillboardCollection from "../BillboardCollection"; import { events } from "../core/storybook"; import Viewer from "../Viewer"; import Billboard from "./Billboard"; type Story = StoryObj; export default { title: "Billboard", component: BillboardCollection, } as Meta; export const Basic: Story = { args: { image: "example.png", scale: 0.1, }, render: args => ( {( [ [Color.ORANGE, new Cartesian3(0.0, 0.0, 0.0)], [Color.YELLOW, new Cartesian3(1000000.0, 0.0, 0.0)], [Color.GREEN, new Cartesian3(0.0, 1000000.0, 0.0)], [Color.CYAN, new Cartesian3(0.0, 0.0, 1000000.0)], ] as const ).map((p, i) => ( ))} ), }; export const Events: Story = { args: { image: "example.png", scale: 0.1, }, render: args => ( ), };