INNER CODE UNIT · TypeScript

newRatio

openocta/openocta · ui/src/ui/app.ts:1108

    const newRatio = Math.max(0.4, Math.min(0.7, ratio));
    this.splitRatio = newRatio;
    this.applySettings({ ...this.settings, splitRatio: newRatio });
  }

  showConfirm(message: string): Promise<boolean> {
    return new Promise((resolve) => {
      this.nativeResolveConfirm = resolve;
      this.nativeDialog = { kind: "confirm", message };
    });
  }

  showAlert(message: string): Promise<void> {
    return new Promise((resolve) => {
      this.nativeResolveAlert = resolve;
      this.nativeDialog = { kind: "alert", message };
    });
  }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…