• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

HTML5 Canvas Cannot set property 'y' of undefined?

Engaged ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

The instance is very clearly defined: 

 

Defined.png

 

External JS file: 

 

APDHMIDM.png

 

This has never been an issue before, any idea what the problem could be now? 

 

Thanks. 

 

 

TOPICS
Error

Views

204

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Apr 28, 2021 Apr 28, 2021

First step of debugging, always: Confirm your assumptions.

 

You assume exportRoot.Mark exists. You assume exportRoot.APDHMIDM exists. Confirm this is true. Stick some console.log() statements in there that display them.

Votes

Translate

Translate
LEGEND ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

First step of debugging, always: Confirm your assumptions.

 

You assume exportRoot.Mark exists. You assume exportRoot.APDHMIDM exists. Confirm this is true. Stick some console.log() statements in there that display them.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

LATEST

Thanks for that!

 

It turns out that exportRoot.Mark was mis-Instance named as b_Mark which was the problem.

 

Looking at the line in question I assumed the issue was APDHMIDM  since I would surely never make such a stupid mistake as not naming my button selection marker correctly... which is exactly what happened.

 

I appreciate your help, thanks man!

 

 

 

 

 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines