'elements-color-picker', 'title' => esc_html__( 'Color Sampler', 'elementor' ), 'default' => Manager::STATE_ACTIVE, 'release_status' => Experiments_Manager::RELEASE_STATUS_BETA, 'description' => esc_html__( 'Adds a new color picker functionality that allows choose a color from other elements settings.', 'elementor' ), ]; } /** * Enqueue the `Color-Thief` library to pick colors from images. * * @return void */ public function enqueue_scripts() { wp_enqueue_script( 'color-thief', $this->get_js_assets_url( 'color-thief', 'assets/lib/color-thief/', true ), [ 'elementor-editor' ], ELEMENTOR_VERSION, true ); } /** * Module constructor - Initialize the Eye-Dropper module. * * @return void */ public function __construct() { add_action( 'elementor/editor/after_enqueue_scripts', [ $this, 'enqueue_scripts' ] ); } }