信通院-灾备 图表源码(在产品图表库基础上进行修改),开发逻辑和产品图表库一致
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

12345678910111213141516171819202122232425262728293031323334353637
  1. import Chart from "../../../src/chart/bar/ChartBar19/ChartBar19";
  2. const consoleWarn = window.console.warn;
  3. window.console.warn = function() {
  4. const string = arguments[0];
  5. const filterStrings = [
  6. 'is not power of two',
  7. 'image is too big',
  8. 'marked for update',
  9. 'can\'t invert matrix'
  10. ];
  11. // filter warnings containing above strings
  12. const shouldBeFiltered = filterStrings.some(string => (
  13. arguments[0].includes('THREE') && arguments[0].includes(string)
  14. ));
  15. if (shouldBeFiltered) {
  16. // console.log("find",arguments[0])
  17. // log it to console without second argument, which contains reference to `image`
  18. // consoleWarn.call(null, arguments[0]);
  19. } else {
  20. // pass other warnings without changes
  21. consoleWarn.apply(null, arguments);
  22. }
  23. };
  24. // let bar =new bar15(document.querySelector(".c1"),{})
  25. let bar=new Chart(document.querySelector(".c1"),{});
  26. console.log(1111,bar)
  27. window.addEventListener("resize",function () {
  28. // console.log("???")
  29. bar.resize()
  30. });
  31. // let p;
  32. //
  33. // setTimeout(()=>{
  34. // bar.setCameraPosition(p);
  35. // },4000);