Giter VIP home page Giter VIP logo

dc-home-cli's People

Contributors

cavencj avatar liuqun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dc-home-cli's Issues

添加新demo时无法正确解析加载,Unexpected token '<'

问题描述:在exampes中新增一个自定义demo,无法正确访问加载,报错:Unexpected token '<'。

解决方法:应该是editor文件夹中index.vue,在解析script标签中的正则匹配有误,没有正确匹配到 '</script>',去掉\n换行符; replace(/</?script>\n/g, '') 改为 replace(/</?script>/g, '')就可以正常加载了。

TypeError: DC.Measure is not a constructor

1, 将 dc-sdk-examples 下的内容拷贝并替换 dc-home-cli 下的 public/examples 目录 ;
2,运行npm run serve ,程序运行成功 (http://localhost:8080/)
3, 打开 场景分析-空间测量 示例(http://localhost:8080/#/editor?type=analysis&example=measure),
浏览器控制台报错:TypeError: DC.Measure is not a constructor
4,经过断点调试看,DC.Measure 为undefined,请问是不是dc-sdk中未提交相应的Measure代码?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.