simonwep / gpickr Goto Github PK
View Code? Open in Web Editor NEWDemo of pickr integrated into another widget. A gradient-picker.
Home Page: https://simonwep.github.io/gpickr
License: MIT License
Demo of pickr integrated into another widget. A gradient-picker.
Home Page: https://simonwep.github.io/gpickr
License: MIT License
There's an error in gpickr.js - setLinearAngle, lines 403/404:
angle = typeof angle === 'number' ? angle : (normalize.angleToDegrees(angle) || (this._angles.find(v => v.name === angle) || {}).angle);
when angle = '0deg', normalize.angleToDegrees(angle) returns (correctly) 0, but in this case in the expression this is considered as logical "false", so lines 403/404 return a value of 'undefined' !
I solved it in the following way:
if (typeof angle !== 'number') { if ((angle = normalize.angleToDegrees(angle)) === null) { angle = (this._angles.find(v => v.name === angle) || {}).angle; } }
Hi There
today I have successfully implemented/integrated this project into WPOnion but I am not able to install it via NPM. so my wponion's release is on hold. until this gets released in NPM.
I hope you can get this released soon.
I am trying to set a gradient color via javascript function using below gradient css
radial-gradient(circle at bottom right, rgba(66, 68, 90, 1) 0%,rgba(66, 68, 90, 1) 0%,rgba(255, 168, 125, 1) 0%,rgba(255, 69, 69, 1) 100%)
And JS is
gpickr.setGradient('radial-gradient(circle at bottom right, rgba(66, 68, 90, 1) 0%,rgba(66, 68, 90, 1) 0%,rgba(255, 168, 125, 1) 0%,rgba(255, 69, 69, 1) 100%)')
when the above code used the output should look like below
Instead the output looks like
You can run the above JS in your demo via browser console and try
Hi,
I can't find any documentation on how to get the value once user has finished updating the GPickr
Can you please update it here or in docs on how to do it ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.