How to use the @bentley/imodeljs-frontend.ToolSettingsPropertyItem function in @bentley/imodeljs-frontend

To help you get started, we’ve selected a few @bentley/imodeljs-frontend examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github imodeljs / imodeljs / plugins / geo-photo / src / ui / GPDialogUiProvider.tsx View on Github external
private syncPhase1Counts(final: boolean) {
    if (final) {
      // discard stopwatch and sync.
      this._reportStopWatch = undefined;
    } else {
      // start stopwatch if not already going.
      if (!this._reportStopWatch) {
        this._reportStopWatch = new StopWatch(undefined, true);
        this._nextET = 0;
      } else if (this._reportStopWatch.elapsed.milliseconds < this._nextET) {
        return;
      }
      this._nextET += 200;
    }
    const properties = [
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.currentFolder), this.currentFolderPropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.currentFile), this.currentFilePropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.photoCount), this.photoCountPropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.panoramaCount), this.panoramaCountPropertyName),
    ];
    this.onSyncPropertiesChangeEvent.emit({ properties });
  }
github imodeljs / imodeljs / plugins / geo-photo / src / ui / GPDialogUiProvider.tsx View on Github external
// discard stopwatch and sync.
      this._reportStopWatch = undefined;
    } else {
      // start stopwatch if not already going.
      if (!this._reportStopWatch) {
        this._reportStopWatch = new StopWatch(undefined, true);
        this._nextET = 0;
      } else if (this._reportStopWatch.elapsed.milliseconds < this._nextET) {
        return;
      }
      this._nextET += 200;
    }
    const properties = [
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.currentFolder), this.currentFolderPropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.currentFile), this.currentFilePropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.photoCount), this.photoCountPropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.panoramaCount), this.panoramaCountPropertyName),
    ];
    this.onSyncPropertiesChangeEvent.emit({ properties });
  }
github imodeljs / imodeljs / plugins / geo-photo / src / ui / GPDialogUiProvider.tsx View on Github external
if (final) {
      // discard stopwatch and sync.
      this._reportStopWatch = undefined;
    } else {
      // start stopwatch if not already going.
      if (!this._reportStopWatch) {
        this._reportStopWatch = new StopWatch(undefined, true);
        this._nextET = 0;
      } else if (this._reportStopWatch.elapsed.milliseconds < this._nextET) {
        return;
      }
      this._nextET += 200;
    }
    const properties = [
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.currentFolder), this.currentFolderPropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.currentFile), this.currentFilePropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.photoCount), this.photoCountPropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.panoramaCount), this.panoramaCountPropertyName),
    ];
    this.onSyncPropertiesChangeEvent.emit({ properties });
  }
github imodeljs / imodeljs / plugins / geo-photo / src / ui / GPDialogUiProvider.tsx View on Github external
this._reportStopWatch = undefined;
    } else {
      // start stopwatch if not already going.
      if (!this._reportStopWatch) {
        this._reportStopWatch = new StopWatch(undefined, true);
        this._nextET = 0;
      } else if (this._reportStopWatch.elapsed.milliseconds < this._nextET) {
        return;
      }
      this._nextET += 200;
    }
    const properties = [
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.currentFolder), this.currentFolderPropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.currentFile), this.currentFilePropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.photoCount), this.photoCountPropertyName),
      new ToolSettingsPropertyItem(new ToolSettingsValue(this.panoramaCount), this.panoramaCountPropertyName),
    ];
    this.onSyncPropertiesChangeEvent.emit({ properties });
  }
github imodeljs / imodeljs / plugins / iot-demo / src / ui / IotSettingsDialog.tsx View on Github external
private _onRun = () => {
    // this._closeDialog();  // NOTE: to close the dialog, uncomment this line

    const { currentTab, sensor, startTime, endTime } = this.state;

    const properties = [];
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(this.props.dataProvider.getAnimationTypeFromString(sensor)), this.props.dataProvider.currentAnimationTypePropertyName));
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(startTime), this.props.dataProvider.startTimePropertyName));
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(endTime), this.props.dataProvider.endTimePropertyName));
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(1 === currentTab ? true : false), this.props.dataProvider.monitorModePropertyName));

    this.props.dataProvider.processChangesInUi(properties);
  }
github imodeljs / imodeljs / plugins / iot-demo / src / ui / IotSettingsDialog.tsx View on Github external
private _onRun = () => {
    // this._closeDialog();  // NOTE: to close the dialog, uncomment this line

    const { currentTab, sensor, startTime, endTime } = this.state;

    const properties = [];
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(this.props.dataProvider.getAnimationTypeFromString(sensor)), this.props.dataProvider.currentAnimationTypePropertyName));
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(startTime), this.props.dataProvider.startTimePropertyName));
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(endTime), this.props.dataProvider.endTimePropertyName));
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(1 === currentTab ? true : false), this.props.dataProvider.monitorModePropertyName));

    this.props.dataProvider.processChangesInUi(properties);
  }
github imodeljs / imodeljs / plugins / iot-demo / src / ui / IotSettingsDialog.tsx View on Github external
private _onRun = () => {
    // this._closeDialog();  // NOTE: to close the dialog, uncomment this line

    const { currentTab, sensor, startTime, endTime } = this.state;

    const properties = [];
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(this.props.dataProvider.getAnimationTypeFromString(sensor)), this.props.dataProvider.currentAnimationTypePropertyName));
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(startTime), this.props.dataProvider.startTimePropertyName));
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(endTime), this.props.dataProvider.endTimePropertyName));
    properties.push(new ToolSettingsPropertyItem(new ToolSettingsValue(1 === currentTab ? true : false), this.props.dataProvider.monitorModePropertyName));

    this.props.dataProvider.processChangesInUi(properties);
  }
github imodeljs / imodeljs / plugins / geo-photo / src / ui / GPDialogUiProvider.tsx View on Github external
public syncLoadPhaseInUi() {
    const properties = [new ToolSettingsPropertyItem(new ToolSettingsValue(this.loadPhase), this.loadPhasePropertyName)];
    this.onSyncPropertiesChangeEvent.emit({ properties });
  }