-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathhelpers.h
More file actions
36 lines (24 loc) · 1 KB
/
Copy pathhelpers.h
File metadata and controls
36 lines (24 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#pragma once
#include <jsi/jsi.h>
#include <map>
#include "supercluster.hpp"
using namespace std;
using namespace facebook;
namespace clusterer {
void parseJSIOptions(jsi::Runtime &rt, mapbox::supercluster::Options &options,
jsi::Value const &jsiOptions);
void parseJSIFeature(jsi::Runtime &rt, int featureIndex,
mapbox::feature::feature<double> &feature,
jsi::Value const &jsiFeature);
void clusterToJSI(jsi::Runtime &rt, jsi::Object &jsiObject,
mapbox::feature::feature<double> &f,
jsi::Array &featuresInput);
void tileToJSI(jsi::Runtime &rt, jsi::Object &jsiObject,
mapbox::feature::feature<std::int16_t> &f,
jsi::Array &featuresInput);
void featurePropertyToJSI(
jsi::Runtime &rt, jsi::Object &jsiFeatureProperties,
std::pair<const std::string, mapbox::feature::value> &itr,
int &origFeatureIndex);
void installHelpers(jsi::Runtime &jsiRuntime);
} // namespace clusterer