@thebigcrunch/sdk
Version:
The big crunch SDK library
27 lines (20 loc) • 588 B
JavaScript
import { getConfig } from "./config";
export const types = {
visualisation: "vizzy",
layered: "turtle"
};
export const contentTypes = {
imagePng: "image/png",
imageGif: "image/gif",
textText: "text/text",
videoYoutube: "video/youtube",
imageImage: "image",
mp4: "video/mp4",
json: "file/json",
csv: "file/csv"
};
export const CELL_WIDTH = 22;
export const CELL_HEIGHT = 20;
export const BIG_CRUNCH_URL = getConfig().sdkConnectionUrl;
export const isAudio = type => /^audio\//.test(type);
export const isVideo = type => /^video\//.test(type);