-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53facee
commit 44e810b
Showing
13 changed files
with
152 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import GetObjUID from '../../graphitem/GetObjUID.js'; | ||
|
||
var GetEdgeAttribute = function (gameObject, key) { | ||
var nodeUID = GetObjUID(gameObject); | ||
|
||
if (key === undefined) { | ||
return this.graph.getEdgeAttributes(nodeUID); | ||
} else { | ||
return this.graph.getEdgeAttribute(nodeUID, key); | ||
} | ||
} | ||
|
||
export default GetEdgeAttribute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import GetObjUID from '../../graphitem/GetObjUID.js'; | ||
import IsPlainObject from '../../../utils/object/IsPlainObject.js'; | ||
|
||
var SetEdgeAttribute = function (gameObject, key, value) { | ||
var nodeUID = GetObjUID(gameObject); | ||
|
||
if (IsPlainObject(key)) { | ||
return this.graph.updateEdgeAttribute(nodeUID, key); | ||
} else { | ||
return this.graph.setEdgeAttribute(nodeUID, key, value); | ||
} | ||
} | ||
|
||
export default SetEdgeAttribute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import GetObjUID from '../../graphitem/GetObjUID.js'; | ||
|
||
var GetNodeAttribute = function (gameObject, key) { | ||
var nodeUID = GetObjUID(gameObject); | ||
|
||
if (key === undefined) { | ||
return this.graph.getNodeAttributes(nodeUID); | ||
} else { | ||
return this.graph.getNodeAttribute(nodeUID, key); | ||
} | ||
} | ||
|
||
export default GetNodeAttribute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import GetObjUID from '../../graphitem/GetObjUID.js'; | ||
import IsPlainObject from '../../../utils/object/IsPlainObject.js'; | ||
|
||
var SetNodeAttribute = function (gameObject, key, value) { | ||
var nodeUID = GetObjUID(gameObject); | ||
|
||
if (IsPlainObject(key)) { | ||
return this.graph.updateNodeAttribute(nodeUID, key); | ||
} else { | ||
return this.graph.setNodeAttribute(nodeUID, key, value); | ||
} | ||
} | ||
|
||
export default SetNodeAttribute; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters