@tauri-apps/api
Advanced tools
Comparing version
@@ -203,3 +203,3 @@ import { SERIALIZE_TO_IPC_FN } from './core.js'; | ||
toPhysical(scaleFactor) { | ||
return new PhysicalPosition(this.x * scaleFactor, this.x * scaleFactor); | ||
return new PhysicalPosition(this.x * scaleFactor, this.y * scaleFactor); | ||
} | ||
@@ -256,3 +256,3 @@ [SERIALIZE_TO_IPC_FN]() { | ||
toLogical(scaleFactor) { | ||
return new LogicalPosition(this.x / scaleFactor, this.x / scaleFactor); | ||
return new LogicalPosition(this.x / scaleFactor, this.y / scaleFactor); | ||
} | ||
@@ -259,0 +259,0 @@ [SERIALIZE_TO_IPC_FN]() { |
@@ -9,2 +9,12 @@ /** | ||
* ``` | ||
* | ||
* ### Vanilla JS API | ||
* | ||
* The above import syntax is for JavaScript/TypeScript with a bundler. If you're using vanilla JavaScript, you can use the global `window.__TAURI__` object instead. It requires `app.withGlobalTauri` configuration option enabled. | ||
* | ||
* @example | ||
* ```js | ||
* const { event, window: tauriWindow, path } = window.__TAURI__; | ||
* ``` | ||
* | ||
* @module | ||
@@ -11,0 +21,0 @@ */ |
{ | ||
"name": "@tauri-apps/api", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Tauri API definitions", | ||
@@ -5,0 +5,0 @@ "funding": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
616674
0.14%15215
0.07%