Compare commits
1 Commits
colonelpan
...
dean/uploa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8441bb12e9 |
16218
src/index.tsx
16218
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -85,53 +85,3 @@ query ComputePotAim(
|
|||||||
occludingBallIds
|
occludingBallIds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fragment PositionShotCandidate on PositionShotCandidateGQL {
|
|
||||||
strike {
|
|
||||||
v0
|
|
||||||
phi
|
|
||||||
theta
|
|
||||||
a
|
|
||||||
b
|
|
||||||
}
|
|
||||||
cueFinalPosition
|
|
||||||
inTargetArea
|
|
||||||
distanceToTargetArea
|
|
||||||
robustness
|
|
||||||
potted
|
|
||||||
scratched
|
|
||||||
projection {
|
|
||||||
trajectories {
|
|
||||||
ballId
|
|
||||||
points {
|
|
||||||
time
|
|
||||||
position
|
|
||||||
}
|
|
||||||
}
|
|
||||||
events {
|
|
||||||
eventType
|
|
||||||
time
|
|
||||||
ballIds
|
|
||||||
position
|
|
||||||
}
|
|
||||||
finalState {
|
|
||||||
ballId
|
|
||||||
position
|
|
||||||
}
|
|
||||||
pottedBallIds
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
query SuggestPositionShot($suggestionInput: SuggestPositionShotInputGQL!) {
|
|
||||||
suggestPositionShot(suggestionInput: $suggestionInput) {
|
|
||||||
achievable
|
|
||||||
evaluatedCount
|
|
||||||
successfulCount
|
|
||||||
best {
|
|
||||||
...PositionShotCandidate
|
|
||||||
}
|
|
||||||
alternates {
|
|
||||||
...PositionShotCandidate
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stream {
|
stream {
|
||||||
|
id
|
||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -127,6 +128,7 @@ fragment UploadStreamWithDetails on VideoGQL {
|
|||||||
name
|
name
|
||||||
startTime
|
startTime
|
||||||
stream {
|
stream {
|
||||||
|
id
|
||||||
isCompleted
|
isCompleted
|
||||||
lastIntendedSegmentBound
|
lastIntendedSegmentBound
|
||||||
uploadCompletionCursor
|
uploadCompletionCursor
|
||||||
|
|||||||
@@ -81,9 +81,6 @@ type Query {
|
|||||||
targetBallId: Int!
|
targetBallId: Int!
|
||||||
pocket: PocketIdentifier!
|
pocket: PocketIdentifier!
|
||||||
): PotAimGQL!
|
): PotAimGQL!
|
||||||
suggestPositionShot(
|
|
||||||
suggestionInput: SuggestPositionShotInputGQL!
|
|
||||||
): PositionSuggestionGQL!
|
|
||||||
getOrderedShots(
|
getOrderedShots(
|
||||||
filterInput: FilterInput!
|
filterInput: FilterInput!
|
||||||
ids: [Int!] = null
|
ids: [Int!] = null
|
||||||
@@ -1222,44 +1219,6 @@ type PotAimGQL {
|
|||||||
occludingBallIds: [Int!]!
|
occludingBallIds: [Int!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type PositionSuggestionGQL {
|
|
||||||
achievable: Boolean!
|
|
||||||
best: PositionShotCandidateGQL
|
|
||||||
alternates: [PositionShotCandidateGQL!]!
|
|
||||||
evaluatedCount: Int!
|
|
||||||
successfulCount: Int!
|
|
||||||
}
|
|
||||||
|
|
||||||
type PositionShotCandidateGQL {
|
|
||||||
strike: CueStrikeGQL!
|
|
||||||
cueFinalPosition: [Float!]!
|
|
||||||
inTargetArea: Boolean!
|
|
||||||
distanceToTargetArea: Float!
|
|
||||||
robustness: Int!
|
|
||||||
potted: Boolean!
|
|
||||||
scratched: Boolean!
|
|
||||||
projection: ShotProjectionGQL
|
|
||||||
}
|
|
||||||
|
|
||||||
type CueStrikeGQL {
|
|
||||||
v0: Float!
|
|
||||||
phi: Float!
|
|
||||||
theta: Float!
|
|
||||||
a: Float!
|
|
||||||
b: Float!
|
|
||||||
}
|
|
||||||
|
|
||||||
input SuggestPositionShotInputGQL {
|
|
||||||
cueBallId: Int!
|
|
||||||
targetBallId: Int!
|
|
||||||
pocket: PocketIdentifier!
|
|
||||||
targetArea: [[Float!]!]!
|
|
||||||
balls: [SimulationBallStateInputGQL!] = null
|
|
||||||
b64Image: String = null
|
|
||||||
useHomography: HomographyInputGQL = null
|
|
||||||
tableSize: Float = null
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetShotsResult {
|
type GetShotsResult {
|
||||||
shots: [ShotGQL!]!
|
shots: [ShotGQL!]!
|
||||||
count: Int
|
count: Int
|
||||||
@@ -1942,7 +1901,6 @@ input VideoMetadataInput {
|
|||||||
clientUploadStatus: ClientUploadStatusEnum = null
|
clientUploadStatus: ClientUploadStatusEnum = null
|
||||||
resolution: VideoResolution = null
|
resolution: VideoResolution = null
|
||||||
framesPerSecond: Float = null
|
framesPerSecond: Float = null
|
||||||
homographyBackend: HomographyBackendGQL = null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
input VideoResolution {
|
input VideoResolution {
|
||||||
@@ -1950,11 +1908,6 @@ input VideoResolution {
|
|||||||
height: Int!
|
height: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
enum HomographyBackendGQL {
|
|
||||||
CLASSIC
|
|
||||||
TABLENET
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetUploadLinkReturn {
|
type GetUploadLinkReturn {
|
||||||
value: UploadLinkGetUploadLinkErrors!
|
value: UploadLinkGetUploadLinkErrors!
|
||||||
stream: UploadStreamGQL
|
stream: UploadStreamGQL
|
||||||
|
|||||||
Reference in New Issue
Block a user