UNPKG

bytev-charts

Version:

基于echarts和JavaScript及ES6封装的一个可以直接调用的图表组件库,内置主题设计,简单快捷,且支持用户自定义配置; npm 安装方式: npm install bytev-charts 若启动提示还需额外install插件,则运行 npm install @babel/runtime-corejs2 即可;

56 lines (40 loc) 1.43 kB
import _classCallCheck from "@babel/runtime-corejs2/helpers/classCallCheck"; import _createClass from "@babel/runtime-corejs2/helpers/createClass"; import _defineProperty from "@babel/runtime-corejs2/helpers/defineProperty"; /* * three的option配置项 * */ var ByteVModel3D = /*#__PURE__*/function () { /* * 通用 * */ //颜色池 /* * three类 * */ //相机最大距离(通过相机对象计算得出,需要现有相机配置的参数) //渲染器 //场景 //相机 //控制器 //名称name的前缀 /* * @param {Number} cameraMaxAxis 相机最大距离(通过相机对象计算得出,根据现有相机配置的参数的得出) * */ function ByteVModel3D(cameraMaxAxis) { _classCallCheck(this, ByteVModel3D); _defineProperty(this, "id", ""); _defineProperty(this, "name", ""); _defineProperty(this, "color", []); _defineProperty(this, "cameraMaxAxis", 0); _defineProperty(this, "render", null); _defineProperty(this, "scene", null); _defineProperty(this, "camera", null); _defineProperty(this, "controls", null); _defineProperty(this, "namePrefix", "BTV3D"); // console.log('ByteVModel3D.cameraMaxAxis: ',cameraMaxAxis) this.cameraMaxAxis = cameraMaxAxis; } _createClass(ByteVModel3D, [{ key: "initPropery", value: function initPropery(camera) {} }]); return ByteVModel3D; }(); export { ByteVModel3D as default };