* feat: Progress bar widget enhancements -- Scaffold the widget for the first time * feat: Progress bar widget enhancements -- Change widget icon * feat: Progress bar widget enhancements -- Build property pane * feat: Progress bar widget enhancements -- Add a missing property, counterClockwise -- Rename some properties * feat: Progress bar widget enhancements -- Build the first MVP of the widget * feat: Progress bar widget enhancements -- Reset rows to 4 * feat: Progress bar widget enhancements -- Add Cypress test cases * feat: Progress bar widget enhancements -- Limit value by ranging from 0 to 100 * feat: Progress bar widget enhancements -- Make isIndeterminate property not to be JS convertible -- Hide progress bar and circular progress widget icon from entity explorer * feat: Progress bar widget enhancements -- Place indeterminate circular progress to be 100% fit into the container * feat: Progress bar widget enhancements -- Show result without rounding for the circular type * feat: Progress bar widget enhancements -- Comment out ProgressBar_spec.js * feat: Progress bar widget enhancements -- Remove circular progress and progressbar widgets from allowed list for list widget * feat: Progress bar widget enhancements -- Move ProgressBar_spec into CommentedScriptFiles directory
24 lines
727 B
TypeScript
24 lines
727 B
TypeScript
// This file contains common constants which can be used across the widget configuration file (index.ts), widget and component folders.
|
|
export const PROGRESS_WIDGET_CONSTANT = "";
|
|
|
|
export enum ProgressType {
|
|
LINEAR = "linear",
|
|
CIRCULAR = "circular",
|
|
}
|
|
|
|
export enum ProgressVariant {
|
|
DETERMINATE = "determinate",
|
|
INDETERMINATE = "indeterminate",
|
|
}
|
|
|
|
export const VIEWBOX_WIDTH = 100;
|
|
export const VIEWBOX_HEIGHT = 100;
|
|
export const VIEWBOX_HEIGHT_HALF = 50;
|
|
export const VIEWBOX_CENTER_X = 50;
|
|
export const VIEWBOX_CENTER_Y = 50;
|
|
export const STROKE_WIDTH = 8;
|
|
export const MAX_VALUE = 100;
|
|
export const LINEAR_PROGRESS_HEIGHT_RATIO = 15;
|
|
export const INDETERMINATE_SIZE = 44;
|
|
export const INDETERMINATE_THICKNESS = 3.6;
|