🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@sveltejs/pancake

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/pancake - npm Package Compare versions

Comparing version
0.0.16
to
0.0.17
+22
components/SvgRect.svelte
<script>
import { getChartContext } from './Chart.svelte';
export let x1 = 0;
export let x2 = 1;
export let y1 = 0;
export let y2 = 1;
const { x_scale, y_scale } = getChartContext();
$: left = $x_scale(x1);
$: right = $x_scale(x2);
$: top = $y_scale(y1);
$: bottom = $y_scale(y2);
</script>
<slot
x={Math.min(left, right)}
y={Math.min(top, bottom)}
width={Math.abs(right - left)}
height={Math.abs(bottom - top)}
></slot>
+4
-0
# @sveltejs/pancake changelog
## 0.0.17
* Add `<SvgRect>` component, similar to `<Box>`
## 0.0.16

@@ -4,0 +8,0 @@

+0
-1
<script>
import { getChartContext } from './Chart.svelte';
import { get_ticks } from '../utils/ticks.mjs';

@@ -5,0 +4,0 @@ export let x1 = 0;

@@ -15,2 +15,3 @@ export { default as Chart } from './components/Chart.svelte';

export { default as SvgLine } from './components/SvgLine.svelte';
export { default as SvgRect } from './components/SvgRect.svelte';
export { default as SvgScatterplot } from './components/SvgScatterplot.svelte';

@@ -17,0 +18,0 @@ export { default as SvgPoint } from './components/SvgPoint.svelte';

{
"name": "@sveltejs/pancake",
"version": "0.0.16",
"version": "0.0.17",
"description": "Experimental charting library for Svelte",

@@ -5,0 +5,0 @@ "module": "index.mjs",