UNPKG

survey-creator-core

Version:

A framework-independent core package of the SurveyJS Survey Creator component. With Survey Creator, you can visually design complex, interactive JSON forms and surveys in a drag-and-drop interface.

33 lines (32 loc) 954 B
export declare class SurveyLogicExpressionUpdater { private operand; private constChanges; constructor(expresion: string); update(varName: string, oldValue: any, newValue: any): void; get isModified(): boolean; toString(): string; private constToString; private binaryToString; private operandToString; private operatorToString; static operatorText: { less: string; lessorequal: string; greater: string; greaterorequal: string; equal: string; notequal: string; plus: string; minus: string; mul: string; div: string; power: string; mod: string; negate: string; }; private updateOperand; private hasVarName; private updateOperandConst; private getCorrectNewValue; } export declare function updateLogicExpression(expression: string, varName: string, oldValue: any, newValue: any): string;