|
1 | 1 | /* eslint-disable no-redeclare */ |
2 | | -import { Color } from '@nativescript/core/color'; |
| 2 | +import { Color } from '@nativescript/core'; |
3 | 3 | import { NativePropertyOptions } from '.'; |
4 | | -import { BaseNative, _createImageSourceFromSrc, nativeMapVecProperty, nativeProperty } from './index.common'; |
5 | | -import { DefaultLatLonKeys, GenericMapPos, MapPos, MapPosVector, MapPosVectorVector, toNativeMapPos } from './core'; |
6 | | -import { FeatureCollection } from './geometry/feature'; |
| 4 | +import { DefaultLatLonKeys, GenericMapPos, MapPos, MapPosVector, MapPosVectorVector, fromNativeMapVec, toNativeMapPos, toNativeMapVec } from './core'; |
7 | 5 | import { Geometry } from './geometry'; |
8 | | -export { BaseNative, nativeProperty, nativeMapVecProperty }; |
| 6 | +import { FeatureCollection } from './geometry/feature'; |
| 7 | +import { BaseNative, _createImageSourceFromSrc, nativeProperty } from './index.common'; |
| 8 | +export { BaseNative, nativeProperty }; |
9 | 9 |
|
10 | 10 | export function nativeColorProperty(target: any, k?, desc?: PropertyDescriptor): any; |
11 | 11 | export function nativeColorProperty(options: NativePropertyOptions): (target: any, k?, desc?: PropertyDescriptor) => any; |
@@ -146,3 +146,17 @@ export function mapPosVectorVectorFromArgs(positions: MapPosVectorVector | MapPo |
146 | 146 | } |
147 | 147 | return nativePoses; |
148 | 148 | } |
| 149 | + |
| 150 | +export function nativeMapVecProperty(target: any, k?, desc?: PropertyDescriptor): any; |
| 151 | +export function nativeMapVecProperty(options: NativePropertyOptions): (target: any, k?, desc?: PropertyDescriptor) => any; |
| 152 | +export function nativeMapVecProperty(...args) { |
| 153 | + return nativeProperty( |
| 154 | + { |
| 155 | + converter: { |
| 156 | + fromNative: fromNativeMapVec, |
| 157 | + toNative: toNativeMapVec, |
| 158 | + }, |
| 159 | + }, |
| 160 | + ...args |
| 161 | + ); |
| 162 | +} |
0 commit comments