UNPKG

@egjs/view360

Version:

360 integrated viewing solution from inside-out view to outside-in view. It provides user-friendly service by rotating 360 degrees through various user interaction such as motion sensor and touch.

9 lines (8 loc) 151 B
export function toAxis(source, offset) { return offset.reduce((acc, v, i) => { if (source[i]) { acc[source[i]] = v; } return acc; }, {}); }