svelte-scaled-view
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -7,2 +7,4 @@ import { SvelteComponent } from "svelte"; | ||
max?: number | undefined; | ||
scaleX?: number | undefined; | ||
scaleY?: number | undefined; | ||
}; | ||
@@ -9,0 +11,0 @@ events: { |
{ | ||
"name": "svelte-scaled-view", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"author": "Arumi Sakura", | ||
@@ -10,3 +10,3 @@ "license": "MIT", | ||
"build": "vite build && npm run package", | ||
"preview": "vite preview", | ||
"preview": "vite preview --port 6173", | ||
"package": "svelte-kit sync && svelte-package && publint", | ||
@@ -37,5 +37,6 @@ "prepublishOnly": "npm run package", | ||
"@playwright/test": "^1.28.1", | ||
"@sveltejs/adapter-auto": "^2.0.0", | ||
"@sveltejs/kit": "^1.20.4", | ||
"@sveltejs/adapter-auto": "^3.0.0", | ||
"@sveltejs/kit": "^2.0.0", | ||
"@sveltejs/package": "^2.2.2", | ||
"@sveltejs/vite-plugin-svelte": "^3.0.0", | ||
"@typescript-eslint/eslint-plugin": "^5.45.0", | ||
@@ -53,4 +54,4 @@ "@typescript-eslint/parser": "^5.45.0", | ||
"typescript": "^5.0.0", | ||
"vite": "^4.3.0", | ||
"vitest": "^0.25.3" | ||
"vite": "^5.0.0", | ||
"vitest": "^1.0.0" | ||
}, | ||
@@ -57,0 +58,0 @@ "svelte": "./dist/index.js", |
@@ -23,3 +23,3 @@ # Svelte Scaled View Library | ||
```typescript | ||
import ScaledView from 'svelte-scaled-view | ||
import ScaledView from 'svelte-scaled-view'; | ||
``` | ||
@@ -68,1 +68,11 @@ | ||
``` | ||
Retrieve the scale factors. | ||
```svelte | ||
<div class="container_with_a_non_zero_size"> | ||
<ScaledView fit="contain" let:scaleX let:scaleY> | ||
<div>this element is scaled by x:{scaleX} and y:{scaleY}</div> | ||
</ScaledView> | ||
</div> | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8283
29
77
19