Coder Social home page Coder Social logo

sermonis / autodesk-forge-dataviz-iot-react-components Goto Github PK

View Code? Open in Web Editor NEW

This project forked from autodesk-forge/forge-dataviz-iot-react-components

0.0 1.0 0.0 5.38 MB

Re-usable React components used by the Forge Dataviz IoT Reference App.

License: Apache License 2.0

JavaScript 97.89% SCSS 2.11%

autodesk-forge-dataviz-iot-react-components's Introduction

forge-dataviz-iot-react-components

npm version npm downloads platforms License

Re-usable React components used by the Forge Dataviz IoT Reference App.

Installation

npm install forge-dataviz-iot-react-components

Example Usage

// To import the Viewer component
import { Viewer } from "dataviz-iot-react-components";

function SampleApp(props) {
    return (
        <Viewer
            env={env}
            docUrn={docUrn}
            api={api}
            onViewerInitialized={onViewerInitialized}
            onModelLoaded={onModelLoaded}
            getToken={getToken}
        />
    );
}
module.export = SampleApp;

Contents

This package contains all of the React components used in Forge Dataviz IoT Reference App. To interact with these components - check out https://hyperion.autodesk.io/.

NOTE: Most of these components have been created using the Material UI framework.

Components:

  • BaseApp - Complete UI encompassing all of the components below.

Component Mapping Image 1

  • BasicDatePicker - A date picker component that enables date selection via calendar input.
  • ChronosTimeSlider - Interactive timeslider based off the chronos-etu npm package
  • DataPanelContainer - Extendable panel that contains the DevicePanel and Dashboard
  • DevicePanel - Displays the DeviceTree and a search bar for a user to search through the devices.
  • DeviceStats - Chip components showing the icon and property value
  • DeviceTree - Hierarchical arrangement of devices
  • HeatmapOptions - Gradient slider and associated heatmap property and resolution selection options.
  • HyperionToolContainer - 2-button menu to show the Levels Tree and a panel containing device setting options.
  • LevelsTree - Hierarchical arrangment of level/group information.
  • Viewer - React component wrapper for Autodesk Forge Viewer.
  • BasicTree - Basic hierarchical tree structure used by DeviceTree and LevelsTree.
  • EventTypes - Defines the events dispatched by the components.

Component Mapping Image 2

  • CustomToolTip - A tooltip component that contains DataCharts for a specific device.
  • Dashboard - Shows chart data for each property associated with a device.
  • DataChart - A React Echarts instance representing the chart data for a property of a device.

API documentation for each component can be found here

Troubleshooting:

If styling for BasicDatePicker is missing, add the following line to import react-dates styles - import "react-dates/lib/css/_datepicker.css";

autodesk-forge-dataviz-iot-react-components's People

Contributors

harshita-adsk avatar wallabyway avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.