mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-06-06 13:53:54 +02:00
Merge branch 'dev' into next. Rename next to v2
This commit is contained in:
@@ -22,7 +22,7 @@ Install the Core plugin by adding the following to your `Cargo.toml` file:
|
||||
[dependencies]
|
||||
tauri-plugin-positioner = "1.0"
|
||||
# or through git
|
||||
tauri-plugin-positioner = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "next" }
|
||||
tauri-plugin-positioner = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
|
||||
```
|
||||
|
||||
You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
|
||||
@@ -40,11 +40,11 @@ yarn add tauri-plugin-positioner-api
|
||||
Or through git:
|
||||
|
||||
```sh
|
||||
pnpm add https://github.com/tauri-apps/tauri-plugin-positioner#next
|
||||
pnpm add https://github.com/tauri-apps/tauri-plugin-positioner#v2
|
||||
# or
|
||||
npm add https://github.com/tauri-apps/tauri-plugin-positioner#next
|
||||
npm add https://github.com/tauri-apps/tauri-plugin-positioner#v2
|
||||
# or
|
||||
yarn add https://github.com/tauri-apps/tauri-plugin-positioner#next
|
||||
yarn add https://github.com/tauri-apps/tauri-plugin-positioner#v2
|
||||
```
|
||||
|
||||
## Usage
|
||||
@@ -69,7 +69,7 @@ fn main() {
|
||||
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
|
||||
|
||||
```javascript
|
||||
import { move_window, Position } from 'tauri-plugin-positioner-api';
|
||||
import { move_window, Position } from "tauri-plugin-positioner-api";
|
||||
|
||||
move_window(Position.TopRight);
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user