Properties
Private
camera_dragging_point
Private
camera_is_draggable
camera_is_draggable: boolean = true
Private
camera_is_dragging
camera_is_dragging: boolean = false
Private
camera_is_zoomable
camera_is_zoomable: boolean = true
Private
camera_middle_screen
Private
camera_screen_origin
Private
camera_zoom_current
camera_zoom_current: number = 100
Private
camera_zoom_factor
camera_zoom_factor: number = 10
Private
camera_zoom_max
camera_zoom_max: number = 500
Private
camera_zoom_min
camera_zoom_min: number = 25
Private
canvas_background
canvas_background: string = "#111827"
Private
canvas_context
canvas_context: CanvasRenderingContext2D
Private
canvas_draw_info
canvas_draw_info: boolean = true
Private
canvas_element
canvas_element: HTMLCanvasElement
Private
canvas_element_original
canvas_element_original: Node
Private
canvas_fps
canvas_fps: number = 0
Private
canvas_fps_interval
canvas_fps_interval: number = 1
Private
canvas_fullscreen
canvas_fullscreen: boolean = false
Private
canvas_height
canvas_height: number
Private
canvas_id
canvas_id: string
Private
canvas_is_running
canvas_is_running: boolean = true
Private
canvas_last_frame_time
canvas_last_frame_time: number = 0
Private
canvas_max_fps
canvas_max_fps: null | number = null
Private
canvas_time
canvas_time: number = 0
Private
canvas_width
canvas_width: number
Private
cartesian_plane_draw_axis
cartesian_plane_draw_axis: boolean = true
Private
cartesian_plane_draw_grid
cartesian_plane_draw_grid: boolean = true
Private
cartesian_plane_edgeMaxX
cartesian_plane_edgeMaxX: number = ...
Private
cartesian_plane_edgeMaxY
cartesian_plane_edgeMaxY: number = ...
Private
cartesian_plane_edgeMinX
cartesian_plane_edgeMinX: number = ...
Private
cartesian_plane_edgeMinY
cartesian_plane_edgeMinY: number = ...
Private
cartesian_plane_grid_size
cartesian_plane_grid_size: number = 32
Private
cartesian_plane_negativeX
cartesian_plane_negativeX: number = 0
Private
cartesian_plane_negativeY
cartesian_plane_negativeY: number = 0
Private
cartesian_plane_positiveX
cartesian_plane_positiveX: number = 0
Private
cartesian_plane_positiveY
cartesian_plane_positiveY: number = 0
Private
master_key
master_key: string = "Alt"
Private
math_world_loop
math_world_loop: null | ((world) => void) = null
Type declaration
-
- (world): void
-
Returns void
Private
mouse_current_point
Private
mouse_current_point_in_cartesian_plane
mouse_current_point_in_cartesian_plane: Vector2D = ...
Private
mouse_current_point_in_screen
mouse_current_point_in_screen: Vector2D = ...
Private
mouse_current_point_in_world
mouse_current_point_in_world: Vector2D = ...
Private
on_key_down
on_key_down: {
    callbacks: ((e) => void)[];
    key: string;
}[] = []
Type declaration
-
callbacks: ((e) => void)[]
-
key: string
Private
on_key_up
on_key_up: {
    callbacks: ((e) => void)[];
    key: string;
}[] = []
Type declaration
-
callbacks: ((e) => void)[]
-
key: string
Private
on_left_click
on_left_click: ((e) => void)[] = []
Private
on_mouse_down
on_mouse_down: ((e) => void)[] = []
Private
on_mouse_move
on_mouse_move: ((e) => void)[] = []
Private
on_mouse_up
on_mouse_up: ((e) => void)[] = []
Private
on_mouse_wheel
on_mouse_wheel: ((e) => void)[] = []
Private
on_pause
on_pause: ((world) => void)[] = []
Type declaration
-
- (world): void
-
Returns void
Private
on_play
on_play: ((world) => void)[] = []
Type declaration
-
- (world): void
-
Returns void
Private
on_reset
on_reset: ((world) => void)[] = []
Type declaration
-
- (world): void
-
Returns void
Private
on_right_click
on_right_click: ((e) => void)[] = []
Private
on_start
on_start: ((world) => void)[] = []
Type declaration
-
- (world): void
-
Returns void
Private
on_stop
on_stop: ((world) => void)[] = []
Type declaration
-
- (world): void
-
Returns void
Private
pressed_keys
pressed_keys: {
    code: string;
    key: string;
}[] = []
Private
world_before_tab_is_running
world_before_tab_is_running: boolean = true
Private
world_last_timestamp
world_last_timestamp: number = 0
Private
world_time
world_time: number = 0
Private
world_time_is_paused
world_time_is_paused: boolean = false
Private
world_time_precision_frame
world_time_precision_frame: number = 1000
Private
world_time_precision_frame_delay
world_time_precision_frame_delay: number = 1000
Private
world_time_precision_mode
world_time_precision_mode: boolean = false
Private
world_time_scale
world_time_scale: number = 4
Private
world_time_tolerance
world_time_tolerance: number = 0.015