Git Product home page Git Product logo

cityjson-vue-components's Introduction

CityJSON Vue components

npm version

A collection of Vue components to work with CityJSON files.

Installation

You can install from npm with:

npm i cityjson-vue-components

or the development version from GitHub:

npm install git+https://[email protected]/tudelft3d/cityjson-vue-components.git

Usage

In your main JavaScript folder, import the library and register the components:

import CityJSONComponents from 'cityjson-vue-components'

Vue.use(CityJSONComponents)

Then you can simply use the components in your template.

Components

ThreeJsViewer

A 3D viewer for a citymodel which is based on threejs.

CityObjectInfo

A component that view details about a city object.

CityObjectCard

A card wrapper for CityObjectInfo.

CityObjectsTree

A tree view of city objects.

Development

The components are located in the lib-components folder and they are exported through src/lib-components/index.js.

Examples to ease the development are provided in the examples folder. You can work with them running: vue serve examples/{exampleName}.vue.

To build a new version run: npm run build. The output files are located in dist.

For more information you may read:

  • the official cookbook recipe of Vue.js of how to bundle components for npm, or
  • the vue-sfc-rollup template upon which this repository is based.

cityjson-vue-components's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

cityjson-vue-components's Issues

ThreeJsViewer: Add support for multiple rendering types

Currently, the objects are colored according to the city object type. There should be other options as well:

  • per semantic surface
  • textures
  • custom color function (e.g. to make object and surfaces dynamically colored according to attributes)

ThreeJsViewer: Use cache for objects

Objects could be stored in a cache according to the geometry, so when a simple attribute changes (or a geometry of only one object) then triangulation of already triangulated geometries would be omitted.

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.