@thelacanians/vue-native-cli 0.6.0 → 0.6.3

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/dist/cli.js CHANGED
@@ -334,8 +334,8 @@ import { join as join2, dirname } from "path";
334
334
  import { fileURLToPath } from "url";
335
335
  import { existsSync as existsSync2 } from "fs";
336
336
  import pc2 from "picocolors";
337
- var VERSION = "0.4.14";
338
- var JS_PACKAGE_VERSION = "^0.5.0";
337
+ var VERSION = "0.6.2";
338
+ var JS_PACKAGE_VERSION = "^0.6.2";
339
339
  var VITE_PLUGIN_VUE_VERSION = "^6.0.5";
340
340
  var VITE_VERSION = "^8.0.0";
341
341
  var createCommand = new Command2("create").description("Create a new Vue Native project").argument("<name>", "project name").option("-t, --template <template>", "project template (blank, tabs, drawer)", "blank").action(async (name, options) => {
@@ -10,7 +10,6 @@ import com.google.android.flexbox.FlexDirection
10
10
  import com.google.android.flexbox.FlexboxLayout
11
11
  import kotlin.math.abs
12
12
  import kotlin.math.atan2
13
- import kotlin.math.sqrt
14
13
 
15
14
  class VViewFactory : NativeComponentFactory {
16
15
  override fun createView(context: Context): View {
@@ -200,14 +199,14 @@ class VViewFactory : NativeComponentFactory {
200
199
  if (isTracking && event.pointerCount == 2) {
201
200
  val currentAngle = calculateAngle(event)
202
201
  val deltaAngle = currentAngle - previousAngle
203
-
202
+
204
203
  // Normalize angle to -PI to PI range
205
204
  val normalizedDelta = when {
206
205
  deltaAngle > Math.PI -> deltaAngle - (2 * Math.PI).toFloat()
207
206
  deltaAngle < -Math.PI -> deltaAngle + (2 * Math.PI).toFloat()
208
207
  else -> deltaAngle
209
208
  }
210
-
209
+
211
210
  onRotation(normalizedDelta)
212
211
  previousAngle = currentAngle
213
212
  }
@@ -221,11 +220,11 @@ class VViewFactory : NativeComponentFactory {
221
220
 
222
221
  private fun calculateAngle(event: MotionEvent): Float {
223
222
  if (event.pointerCount < 2) return 0f
224
-
223
+
225
224
  val dx = event.getX(1) - event.getX(0)
226
225
  val dy = event.getY(1) - event.getY(0)
227
-
226
+
228
227
  return atan2(dy, dx)
229
228
  }
230
229
  }
231
- }
230
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thelacanians/vue-native-cli",
3
- "version": "0.6.0",
3
+ "version": "0.6.3",
4
4
  "description": "CLI for creating and running Vue Native apps",
5
5
  "license": "MIT",
6
6
  "author": "Vue Native Contributors",
@@ -35,8 +35,8 @@
35
35
  "clean": "rm -rf dist"
36
36
  },
37
37
  "dependencies": {
38
- "@thelacanians/vue-native-sfc-parser": "workspace:*",
39
- "@thelacanians/vue-native-codegen": "workspace:*",
38
+ "@thelacanians/vue-native-sfc-parser": "^0.0.2",
39
+ "@thelacanians/vue-native-codegen": "^0.0.2",
40
40
  "commander": "^12.1.0",
41
41
  "ws": "^8.18.0",
42
42
  "chokidar": "^3.6.0",