working somewhat ok

This commit is contained in:
Davor Hrg
2021-08-02 23:24:26 +02:00
parent 336501aaff
commit 77ee959c43
7 changed files with 253 additions and 36 deletions

View File

@@ -12,6 +12,7 @@ export const stlToGeometry = (url) =>
export interface RenderArgs {
code: State['code']
parameters: any,
settings: {
camera: State['camera']
viewerSize: State['viewerSize']
@@ -31,6 +32,7 @@ export interface HealthyResponse {
type: 'stl' | 'png' | 'geometry'
}
customizerParams?: any
lastParameters?: any
}
export function createHealthyResponse({
@@ -39,12 +41,14 @@ export function createHealthyResponse({
consoleMessage,
type,
customizerParams,
}: {
lastParameters,
}: {
date: Date
data: any
consoleMessage: string
type: HealthyResponse['objectData']['type']
customizerParams?: any
lastParameters?: any
}): HealthyResponse {
return {
status: 'healthy',
@@ -58,6 +62,7 @@ export function createHealthyResponse({
time: date,
},
customizerParams,
lastParameters,
}
}