Commit graph

20 commits

Author SHA1 Message Date
fb481669ed Add Coordinates setter
Sets the corresponding element to the parameter value passed in. Checks against the grid size constraints beforehand and throws RangeError if outside of constraints. Preferred method to set
element via coordinates.
2018-08-30 10:02:29 +02:00
5a72783d57 Add .toCoordinates() method to grid
Calculates the 2-D array coordinates from the corresponding list index passed in. Relies on grid width to calculate coordinates. Does not check against grid size constraints.
2018-08-30 09:53:05 +02:00
6c3fcbe7b0 Add .get method for coordinate element retrieval to grid
Coordinates passed in access the correct index in the internal list.
2018-08-30 09:43:46 +02:00
3f939601b3 Add toIndex method
can be used to get the correct index from coordinates passed in. Will only calculate the index, not take into consideration any grid size constraints etc.
2018-08-30 09:41:43 +02:00
8865af4878 Add tags to Instantiation tests 2018-08-30 09:36:57 +02:00
27ef72014e Add simple Grid - List Wrapper Data Structure 2018-08-29 22:12:19 +02:00
a92b864dfa Extract EngineService into separate service 2018-08-27 20:50:12 +02:00
04d61bfa02 Error out on bad gridsize input 2018-08-27 20:18:19 +02:00
873bd9c881 Allow Optional Injection of grid size into engine on creation 2018-08-27 20:13:19 +02:00
9886f13d69 Add grid changing function 2018-08-27 19:55:30 +02:00
5e8f83cf8a Refactor EngineService to be able to inject custom Engine
fixes #38
2018-08-27 19:37:35 +02:00
7a3fdf3681 Fix Engine Test case 2018-08-25 16:43:47 +02:00
952179eee3 Implement Test Case 2018-08-25 16:43:38 +02:00
cc33628e5f Enable cached engine returns for EngineService 2018-08-25 14:51:28 +02:00
66bf87d9d8 Allow setting a canvas for an engine at any point 2018-08-25 14:36:50 +02:00
4c6dff35c3 Add Canvas nullcheck to render function 2018-08-25 14:10:56 +02:00
842cbeca1f make canvas argument optional on instantiating engine 2018-08-25 09:36:27 +02:00
1bd324a406 Disable superfluous tests
In preparation for first test of the app.
2018-08-25 09:36:27 +02:00
f3dfc3b368 Set up Basic AngularDart Structure 2018-07-07 15:46:40 +02:00
0277e5ddc7 Initial Commit 2018-07-05 17:59:11 +02:00