-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed default exports
- Loading branch information
Showing
60 changed files
with
254 additions
and
133 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,47 @@ | ||
import ModelCollection from "./ModelCollection"; | ||
import ModelDictionary from "./ModelDictionary"; | ||
import ModelObject from "./ModelObject"; | ||
|
||
import Board from "./boards"; | ||
import State from "./state"; | ||
import Directories from "./directories"; | ||
import Fan from "./fans"; | ||
import Heat from "./heat"; | ||
import HttpEndpoint from "./httpEndpoints"; | ||
import InputChannel from "./inputs/InputChannel"; | ||
import Job from "./job"; | ||
import Limits from "./limits"; | ||
import Message from "./messages"; | ||
import Move from "./move"; | ||
import Plugin from "./plugins"; | ||
import Scanner from "./scanner"; | ||
import Sensors from "./sensors"; | ||
import Spindle from "./spindles"; | ||
import UserSession from "./userSessions"; | ||
import Volume from "./volumes"; | ||
|
||
/** | ||
* Refer to the DSF/RRF documentation for descriptions of the object model fields | ||
*/ | ||
export class ObjectModel extends ModelObject { | ||
readonly boards: ModelCollection<Board> = new ModelCollection(Board); | ||
readonly directories: Directories = new Directories(); | ||
readonly fans: ModelCollection<Fan> = new ModelCollection(Fan); | ||
readonly global: ModelDictionary<any> = new ModelDictionary(false); | ||
readonly heat: Heat = new Heat(); | ||
readonly httpEndpoints: ModelCollection<HttpEndpoint> = new ModelCollection(HttpEndpoint); | ||
readonly inputs: ModelCollection<InputChannel> = new ModelCollection(InputChannel); | ||
readonly job: Job = new Job(); | ||
readonly limits: Limits = new Limits(); | ||
readonly messages: ModelCollection<Message> = new ModelCollection(Message); // must be manually cleared after updates | ||
readonly move: Move = new Move(); | ||
readonly plugins: ModelDictionary<Plugin> = new ModelDictionary(true, Plugin); | ||
readonly scanner: Scanner = new Scanner(); | ||
readonly sensors: Sensors = new Sensors(); | ||
readonly spindles: ModelCollection<Spindle> = new ModelCollection(Spindle); | ||
readonly state: State = new State(); | ||
readonly userSessions: ModelCollection<UserSession> = new ModelCollection(UserSession); | ||
readonly volumes: ModelCollection<Volume> = new ModelCollection(Volume); | ||
} | ||
|
||
export default ObjectModel |
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
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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
import ModelCollection from "../ModelCollection"; | ||
import Heater from "./Heater"; | ||
import ModelObject from "../ModelObject"; | ||
import Heater from "./Heater"; | ||
|
||
export default class Heat extends ModelObject { | ||
export class Heat extends ModelObject { | ||
bedHeaters: Array<number> = new Array<number>(); | ||
chamberHeaters: Array<number> = new Array<number>(); | ||
coldExtrudeTemperature: number = 160; | ||
coldRetractTemperature: number = 90; | ||
readonly heaters: ModelCollection<Heater> = new ModelCollection(Heater); | ||
} | ||
|
||
export default Heat | ||
|
||
export * from "./Heater"; | ||
export * from "./HeaterModel"; | ||
export * from "./HeaterMonitor"; |
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 |
---|---|---|
|
@@ -13,3 +13,5 @@ export enum CodeChannel { | |
autopause = 11, | ||
unknown = 12 | ||
} | ||
|
||
export default CodeChannel |
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 |
---|---|---|
|
@@ -7,3 +7,5 @@ export enum Compatibility { | |
Repetier = "Repetier", | ||
NanoDLP = "NanoDLP" | ||
} | ||
|
||
export default Compatibility |
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
import ModelObject from "../ModelObject"; | ||
import { ModelObject } from "../ModelObject"; | ||
|
||
export enum ThumbnailFormat { | ||
jpeg = 'jpeg', | ||
png = 'png', | ||
qoi = 'qoi' | ||
} | ||
|
||
export default class ThumbnailInfo extends ModelObject { | ||
export class ThumbnailInfo extends ModelObject { | ||
data: string | null = null; | ||
format: ThumbnailFormat = ThumbnailFormat.png; | ||
height: number = 0; | ||
offset: number = 0; | ||
size: number = 0; | ||
width: number = 0; | ||
} | ||
|
||
export default ThumbnailInfo |
Oops, something went wrong.