Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: allow disabling of axis labels using text={false} or text={null}#95

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gka merged 3 commits intomainfromfeat/axis-text-disabling
May 29, 2025

Conversation

@gka
Copy link
Contributor

@gkagka commentedMay 29, 2025
edited
Loading

resolves#77

This pull request introduces a newtext property to theAxisX andAxisY components, enabling users to toggle tick labels on or off. The changes improve flexibility in axis customization and include updates to related helper components, examples, and tests.

Examples and Documentation:

  • Added anew example showcasing how to use thetext property to create minor tick lines without labels.

Testing Improvements:

  • Added a test case to validate the behavior of thetext property inAxisX, ensuring tick labels are omitted whentext is set tonull.

@gkagka requested a review fromCopilotMay 29, 2025 11:42
@netlify
Copy link

netlifybot commentedMay 29, 2025
edited
Loading

Deploy Preview forsvelteplot ready!

NameLink
🔨 Latest commitdead08e
🔍 Latest deploy loghttps://app.netlify.com/projects/svelteplot/deploys/68384ade14bf3d0008f82467
😎 Deploy Previewhttps://deploy-preview-95--svelteplot.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify project configuration.

Copy link
Contributor

CopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR adds a newtext prop toAxisX andAxisY to allow disabling tick labels, updates internal helpers to respect this flag, and provides examples and tests illustrating the feature.

  • Introducetext prop inAxisX,AxisY, and their base helpers.
  • Wrap label rendering inBaseAxisX.svelte andBaseAxisY.svelte withif (text) guards.
  • Add a Svelte example (major-minor.svelte) and a unit test forAxisX.

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
src/lib/marks/helpers/BaseAxisX.svelteAddedtext prop and conditional label rendering (plus leftover debug).
src/lib/marks/helpers/BaseAxisY.svelteAddedtext prop and wrapped label loops inif (text).
src/lib/marks/AxisX.svelteExposedtext prop to the base helper.
src/lib/marks/AxisY.svelteExposedtext prop to the base helper.
src/tests/axisX.test.tsNew test verifying labels are omitted whentext isnull.
src/routes/examples/axis/major-minor.svelteExample showing major and minor ticks with labels disabled.

@github-actions
Copy link

📦 Preview package for this PR is published!

Version:0.2.9-pr-95.0

Install it with:

npm install svelteplot@pr-95# or install the specific versionnpm install svelteplot@0.2.9-pr-95.0
github-actions[bot] reacted with thumbs up emojigithub-actions[bot] reacted with rocket emoji

@github-actions
Copy link

📦 Preview package for this PR is published!

Version:0.2.9-pr-95.1

Install it with:

npm install svelteplot@pr-95# or install the specific versionnpm install svelteplot@0.2.9-pr-95.1
github-actions[bot] reacted with thumbs up emojigithub-actions[bot] reacted with rocket emoji

@gkagka merged commite46635d intomainMay 29, 2025
8 checks passed
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

Copilot code reviewCopilotCopilot left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Axis does not have text channel

2 participants

@gka

[8]ページ先頭

©2009-2025 Movatter.jp