/*! * Copyright (c) Microsoft Corporation and contributors. All rights reserved. * Licensed under the MIT License. */ import { ConstellationView } from "@fluid-example/multiview-constellation-view"; import type { IConstellation, ICoordinate, } from "@fluid-example/multiview-coordinate-interface"; import { PlotCoordinateView } from "@fluid-example/multiview-plot-coordinate-view"; import { SliderCoordinateView } from "@fluid-example/multiview-slider-coordinate-view"; import { TriangleView } from "@fluid-example/multiview-triangle-view"; import type { FC } from "react"; // eslint-disable-next-line import-x/no-unassigned-import import "./style.css"; /** * Our default view demos two scenarios - one basic that takes a single coordinate, and one triangle that takes 3. */ interface IDefaultViewProps { simpleCoordinate: ICoordinate; triangleCoordinate1: ICoordinate; triangleCoordinate2: ICoordinate; triangleCoordinate3: ICoordinate; constellation: IConstellation; } /** * In this sample, we (the container author) are choosing to bring along our own view that composes several * component views together. We could have alternatively built a "base" component to do this composition if we had * preferred - either works fine. */ export const DefaultView: FC = (props: IDefaultViewProps) => { return (

Scenario 1: Linking a single model to multiple views

Scenario 2: Using multiple models in a single view

Scenario 3: Linking a nested view to a nested model

); };