MCPcopy Create free account
hub / github.com/codecombat/codecombat / getPID

Method getPID

app/views/editor/level/thangs/ThangsTabView.js:1135–1143  ·  view source on GitHub ↗
(selectedThang)

Source from the content-addressed store, hash-verified

1133 }
1134
1135 getPID (selectedThang) {
1136 if (utils.isCodeCombat) {
1137 return LevelComponent.PhysicalID
1138 } else {
1139 const positionComponent = _.find(this.getThangByID(selectedThang.id).components || [], c => LevelComponent.positionIDs.includes(c.original))
1140 if (!positionComponent) { return undefined }
1141 return positionComponent.original
1142 }
1143 }
1144
1145 rotateSelectedThangTo (radians) {
1146 if (!this.surfaceHasFocus()) { return }

Callers 3

rotateSelectedThangToMethod · 0.95
rotateSelectedThangByMethod · 0.95
moveSelectedThangByMethod · 0.95

Calls 1

getThangByIDMethod · 0.95

Tested by

no test coverage detected