{"action":"created","issue":{"url":"https://api.github.com/repos/dabeng/OrgChart/issues/391","repository_url":"https://api.github.com/repos/dabeng/OrgChart","labels_url":"https://api.github.com/repos/dabeng/OrgChart/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/dabeng/OrgChart/issues/391/comments","events_url":"https://api.github.com/repos/dabeng/OrgChart/issues/391/events","html_url":"https://github.com/dabeng/OrgChart/issues/391","id":330556728,"node_id":"MDU6SXNzdWUzMzA1NTY3Mjg=","number":391,"title":"html2canvas is not defined when export","user":{"login":"erb4f1dotama","id":34017687,"node_id":"MDQ6VXNlcjM0MDE3Njg3","avatar_url":"https://avatars3.githubusercontent.com/u/34017687?v=4","gravatar_id":"","url":"https://api.github.com/users/erb4f1dotama","html_url":"https://github.com/erb4f1dotama","followers_url":"https://api.github.com/users/erb4f1dotama/followers","following_url":"https://api.github.com/users/erb4f1dotama/following{/other_user}","gists_url":"https://api.github.com/users/erb4f1dotama/gists{/gist_id}","starred_url":"https://api.github.com/users/erb4f1dotama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erb4f1dotama/subscriptions","organizations_url":"https://api.github.com/users/erb4f1dotama/orgs","repos_url":"https://api.github.com/users/erb4f1dotama/repos","events_url":"https://api.github.com/users/erb4f1dotama/events{/privacy}","received_events_url":"https://api.github.com/users/erb4f1dotama/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T07:56:48Z","updated_at":"2018-06-08T08:04:31Z","closed_at":null,"author_association":"NONE","body":"I try to export orgChart to pdf or png. But, when i click the button export, always error.\r\n\r\nUncaught ReferenceError: html2canvas is not defined\r\n\r\nCan help me to solving this problem??"},"comment":{"url":"https://api.github.com/repos/dabeng/OrgChart/issues/comments/395682851","html_url":"https://github.com/dabeng/OrgChart/issues/391#issuecomment-395682851","issue_url":"https://api.github.com/repos/dabeng/OrgChart/issues/391","id":395682851,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTY4Mjg1MQ==","user":{"login":"erb4f1dotama","id":34017687,"node_id":"MDQ6VXNlcjM0MDE3Njg3","avatar_url":"https://avatars3.githubusercontent.com/u/34017687?v=4","gravatar_id":"","url":"https://api.github.com/users/erb4f1dotama","html_url":"https://github.com/erb4f1dotama","followers_url":"https://api.github.com/users/erb4f1dotama/followers","following_url":"https://api.github.com/users/erb4f1dotama/following{/other_user}","gists_url":"https://api.github.com/users/erb4f1dotama/gists{/gist_id}","starred_url":"https://api.github.com/users/erb4f1dotama/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erb4f1dotama/subscriptions","organizations_url":"https://api.github.com/users/erb4f1dotama/orgs","repos_url":"https://api.github.com/users/erb4f1dotama/repos","events_url":"https://api.github.com/users/erb4f1dotama/events{/privacy}","received_events_url":"https://api.github.com/users/erb4f1dotama/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T08:04:31Z","updated_at":"2018-06-08T08:04:31Z","author_association":"NONE","body":"I have try  to import html2canvas in my js file.\r\n\r\nimport './jquery.orgchart.js';\r\nimport './html2canvas.min.js';\r\nimport { html2canvas } from 'html2canvas';\r\n\r\nif ($('#chart-container').length > 0) {\r\n      if ($('#chart-container').children().hasClass('orgchart')) {\r\n        $('#chart-container').empty();\r\n      }\r\n      $('#chart-container').orgchart({\r\n        data: this.props.dataSource,\r\n        menu: this.generateMenuDetail(),\r\n        exportButton: true,\r\n        exportFilename: 'OrgChart',\r\n        exportFileextension: 'png',\r\n      });\r\n    }\r\n  }\r\n\r\nreturn (\r\n      <div>\r\n        <Helmet>\r\n          <title></title>\r\n          <meta name=\"description\" content=\"Description of HierarchyViewer\" />\r\n        </Helmet>\r\n        <div className=\"container\">\r\n          <div id=\"chart-container\"></div>\r\n          <script type=\"text/javascript\" src=\"./html2canvas.min.js\"></script>\r\n        </div>\r\n      </div>\r\n    );"}}
{"actor":{"display_login":"erb4f1dotama"}}