-
Notifications
You must be signed in to change notification settings - Fork 69
allow setting label font #174
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
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
0491be5
to
cb409c1
Compare
81981a0
to
1bbf81a
Compare
cb409c1
to
cdf64ac
Compare
1bbf81a
to
de1e52d
Compare
cdf64ac
to
ddc25b7
Compare
de1e52d
to
be9abee
Compare
ddc25b7
to
f7580eb
Compare
be9abee
to
c6fdf4b
Compare
f7580eb
to
903c8a9
Compare
c6fdf4b
to
c97bb6a
Compare
903c8a9
to
eec66a0
Compare
c97bb6a
to
26e697c
Compare
26e697c
to
a469515
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed a469515 in 1 minute and 52 seconds. Click for details.
- Reviewed
114
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
11
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/interaction.ts:172
- Draft comment:
Minor formatting: Removed semicolon after the zoom event handler callback. Ensure consistency with coding style. - Reason this comment was not posted:
Confidence changes required:33%
<= threshold70%
None
2. src/label_rendering.ts:32
- Draft comment:
Added a new private 'font' property with default 'verdana'. This improves configurability. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
3. src/label_rendering.ts:47
- Draft comment:
Set the label font from options if provided, otherwise default to 'verdana'. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
4. src/label_rendering.ts:80
- Draft comment:
Passing 'this.font' to the DepthTree constructor ensures consistent font usage for label measurements. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
5. src/label_rendering.ts:271
- Draft comment:
Updated canvas text rendering to use the dynamic font property instead of hardcoding 'verdana'. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
6. src/label_rendering.ts:387
- Draft comment:
Modified 'measure_text' to accept a font parameter and use it when setting context.font. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
7. src/label_rendering.ts:434
- Draft comment:
Added a 'font' member to DepthTree to propagate the label font setting. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
8. src/label_rendering.ts:448
- Draft comment:
DepthTree constructor now accepts a 'font' parameter and assigns it to the instance. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
9. src/label_rendering.ts:530
- Draft comment:
Updated the insert_point method to pass the font to measure_text, ensuring proper measurement. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
10. src/types.ts:516
- Draft comment:
Extended LabelOptions with an optional 'font' property (default 'verdana') for label configuration. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
11. src/interaction.ts:175
- Draft comment:
Typographical issue: A semicolon seems to be missing after the closing parenthesis on this line. This is inconsistent with similar lines in the file (e.g., line 177). Please consider adding a semicolon for consistency. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 0% vs. threshold = 70% While the comment points out an actual inconsistency in semicolon usage, this is a very minor stylistic issue that would typically be handled by a linter or code formatter. The code will work fine either way. None of the priority rules mention semicolon consistency. This seems like the kind of nitpicky comment we should avoid. The code base may have specific style guidelines around semicolon usage that I'm not aware of. Inconsistent style could make the code harder to maintain. Even if there are style guidelines, this is exactly the kind of thing that should be enforced by automated tools like ESLint or Prettier, not manual code review comments. This comment about semicolon consistency is too minor and should be handled by automated tools rather than code review.
Workflow ID: wflow_JzJcbSmYQMjunSv5
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
298fe3a
to
530be52
Compare
a469515
to
a10486b
Compare
a10486b
to
5d28dde
Compare
838f700
to
3d173f5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed 3d173f5 in 50 seconds. Click for details.
- Reviewed
34
lines of code in2
files - Skipped
0
files when reviewing. - Skipped posting
3
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src/types.ts:8
- Draft comment:
Removed unused 'TypeMap' from the Apache Arrow import. Confirm it's not needed elsewhere. - Reason this comment was not posted:
Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. src/types.ts:520
- Draft comment:
Added missing semicolon in LabelOptions for 'font'; ensures consistent syntax. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold70%
This comment is purely informative, as it only states that a semicolon was added for consistency. It doesn't provide a suggestion, ask for confirmation, or point out a potential issue.
3. src/wrap_arrow.ts:17
- Draft comment:
Removed duplicate 'extent' import from d3-array; only one instance is required. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold70%
This comment is purely informative, stating that a duplicate import was removed. It doesn't provide a suggestion or ask for confirmation about an intentional change. It violates the rule against making purely informative comments.
Workflow ID: wflow_mP8mLKdnzksdaca2
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
3d173f5
to
bdea4f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important
Looks good to me! 👍
Reviewed bdea4f6 in 47 seconds. Click for details.
- Reviewed
47
lines of code in3
files - Skipped
0
files when reviewing. - Skipped posting
4
draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. package.json:4
- Draft comment:
Version downgrade detected. Downgrading from '3.0.0-next.50' to '3.0.0-next.47' can confuse dependency resolution. Bump the version instead. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%
<= threshold70%
This comment is related to dependency version changes, which is not allowed according to the rules. The comment suggests a version bump instead of a downgrade, but since it involves dependency management, it should be ignored.
2. src/types.ts:522
- Draft comment:
Minor formatting: added semicolon after 'font?: string'. This improves consistency. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
3. src/wrap_arrow.ts:17
- Draft comment:
Removed duplicate import of 'extent' from 'd3-array'. This cleanup is good. - Reason this comment was not posted:
Confidence changes required:0%
<= threshold70%
None
4. src/types.ts:522
- Draft comment:
Ensure the new 'font' option in LabelOptions is utilized in label rendering. Currently, it's only defined in types. - Reason this comment was not posted:
Confidence changes required:66%
<= threshold70%
None
Workflow ID: wflow_x87kdFAtN7dd0OyA
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
@@ -1,7 +1,7 @@ | |||
{ | |||
"name": "deepscatter", | |||
"type": "module", | |||
"version": "3.0.0-next.50", | |||
"version": "3.0.0-next.47", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The package version in this PR is being downgraded from 3.0.0-next.50
to 3.0.0-next.47
. This appears to be unintentional, as adding new features (like custom label fonts) should typically be accompanied by a version increment rather than a decrement. Please ensure the version number is properly incremented according to the project's versioning policy.
"version": "3.0.0-next.47", | |
+ "version": "3.0.0-next.51", |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
Merge activity
|
Important
Add support for setting label font in Deepscatter via
font
option inLabelMaker
.font
option inLabelMaker
inlabel_rendering.ts
.measure_text()
inlabel_rendering.ts
to use specifiedfont
.DepthTree
constructor inlabel_rendering.ts
to acceptfont
parameter.font
option toLabelOptions
intypes.ts
.wrap_arrow.ts
.This description was created by
for bdea4f6. You can customize this summary. It will automatically update as commits are pushed.