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

[Feature] crosshiar can hide after a timeout when trigger is click #1676

Closed
xile611 opened this issue Dec 1, 2023 · 1 comment · Fixed by #1778
Closed

[Feature] crosshiar can hide after a timeout when trigger is click #1676

xile611 opened this issue Dec 1, 2023 · 1 comment · Fixed by #1778
Assignees
Labels
interaction interactions related to event or component

Comments

@xile611
Copy link
Contributor

xile611 commented Dec 1, 2023

What problem does this feature solve?

spec 如下:

const spec = {
    
    crosshair: {
      trigger: 'click',
      gridZIndex: 401,
      labelZIndex: 501,
      xField: {
        visible: true,
        bindingAxesIndex: [0],
        line: {
          visible: true,
          type: 'line',
          style: {
            opacity: 1,
            lineDash: [2, 2],
            lineWidth: 1,
            stroke: '#193D7A'
          }
        },
        label: {
          labelBackground: {
            style: {
              fill: '#193D7A',
              outerBorder: {
                stroke: '#193D7A'
              }
            }
          },
          visible: true
        }
      },
      yField: {
        bindingAxesIndex: [1],
        visible: true,
        line: {
          visible: true,
          type: 'line',
          style: {
            opacity: 1,
            lineDash: [2, 2],
            lineWidth: 1,
            stroke: '#193D7A'
          }
        },
        label: {
          labelBackground: {
            style: {
              fill: '#193D7A',
              outerBorder: {
                stroke: '#193D7A'
              }
            }
          },
          visible: true
        }
      }
    }
  };

What does the proposed API look like?

{
clickTimer?: number;
}
@xile611 xile611 added the interaction interactions related to event or component label Dec 11, 2023
@xile611 xile611 self-assigned this Dec 15, 2023
@xile611 xile611 mentioned this issue Dec 15, 2023
20 tasks
@xile611
Copy link
Contributor Author

xile611 commented Feb 2, 2024

supported in 1.9.0

@xile611 xile611 closed this as completed Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interaction interactions related to event or component
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant