@kimap/indoor-positioning-sdk-vue2 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -140,7 +140,7 @@ import KimapComponent from '@/components/kimap/KimapComponent.vue';
140
140
  </template>
141
141
 
142
142
  <script>
143
- var createKimapSDK = require('@kimap/indoor-positioning-sdk-vue2').createKimapSDK;
143
+ var KMCreateMap = require('@kimap/indoor-positioning-sdk-vue2').KMCreateMap;
144
144
  var THREE = require('three');
145
145
 
146
146
  export default {
@@ -162,7 +162,7 @@ export default {
162
162
  initMap: function() {
163
163
  var self = this;
164
164
 
165
- createKimapSDK({
165
+ KMCreateMap({
166
166
  container: this.$refs.mapContainer,
167
167
  objUrl: '/static/models/building.obj',
168
168
  origin: { x: 0, y: 0, z: 0 },
package/index.js CHANGED
@@ -12,7 +12,7 @@ var KimapSDK = KimapCore.KimapSDK;
12
12
  var KimapComponent = require('./KimapComponent.vue').default || require('./KimapComponent.vue');
13
13
 
14
14
  // 创建SDK实例的辅助函数
15
- function createKimapSDK(config) {
15
+ function KMCreateMap(config) {
16
16
  return new Promise(function(resolve, reject) {
17
17
  try {
18
18
  var sdkInstance = new KimapSDK(config);
@@ -36,7 +36,7 @@ module.exports = {
36
36
  KimapComponent: KimapComponent,
37
37
 
38
38
  // SDK创建函数
39
- createKimapSDK: createKimapSDK,
39
+ KMCreateMap: KMCreateMap,
40
40
 
41
41
  // 直接导出SDK类(高级用法)
42
42
  KimapSDK: KimapSDK,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimap/indoor-positioning-sdk-vue2",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Vue2自包含室内定位SDK - 完全兼容Webpack3+Babel6 | Vue2 Self-Contained Indoor Positioning SDK",
5
5
  "main": "index.js",
6
6
  "files": [