Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

openframe-tangram

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openframe-tangram - npm Package Compare versions

Comparing version 0.2.9 to 0.2.10

28

extension.js
var pjson = require('./package.json'),
debug = require('debug')('openframe:tangram'),
yaml = require('yaml-js'),
Extension = require('openframe-extension');
Extension = require('openframe-extension'),
fs = require('fs'),
yaml = require('yaml-js');

@@ -21,10 +22,25 @@ /**

// how do start this type of artwork? currently two token replacements, $filepath and $url
'start_command': function(_config) {
'start_command': function(_config, _tokens) {
debug('Artwork config: ', _config);
var config = _config || {},
command = 'tangram -m ';
var config = _config || {};
var command = 'tangram -m ';
console.log("CONFIG:", _config);
var data = fs.readFileSync(tokens['$filepath']);
var scene = yaml.load(data);
if (scene.scene) {
if (scene.scene.zoom) {
command += ' -z ' + scene.scene.zoom;
}
if (scene.scene.tilt) {
command += ' -t ' + scene.scene.tilt;
}
if (scene.scene.lon) {
command += ' -lon ' + scene.scene.lon;
}
if (scene.scene.lat) {
command += ' -lat ' + scene.scene.lat;
}
}
if (config.w) {

@@ -31,0 +47,0 @@ command += ' -w ' + config.w;

{
"name": "openframe-tangram",
"version": "0.2.9",
"version": "0.2.10",
"description": "Openframe extension which adds support for maps via tangram-es",

@@ -5,0 +5,0 @@ "main": "extension.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc