Something went wrong. Try again.
Monorepo for Tangled forked from tangled.org/core
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637<svelte:options namespace="svg" />
<script lang="ts" module> import { createContext } from "svelte";
export const [glintOf, setGlint] = createContext<string>();</script>
<script lang="ts"> import type { Snippet } from "svelte"; import type { Prism } from "#lib/components/landing/selfhost/electronics/iso.ts";
interface Props { shape: Prism; /** The top face's fill; the walls take `side`. */ class?: string; side?: string; children?: Snippet; }
let { shape, class: className = "sh-top", side = "sh-side", children }: Props = $props();
const glint = glintOf(); const outline = $derived(`${shape.top} ${shape.side}`);</script>
<path d={shape.fill} class={className} stroke="none" /><path d={shape.band} class={side} stroke="none" />{@render children?.()}<path d={shape.fill} fill="url(#{glint}-sheen)" stroke="none" /><path d={shape.top} fill="none" /><path d={shape.side} fill="none" /><g class="sh-glint" fill="none" stroke="url(#{glint}-glint)"> <path d={outline} stroke-width="3" filter="url(#{glint}-glow)" /> <path d={outline} /></g>