how to use extendscript to get colorsampler infomation like the Info Panel?
I learned cep extension of Photoshop recently and wrote a simple cep extension for showing HSL color.
I know the basic use of app.activeDocument.colorSamplers, but there are 2 problems I couldn't solve or find any related stuff:
1. how to get the color under current cursor?
2. how to get the before and after colorsampler value when selecting an adjustment layer? (colorSamplers just return the before color value)
The Info panel have both information as following screenshot shows.

Here's the extension code if you are interested in it:
GitHub - XiaoXiaoLui/photoshop_hsl_plugin: html extension for showing hsl color in photoshop
By the way, why doesn't photoshop support HSL color just in the color picker which I think is more commonly used than HSB? And I can't believe it that I coundn't even find a plugin to do it.
