File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 # You should have received a copy of the GNU Affero General Public License
1515 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17- class Alchemy :: create
17+ class Alchemy :: Create
1818 constructor : (instance )->
1919 @a = instance
2020 nodes : (nodeMap , nodeMaps ... ) ->
Original file line number Diff line number Diff line change 1818 # make js array method called ._state
1919 # @a.set. nest set inside of get
2020
21- Alchemy :: get = (instance ) ->
21+ Alchemy :: Get = (instance ) ->
2222 a : instance
2323 _el : []
2424 _elType : null
120120 edge_id = " #{ id} -#{ target} "
121121 @a ._edges [edge_id]
122122 else if id? and not target?
123- @a ._nodes [id]._adjacentEdges
123+ @a ._nodes [id]._adjacentEdges
Original file line number Diff line number Diff line change 1414 # You should have received a copy of the GNU Affero General Public License
1515 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17- class Alchemy :: remove
17+ class Alchemy :: Remove
1818 constructor : (instance ) ->
1919 @a = instance
2020
Original file line number Diff line number Diff line change 1414 # You should have received a copy of the GNU Affero General Public License
1515 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
17- Alchemy :: set =
18- state : (key , value ) -> alchemy .state .key = value
17+ Alchemy :: Set = (instance )->
18+ a : instance
19+ state : (key , value ) -> @a .state .key = value
Original file line number Diff line number Diff line change @@ -30,9 +30,11 @@ title: Anotated Source
3030
3131 @version = " #VERSION#"
3232 # give access to default conf
33- @get = new @get @
34- @remove = new @remove @
35- @create = new @create @
33+ @get = new @Get @
34+ @remove = new @Remove @
35+ @create = new @Create @
36+ @set = new @Set @
37+
3638 @drawing =
3739 DrawEdge : DrawEdge @
3840 DrawEdges : DrawEdges @
You can’t perform that action at this time.
0 commit comments