MCPcopy
hub / github.com/ElemeFE/vue-amap / convertSignalProp

Function convertSignalProp

src/lib/mixins/register-component.js:43–55  ·  view source on GitHub ↗
(key, sourceDate)

Source from the content-addressed store, hash-verified

41 },
42
43 convertSignalProp(key, sourceDate) {
44 if (this.converters && this.converters[key]) {
45 return this.converters[key](sourceDate);
46 } else if (key === 'position') {
47 return toLngLat(sourceDate);
48 } else if (key === 'offset') {
49 return toPixel(sourceDate);
50 } else if (key === 'bounds') {
51 return toBounds(sourceDate);
52 } else {
53 return sourceDate;
54 }
55 },
56
57 registerEvents() {
58 if (this.$options.propsData.events) {

Callers

nothing calls this directly

Calls 3

toLngLatFunction · 0.90
toPixelFunction · 0.90
toBoundsFunction · 0.90

Tested by

no test coverage detected