File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
invokeai/frontend/web/src/features/controlLayers/konva Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -636,9 +636,10 @@ export const getPointerType = (e: KonvaEventObject<PointerEvent>): 'mouse' | 'pe
636636} ;
637637
638638/**
639- * Gets the color under the cursor on a Konva stage.
640- * @param stage The konva stage
641- * @returns The color under the cursor, or null if the cursor is not over the stage
639+ * Gets the color at the given coordinate on the stage.
640+ * @param stage The konva stage.
641+ * @param coord The coordinate to get the color at. This must be the _absolute_ coordinate on the stage.
642+ * @returns The color under the coordinate, or null if there was a problem getting the color.
642643 */
643644export const getColorAtCoordinate = ( stage : Konva . Stage , coord : Coordinate ) : RgbColor | null => {
644645 const ctx = stage
You can’t perform that action at this time.
0 commit comments