Giter Site home page Giter Site logo

Comments (3)

stefanrinderle avatar stefanrinderle commented on September 26, 2024 2

Status

Added a first POC-like implementation to the new branch. We should use this to clarify, how we want to implement this feature and what needs to be done to finish it.

Current impl examples

grafik

grafik

Todos

There are several things which needs to be improved.

Code issues

  • Font loading is async and just done anywhere. Should be done in sync on application start or object creation (see TODO in ObjectFactory.ts)
  • It is important to know which kind of Layout is processed. This is currently done via a color check ;-) - should be changed to LayoutType check (see TODO in ObjectFactory.ts)
  • The name is currently not available in the source SoftVis3dShape. Therefore, the name is resolved using the TreeService for each element. This is not only ugly, but also leaves us with a bad performance on big projects (see TODO in ObjectFactory.ts)
  • The resulting SoftVis3dMesh object which is currently used needs an id. Do we need one? If yes, what to use?
  • The "objects" should be implemented in a more OO manner
  • Unit tests!

Feature definition

  • The text color is currently red. This should be adjusted to a "better" fitting color. Maybe we have to adjust the platform / street colors as well.
  • If we introduce this, we definitely will need a config parameter for that because textures are really memory consuming. It will be needed to deactive this feature especially for bigger projects.
  • The new config parameter should also be included in the direct link feature #3

Open questions

  • How do you like it? I really do.

Another way to do this would be a popup on mouse over, but i think this is more clear and helps to get an good overview.

  • Overlappings / ...

Currently, the text can overlap a platform because the text is too big. This could be optimized but only solved 100 % if included in the layout algorithm (which i would want not to do). This can be very, very tricky and a huge layout algorithm would be needed.

I could live with overlappings and would try to optimize this without changing the layout.

from softvis3d.

Ungolianth avatar Ungolianth commented on September 26, 2024 2

I would go for a sprite approach:

  • Something like in this example, but more subtle (and maybe sharper 😄)
  • Also don't show all of them at once, but decide on multiple factors (distance to camera, package depth, package size) which labels to display or hide

EDIT: Mockup
image

from softvis3d.

cniweb avatar cniweb commented on September 26, 2024

Nice would be a popup at Mouse Over.

from softvis3d.

Related Issues (20)

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.