Browse Source

feat: F2 3 4楼矩阵

master
jiannibang 4 years ago
parent
commit
da516736bd
  1. 11
      app.js
  2. 71
      pages/index/config.js
  3. BIN
      wasm/module_basic.wasm

11
app.js

@ -16,38 +16,37 @@ const floors = [
name: "L1", name: "L1",
floorOrder: 0, floorOrder: 0,
url: true, url: true,
floorId: "L1",
floorId: "F1",
isPark: false, isPark: false,
}, },
{ {
name: "L2", name: "L2",
floorOrder: 1, floorOrder: 1,
url: true, url: true,
floorId: "L2",
floorId: "F2",
isPark: false, isPark: false,
}, },
{ {
name: "L3", name: "L3",
floorOrder: 2, floorOrder: 2,
url: true, url: true,
floorId: "L3",
floorId: "F3",
isPark: false, isPark: false,
}, },
{ {
name: "L4", name: "L4",
floorOrder: 3, floorOrder: 3,
url: true, url: true,
floorId: "L4",
floorId: "F4",
isPark: false, isPark: false,
}, },
{ {
name: "L5", name: "L5",
floorOrder: 4, floorOrder: 4,
url: true, url: true,
floorId: "L5",
floorId: "F5",
isPark: false, isPark: false,
}, },
]; ];
App({ App({
async onLaunch() { async onLaunch() {

71
pages/index/config.js

@ -21,48 +21,83 @@ module.exports = {
map_id: 193, map_id: 193,
poi_id: 37, poi_id: 37,
floor_id: "F1", floor_id: "F1",
scale: 0.998141, // 表示视觉地图与2D地图之间的尺度变换
transform_matrix: [0.00120721, -0.060926, 0 ,0.00120721 ,0.999216 ,0.0395764, 0 ,0.060926 ,-0.0395764, 0.997357, 0 ,0 ,0, 0, 1], // 表示视觉地图和2D地图之间的转换矩阵
scale: 5.6,
transform_matrix: [1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0],
is_park: 0, is_park: 0,
}, },
{ {
app_id: 0, app_id: 0,
map_id: 193, map_id: 193,
poi_id: 37, poi_id: 37,
floor_id: "F1",
scale: 5.6, // 表示视觉地图与2D地图之间的尺度变换
transform_matrix: [1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0], // 表示视觉地图和2D地图之间的转换矩阵
// 0:表示非车库,1表示为车库
floor_id: "F2",
scale: 9.501854601780638,
transform_matrix: [
0.4893872554973585,
0.8720665746136,
0,
0.8720665746136,
-0.4893872554973585,
0,
0,
0,
1,
114.65926562,
1370.53419416,
0,
],
is_park: 0, is_park: 0,
}, },
{ {
app_id: 0, app_id: 0,
map_id: 193, map_id: 193,
poi_id: 37, poi_id: 37,
floor_id: "F1",
scale: 5.6, // 表示视觉地图与2D地图之间的尺度变换
transform_matrix: [1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0], // 表示视觉地图和2D地图之间的转换矩阵
// 0:表示非车库,1表示为车库
floor_id: "F3",
scale: 9.508664270440235,
transform_matrix: [
-0.6620496975562061,
-0.7494599327547353,
0,
-0.7494599327547353,
0.6620496975562061,
0,
0,
0,
1,
-565.90923423,
-428.06520392,
0,
],
is_park: 0, is_park: 0,
}, },
{ {
app_id: 0, app_id: 0,
map_id: 193, map_id: 193,
poi_id: 37, poi_id: 37,
floor_id: "F1",
scale: 5.6, // 表示视觉地图与2D地图之间的尺度变换
transform_matrix: [1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0], // 表示视觉地图和2D地图之间的转换矩阵
// 0:表示非车库,1表示为车库
floor_id: "F4",
scale: 9.703032727395122,
transform_matrix: [
0.8210637728929214,
-0.5708364831804398,
0,
-0.5708364831804398,
-0.8210637728929214,
0,
0,
0,
1,
-667.3006959,
-206.2637871,
0,
],
is_park: 0, is_park: 0,
}, },
{ {
app_id: 0, app_id: 0,
map_id: 193, map_id: 193,
poi_id: 37, poi_id: 37,
floor_id: "F1",
scale: 5.6, // 表示视觉地图与2D地图之间的尺度变换
transform_matrix: [1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0], // 表示视觉地图和2D地图之间的转换矩阵
// 0:表示非车库,1表示为车库
floor_id: "F5",
scale: 5.6,
transform_matrix: [1, 0, 0, 0, -1, 0, 0, 0, -1, 0, 0, 0],
is_park: 0, is_park: 0,
}, },
], ],

BIN
wasm/module_basic.wasm

Binary file not shown.
Loading…
Cancel
Save