Compare commits
No commits in common. "6d7e04868e2b158830d0d809f7924d5fdfedf450" and "781b5af1e8dcdb7c4cca55d2fe9eae6d14111175" have entirely different histories.
6d7e04868e
...
781b5af1e8
3 changed files with 3 additions and 68 deletions
65
public/Interfaces.d.ts
vendored
65
public/Interfaces.d.ts
vendored
|
@ -1,65 +0,0 @@
|
||||||
declare interface IHistoryState {
|
|
||||||
LastAction: string
|
|
||||||
MainContainer: IContainerModel
|
|
||||||
SelectedContainer: IContainerModel | null
|
|
||||||
SelectedContainerId: string
|
|
||||||
TypeCounters: Record<string, number>
|
|
||||||
}
|
|
||||||
|
|
||||||
declare interface IAvailableContainer {
|
|
||||||
Type: string
|
|
||||||
Width: number
|
|
||||||
Height: number
|
|
||||||
XPositionReference?: XPositionReference
|
|
||||||
Style: React.CSSProperties
|
|
||||||
}
|
|
||||||
|
|
||||||
declare interface IEditorState {
|
|
||||||
history: IHistoryState[]
|
|
||||||
historyCurrentStep: number
|
|
||||||
configuration: IConfiguration
|
|
||||||
}
|
|
||||||
|
|
||||||
declare interface IConfiguration {
|
|
||||||
AvailableContainers: IAvailableContainer[]
|
|
||||||
AvailableSymbols: IAvailableSymbol[]
|
|
||||||
MainContainer: IAvailableContainer
|
|
||||||
}
|
|
||||||
|
|
||||||
declare interface IContainerModel {
|
|
||||||
children: IContainerModel[]
|
|
||||||
parent: IContainerModel | null
|
|
||||||
properties: IProperties
|
|
||||||
userData: Record<string, string | number>
|
|
||||||
}
|
|
||||||
|
|
||||||
declare interface IProperties extends React.CSSProperties {
|
|
||||||
id: string
|
|
||||||
parentId: string | null
|
|
||||||
x: number
|
|
||||||
y: number
|
|
||||||
isRigidBody: boolean
|
|
||||||
XPositionReference?: XPositionReference
|
|
||||||
}
|
|
||||||
|
|
||||||
declare enum XPositionReference {
|
|
||||||
Left,
|
|
||||||
Center,
|
|
||||||
Right
|
|
||||||
}
|
|
||||||
|
|
||||||
declare interface IAvailableSymbol {
|
|
||||||
Name: string
|
|
||||||
XPositionReference: XPositionReference
|
|
||||||
Image: IImage
|
|
||||||
Width: number
|
|
||||||
Height: number
|
|
||||||
}
|
|
||||||
|
|
||||||
declare interface IImage {
|
|
||||||
Name: string
|
|
||||||
Url: string
|
|
||||||
Base64Image: string
|
|
||||||
Svg: string
|
|
||||||
}
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { IImage } from './IImage';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model of available symbol to configure the application */
|
* Model of available symbol to configure the application */
|
||||||
export interface IAvailableSymbol {
|
export interface IAvailableSymbolModel {
|
||||||
Name: string
|
Name: string
|
||||||
XPositionReference: XPositionReference
|
XPositionReference: XPositionReference
|
||||||
Image: IImage
|
Image: IImage
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { IAvailableContainer } from './IAvailableContainer';
|
import { IAvailableContainer } from './IAvailableContainer';
|
||||||
import { IAvailableSymbol } from './IAvailableSymbol';
|
import { IAvailableSymbolModel } from './IAvailableSymbol';
|
||||||
|
|
||||||
/** Model of configuration for the application to configure it */
|
/** Model of configuration for the application to configure it */
|
||||||
export interface IConfiguration {
|
export interface IConfiguration {
|
||||||
AvailableContainers: IAvailableContainer[]
|
AvailableContainers: IAvailableContainer[]
|
||||||
AvailableSymbols: IAvailableSymbol[]
|
AvailableSymbols: IAvailableSymbolModel[]
|
||||||
MainContainer: IAvailableContainer
|
MainContainer: IAvailableContainer
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue