bubkoo / hexo-filter-sequence

Generate UML sequence diagrams for Hexo.
MIT License
39 stars 12 forks source link

sequence-diagram.js:792Uncaught ReferenceError: Raphael is not defined #1

Closed iam888 closed 7 years ago

iam888 commented 7 years ago

Hi: js error

sequence-diagram.js:792Uncaught ReferenceError: Raphael is not defined
    at sequence-diagram.js:792
    at sequence-diagram.js:1468
(anonymous) @ sequence-diagram.js:792
(anonymous) @ sequence-diagram.js:1468
(index):403 Uncaught ReferenceError: Diagram is not defined
    at (index):403
(anonymous) @ (index):403

please close it

ok.i got it, just missing the raphael js .

hexo.config.flowchart = assign({
  raphael: 'https://cdn.bootcss.com/raphael/2.2.7/raphael.min.js',# That's it 
  webfont: 'https://cdnjs.cloudflare.com/ajax/libs/webfont/1.6.27/webfontloader.js',
  snap: 'https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.4.1/snap.svg-min.js',
  underscore: 'https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js',
  sequence: 'https://cdnjs.cloudflare.com/ajax/libs/js-sequence-diagrams/1.0.6/sequence-diagram-min.js',
  css: '',
  options: {
    theme: 'simple'
  }
}, hexo.config.flowchart);
itwen commented 7 years ago

Why did I add it, the problem remains unresolved