microsoft / microsoft/maker.js

Exception While getting outline for the font model

Open
#567 4 comments 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

Throwing error while getting outline from font model.

image

With debug otherElement getting undefined and this.removeValue(otherElement, valueId); method is using valueIds of otherElement which undefined.

image

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

Start by reproducing the exception while getting an outline from the font model, then trace the path involving otherElement and this.removeValue(otherElement, valueId). Determine why otherElement is undefined before its valueIds are used. Done means the outline request no longer throws and the relevant behavior is covered by a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.