Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drag Point Thickness parameter is ignored #1998

Open
janepie opened this issue Jan 5, 2023 · 0 comments
Open

Drag Point Thickness parameter is ignored #1998

janepie opened this issue Jan 5, 2023 · 0 comments
Labels

Comments

@janepie
Copy link

janepie commented Jan 5, 2023

Version of Dear PyGui

Version: 1.8.0
Operating System: Archlinux

My Issue/Question

Modifying the thickness parameter of add_drag_point does not change the thickness of the shown point, it stays the same size.

To Reproduce

Steps to reproduce the behavior:

  • Run the example below.
  • See how all points have the same size regardless of the thickness parameter value

Expected behavior

A drag point size should change according to the thickness parameter given.

Screenshots/Video

image

Standalone, minimal, complete and verifiable example

import dearpygui.dearpygui as dpg

dpg.create_context()
dpg.create_viewport(title='Test', width=1500, height=500)

with dpg.window(label="Annotation", tag="primary"):
    with dpg.plot(label="Image Plot", height=-1, width=-1, equal_aspects=True):
        dpg.add_drag_point(label="green", color=[86, 226, 61, 255], default_value=[0.1, 0.1])
        dpg.add_drag_point(label="red", color=[137, 21, 11, 255], default_value=[0.2, 0.1], thickness=1.0)
        dpg.add_drag_point(label="blue", color=[18, 42, 229, 255], default_value=[0.3, 0.1], thickness=400.0)

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.set_primary_window("primary", True)
dpg.start_dearpygui()
dpg.destroy_context()
@hoffstadt hoffstadt added the type: bug bug label Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants