raphamorim / origami.js

Powerful and Lightweight Library to create using HTML5 Canvas

Home Page:https://raphamorim.io/origamijs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: this.documentStyles is undefined (line 119 in origami.js)

MexieAndCo opened this issue · comments

commented

I'm getting the above error from try1.html (attached), line 105
105: origami('#canvas1')
.styles('.pacman')
.shape('.pacman')
.draw();
<style>
.pacman {
width: 100px;
height: 100px;
border-right: 60px solid transparent;
border-top: 60px solid red;
border-bottom: 60px solid red;
border-left: 60px solid red;
border-top-right-radius: 60px;
border-top-left-radius: 60px;
border-bottom-right-radius: 60px;
border-bottom-left-radius: 60px;
}
...
</style>

try1.html.txt

118: for (var i = 0; i < selectors.length; i++) {
119: var style = styleRuleValueFrom(selectors[i], (this.documentStyles[0] || []));
120: Origami.virtualStyles[selectors[i]] = style;

Okay, I'll see this tonight :)

Sorry by delay: Fixed 2525348

Thanks for the report! :)