Coder Social home page Coder Social logo

modelcreate / model-view Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 11.0 8 MB

Model View - Share and view models in the browser

Home Page: https://view.modelcreate.com

License: GNU Affero General Public License v3.0

HTML 0.19% CSS 0.48% TypeScript 99.33%

model-view's People

Contributors

lbutler avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

model-view's Issues

How to save model as inp file

import {Project, Workspace} from 'epanet-js'

const ws = new Workspace();
const model = new Project(ws);

model.init('report.rpt', 'out.bin', 0, 0);

const n1Index = model.addNode('N1', NodeType.Junction);
const n2Index = model.addNode('N2', NodeType.Junction);
model.setJunctionData(n1Index, 700, 0, '');
model.setJunctionData(n2Index, 400, 0, '');

const l1Index = model.addLink('L1',LinkType.Pipe,'N1','N2')

This code is ok but how can i save model as inp file can you please help me on this

Missing elements on map (tanks, reservoirs, pumps and valves)

These elements are missing from the map as they are not described in the mapstyles.

All elements from EPANET should be shown on the map, and it should also be possible to see differences in their styles based on their attributes or current status or results.

This project is in need of a large refactor, and this will be a key component, I will create a separate project within this repo to cover all changes needed.

1st feature request : big models performance fix

Thanks for this repo. Congrats on 1st issue :) We are also working on the similar web app with different technologies, but we can switch to this app.

As we tested our app with 35K+ features, we have tested it with this app and it is not working as performant as your demo. For big files, you can switch from GeoJSON to Vector Tiles with https://github.com/mapbox/geojson-vt library before adding to MapBoxGL map.

Your opinions are important for us, may be we can join our repos together in the future to add more features in a single app.

Thanks again for this great app.

A.

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.