microsoft / microsoft/maker.js

black is defined wrong in exporter colors

Open
#433 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2k
Forks
302
Avg merge
21h 28m
Merged PRs (30d)
5

Description

When exporting dxf, the default color is black and is defined as 0 in core/exporter.ts
0 is an invalid value for autocad and it will fail to open the file for it.
The right black value is 255.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The DXF exporter is identified in core/exporter.ts; start by inspecting the default color definition used during DXF export. Update the black value to the valid AutoCAD value of 255, then verify that exported DXF files open correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.