Global

Members

pathObject :td.pathObject

Type:
  • td.pathObject
Source:

Type Definitions

animation

Type:
  • Object
Properties:
Name Type Attributes Description
name string
type string
maneuverArea Array <optional>
collisionBoxes which need to be clear for animation.
endVals Object
Properties
Name Type Attributes Description
orientation number
orientationMod number
direction number
x number
y number
turnDirection string <optional>
crossNegation number <optional>
crossDistance number <optional>
forwardDistance number <optional>
backwardDistance number <optional>
spaceEntrance number <optional>
Source:

AnimationHandler

Type:
  • Object
Properties:
Name Type Description
stylesheet CSSStyleSheet
animationTypes Object
animations Object
Properties
Name Type Description
name animation
Source:

BranchHandler

Used by RoutePlotter to find branching paths from one section towards another.
Type:
  • Object
Properties:
Name Type Description
pathObject pathObject
rowDiff number
colDiff number
Source:

Car

Type:
  • Object
Properties:
Name Type Attributes Description
parkingLot ParkingLot
collisionBoxHandler CollisionBoxHandler
id number
handicap Boolean
animation animation <optional>
orientation number Angle of page element's rotation.
coords Object
Properties
Name Type Description
x number
y number
direction string Cardinal direction
leadingEdge number Coordinate of front of car based on direction heading.
symbol string x or y depending on which direction car is heading.
oppSymbol string x or y depending on which direction car is NOT heading
axis string left or top depending on which direction car is heading. Used to increment element position when moving forward.
negation string 1 or (-1) to increment car across page correctly using left/top.
baseWidth number Width of car image
baseLength number Length of car image
collisionBoxes Object
Properties
Name Type Attributes Description
car collisionbox Collision box for car image
maneuver Array <optional>
Array of collisionBox objects for maneuver.
img string Path to car image in files.
pageWrapper HTMLElement Square wrapper for car img.
pageEl HTMLElement Rectangular car img.
userFocus Boolean Determines whether overlay els are shown.
overlay Object Object containing overlay HTML elements.
overlayWrapper HTMLElement Wrapper div for overlay HTML elements.
overlay.stoppingDistance HTMLElement
overlay.betweenDestination HTMLElement
overlay.road HTMLElement
status string
finishedParking Boolean
parkingDuration number Time car will park for in ms.
assignedSpace space
route Object
currentSection routeSection
nextIntersection intersection <optional>
nextSectionDestination number <optional>
Coordinate car wants to reach on current routeSection.
blockingIntersections Object
Properties
Name Type Attributes Description
intersection intersection <optional>
speed number Speed the car is currently moving in by pixels
minStoppingDistance number Minimum space car wants between itself and collision boxes.
turningRunup number Space car wants from destination to make a turn.
Source:

collisionbox

Type:
  • Object
Properties:
Name Type Description
x Number
y Number
w Number
h Number
Source:

CollisionBoxHandler

Type:
  • Object
Properties:
Name Type Description
parkingLot ParkingLot
entranceArea collisionbox
LOOP_SPEED number
Source:

intersection

Type:
  • Object
Properties:
Name Type Description
area collisionBox
name string
occupied Boolean
Source:

Overlay

Creates and manages page elements for visual monitoring of parking lot and cars.
Type:
  • Object
Properties:
Name Type Description
wrapper HTMLElement
timers Object Object to store persistent timers which need checking/refreshing.
Source:

ParkingLot

Type:
  • Object
Properties:
Name Type Description
config Object
loop Object
pathObject pathObject
routePlotter RoutePlotter
overlay Overlay
spaces Array Array of all active space objects.
animationHandler AnimationHandler
collisionBoxHandler CollisionBoxHandler
carCount Number Number of cars so far. Used for car IDs.
cars Object
Properties
Name Type Description
entering Object Cars which haven't parked yet.
parked Object Cars which are currently parked.
leaving Object Cars which are leaving the lot.
left Object Cars which have left the lot and scene.
intersections Object
stats Object Contains all HTML elements for stats
Properties
Name Type Description
wrapper HTMLElement
carCountEl HTMLElement Number of cars which have entered the lot.
parkedCountEl HTMLElement Number of cars currently parked.
leftCountEl HTMLElement Number of cars which have left the lot.
Source:

pathObject

Object containing all sections of the path (road) which can be traversed.
Type:
  • Object
Properties:
Name Type Description
pathCoords Object Measurements for section initialization.
sections Object Path sections divided by orientation.
Properties
Name Type Description
horizontal Object
Properties
Name Type Description
rowxcoly section
vertical Object
Properties
Name Type Description
rowxcoly section
entrance section Ref to section which is an entrance.
exit section Ref to section which is an exit.
Source:

routeEnd

Object representing one of the opposite ends of a route.
Type:
  • Object
Properties:
Name Type Attributes Description
section section
coord number Exact start or destination point along section.
direction string <optional>
Cardinal direction.
Source:

RoutePlotter

Recursively determines possible routes through parking lot pathObject.
Type:
  • Object
Properties:
Name Type Description
pathObject pathObject
Source:

routeSection

Part of a full route through the lot with navigational metadata.
Type:
  • Object
Properties:
Name Type Description
section section
coord number Endpoint for that routeSection
direction string Cardinal direction.
turn string | Boolean String for turn car will make to get onto this routeSection or false if no turn.
Source:

section

Object representing a section of the pathObject.
Type:
  • Object
Properties:
Name Type Attributes Description
row number
column number
horizontal Boolean <optional>
len number length of section in pixels (coordinates/points).
x number x coordinate on page.
y number y coordinate on page.
points Array Array of x, y coordinates.
Source:

space

Type:
  • Object
Properties:
Name Type Description
facing string Cardinal direction cars parked in the space will face (reversing into space not supported.)
height Number
width Number
x Number
y Number
rank Number
score Number
reserved Boolean
section section
pageEl HTMLElement
Source: