import { action } from "storybook/actions"; import { Meta, StoryObj } from "@storybook/react"; import { Transforms, Cartesian3, Resource, EdgeDisplayMode } from "cesium"; import CameraFlyTo from "../CameraFlyTo"; import { events } from "../core/storybook"; import Viewer from "../Viewer"; import Model from "./Model"; const origin = Cartesian3.fromDegrees(-95.0, 40.0, 200000.0); const cameraDest = Cartesian3.fromDegrees(-95.0, 40.0, 210000); const modelMatrix = Transforms.eastNorthUpToFixedFrame(origin); type Story = StoryObj; export default { title: "Model", component: Model, } as Meta; export const Basic: Story = { render: args => ( ), }; export const FromPromiseResource: Story = { render: args => ( ), }; /** * Demonstrates the new `edgeDisplayMode` prop (Cesium 1.142+). * Visible effect requires source assets containing the * `EXT_mesh_primitive_edge_visibility` glTF extension. `Cesium_Air.glb` does * not, so this story documents the prop without producing a visual difference; * point it at an edge-equipped glTF locally to see CAD wireframe rendering. */ export const EdgeDisplay: Story = { render: args => ( ), };