Coder Social home page Coder Social logo

InitialTimeRange settings about timetable HOT 1 CLOSED

jonaswanke avatar jonaswanke commented on July 26, 2024
InitialTimeRange settings

from timetable.

Comments (1)

JonasWanke avatar JonasWanke commented on July 26, 2024

I'm really sorry for the late reply.

The first exception occurs because adding to a LocalTime beyond the 24 h of a day wraps the result — so 9 PM + 6 hours = 3 AM, and hence your startTime of 8 PM is bigger than your endTime.

The second exception is thrown because the internally used VerticalZoom widget (for zooming in/out the hours) had fixed limits for minimum and maximum zoom values and the initial zoom level had to be within those constraints. I've now (as of v0.2.7) moved these fixed limits to TimetableThemeData as minimumHourZoom and maximumHourZoom, and values outside of these constraints are now coerced to fulfill them — so if the initialTimeRange is set to 11 PM – 12 PM, but showing only this range would exceed the maximum zoom level, the range is extended to e.g. 7 PM – 12 PM. By setting TimetableThemeData.maximumHourHeight to double.infinity (the default for maximumHourZoom is double.infinity already), no coercion is performed and only 11 PM – 12 PM will be shown.

Feel free to reopen this issue if this doesn't solve your problem.

from timetable.

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.