@complexify/expo-mapbox-navigation 1.3.1 → 1.3.2

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.
@@ -2,6 +2,9 @@ import Foundation
2
2
  import MapboxMaps
3
3
  import MapboxNavigationUIKit
4
4
  import UIKit
5
+ import MapboxNavigation
6
+ import MapboxCoreNavigation
7
+ import MapboxDirections
5
8
 
6
9
  class CustomDayStyle: StandardDayStyle {
7
10
  var customSpeedLimitTextColor: UIColor?
@@ -344,6 +344,151 @@ class ExpoMapboxNavigationViewController: UIViewController {
344
344
  update()
345
345
  }
346
346
 
347
+ func setStepsBackgroundColor(hexColor: String) {
348
+ customDayStyle.customStepsBackgroundColor = UIColor(hex: hexColor)
349
+ update()
350
+ }
351
+
352
+ func setStepsPrimaryTextColor(hexColor: String) {
353
+ customDayStyle.customStepsPrimaryTextColor = UIColor(hex: hexColor)
354
+ update()
355
+ }
356
+
357
+ func setStepsSecondaryTextColor(hexColor: String) {
358
+ customDayStyle.customStepsSecondaryTextColor = UIColor(hex: hexColor)
359
+ update()
360
+ }
361
+
362
+ func setStepsManeuverViewPrimaryColor(hexColor: String) {
363
+ customDayStyle.customStepsManeuverViewPrimaryColor = UIColor(hex: hexColor)
364
+ update()
365
+ }
366
+
367
+ func setLaneViewBackgroundColor(hexColor: String) {
368
+ customDayStyle.customLaneViewBackgroundColor = UIColor(hex: hexColor)
369
+ update()
370
+ }
371
+
372
+ func setNextBannerBackgroundColor(hexColor: String) {
373
+ customDayStyle.customNextBannerBackgroundColor = UIColor(hex: hexColor)
374
+ update()
375
+ }
376
+
377
+ func setNextBannerPrimaryTextColor(hexColor: String) {
378
+ customDayStyle.customNextBannerPrimaryTextColor = UIColor(hex: hexColor)
379
+ update()
380
+ }
381
+
382
+ func setNextBannerSecondaryTextColor(hexColor: String) {
383
+ customDayStyle.customNextBannerSecondaryTextColor = UIColor(hex: hexColor)
384
+ update()
385
+ }
386
+
387
+ func setNextBannerDistanceTextColor(hexColor: String) {
388
+ customDayStyle.customNextBannerDistanceTextColor = UIColor(hex: hexColor)
389
+ update()
390
+ }
391
+
392
+ func setProgressBarProgressColor(hexColor: String) {
393
+ customDayStyle.customProgressBarProgressColor = UIColor(hex: hexColor)
394
+ update()
395
+ }
396
+
397
+ func setProgressBarBackgroundColor(hexColor: String) {
398
+ customDayStyle.customProgressBarBackgroundColor = UIColor(hex: hexColor)
399
+ update()
400
+ }
401
+
402
+ func setManeuverViewPrimaryColor(hexColor: String) {
403
+ customDayStyle.customManeuverViewPrimaryColor = UIColor(hex: hexColor)
404
+ update()
405
+ }
406
+
407
+ func setManeuverViewSecondaryColor(hexColor: String) {
408
+ customDayStyle.customManeuverViewSecondaryColor = UIColor(hex: hexColor)
409
+ update()
410
+ }
411
+
412
+ func setManeuverViewPrimaryColorHighlighted(hexColor: String) {
413
+ customDayStyle.customManeuverViewPrimaryColorHighlighted = UIColor(hex: hexColor)
414
+ update()
415
+ }
416
+
417
+ func setManeuverViewSecondaryColorHighlighted(hexColor: String) {
418
+ customDayStyle.customManeuverViewSecondaryColorHighlighted = UIColor(hex: hexColor)
419
+ update()
420
+ }
421
+
422
+ func setInstructionsCardBackgroundColor(hexColor: String) {
423
+ customDayStyle.customInstructionsCardBackgroundColor = UIColor(hex: hexColor)
424
+ update()
425
+ }
426
+
427
+ func setInstructionsCardSeparatorColor(hexColor: String) {
428
+ customDayStyle.customInstructionsCardSeparatorColor = UIColor(hex: hexColor)
429
+ update()
430
+ }
431
+
432
+ func setInstructionsCardHighlightedSeparatorColor(hexColor: String) {
433
+ customDayStyle.customInstructionsCardHighlightedSeparatorColor = UIColor(hex: hexColor)
434
+ update()
435
+ }
436
+
437
+ func setExitViewForegroundColor(hexColor: String) {
438
+ customDayStyle.customExitViewForegroundColor = UIColor(hex: hexColor)
439
+ update()
440
+ }
441
+
442
+ func setExitViewBorderColor(hexColor: String) {
443
+ customDayStyle.customExitViewBorderColor = UIColor(hex: hexColor)
444
+ update()
445
+ }
446
+
447
+ func setExitViewHighlightColor(hexColor: String) {
448
+ customDayStyle.customExitViewHighlightColor = UIColor(hex: hexColor)
449
+ update()
450
+ }
451
+
452
+ func setRouteShieldForegroundColor(hexColor: String) {
453
+ customDayStyle.customRouteShieldForegroundColor = UIColor(hex: hexColor)
454
+ update()
455
+ }
456
+
457
+ func setRouteShieldBorderColor(hexColor: String) {
458
+ customDayStyle.customRouteShieldBorderColor = UIColor(hex: hexColor)
459
+ update()
460
+ }
461
+
462
+ func setRouteShieldHighlightColor(hexColor: String) {
463
+ customDayStyle.customRouteShieldHighlightColor = UIColor(hex: hexColor)
464
+ update()
465
+ }
466
+
467
+ func setDistanceRemainingColor(hexColor: String) {
468
+ customDayStyle.customDistanceRemainingColor = UIColor(hex: hexColor)
469
+ update()
470
+ }
471
+
472
+ func setDistanceUnitColor(hexColor: String) {
473
+ customDayStyle.customDistanceUnitColor = UIColor(hex: hexColor)
474
+ update()
475
+ }
476
+
477
+ func setDistanceValueColor(hexColor: String) {
478
+ customDayStyle.customDistanceValueColor = UIColor(hex: hexColor)
479
+ update()
480
+ }
481
+
482
+ func setRatingControlNormalColor(hexColor: String) {
483
+ customDayStyle.customRatingControlNormalColor = UIColor(hex: hexColor)
484
+ update()
485
+ }
486
+
487
+ func setRatingControlSelectedColor(hexColor: String) {
488
+ customDayStyle.customRatingControlSelectedColor = UIColor(hex: hexColor)
489
+ update()
490
+ }
491
+
347
492
  func update(){
348
493
  calculateRoutesTask?.cancel()
349
494
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@complexify/expo-mapbox-navigation",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Expo module for Mapbox's Navigation SDK",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",