Skip to content
Snippets Groups Projects
property-group-interfaces.ts 1.98 KiB
Newer Older
  • Learn to ignore specific revisions
  • import { Measurement } from 'common/models/elements/element';
    
    export interface PositionProperties {
      [index: string]: unknown;
      xPosition: number;
      yPosition: number;
      gridColumn: number | null;
      gridColumnRange: number;
      gridRow: number | null;
      gridRowRange: number;
      marginLeft: Measurement;
      marginRight: Measurement;
      marginTop: Measurement;
      marginBottom: Measurement;
      zIndex: number;
    }
    
    export interface DimensionProperties {
      [index: string]: number | boolean | null;
      width: number;
      height: number;
      isWidthFixed: boolean;
      isHeightFixed: boolean;
      minWidth: number | null;
      maxWidth: number | null;
      minHeight: number | null;
      maxHeight: number | null;
    }
    
    
    export type Stylings = Partial<FontStyles & BorderStyles & OtherStyles>;
    export type BasicStyles = FontStyles & { backgroundColor: string };
    
    export interface OtherStyles {
      [index: string]: unknown;
      backgroundColor?: string;
      lineHeight?: number;
      itemBackgroundColor?: string;
      lineColoring?: boolean;
      lineColoringColor?: string;
      selectionColor?: string;
    }
    
    export interface FontStyles {
    
      [index: string]: unknown;
      fontColor: string;
      font: string;
      fontSize: number;
      bold: boolean;
      italic: boolean;
      underline: boolean;
    }
    
    
    export interface BorderStyles {
    
      [index: string]: unknown;
    
      borderWidth: number;
      borderColor: string;
      borderStyle: 'solid' | 'dotted' | 'dashed' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset';
      borderRadius: number;
    
    }
    
    export interface PlayerProperties {
      [index: string]: unknown;
      autostart: boolean;
      autostartDelay: number;
      loop: boolean;
      startControl: boolean;
      pauseControl: boolean;
      progressBar: boolean;
      interactiveProgressbar: boolean;
      volumeControl: boolean;
      defaultVolume: number;
      minVolume: number;
      muteControl: boolean;
      interactiveMuteControl: boolean;
      hintLabel: string;
      hintLabelDelay: number;
      activeAfterID: string;
      minRuns: number;
      maxRuns: number | null;
      showRestRuns: boolean;
      showRestTime: boolean;
      playbackTime: number;
    }