Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-scaled-view

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-scaled-view - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

2

dist/ScaledView.svelte.d.ts

@@ -7,2 +7,4 @@ import { SvelteComponent } from "svelte";

max?: number | undefined;
scaleX?: number | undefined;
scaleY?: number | undefined;
};

@@ -9,0 +11,0 @@ events: {

13

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc