mirror of
https://github.com/sveltejs/svelte.git
synced 2024-11-29 00:22:05 +01:00
993b40201c
* New FAQ, new renderer * Push blog stuff * Fix blog posts * Add tutorial to be rendered * Update documentation/content/blog/2023-03-09-zero-config-type-safety.md Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> * Update documentation/content/blog/2023-03-09-zero-config-type-safety.md Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> * Revamp a lot of renderer, make it (soft) compatible with sveltekit * Remove markdown types * Clean up faq +page * Document stuff * Make the options more explicity * chore(site-2): Restructure docs pt 2 (#8604) * Push * Update readme * Push * inor accessibility fix * minr stuff * Add prepare * Run prettier * Remove test script * pnpm update * Update sites/svelte.dev/src/routes/examples/[slug]/+page.svelte Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> * Update sites/svelte.dev/package.json Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> --------- Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com> --------- Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
41 lines
819 B
Svelte
41 lines
819 B
Svelte
<svelte:options namespace="svg" />
|
|
|
|
<script>
|
|
export let x, y;
|
|
</script>
|
|
|
|
<rect
|
|
x="0"
|
|
y="0"
|
|
width="1400"
|
|
height="1800"
|
|
stroke="#ccc"
|
|
style="opacity: 0.5"
|
|
fill="none"
|
|
stroke-width="2"
|
|
/>
|
|
|
|
{#each { length: 8 } as _, i}
|
|
{#if i < 6}
|
|
<path d="M{(i + 1) * 200} 0 L{(i + 1) * 200} 1802" class="grid-line" />
|
|
{/if}
|
|
<path d="M0 {(i + 1) * 200} L1400 {(i + 1) * 200} " class="grid-line" />
|
|
{/each}
|
|
|
|
<path style="transform: translateX({x + 200}px)" d="M0 0 L0 1800" class="grid-line-xy" />
|
|
<path style="transform: translateY({y}px)" d="M0 400 L1400 400" class="grid-line-xy" />
|
|
<rect x="200" y="400" width="1000" height="1000" stroke="#999" fill="none" stroke-width="2" />
|
|
|
|
<style>
|
|
.grid-line {
|
|
stroke: #ccc;
|
|
opacity: 0.5;
|
|
stroke-width: 2;
|
|
}
|
|
|
|
.grid-line-xy {
|
|
stroke: tomato;
|
|
stroke-width: 2;
|
|
}
|
|
</style>
|