Skip to content

[Arc] Clippath and Gradient for canvas #830

Description

@cycle4passion

Gauge Example

canvas layer does not to clip or show gradient.

Image

I think it's 2 fold... 1 issue is similar to what we recently added GeoClipPath as supporting the clip snippet for ClipPath is a little tricky for Canvas...

{#snippet clip()} {/snippet}

we might need to ArcClipPath (although I hate to keep adding a ClipPath for every shape :)). Might be a way to hook into the rendering call of Arc and bubble up to ClipPath...
also, gradients in Canvas are a little tricky as they don't have the concept of objectBoundingBox and gets tricky to great "relative" gradients (not just global) - https://github.com/techniq/layerchart/blob/next/packages/layerchart/src/lib/components/LinearGradient.svelte#L163-L171

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions