MCPcopy Index your code
hub / github.com/microsoft/SandDance / feature

Function feature

docs/app/js/sanddance-app.js:109453–109471  ·  view source on GitHub ↗
(topology, o)

Source from the content-addressed store, hash-verified

109451 } : feature(topology, o1);
109452};
109453function feature(topology, o) {
109454 var id = o.id, bbox = o.bbox, properties = o.properties == null ? {} : o.properties, geometry = object(topology, o);
109455 return id == null && bbox == null ? {
109456 type: "Feature",
109457 properties: properties,
109458 geometry: geometry
109459 } : bbox == null ? {
109460 type: "Feature",
109461 id: id,
109462 properties: properties,
109463 geometry: geometry
109464 } : {
109465 type: "Feature",
109466 id: id,
109467 bbox: bbox,
109468 properties: properties,
109469 geometry: geometry
109470 };
109471}
109472function object(topology, o2) {
109473 var transformPoint = (0, _transformJsDefault.default)(topology.transform), arcs1 = topology.arcs;
109474 function arc(i, points) {

Callers 1

sanddance-app.jsFile · 0.70

Calls 1

objectFunction · 0.70

Tested by

no test coverage detected