Hierarchy

  • MathWorld

Implements

  • default

Constructors

Properties

Methods

adjustZoomAtMousePoint backFrameWorldTime backWoldTime calculateScreenOrigin canvasIsRunning canvasPlay canvasStop default disableWorldPrecisionTimeMode drawAxis drawCartesianPlan drawGrid drawInfo drawInformation drawMouseDebug enableWorldPrecisionTimeMode getBackgroundColor getCameraMaxZoom getCameraMinZoom getCameraOffset getCameraZoom getCameraZoomFactor getCameraZoomFactorInDecimal getCameraZoomInDecimal getCanvas getCanvasTime getCanvasTimeInHoursMinutesAndSeconds getCnvasTimeInTicks getContext getFPS getGridSize getHeight getMiddleScreen getMoudeDebugMode getMousePosition getMousePositionInCartesian getMousePositionInScreen getMousePositionInWorld getNegativeX getNegativeY getPaint getPositiveX getPositiveY getPressedKeys getScreenOrigin getWidth getWorldInMiniTimes getWorldPrecisionTimeFrameInFraction getWorldPrecisionTimeFrameInMiniTime getWorldTime getWorldTimeInHoursMinutesAndSeconds getWorldTimeInTicks hiddenScreen isDraggable isPaused isZoomable keyDownHandler keyIsPressed keyUpHandler loop mouseDownHandler mouseMoveHandler mouseUpHandler mouseWheelHandler moveCameraOffsetToCenter moveCameraTo moveCameraToCartesianPlane moveCameraToWorld nextFrameWorldTime nextWorldTime onKeyDown onKeyUp onLeftCLick onMouseDown onMouseMove onMouseUp onMouseWheel onPause onPlay onReset onRightClick onStart onStop pause pauseWorldTime play playWorldTime reset resetFullScreen resetWorldTime resizeScreen setAxisLimits setBackgroundColor setCameraMaxZoom setCameraMinZoom setCameraOffsetTo setCameraOffsetToCenter setCameraZoom setCameraZoomAt setCameraZoomFactor setCartesianPlaneToFullScreen setDebugMouseMode setFullScreen setGridSize setHeight setMasterKey setMaxFPS setMousePosition setNegativeX setNegativeY setPositiveX setPositiveY setWidth setWorldPrecisionTimeFrameDelay setWorldPrecisionTimeFrameInFraction setWorldPrecisionTimeFrameInMiniTimes setWorldPrecisionTimeInMinitimes setWorldPrecisionTimeInSecondsMinutesAndHours setWorldTimeScale setWorldTimeTolerance setupEvents start stop toCartesian toScreen toWorld update worldTimeInMiniTimesIs worldTimeInTicksIs worldTimeIs worldTimeIsPaused zoom zoomAt zoomAtWithDecimal

Constructors

Properties

camera_dragging_point: Vector2D = ...
camera_is_draggable: boolean = true
camera_is_dragging: boolean = false
camera_is_zoomable: boolean = true
camera_middle_screen: Vector2D = ...
camera_offset: Vector2D = ...
camera_screen_origin: Vector2D = ...
camera_zoom_current: number = 100
camera_zoom_factor: number = 10
camera_zoom_max: number = 500
camera_zoom_min: number = 25
canvas_background: string = "#111827"
canvas_context: CanvasRenderingContext2D
canvas_draw_info: boolean = true
canvas_element: HTMLCanvasElement
canvas_element_original: Node
canvas_fps: number = 0
canvas_fps_interval: number = 1
canvas_fullscreen: boolean = false
canvas_height: number
canvas_id: string
canvas_is_running: boolean = true
canvas_last_frame_time: number = 0
canvas_max_fps: null | number = null
canvas_paint: Paint
canvas_time: number = 0
canvas_width: number
cartesian_plane_draw_axis: boolean = true
cartesian_plane_draw_grid: boolean = true
cartesian_plane_edgeMaxX: number = ...
cartesian_plane_edgeMaxY: number = ...
cartesian_plane_edgeMinX: number = ...
cartesian_plane_edgeMinY: number = ...
cartesian_plane_grid_size: number = 32
cartesian_plane_negativeX: number = 0
cartesian_plane_negativeY: number = 0
cartesian_plane_positiveX: number = 0
cartesian_plane_positiveY: number = 0
master_key: string = "Alt"
math_world_loop: null | ((world) => void) = null

Type declaration

    • (world): void
    • Parameters

      Returns void

mouse_current_point: Vector2D = ...
mouse_current_point_in_cartesian_plane: Vector2D = ...
mouse_current_point_in_screen: Vector2D = ...
mouse_current_point_in_world: Vector2D = ...
mouse_debug_mode: DebugMouseMode = "screen"
on_key_down: {
    callbacks: ((e) => void)[];
    key: string;
}[] = []

Type declaration

  • callbacks: ((e) => void)[]
  • key: string
on_key_up: {
    callbacks: ((e) => void)[];
    key: string;
}[] = []

Type declaration

  • callbacks: ((e) => void)[]
  • key: string
on_left_click: ((e) => void)[] = []

Type declaration

    • (e): void
    • Parameters

      • e: MouseEvent

      Returns void

on_mouse_down: ((e) => void)[] = []

Type declaration

    • (e): void
    • Parameters

      • e: MouseEvent

      Returns void

on_mouse_move: ((e) => void)[] = []

Type declaration

    • (e): void
    • Parameters

      • e: MouseEvent

      Returns void

on_mouse_up: ((e) => void)[] = []

Type declaration

    • (e): void
    • Parameters

      • e: MouseEvent

      Returns void

on_mouse_wheel: ((e) => void)[] = []

Type declaration

    • (e): void
    • Parameters

      • e: WheelEvent

      Returns void

on_pause: ((world) => void)[] = []

Type declaration

    • (world): void
    • Parameters

      Returns void

on_play: ((world) => void)[] = []

Type declaration

    • (world): void
    • Parameters

      Returns void

on_reset: ((world) => void)[] = []

Type declaration

    • (world): void
    • Parameters

      Returns void

on_right_click: ((e) => void)[] = []

Type declaration

    • (e): void
    • Parameters

      • e: MouseEvent

      Returns void

on_start: ((world) => void)[] = []

Type declaration

    • (world): void
    • Parameters

      Returns void

on_stop: ((world) => void)[] = []

Type declaration

    • (world): void
    • Parameters

      Returns void

pressed_keys: {
    code: string;
    key: string;
}[] = []

Type declaration

  • code: string
  • key: string
world_before_tab_is_running: boolean = true
world_last_timestamp: number = 0
world_time: number = 0
world_time_is_paused: boolean = false
world_time_precision_frame: number = 1000
world_time_precision_frame_delay: number = 1000
world_time_precision_mode: boolean = false
world_time_scale: number = 4
world_time_tolerance: number = 0.015

Methods

  • Returns boolean

  • Returns string

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns number

  • Returns HTMLCanvasElement

  • Returns number

  • Returns string

  • Returns number

  • Returns CanvasRenderingContext2D

  • Returns {
        code: string;
        key: string;
    }[]

  • Returns number

  • Returns number

  • Returns number

  • Returns string

  • Returns number

  • Parameters

    • key: string

    Returns boolean

  • Parameters

    • loop: ((world) => void)
        • (world): void
        • Parameters

          Returns void

    Returns void

  • Parameters

    • minX: number
    • maxX: number
    • minY: number
    • maxY: number

    Returns MathWorld

  • Parameters

    • minitimes: number

    Returns MathWorld

  • Parameters

    • seconds: number
    • minutes: number = 0
    • hours: number = 0

    Returns MathWorld

  • Parameters

    • time: number

    Returns boolean

  • Parameters

    • time: number

    Returns boolean

  • Parameters

    • time: number
    • tolerance: boolean = false

    Returns boolean

  • Returns boolean

Generated using TypeDoc