SaswatPadhi / pseudocode.js

Beautiful pseudocode for the Web
https://saswatpadhi.github.io/pseudocode.js
MIT License
224 stars 33 forks source link

pseudocode.renderClass is undefined #36

Closed ginqi7 closed 2 years ago

ginqi7 commented 2 years ago

when I operate accoding to the README, i meet a problem is

pseudocode.renderClass is undefined image

and pseudocode.renderElement is ok.

image

SaswatPadhi commented 2 years ago

Hello,

I believe this error is because the pseudocode.js builds available on jsdelivr CDN are old.

The renderClass method was added recently (in #32) and I haven't yet pushed a new release for pseudocode.js. Thanks for noticing this. I will push a new build shortly.

ginqi7 commented 2 years ago

ok, I close this issue and will try new version later. thank you for your reply.

roife commented 1 year ago

It seems that the version on the CDN has not been updated yet.

Any updates recently?

SaswatPadhi commented 1 year ago

Hello,

Sorry about the delay. I just merged a pending PR and fixed a bunch of small issues, then pushed 2.3.0. The latest from CDN should now contain the renderClass API.

femtomc commented 1 year ago

Running into the following issue with this:

image
SaswatPadhi commented 1 year ago

Hi @femtomc,

I just pushed v2.4.1 with a fix for this and the other bug you reported. I have also added a test for renderClass now.

Please see https://jsfiddle.net/wz5r6cy9/ for a test.