diff --git a/src/mock/path.ts b/src/mock/path.ts index f03b9ee..38f6bca 100644 --- a/src/mock/path.ts +++ b/src/mock/path.ts @@ -8,351 +8,169 @@ export default [ index: 0, time: 1, location: [ - 11660670.518652, - 3692632.855903, - 4.504272, + 11660670.708594, + 3692632.916387, + 3.692967, ], rotation: [ - 9.212265, - 85.1996, + -1.71211, + 84.737839, 0 ] }, { index: 1, - time: 3, + time: 4, location: [ - 11660674.328477, - 3692587.477285, - 4.504672, + 11660675.357031, + 3692582.194717, + 3.692967, ], rotation: [ - 9.212265, - 85.1996, + -1.71211, + 84.737839, 0 ] }, { index: 2, - time: 5, + time: 10, location: [ - 11660725.277656, - 3692580.909819, - 6.122797, + 11660790.68, + 3692578.670381, + 3.940162, ], rotation: [ - -22.317095, - -3.568558, + -4.441037, + 0.266969, 0 ] }, { index: 3, - time: 7, + time: 20, location: [ - 11660734.213076, - 3692547.098057, - 5.908682, + 11660815.647656, + 3692475.315049, + 4.356609, ], rotation: [ - -17.956867, - 79.712875, + -10.672601, + 77.519897, 0 ] }, { index: 4, - time: 9, + time: 25, location: [ - 11660776.010107, - 3692541.431582, - 6.293452, + 11660850.858906, + 3692449.575669, + 4.325723, ], rotation: [ - -20.28105, - 3.962223, + -10.074419, + 26.487694, 0 ] }, { index: 5, - time: 11, + time: 45, location: [ - 11660805.903042, - 3692461.372598, - 5.804204, + 11660978.253594, + 3692462.090912, + 4.246001, ], rotation: [ - -10.623485, - 67.636337, + -10.441528, + -6.958658, 0 ] }, { index: 6, - time: 13, + time: 55, location: [ - 11660899.714749, - 3692445.007969, - 5.92839, + 11661025.49375, + 3692505.110029, + 4.301797, ], rotation: [ - -13.034835, - 4.850405, + -11.557861, + -43.91748, 0 ] }, { index: 7, - time: 14, + time: 65, location: [ - 11660907.407043, - 3692430.222969, - 8.493546, + 11661054.160781, + 3692588.231895, + 4.036361, ], rotation: [ - -12.607244, - 82.858612, + -6.363414, + -75.600883, 0 ] }, { index: 8, - time: 15, + time: 75, location: [ - 11660908.523486, - 3692427.503809, - 8.679598, + 11661075.833906, + 3692598.365898, + 4.265082, ], rotation: [ - -16.231424, - 164.095078, + -10.83462, + -17.382868, 0 ] }, { index: 9, - time: 16, + time: 80, location: [ - 11660905.773669, - 3692428.441328, - 11.116418, + 11661086.055, + 3692626.798828, + 4.593668, ], rotation: [ - -16.260296, - -97.713768, + -11.708685, + -124.728142, 0 ] }, { index: 10, - time: 17, + time: 95, location: [ - 11660904.439976, - 3692431.094219, - 11.268408, + 11661031.081875, + 3692601.786426, + 4.20584, ], rotation: [ - -19.691488, - -12.839875, + -9.671138, + 146.918442, 0 ] }, { index: 11, - time: 18, + time: 105, location: [ - 11660907.31001, - 3692430.00707, - 13.427032, + 11660985.186094, + 3692571.888203, + 4.296511, ], rotation: [ - -15.080975, - 71.427696, - -0.000001 + -9.671138, + 146.918442, + 0 ] }, { index: 12, - time: 20, + time: 125, location: [ - 11660905.748, - 3692428.305098, - 15.744407, + 11660837.614219, + 3692554.308691, + 3.981143, ], rotation: [ - -10.570038, - -104.275772, - 0 - ] - }, { - index: 13, - time: 22, - location: [ - 11660907.424536, - 3692429.949375, - 18.341962, - ], - rotation: [ - -13.682672, - 77.469505, - 0 - ] - }, { - index: 14, - time: 24, - location: [ - 11660905.437642, - 3692428.630488, - 21.090811, - ], - rotation: [ - -21.361387, - -88.333046, - 0.000002 - ] - }, { - index: 15, - time: 25, - location: [ - 11660906.794524, - 3692431.313086, - 20.926121, - ], - rotation: [ - -19.128218, - -14.789486, - 0 - ] - }, { - index: 16, - time: 26, - location: [ - 11660909.959971, - 3692426.224121, - 20.573704, - ], - rotation: [ - -12.228661, - -36.375908, - 0 - ] - }, { - index: 17, - time: 27, - location: [ - 11660919.348164, - 3692433.139785, - 20.685688, - ], - rotation: [ - -12.228661, - -36.375908, - 0 - ] - }, { - index: 18, - time: 28, - location: [ - 11660932.383853, - 3692439.230898, - 20.655989, - ], - rotation: [ - -12.491698, - -19.279795, - 0 - ] - }, { - index: 19, - time: 29, - location: [ - 11660943.738184, - 3692444.954512, - 20.889019, - ], - rotation: [ - -17.018454, - -7.5978, - 0 - ] - }, { - index: 20, - time: 30, - location: [ - 11660961.221875, - 3692456.361621, - 6.388878, - ], - rotation: [ - -21.964167, - -3.619455, - 0 - ] - }, { - index: 21, - time: 31, - location: [ - 11661030.616572, - 3692494.257949, - 5.806389, - ], - rotation: [ - -10.529221, - -38.695396, - 0 - ] - }, { - index: 22, - time: 33, - location: [ - 11661049.069902, - 3692558.304922, - 5.871467, - ], - rotation: [ - -11.777343, - -62.154377, - 0 - ] - }, { - index: 23, - time: 35, - location: [ - 11661058.122266, - 3692600.524087, - 5.993107, - ], - rotation: [ - -14.126081, - -83.245064, - 0 - ] - }, { - index: 24, - time: 37, - location: [ - 11661018.075127, - 3692604.637139, - 6.10626, - ], - rotation: [ - -16.332443, - 164.989334, - 0 - ] - }, { - index: 25, - time: 39, - location: [ - 11660959.534922, - 3692573.611064, - 6.237592, - ], - rotation: [ - -10.987985, - 177.845734, - 0 - ] - }, { - index: 26, - time: 41, - location: [ - 11660856.063798, - 3692559.525986, - 5.76212, - ], - rotation: [ - -9.690583, - 179.483215, + -3.533339, + 172.282532, 0 ] }] @@ -367,13 +185,13 @@ export default [ index: 0, time: 1, location: [ - 11660670.775156, - 3692632.663789, - 3.687361 + 11660670.683125, + 3692632.901113, + 3.445218, ], rotation: [ - -1.603564, - 89.097595, + 3.020105, + 88.41761, 0 ] }, @@ -381,13 +199,13 @@ export default [ index: 1, time: 5, location: [ - 11660672.004531, - 3692579.895508, - 3.938437 + 11660672.020313, + 3692585.72751, + 3.446009, ], rotation: [ - -6.411935, - 175.84407, + 3.020105, + 88.41761, 0 ] }, @@ -407,141 +225,309 @@ export default [ }, { index: 3, - time: 10, + time: 9, location: [ - 11660546.412812, - 3692506.966353, - 3.843261 + 11660675.074531, + 3692583.068721, + 3.665454, ], rotation: [ - -4.585734, - 3.053582, + -1.189027, + 173.788849, 0 ] }, { index: 4, - time: 13, + time: 21, location: [ - 11660598.649062, - 3692506.240205, - 3.974243 + 11660543.801719, + 3692568.779199, + 3.66561, ], rotation: [ - -7.100555, - 82.652985, + -1.189027, + 173.788849, 0 ] }, { index: 5, - time: 15, + time: 22, location: [ - 11660603.178437, - 3692467.967673, - 3.991567 + 11660541.088125, + 3692570.723281, + 3.714691, ], rotation: [ - -7.434114, - 50.865936, + -2.140083, + 96.673035, 0 ] }, { index: 6, - time: 17, + time: 27, location: [ - 11660632.262813, - 3692425.033324, - 3.752879 + 11660533.644531, + 3692507.102485, + 3.714691, ], rotation: [ - -2.855839, - -0.876668, + -2.140083, + 96.673035, 0 ] }, { index: 7, - time: 19, + time: 28, location: [ - 11660705.369531, - 3692424.296892, - 3.243782, + 11660530.369219, + 3692504.647427, + 3.82053, ], rotation: [ - 6.88494, - -56.970181, + -4.178245, + 9.737716, 0 ] }, { index: 8, - time: 21, + time: 35, location: [ - 11660736.325156, - 3692471.440234, - 3.319741 + 11660594.904531, + 3692493.567388, + 3.82053, ], rotation: [ - 5.425766, - -92.833725, + -4.178245, + 9.737719, 0 ] }, { index: 9, - time: 23, + time: 36, location:[ - 11660731.05375, - 3692523.998013, - 3.057763 + 11660596.972812, + 3692495.924478, + 3.746344, ], rotation: [ - 10.479408, - 1.40215, + -2.740019, + 73.244278, 0 ] }, { index: 10, - time: 26, + time: 40, location: [ - 11660798.06625, - 3692521.90978, - 3.343354 + 11660612.798594, + 3692443.320716, + 3.746344, ], rotation: [ - 6.93148, - -85.549675, + -2.740019, + 73.244293, 0 ] }, { index: 11, - time: 29, + time: 45, location: [ - 11660798.476094, - 3692553.860889, - 3.814992 + 11660642.096563, + 3692422.66725, + 3.751102, ], rotation: [ - -2.093508, - -8.107742, + -2.831305, + 32.027992, 0 ] }, { index: 12, - time: 32, + time: 55, location: [ - 11661029.977187, - 3692586.668604, - 3.65193 + 11660705.188281, + 3692427.811786, + 3.880547, ], rotation: [ - 1.021263, - 91.970299, + -5.272086, + -6.343121, + 0 + ] + }, + { + index: 13, + time: 56, + location: [ + 11660705.990469, + 3692426.080919, + 3.817962, + ], + rotation: [ + -4.068771, + -43.680824, + 0 + ] + }, + { + index: 14, + time: 60, + location: [ + 11660705.990469, + 3692426.080919, + 3.817962, + ], + rotation: [ + -4.068771, + -43.680824, + 0 + ] + }, + { + index: 15, + time: 61, + location: [ + 11660735.26875, + 3692469.72428, + 3.815561, + ], + rotation: [ + -4.068771, + -72.525078, + 0 + ] + }, + { + index: 16, + time: 62, + location: [ + 11660735.26875, + 3692469.72428, + 3.815561, + ], + rotation: [ + -4.068771, + -72.525078, + 0 + ] + }, + { + index: 17, + time: 65, + location: [ + 11660735.739531, + 3692518.21606, + 3.739261, + ], + rotation: [ + -2.60416, + -91.505638, + 0 + ] + }, + { + index: 18, + time: 66, + location: [ + 11660732.710469, + 3692520.729414, + 3.704501, + ], + rotation: [ + -1.937533, + -9.098099, + 0 + ] + }, + { + index: 19, + time: 74, + location: [ + 11660810.052969, + 3692530.889717, + 3.713195, + ], + rotation: [ + 1.656526, + -8.917943, + 0 + ] + }, + { + index: 20, + time: 75, + location: [ + 11660812.897344, + 3692528.365137, + 3.769883, + ], + rotation: [ + 0.570027, + -87.923378, + 0 + ] + }, + { + index: 21, + time: 79, + location:[ + 11660814.929844, + 3692583.10248, + 3.678004, + ], + rotation: [ + 0.570027, + -87.923386, + 0 + ] + }, + { + index: 22, + time: 80, + location:[ + 11660812.100781, + 3692585.532861, + 3.670703, + ], + rotation: [ + 0.709923, + -10.747027, + 0 + ] + }, + { + index: 23, + time: 130, + location:[ + 11661047.96625, + 3692615.863867, + 3.599258, + ], + rotation: [ + 2.081179, + -7.179654, + 0 + ] + }, + { + index: 24, + time: 131, + location:[ + 11661049.352187, + 3692618.769902, + 3.549081, + ], + rotation: [ + 3.044454, + 58.106522, 0 ] }] diff --git a/src/utils/player.ts b/src/utils/player.ts index e0b0e5a..babec70 100644 --- a/src/utils/player.ts +++ b/src/utils/player.ts @@ -9,7 +9,7 @@ export default class PlayerUtils{ const player = new acapi.DigitalTwinPlayer(process.env.VUE_APP_PALYER_URL,{ domId, iid, - reset:true, + // reset:true, apiOptions:{ onReady: this.onReady, onLog: this.onLog, //可选参数,日志输出回调函数 diff --git a/src/views/overview.component.html b/src/views/overview.component.html index 526cef1..45b0fa6 100644 --- a/src/views/overview.component.html +++ b/src/views/overview.component.html @@ -1,6 +1,6 @@