Skip to content

Commit

Permalink
Fix points rendering (dot non-shaped mark with $PDSIZE=0).
Browse files Browse the repository at this point in the history
  • Loading branch information
vagran committed Nov 26, 2021
1 parent 27f3245 commit 1f9891d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DxfScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ export class DxfScene {
/* Points not displayed. */
return
}
if (this.pdSize <= 0) {
if (this.pdMode !== PdMode.DOT && this.pdSize <= 0) {
/* Currently not supported. */
return
}
Expand Down
2 changes: 1 addition & 1 deletion src/DxfViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ DxfViewer.DefaultOptions = {
* invisible on current background color.
*/
blackWhiteInversion: true,
/** Size in pixels for rasterized points. */
/** Size in pixels for rasterized points (dot mark). */
pointSize: 2,
/** Target angle for each segment of tessellated arc. */
arcTessellationAngle: 6 / 180 * Math.PI,
Expand Down

0 comments on commit 1f9891d

Please sign in to comment.