Click to add new points. Hit the DELETE key to remove the selected point. Use the dropdown menu to change the interpolation mode.
Updated from mbostock's original gist to allow editing the coordinates in text fields.
// | |
// OGKeyPath.h | |
// | |
// Created by Jim on 3/11/10. | |
// | |
// Copyright (c) 2010 Jim Kang/Phalange Software. | |
// | |
// Permission is hereby granted, free of charge, to any person | |
// obtaining a copy of this software and associated documentation | |
// files (the "Software"), to deal in the Software without |
// | |
// OGColorTools.h | |
// | |
// Created by Jim on 1/25/10. | |
// Copyright (c) 2010 Jim Kang/Phalange Software. | |
// | |
// Permission is hereby granted, free of charge, to any person | |
// obtaining a copy of this software and associated documentation | |
// files (the "Software"), to deal in the Software without | |
// restriction, including without limitation the rights to use, |
using UnityEngine; | |
using System.Collections.Generic; | |
// This is a subclass of NGUI's UIGrid that supports cells of varying sizes, | |
// in addition to fixed sizes. | |
// http://ghostcrabworkshop.com | |
public class UIVariableCellSizeGrid : UIGrid | |
{ | |
// If neither of these is set to true, spacing will be exactly as it |
// ArrangeWidgetDepths.cs | |
// Ghost Crab Workshop | |
using UnityEngine; | |
using UnityEditor; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ArrangeWidgetDepths : ScriptableWizard |
# Copyright (c) 2010 Jim Kang | |
# Permission is hereby granted, free of charge, to any person | |
# obtaining a copy of this software and associated documentation | |
# files (the "Software"), to deal in the Software without | |
# restriction, including without limitation the rights to use, | |
# copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the | |
# Software is furnished to do so, subject to the following | |
# conditions: |
// The callback should take a error object and a boardId. | |
copyBoard: function(options) { | |
options = options || {}; | |
if (!(typeof options.boardId === "string" && options.boardId.length)) { | |
throw new Meteor.Error(400, "Required parameter missing"); | |
} | |
if (!options.callback) { | |
throw new Meteor.Error(400, "Required parameter missing"); | |
} | |
if (! this.userId) |
Template.todos.events(okCancelEvents( | |
'#new-todo', | |
{ | |
ok: function (text, evt) { | |
function doAfterInsert(error, _id) { | |
console.log("I was counting on this _id:", _id); | |
} | |
var connected = Meteor.status().connected; | |
Click to add new points. Hit the DELETE key to remove the selected point. Use the dropdown menu to change the interpolation mode.
Updated from mbostock's original gist to allow editing the coordinates in text fields.
// propInfoDict should have prop names as the keys, then arrays | |
// as values that contain the expected type and the default value. | |
// options should be the options dictionary. | |
// Example: | |
// options = prepareOptions(options, { | |
// someDictionary: ['object', null], | |
// aFunction: ['function', function(datum) { | |
// return datum; | |
// }], |
var levelup = require('level'); | |
var _ = require('underscore'); | |
var TreeGetter = function TreeGetter(db, rootNodeId, childDepth, done) { | |
this.treeGetState = { | |
db: db, | |
nodesToGet: 0, | |
nodesGot: 0, | |
errors: [], | |
depthLimit: childDepth, |