Giter Site home page Giter Site logo

dashboard-demo's Introduction

项目简介

使用react+vite创建的大屏项目,地图采用视频+svg进行开发,视频组件通过传入videoList和将svg作为chidren的格式进行使用,默认 播放完第一段视频后循环播放第二段视频,main分支保持视频1920 / 1080 比例,dev分支视频占满父元素。svg默认和视频同比例来保证 不同情况下的匹配,main分支采用保持比例的做法,dev分支下采用占满父元素的做法,未采用scale缩放的做法,选择了直接从中心点放 大视频来占满父元素,因为缩放会导致视频模糊,并且缩放后视频的宽高比会发生变化,导致视频变形,所以采用直接放大视频的方式

开发环境

node版本:>=16

项目运行

npm install
npm run dev

dashboard-demo's People

Contributors

gjxwxt 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.