Ennoriel / svelte-awesome-color-picker

svelte-awesome-color-picker is a highly customizable svelte color picker component library
https://svelte-awesome-color-picker.vercel.app
MIT License
128 stars 11 forks source link

a way to specify position of the picker dialog relative to the button which opens it? #87

Open gizmolab10 opened 6 days ago

gizmolab10 commented 6 days ago

the dialog opens with its top below the button and its left center-aligned on it. may I request an option to specify an offset relative to that point? i.e., the offset for that point is 0, 0. So, an offset of (-100, 0) would shift it left 100 pixels.

Ennoriel commented 3 days ago

The library is already super customizable. You can override most wrapper components and override the css.

Would that example suits you: https://svelte.dev/repl/6f7ee7d707bb4870ac717752f36fa3ca?version=4.2.19 ?

gizmolab10 commented 2 days ago

PERFECT! Thank you. Did I miss this in your dox?

Sorry to ask again, is there a way to change the shape of the dot, to a rectangle of size w, h?

Jonathan Sand Software Architect @.***

On Sep 25, 2024, at 2:54 AM, Maxime Dupont @.***> wrote:

The library is already super customizable. You can override most wrapper components and override the css. Would that example suits you: https://svelte.dev/repl/6f7ee7d707bb4870ac717752f36fa3ca?version=4.2.19 ? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

Ennoriel commented 2 days ago

Which dot?

I updated the REPL.

gizmolab10 commented 15 hours ago

The button that appears next to the label, when the dialog is hidden.

Jonathan Sand Software Architect @.***

On Sep 25, 2024, at 1:07 PM, Maxime Dupont @.***> wrote:

Which dot? I updated the REPL. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>