code
stringlengths 2
1.05M
| repo_name
stringlengths 5
114
| path
stringlengths 4
991
| language
stringclasses 1
value | license
stringclasses 15
values | size
int32 2
1.05M
|
---|---|---|---|---|---|
import Ember from 'ember';
function onlyOnce(f) {
let exec = false;
return () => {
if(exec) {
return;
}
exec = true;
return f();
};
}
export default Ember.Component.extend({
audio: Ember.inject.service(),
classNames: ['step', 'step-default', 'huayra-step'],
classNameBindings: ['active:step-active', 'active:step-success', //estados para el step seleccionado
'variant:step-variant', // estado para indicar que es una variante de la cuarta.
'playing:step-playing',
'disabled'
],
activeBinding: "step.active",
variantBinding: "step.variant",
disabledBinding: "step.disabled",
playing: Ember.computed('player.currentStep', 'player.playing', function() {
return (this.get('player.playing') && (this.get('player.currentStep') === this.get('index')));
}),
step: null,
sound: null,
index: null,
player: null,
mouseDown() {
this.toggleProperty('step.active');
// Solo reproduce cuando se hace click pero no está
// reproduciendo.
if (! this.get('player.playing')) {
this.get('audio').play(this.get('sound'));
}
this.sendAction('onChange');
},
mouseEnter() {
var track = this.get('track');
if (track.paint) {
this.set('step.active', track.chequear);
this.sendAction('onChange');
}
},
didInsertElement: function() {
var track = this.get('track');
var step = this.$();
step.on('mousedown', () => {
let endDrag = onlyOnce(() => {
Ember.set(track, "paint", false);
});
Ember.set(track, "paint", true);
/* Setea la intención del drag */
Ember.set(track, "chequear", !this.get('step.active'));
$(window).one('mouseup', endDrag);
$(window).one('blur', endDrag);
});
},
willDestroyElement() {
var step = this.$();
step.off('mousedown');
}
});
| HuayraLinux/huayra-ritmos | app/components/huayra-step.js | JavaScript | gpl-3.0 | 1,944 |
var camera;
var scene;
var renderer;
var mesh;
var infoSprite = new THREE.Mesh();
var effect;
var controls;
// var music = document.querySelector('#music');
var clicky = 0;
var mouseX = 1;
var mouseY = 1;
var currentBoost = new THREE.Matrix4().set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);
var fixOutside = true; //moves you back inside the central cell if you leave it
// var decoration = "monkey";
// var decoration = "cubeDual";
// var decoration = "truncatedCube";
// var decoration = "truncatedCubeBdry";
// var decoration = "truncatedCubeMinimal";
// var doubleSided = true;
// var decoration = "dodecahedron";
// var decoration = "dodecahedronThinner";
// var decoration = "dodecDual";
var decoration = "giftsDodec";
// var decoration = "SeifertWeberMonkeyLowRes";
// var decoration = "SeifertWeberMonkeyLowResDodec";
// var decoration = "DodecNonMonkeyDirections";
var doubleSided = true;
// var doubleSided = false;
var numObjects = 1; //number of obj files to load
var numGens = tilingGens.length;
var tilingDepth = 3;
var unpackPair = makeTsfmsList( tilingGens, tilingDepth );
var tsfms = unpackPair[0];
var cumulativeNumTsfms = unpackPair[1];
var numTiles = tsfms.length;
var bigMatArray = new Array(numObjects * numTiles);
var tone = [
document.querySelector('#cubeUp1'),
document.querySelector('#cubeUp2'),
document.querySelector('#cubeUp3'),
document.querySelector('#cubeUp4'),
document.querySelector('#cubeUp5'),
document.querySelector('#cubeUp6'),
document.querySelector('#cubeUp7'),
document.querySelector('#cubeUp8'),
document.querySelector('#cubeUp9'),
document.querySelector('#cubeUp10'),
document.querySelector('#cubeUp11'),
document.querySelector('#cubeUp12')
];
function init() {
start = Date.now();
scene = new THREE.Scene();
camera = new THREE.PerspectiveCamera(80, window.innerWidth / window.innerHeight, 0.1, 100);
camera.position.x = 0;
camera.position.z = 0;
renderer = new THREE.WebGLRenderer({ antialias: true });
document.body.appendChild(renderer.domElement);
controls = new THREE.VRControls(camera);
effect = new THREE.VREffect(renderer);
effect.setSize(window.innerWidth, window.innerHeight);
materialBase = new THREE.ShaderMaterial({
uniforms: { // these are the parameters for the shader
time: { // global time
type: "f",
value: 0.0
},
translation: { // quaternion that moves shifts the object, set once per object
type: "m4",
value: new THREE.Matrix4().set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
},
boost: {
type: "m4",
value: new THREE.Matrix4().set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
}
},
vertexShader: document.getElementById('vertexShader').textContent,
fragmentShader: document.getElementById('fragmentShader').textContent
});
if (doubleSided) {
materialBase.side = THREE.DoubleSide;
}
// one material per object, since they have a different positions
for (var i = 0; i < bigMatArray.length; i++) {
bigMatArray[i] = materialBase.clone();
}
var manager = new THREE.LoadingManager();
var loader = new THREE.OBJLoader(manager);
if (decoration == "monkey"){
loader.load('media/monkey_7.5k_tris.obj', function (object) {
for (var i = 0; i < cumulativeNumTsfms[1]; i++) {
var newObject = object.clone();
newObject.children[0].material = bigMatArray[(i)];
// newObject.children[0].frustumCulled = false;
scene.add(newObject);
}
});
loader.load('media/monkey_3k_tris.obj', function (object) {
for (var i = cumulativeNumTsfms[1]; i < cumulativeNumTsfms[2]; i++) {
var newObject = object.clone();
newObject.children[0].material = bigMatArray[(i)];
// newObject.children[0].frustumCulled = false;
scene.add(newObject);
}
});
loader.load('media/monkey_250_tris.obj', function (object) {
for (var i = cumulativeNumTsfms[2]; i < cumulativeNumTsfms[3]; i++) {
var newObject = object.clone();
newObject.children[0].material = bigMatArray[(i)];
// newObject.children[0].frustumCulled = false;
scene.add(newObject);
}
});
loader.load('media/monkey_150_tris.obj', function (object) {
for (var i = cumulativeNumTsfms[3]; i < numTiles; i++) {
var newObject = object.clone();
newObject.children[0].material = bigMatArray[(i)];
// newObject.children[0].frustumCulled = false;
scene.add(newObject);
}
});
}
else {
loader.load('media/'.concat(decoration, '.obj'), function (object) {
for (var i = 0; i < numTiles; i++) {
var newObject = object.clone();
newObject.children[0].material = bigMatArray[(i)];
// newObject.children[0].frustumCulled = false;
scene.add(newObject);
}
});
}
////// create info overlay
var infoText = THREE.ImageUtils.loadTexture( "media/twelve-ui.png" );
var infoMaterial = new THREE.MeshBasicMaterial( {map: infoText, wireframe: false, color: 0x777777 });
var infoBox = new THREE.BoxGeometry(2,1,1);
infoSprite = new THREE.Mesh( infoBox, infoMaterial );
infoSprite.position.z = -2;
infoSprite.position.x = -.5;
infoSprite.position.y = -1;
infoSprite.rotation.x = -.3;
scene.add( infoSprite );
effect.render(scene, camera);
}
function animate() {
for (var k = 0; k < numObjects; k++) {
for (var j = 0; j < numTiles; j++) {
var i = j + numTiles*k;
bigMatArray[i].uniforms['translation'].value = tsfms[j];
bigMatArray[i].uniforms['boost'].value = currentBoost;
// bigMatArray[i].visible = phraseOnOffMaps[currentPhrase][k];
}
}
controls.update();
effect.render(scene, camera);
requestAnimationFrame(animate);
}
init();
animate();
| DarkPrince304/webVR-playing-with | js/TwelveToneTiling.js | JavaScript | mpl-2.0 | 5,865 |
const StorageBucket = require('./StorageBucket')
module.exports = new StorageBucket('mailboxes')
| openWMail/openWMail | src/app/src/app/storage/mailboxStorage.js | JavaScript | mpl-2.0 | 97 |
//@flow
import React from 'react';
import { create } from 'react-test-renderer';
import Article from './article.jsx';
import Breadcrumbs from './breadcrumbs.jsx';
import Document, { DocumentRoute, Sidebar } from './document.jsx';
import Header from './header/header.jsx';
import Newsletter from './newsletter.jsx';
import Footer from './footer.jsx';
import TaskCompletionSurvey from './task-completion-survey.jsx';
import Titlebar from './titlebar.jsx';
export const fakeDocumentData = {
locale: 'en-US',
slug: 'test',
enSlug: 'fake/en/slug',
id: 42,
title: '[fake document title]',
summary: '[fake document summary]',
language: 'English (US)',
hrefLang: 'en',
absoluteURL: '[fake absolute url]',
translationStatus: null,
translateURL: '[fake translate url]',
wikiURL:
'https://wiki.mdn.developer.mozilla.org/en-US/docs/Web/CSS/box-shadow',
editURL:
'https://wiki.mdn.developer.mozilla.org/en-US/docs/Web/CSS/box-shadow$edit',
bodyHTML: '[fake body HTML]',
quickLinksHTML: '[fake quicklinks HTML]',
tocHTML: '[fake TOC HTML]',
parents: [
{
url: '[fake grandparent url]',
title: '[fake grandparent title]',
},
{
url: '[fake parent url]',
title: '[fake parent title]',
},
],
translations: [
{
locale: 'es',
language: 'Español',
hrefLang: 'es',
localizedLanguage: 'Spanish',
url: '[fake spanish url]',
title: '[fake spanish translation]',
},
],
lastModified: '2019-01-02T03:04:05Z',
};
describe('Document component renders all of its parts', () => {
const document = create(<Document data={fakeDocumentData} />);
const snapshot = JSON.stringify(document.toJSON());
const root = document.root;
// The document should have exactly one Header
test('header', () => {
const headers = root.findAllByType(Header);
expect(headers.length).toBe(1);
});
// The document has a task completion survey component, even
// if it does not render anything
test('task completion survey', () => {
expect(root.findAllByType(TaskCompletionSurvey).length).toBe(1);
});
// The document should have one Titlebar, with the document title.
test('titlebar', () => {
const titlebars = root.findAllByType(Titlebar);
expect(titlebars.length).toBe(1);
expect(titlebars[0].props.title).toBe(fakeDocumentData.title);
});
// The document has one breadcrumbs element with links to the
// ancestor elements
test('breadcrumbs', () => {
const breadcrumbs = root.findAllByType(Breadcrumbs);
expect(breadcrumbs.length).toBe(1);
const links = breadcrumbs[0].findAllByType('a');
for (let i = 0; i < fakeDocumentData.parents.length; i++) {
let parent = fakeDocumentData.parents[i];
let link = links[i];
expect(link.props.href).toBe(parent.url);
expect(link.children[0].children[0]).toBe(parent.title);
}
});
// The document has one sidebar element
test('sidebar', () => {
const sidebars = root.findAllByType(Sidebar);
expect(sidebars.length).toBe(1);
});
// And one article element
test('article', () => {
const articles = root.findAllByType(Article);
expect(articles.length).toBe(1);
});
// The document has one newsletter element
test('newsletter', () => {
const newsletter = root.findAllByType(Newsletter);
expect(newsletter.length).toBe(1);
});
// And one footer element
test('footer', () => {
const footer = root.findAllByType(Footer);
expect(footer.length).toBe(1);
});
// And make sure that our various strings of HTML appear in the document
test('html strings', () => {
expect(snapshot).toContain(fakeDocumentData.tocHTML);
expect(snapshot).toContain(fakeDocumentData.quickLinksHTML);
expect(snapshot).toContain(fakeDocumentData.bodyHTML);
});
});
describe('DocumentRoute', () => {
const route = new DocumentRoute('en-US');
test('getComponent()', () => {
expect(route.getComponent()).toBe(Document);
});
test('matches well-formed URLs and paths, extracts slug', () => {
expect(route.match('https://mdn.dev/en-US/docs/slug')).toEqual({
locale: 'en-US',
slug: 'slug',
});
expect(route.match('/en-US/docs/slug')).toEqual({
locale: 'en-US',
slug: 'slug',
});
expect(route.match('en-US/docs/slug')).toEqual({
locale: 'en-US',
slug: 'slug',
});
expect(route.match('/en-US/docs/Web/API/Canvas')).toEqual({
locale: 'en-US',
slug: 'Web/API/Canvas',
});
});
test('does not match wrong locale', () => {
expect(route.match('/es/docs/slug')).toBe(null);
expect(route.match('https://mdn.dev/fr/docs/slug')).toBe(null);
expect(route.match('//docs/slug')).toBe(null);
});
test('does not match urls without /docs/', () => {
expect(route.match('/en-US/ducks/slug')).toBe(null);
expect(route.match('https://mdn.dev/en-US/ducks/slug')).toBe(null);
});
test('fetch() method fetches the right data', (done) => {
// In this test we want to verify that UserProvider is
// fetching user data from an API. So we need to mock fetch().
global.fetch = jest.fn(() => {
return Promise.resolve({
ok: true,
json: () => Promise.resolve({ documentData: fakeDocumentData }),
});
});
route.fetch({ locale: 'en-US', slug: 'Web/API/Canvas' }).then(() => {
expect(global.fetch).toHaveBeenCalledTimes(1);
expect(global.fetch).toHaveBeenCalledWith(
'/api/v1/doc/en-US/Web/API/Canvas'
);
done();
});
});
test('fetch() method falls back to en-US for untranslated docs', (done) => {
// In this test we want to verify that UserProvider is
// fetching user data from an API. So we need to mock fetch().
global.fetch = jest.fn((url) => {
return Promise.resolve({
ok: url.includes('en-US'),
json: () => Promise.resolve({ documentData: fakeDocumentData }),
});
});
// fetch() falls back to the english locale if it can't find
// a document in the requested language
const route2 = new DocumentRoute('untranslated');
route2
.fetch({ locale: 'untranslated', slug: 'Web/API/Canvas' })
.then(() => {
expect(global.fetch).toHaveBeenCalledTimes(2);
expect(global.fetch.mock.calls[0][0]).toBe(
'/api/v1/doc/untranslated/Web/API/Canvas'
);
expect(global.fetch.mock.calls[1][0]).toBe(
'/api/v1/doc/en-US/Web/API/Canvas'
);
done();
});
});
test('getTitle() returns the fetched document title', () => {
expect(
route.getTitle({ locale: 'en-US', slug: 'slug' }, fakeDocumentData)
).toBe(fakeDocumentData.title);
});
test('analyticsHook() calls ga with enSlug', () => {
let ga = jest.fn();
route.analyticsHook(
ga,
{ locale: 'en-US', slug: 'slug' },
fakeDocumentData
);
expect(ga.mock.calls[0][0]).toBe('set');
expect(ga.mock.calls[0][1]).toBe('dimension17');
expect(ga.mock.calls[0][2]).toBe(fakeDocumentData.enSlug);
});
});
| a2sheppy/kuma | kuma/javascript/src/document.test.js | JavaScript | mpl-2.0 | 7,818 |
var omnikey_callback=null,omnikey_callback_called=!1;function do_submit(){var a=document.getElementById("pin").value;null!=omnikey_callback&&(omnikey_callback_called=!0,omnikey_callback(a));setTimeout(function(){window_close("omnikey.html")},0);return!1}function load(a){a?(null!=getBG().g_omnikey_callback&&(omnikey_callback=getBG().g_omnikey_callback,getBG().g_omnikey_callback=null),document.getElementById("pin").focus()):get_data("omnikey",function(){load(!0)})};
| MKuenzi/browser-laptop | app/extensions/lastpass/omnikey1.js | JavaScript | mpl-2.0 | 469 |
/**
* @prettier
*/
const { assert, itMacro, describeMacro } = require('./utils');
const jsdom = require('jsdom');
const locales = {
'en-US': {
Firefox_developer_release_notes: 'Firefox developer release notes'
},
fr: {
Firefox_developer_release_notes: 'Notes de versions pour développeurs'
}
};
function checkSidebarDom(dom, locale) {
let section = dom.querySelector('section');
assert(
section.classList.contains('Quick_links'),
'Section does not contain Quick_links class'
);
let summaries = dom.querySelectorAll('summary');
assert.equal(
summaries[0].textContent,
locales[locale].Firefox_developer_release_notes
);
}
describeMacro('FirefoxSidebar', function() {
itMacro('Creates a sidebar object for en-US', function(macro) {
macro.ctx.env.locale = 'en-US';
return macro.call().then(function(result) {
let dom = jsdom.JSDOM.fragment(result);
checkSidebarDom(dom, 'en-US');
});
});
itMacro('Creates a sidebar object for fr', function(macro) {
macro.ctx.env.locale = 'fr';
return macro.call().then(function(result) {
let dom = jsdom.JSDOM.fragment(result);
checkSidebarDom(dom, 'fr');
});
});
});
| a2sheppy/kumascript | tests/macros/firefoxsidebar.test.js | JavaScript | mpl-2.0 | 1,306 |
/**
* Copyright 2017 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
'use strict';
import { ErrorFactory } from '@firebase/util';
import Errors from '../models/errors';
import TokenManager from '../models/token-manager';
import NOTIFICATION_PERMISSION from '../models/notification-permission';
var SENDER_ID_OPTION_NAME = 'messagingSenderId';
var ControllerInterface = /** @class */ (function () {
/**
* An interface of the Messaging Service API
* @param {!firebase.app.App} app
*/
function ControllerInterface(app) {
var _this = this;
this.errorFactory_ = new ErrorFactory('messaging', 'Messaging', Errors.map);
if (!app.options[SENDER_ID_OPTION_NAME] ||
typeof app.options[SENDER_ID_OPTION_NAME] !== 'string') {
throw this.errorFactory_.create(Errors.codes.BAD_SENDER_ID);
}
this.messagingSenderId_ = app.options[SENDER_ID_OPTION_NAME];
this.tokenManager_ = new TokenManager();
this.app = app;
this.INTERNAL = {};
this.INTERNAL.delete = function () { return _this.delete; };
}
/**
* @export
* @return {Promise<string> | Promise<null>} Returns a promise that
* resolves to an FCM token.
*/
ControllerInterface.prototype.getToken = function () {
var _this = this;
// Check with permissions
var currentPermission = this.getNotificationPermission_();
if (currentPermission !== NOTIFICATION_PERMISSION.granted) {
if (currentPermission === NOTIFICATION_PERMISSION.denied) {
return Promise.reject(this.errorFactory_.create(Errors.codes.NOTIFICATIONS_BLOCKED));
}
// We must wait for permission to be granted
return Promise.resolve(null);
}
return this.getSWRegistration_().then(function (registration) {
return _this.tokenManager_
.getSavedToken(_this.messagingSenderId_, registration)
.then(function (token) {
if (token) {
return token;
}
return _this.tokenManager_.createToken(_this.messagingSenderId_, registration);
});
});
};
/**
* This method deletes tokens that the token manager looks after and then
* unregisters the push subscription if it exists.
* @export
* @param {string} token
* @return {Promise<void>}
*/
ControllerInterface.prototype.deleteToken = function (token) {
var _this = this;
return this.tokenManager_.deleteToken(token).then(function () {
return _this.getSWRegistration_()
.then(function (registration) {
if (registration) {
return registration.pushManager.getSubscription();
}
})
.then(function (subscription) {
if (subscription) {
return subscription.unsubscribe();
}
});
});
};
ControllerInterface.prototype.getSWRegistration_ = function () {
throw this.errorFactory_.create(Errors.codes.SHOULD_BE_INHERITED);
};
//
// The following methods should only be available in the window.
//
ControllerInterface.prototype.requestPermission = function () {
throw this.errorFactory_.create(Errors.codes.AVAILABLE_IN_WINDOW);
};
/**
* @export
* @param {!ServiceWorkerRegistration} registration
*/
ControllerInterface.prototype.useServiceWorker = function (registration) {
throw this.errorFactory_.create(Errors.codes.AVAILABLE_IN_WINDOW);
};
/**
* @export
* @param {!firebase.Observer|function(*)} nextOrObserver
* @param {function(!Error)=} optError
* @param {function()=} optCompleted
* @return {!function()}
*/
ControllerInterface.prototype.onMessage = function (nextOrObserver, optError, optCompleted) {
throw this.errorFactory_.create(Errors.codes.AVAILABLE_IN_WINDOW);
};
/**
* @export
* @param {!firebase.Observer|function()} nextOrObserver An observer object
* or a function triggered on token refresh.
* @param {function(!Error)=} optError Optional A function
* triggered on token refresh error.
* @param {function()=} optCompleted Optional function triggered when the
* observer is removed.
* @return {!function()} The unsubscribe function for the observer.
*/
ControllerInterface.prototype.onTokenRefresh = function (nextOrObserver, optError, optCompleted) {
throw this.errorFactory_.create(Errors.codes.AVAILABLE_IN_WINDOW);
};
//
// The following methods are used by the service worker only.
//
/**
* @export
* @param {function(Object)} callback
*/
ControllerInterface.prototype.setBackgroundMessageHandler = function (callback) {
throw this.errorFactory_.create(Errors.codes.AVAILABLE_IN_SW);
};
//
// The following methods are used by the service themselves and not exposed
// publicly or not expected to be used by developers.
//
/**
* This method is required to adhere to the Firebase interface.
* It closes any currently open indexdb database connections.
*/
ControllerInterface.prototype.delete = function () {
return this.tokenManager_.closeDatabase();
};
/**
* Returns the current Notification Permission state.
* @private
* @return {string} The currenct permission state.
*/
ControllerInterface.prototype.getNotificationPermission_ = function () {
return Notification.permission;
};
/**
* @protected
* @returns {TokenManager}
*/
ControllerInterface.prototype.getTokenManager = function () {
return this.tokenManager_;
};
return ControllerInterface;
}());
export default ControllerInterface;
//# sourceMappingURL=controller-interface.js.map
| Kalissaac/Mountainz | node_modules/@firebase/messaging/dist/esm/src/controllers/controller-interface.js | JavaScript | mpl-2.0 | 6,510 |
/* */
var baseClamp = require('./_baseClamp'),
baseToString = require('./_baseToString'),
toInteger = require('./toInteger'),
toString = require('./toString');
/**
* Checks if `string` ends with the given target string.
*
* @static
* @memberOf _
* @since 3.0.0
* @category String
* @param {string} [string=''] The string to search.
* @param {string} [target] The string to search for.
* @param {number} [position=string.length] The position to search up to.
* @returns {boolean} Returns `true` if `string` ends with `target`,
* else `false`.
* @example
*
* _.endsWith('abc', 'c');
* // => true
*
* _.endsWith('abc', 'b');
* // => false
*
* _.endsWith('abc', 'b', 2);
* // => true
*/
function endsWith(string, target, position) {
string = toString(string);
target = baseToString(target);
var length = string.length;
position = position === undefined
? length
: baseClamp(toInteger(position), 0, length);
position -= target.length;
return position >= 0 && string.indexOf(target, position) == position;
}
module.exports = endsWith;
| mscottnelson/grapph | public/jspm_packages/npm/[email protected]/endsWith.js | JavaScript | agpl-3.0 | 1,089 |
/* Omega User JS Representation
*
* Copyright (C) 2013 Mohammed Morsi <[email protected]>
* Licensed under the AGPLv3 http://www.gnu.org/licenses/agpl.txt
*/
Omega.User = function(parameters){
$.extend(this, parameters);
};
Omega.User.prototype = {
json_class : 'Users::User'
};
| movitto/omega | site/source/javascripts/omega/user.js | JavaScript | agpl-3.0 | 285 |
angular.module("viradapp.programacao", [])
.factory('Programacao', function() {
return {
init: function(){console.log("stub service")},
}
})
.filter('newlefilter', function(){
/**
* This filter receives 3 objects:
* 1 - Events Lazy sequence
* 2 - Spaces Lazy sequence
* 3 - And a Filter object
*
* Returns the Filtered Lazy Sequence
*
*/
return function(events, spaces, filters){
var lefilter = function (event){
var hasSpace = false;
var space = spaces.findWhere({
id: event.spaceId.toString()
});
if(typeof space !== 'undefined'){
if(filters.places.data.length > 0){
// If the places array is not empty,
// test if the event belongs to one of the places
if(!Lazy(filters.places.data).contains(space.id)){
return false;
}
}
var lm = new RegExp((filters.query), 'ig');
hasSpace = lm.test(space.name.substring(filters.query));
event.spaceData = space;
}
var date = moment(event.startsOn + " " + event.startsAt,
"YYYY-MM-DD hh:mm").format('x');
return (date <= filters.ending
&& date >= filters.starting)
&& (event.name.indexOf(filters.query) >= 0
|| hasSpace);
};
// MOVE TO INIT
events.groupBy('spaceId').sortBy();
return events.filter(lefilter);
};
})
.filter('lefilter', function(){
var projects = {
'865': 'Virada Coral',
'857': 'Viradinha',
'794': 'II Mostra de Teatros e Espaços Independentes',
'855': '19º Cultura Inglesa Festival'
};
/**
* This filter receives 3 objects:
* 1 - Events Lazy sequence
* 2 - Spaces Lazy sequence
* 3 - And a Filter object
*
* Returns the Filtered Lazy Sequence
*
*/
return function(events, spaces, filters){
events.source.forEach(function(event){
if(!event.incProject && event.project && event.project.id && projects[event.project.id]){
event.name += ' [' + projects[event.project.id] + ']';
event.incProject = true;
}
});
var lefilter = function (event){
var hasSpace = false;
var lm = new RegExp((filters.query), 'ig');
var belongsTo = true;
var space = spaces.findWhere({
id: event.spaceId.toString()
});
event.space = space;
if(typeof space !== 'undefined'){
if(filters.places.data.length > 0){
// If the places array is not empty,
// test if the event belongs to one of the places
if(!Lazy(filters.places.data).contains(space.id.toString())){
belongsTo = false;
}
}
hasSpace = lm.test(space.name.substring(filters.query));
} else if(filters.places.data.length > 0){
belongsTo = false;
}
var date = moment(event.startsOn + " " + event.startsAt,
"YYYY-MM-DD hh:mm").format('x');
var hasInTitle = false;
if(typeof space !== 'undefined'){
hasInTitle = lm.test(event.name.substring(filters.query));
}
return belongsTo && (date <= filters.ending
&& date >= filters.starting)
&& (hasInTitle || hasSpace);
};
return events.filter(lefilter);
};
})
.filter('toSpaces', function(){
/**
* This filter receives a:
* 1 - Filtered Lazy sequence as data
*
* Returns an array with filtered spaces
*
*/
return function(data, spaces){
var currSpaces = [];
var toSpaces = function(event){
var space = spaces.findWhere({
id: event.spaceId.toString()
});
if(typeof space !== 'undefined'){
var curr = Lazy(currSpaces)
.findWhere({id : event.spaceId.toString()});
if(typeof curr !== 'undefined'){
curr.events.push(event);
} else {
curr = space;
curr.events = [];
curr.events.push(event);
currSpaces.push(curr);
}
}
return true;
};
var flattened = [];
var flattenList = function(space){
var spc = space.data;
spc.index = space.index;
flattened.push(spc);
Lazy(space.events).each(function(event){
flattened.push(event);
});
}
data.each(toSpaces);
Lazy(currSpaces).sortBy('index').each(flattenList);
return flattened;
};
})
.filter('searchPlaces', function(){
return function (items, query) {
if(typeof items === 'undefined') return;
var filtered = [];
var letterMatch = new RegExp((query), 'ig');
for (var i = 0; i < items.length; i++) {
var item = items[i];
if (query) {
if (letterMatch.test(item.name.substring(query.length))) {
filtered.push(item);
}
} else {
filtered.push(item);
}
}
return filtered;
};
});
| hacklabr/emergencias-app-bkp | www/js/programacao.js | JavaScript | agpl-3.0 | 5,591 |
/*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import React, {PureComponent} from 'react'
import {View} from '@instructure/ui-layout'
import CreatorEventGroup from './CreatorEventGroup'
import * as propTypes from './propTypes'
export default class AuditTrail extends PureComponent {
static propTypes = {
auditTrail: propTypes.auditTrail.isRequired
}
render() {
const {creatorEventGroups} = this.props.auditTrail
return (
<View as="div" id="assessment-audit-trail">
{creatorEventGroups.map(group => (
<CreatorEventGroup key={group.creator.key} creatorEventGroup={group} />
))}
</View>
)
}
}
| djbender/canvas-lms | app/jsx/speed_grader/AssessmentAuditTray/components/AuditTrail/index.js | JavaScript | agpl-3.0 | 1,309 |
import React from 'react'
import { shallow, configure } from 'enzyme'
import Adapter from 'enzyme-adapter-react-16'
import configureStore from 'redux-mock-store'
import GeneBreakdown from './GeneBreakdown'
import { STATE1, SEARCH_HASH } from '../fixtures'
configure({ adapter: new Adapter() })
test('shallow-render without crashing', () => {
const store = configureStore()(STATE1)
shallow(<GeneBreakdown store={store} searchHash={SEARCH_HASH} />)
})
| macarthur-lab/seqr | ui/shared/components/panel/search/GeneBreakdown.test.js | JavaScript | agpl-3.0 | 459 |
/*----------------------------------------------------------------------*/
/* Fonction qui verifie si la valeur d'un element est vide ou pas */
/*----------------------------------------------------------------------*/
function isEmpty(element) {
var tmp;
if(element.value == "") {
tmp = true;
} else {
tmp = false;
}
return tmp;
}
/*-------------------------------------------------------*/
/* Fonction qui verifie la bonne saisie d'un email */
/*------------------------------------------------------ */
function verifMail(element) {
var tmp;
var arobase = element.value.indexOf("@",1);
var point = element.value.indexOf(".", arobase+1);
if((arobase > -1) && (element.value.length > 2) && (point > 1)) {
tmp = true;
} else {
tmp = false;
}
return tmp;
}
/*-------------------------------------------------------*/
/* Verification de la bonne saisie du formulaire */
/*------------------------------------------------------ */
function verifForm(myForm) {
var tmp = false;
if(isEmpty(myForm.nom)) {
alert("Veuillez entrer votre nom !");
myForm.nom.focus();
tmp = false;
} else {
if(isEmpty(myForm.email) || !verifMail(myForm.email)) {
alert("Veuillez entrer une adresse email correcte !");
myForm.email.focus();
tmp = false;
} else {
if(isEmpty(myForm.url)) {
alert("Veuillez entrer l'adresse de votre site web !");
myForm.url.focus();
tmp = false;
} else {
if(isEmpty(myForm.rss)) {
alert("Veuillez entrer au moin une categorie !");
myForm.rss.focus();
tmp = false;
} else {
if(!myForm.ok.checked) {
alert("Veuillez accepter le reglement !");
myForm.ok.focus();
tmp = false;
} else {
tmp = true;
}
}
}
}
}
return tmp;
}
| theclimber/Bilboplanet | javascript/functions.js | JavaScript | agpl-3.0 | 1,871 |
/**
* PUSH Notification server
* (c) Telefonica Digital, 2012 - All rights reserved
* License: GNU Affero V3 (see LICENSE file)
* Fernando Rodríguez Sela <[email protected]>
* Guillermo Lopez Leal <[email protected]>
*/
var mn = require('../../src/common/MobileNetwork.js'),
assert = require('assert'),
vows = require('vows');
mn.start();
vows.describe('MobileNetwork tests').addBatch({
'Ready.': {
topic: function() {
mn.callbackReady(this.callback);
},
'is ready': function(ready) {
assert.isTrue(ready);
},
'Searching for 214-007.': {
topic: function() {
mn.getNetwork('214', '007', this.callback);
},
'error is null': function(error, data, where) {
assert.isNull(error);
},
'data received is an object': function(error, data, where) {
assert.isObject(data);
},
'data._id is 214-007': function(error, data, where) {
assert.equal(data._id, "214-007");
},
'data.country is Spain': function(error, data, where) {
assert.equal(data.country, "Spain");
},
'data.operator is "Telefónica Móviles España, SAU"': function(error, data, where) {
assert.equal(data.operator, "Telefónica Móviles España, SAU");
},
'data.mcc is 214': function(error, data, where) {
assert.equal(data.mcc, "214");
},
'data.mnc is 007': function(error, data, where) {
assert.equal(data.mnc, "007");
},
'where it comes is ddbb': function(error, data, where) {
assert.equal(where, "ddbb");
},
'Searching (came from cache).': {
topic: function() {
mn.getNetwork("214", "007", this.callback);
},
'error is null': function(error, data, where) {
assert.isNull(error);
},
'data received is an object': function(error, data, where) {
assert.isObject(data);
},
'data._id is 214-007': function(error, data, where) {
assert.equal(data._id, "214-007");
},
'data.country is Spain': function(error, data, where) {
assert.equal(data.country, "Spain");
},
'data.operator is "Telefónica Móviles España, SAU"': function(error, data, where) {
assert.equal(data.operator, "Telefónica Móviles España, SAU");
},
'data.mcc is 214': function(error, data, where) {
assert.equal(data.mcc, "214");
},
'data.mnc is 007': function(error, data, where) {
assert.equal(data.mnc, "007");
},
'where it comes is cache': function(error, data, where) {
assert.equal(where, (mn.isCacheEnabled == true ? "cache" : "ddbb"));
},
'Cache cleared.': {
topic: function() {
mn.resetCache(this.callback);
},
'Searching again (from DDBB).': {
topic: function() {
mn.getNetwork("214", "007", this.callback);
},
'error is null': function(error, data, where) {
assert.isNull(error);
},
'data received is an object': function(error, data, where) {
assert.isObject(data);
},
'data._id is 214-007': function(error, data, where) {
assert.equal(data._id, "214-007");
},
'data.country is Spain': function(error, data, where) {
assert.equal(data.country, "Spain");
},
'data.operator is "Telefónica Móviles España, SAU"': function(error, data, where) {
assert.equal(data.operator, "Telefónica Móviles España, SAU");
},
'data.mcc is 214': function(error, data, where) {
assert.equal(data.mcc, "214");
},
'data.mnc is 007': function(error, data, where) {
assert.equal(data.mnc, "007");
},
'where it comes is ddbb': function(error, data, where) {
assert.equal(where, "ddbb");
}
}
}
}
}
},
'Ready2.': {
topic: function() {
mn.callbackReady(this.callback);
},
'is ready': function(ready) {
assert.isTrue(ready);
},
'Recovering non existing.': {
topic: function() {
mn.getNetwork("999", "99", this.callback);
},
'error is null': function(error, data, where) {
assert.isNull(error);
},
'data is null': function(error, data, where) {
assert.isNull(error);
},
'where it comes is ddbb': function(error, data, where) {
assert.equal(where, 'ddbb');
}
}
},
'Ready3.': {
topic: function() {
mn.callbackReady(this.callback);
},
'is ready': function(ready) {
assert.isTrue(ready);
},
'Cache cleared.': {
topic: function() {
mn.resetCache(this.callback);
},
'Recovering 214-007 (testing padding).': {
topic: function() {
mn.getNetwork(214, 7, this.callback);
},
'error is null': function(error, data, where) {
assert.isNull(error);
},
'data received is an object': function(error, data, where) {
assert.isObject(data);
},
'data._id is 214-007': function(error, data, where) {
assert.equal(data._id, "214-007");
},
'data.country is Spain': function(error, data, where) {
assert.equal(data.country, "Spain");
},
'data.operator is "Telefónica Móviles España, SAU"': function(error, data, where) {
assert.equal(data.operator, "Telefónica Móviles España, SAU");
},
'data.mcc is 214': function(error, data, where) {
assert.equal(data.mcc, "214");
},
'data.mnc is 007': function(error, data, where) {
assert.equal(data.mnc, "007");
},
'where it comes is ddbb': function(error, data, where) {
assert.equal(where, "ddbb");
}
}
}
},
'Close': {
topic: mn.stop()
}
}).export(module); | frsela/notification_server | test/unit/mobilenetwork-test-disabled.js | JavaScript | agpl-3.0 | 7,485 |
/*
* Data HUb Service (DHuS) - For Space data distribution.
* Copyright (C) 2013,2014,2015,2016 European Space Agency (ESA)
* Copyright (C) 2013,2014,2015,2016 GAEL Systems
* Copyright (C) 2013,2014,2015,2016 Serco Spa
*
* This file is part of DHuS software sources.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
'use strict';
angular
.module('DHuS-webclient')
.factory('AuthenticationService', function($q, $injector){
//var http = $injector.get('$http');
var UserService = $injector.get('UserService');//{};
return {
loginUrl: '/login',
logoutUrl: '/logout',
odataAuthTest: function(){
http({
url: ApplicationConfig.baseUrl +"odata/v1/",
headers: {'Authorization' :"Basic " +ApplicationService.basicAuth }
});
},
login: function(username, password, delegate){
var self = this;
return http({
url: ApplicationConfig.baseUrl + self.loginUrl,
method: "POST",
contentType: 'application/x-www-form-urlencoded',
data: $.param({"login_username": username, "login_password": password}),
headers: {'Content-Type': 'application/x-www-form-urlencoded', 'Authorization' :"Basic " +window.btoa(username+':'+password) }
})
.success(function(response){
window.user = self.username;
ApplicationService.logged = true;
ApplicationService.basicAuth = window.btoa(username+':'+password);
UserService.getUser().then(function(model){
UserService.model = model;
});
window.location.replace("#/home");
self.odataAuthTest();
})
.error(function(){
//delegate.showMessage("The email and password you entered don't match.");
});
},
showLogin: function(){},
setLoginMethod: function(method){
this.showLogin = method;
},
logout: function(){
var self = this;
ApplicationService.basicAuth = '';
ApplicationService.logged = false;
return http({
url: ApplicationConfig.baseUrl + self.logoutUrl,
method: "POST"
}) ;
}
};
});
| calogera/DataHubSystem | client/webclient/src/main/frontend/app/scripts/services/authentication-service.js | JavaScript | agpl-3.0 | 2,781 |
'use strict';
var q = require('q');
var fs = require('fs-extra');
var mongoose = require('mongoose');
var path = require('path');
function connect(config) {
var defer = q.defer();
mongoose.connect(config.connectionString, function(err) {
if (err) {
return defer.reject(err);
}
console.log('Connected to MongoDB at', config.connectionString);
defer.resolve();
});
return defer.promise;
}
module.exports.connect = connect;
module.exports.connectFromFileConfig = function() {
var dbPath = path.resolve(__dirname + '/config/data/db.json');
var dbConf = fs.readJsonSync(dbPath);
return connect(dbConf);
};
module.exports.disconnect = function() {
var defer = q.defer();
console.log('Disconnecting from MongoDB');
mongoose.disconnect(function() {
defer.resolve();
});
return defer.promise;
};
| heroandtn3/openpaas-esn | fixtures/db.js | JavaScript | agpl-3.0 | 842 |
/*
* Copyright (C) 2012 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import $ from 'jquery'
import NotificationPreferences from 'compiled/notifications/NotificationPreferences'
import initPrivacyNotice from 'compiled/notifications/privacyNotice'
import ready from '@instructure/ready'
import 'compiled/profile/confirmEmail'
ready(() => new NotificationPreferences(ENV.NOTIFICATION_PREFERENCES_OPTIONS))
$(() => initPrivacyNotice())
| djbender/canvas-lms | app/jsx/bundles/notification_preferences.js | JavaScript | agpl-3.0 | 1,065 |
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission and of our proprietary license can be found at and
* in the LICENSE file you have received along with this program.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* "Shopware" is a registered trademark of shopware AG.
* The licensing of the program under the AGPLv3 does not imply a
* trademark license. Therefore any rights, title and interest in
* our trademarks remain entirely with us.
*/
//{namespace name=backend/article_list/main}
//{block name="backend/article_list/view/main/grid"}
Ext.define('Shopware.apps.ArticleList.view.main.Grid', {
extend: 'Ext.grid.Panel',
alias: 'widget.multi-edit-main-grid',
/**
* Make the grid statefull
*/
stateful: true,
/**
* StateId (used in the cookiename later)
*/
stateId: 'multiedit-grid',
/**
* Variant active column
*/
detailActiveColumn: null,
snippets: {
'Article_id': '{s name=columns/product/Article_id}Article_id{/s}',
'Article_mainDetailId': '{s name=columns/product/Article_mainDetailId}Article_mainDetailId{/s}',
'Article_supplierId': '{s name=columns/product/Article_supplierId}Article_supplierId{/s}',
'Article_taxId': '{s name=columns/product/Article_taxId}Article_taxId{/s}',
'Article_priceGroupId': '{s name=columns/product/Article_priceGroupId}Article_priceGroupId{/s}',
'Article_filterGroupId': '{s name=columns/product/Article_filterGroupId}Article_filterGroupId{/s}',
'Article_configuratorSetId': '{s name=columns/product/Article_configuratorSetId}Article_configuratorSetId{/s}',
'Article_name': '{s name=columns/product/Article_name}Article_name{/s}',
'Article_description': '{s name=columns/product/Article_description}Article_description{/s}',
'Article_descriptionLong': '{s name=columns/product/Article_descriptionLong}Article_descriptionLong{/s}',
'Article_added': '{s name=columns/product/Article_added}Article_added{/s}',
'Article_active': '{s name=columns/product/Article_active}Article_active{/s}',
'Article_pseudoSales': '{s name=columns/product/Article_pseudoSales}Article_pseudoSales{/s}',
'Article_highlight': '{s name=columns/product/Article_highlight}Article_highlight{/s}',
'Article_keywords': '{s name=columns/product/Article_keywords}Article_keywords{/s}',
'Article_changed': '{s name=columns/product/Article_changed}Article_changed{/s}',
'Article_priceGroupActive': '{s name=columns/product/Article_priceGroupActive}Article_priceGroupActive{/s}',
'Article_lastStock': '{s name=columns/product/Article_lastStock}Article_lastStock{/s}',
'Article_crossBundleLook': '{s name=columns/product/Article_crossBundleLook}Article_crossBundleLook{/s}',
'Article_notification': '{s name=columns/product/Article_notification}Article_notification{/s}',
'Article_template': '{s name=columns/product/Article_template}Article_template{/s}',
'Article_mode': '{s name=columns/product/Article_mode}Article_mode{/s}',
'Article_availableFrom': '{s name=columns/product/Article_availableFrom}Article_availableFrom{/s}',
'Article_availableTo': '{s name=columns/product/Article_availableTo}Article_availableTo{/s}',
'Detail_id': '{s name=columns/product/Detail_id}Detail_id{/s}',
'Detail_articleId': '{s name=columns/product/Detail_articleId}Detail_articleId{/s}',
'Detail_unitId': '{s name=columns/product/Detail_unitId}Detail_unitId{/s}',
'Detail_number': '{s name=columns/product/Detail_number}Detail_number{/s}',
'Detail_supplierNumber': '{s name=columns/product/Detail_supplierNumber}Detail_supplierNumber{/s}',
'Detail_kind': '{s name=columns/product/Detail_kind}Detail_kind{/s}',
'Detail_additionalText': '{s name=columns/product/Detail_additionalText}Detail_additionalText{/s}',
'Detail_active': '{s name=columns/product/Detail_active}Detail_active{/s}',
'Detail_inStock': '{s name=columns/product/Detail_inStock}Detail_inStock{/s}',
'Detail_stockMin': '{s name=columns/product/Detail_stockMin}Detail_stockMin{/s}',
'Detail_weight': '{s name=columns/product/Detail_weight}Detail_weight{/s}',
'Detail_width': '{s name=columns/product/Detail_width}Detail_width{/s}',
'Detail_len': '{s name=columns/product/Detail_len}Detail_len{/s}',
'Detail_height': '{s name=columns/product/Detail_height}Detail_height{/s}',
'Detail_ean': '{s name=columns/product/Detail_ean}Detail_ean{/s}',
'Detail_position': '{s name=columns/product/Detail_position}Detail_position{/s}',
'Detail_minPurchase': '{s name=columns/product/Detail_minPurchase}Detail_minPurchase{/s}',
'Detail_purchaseSteps': '{s name=columns/product/Detail_purchaseSteps}Detail_purchaseSteps{/s}',
'Detail_maxPurchase': '{s name=columns/product/Detail_maxPurchase}Detail_maxPurchase{/s}',
'Detail_purchaseUnit': '{s name=columns/product/Detail_purchaseUnit}Detail_purchaseUnit{/s}',
'Detail_referenceUnit': '{s name=columns/product/Detail_referenceUnit}Detail_referenceUnit{/s}',
'Detail_packUnit': '{s name=columns/product/Detail_packUnit}Detail_packUnit{/s}',
'Detail_shippingFree': '{s name=columns/product/Detail_shippingFree}Detail_shippingFree{/s}',
'Detail_releaseDate': '{s name=columns/product/Detail_releaseDate}Detail_releaseDate{/s}',
'Detail_shippingTime': '{s name=columns/product/Detail_shippingTime}Detail_shippingTime{/s}',
'Attribute_id': '{s name=columns/product/Attribute_id}Attribute_id{/s}',
'Attribute_articleId': '{s name=columns/product/Attribute_articleId}Attribute_articleId{/s}',
'Attribute_articleDetailId': '{s name=columns/product/Attribute_articleDetailId}Attribute_articleDetailId{/s}',
'Attribute_attr1': '{s name=columns/product/Attribute_attr1}Attribute_attr1{/s}',
'Attribute_attr2': '{s name=columns/product/Attribute_attr2}Attribute_attr2{/s}',
'Attribute_attr3': '{s name=columns/product/Attribute_attr3}Attribute_attr3{/s}',
'Attribute_attr4': '{s name=columns/product/Attribute_attr4}Attribute_attr4{/s}',
'Attribute_attr5': '{s name=columns/product/Attribute_attr5}Attribute_attr5{/s}',
'Attribute_attr6': '{s name=columns/product/Attribute_attr6}Attribute_attr6{/s}',
'Attribute_attr7': '{s name=columns/product/Attribute_attr7}Attribute_attr7{/s}',
'Attribute_attr8': '{s name=columns/product/Attribute_attr8}Attribute_attr8{/s}',
'Attribute_attr9': '{s name=columns/product/Attribute_attr9}Attribute_attr9{/s}',
'Attribute_attr10': '{s name=columns/product/Attribute_attr10}Attribute_attr10{/s}',
'Attribute_attr11': '{s name=columns/product/Attribute_attr11}Attribute_attr11{/s}',
'Attribute_attr12': '{s name=columns/product/Attribute_attr12}Attribute_attr12{/s}',
'Attribute_attr13': '{s name=columns/product/Attribute_attr13}Attribute_attr13{/s}',
'Attribute_attr14': '{s name=columns/product/Attribute_attr14}Attribute_attr14{/s}',
'Attribute_attr15': '{s name=columns/product/Attribute_attr15}Attribute_attr15{/s}',
'Attribute_attr16': '{s name=columns/product/Attribute_attr16}Attribute_attr16{/s}',
'Attribute_attr17': '{s name=columns/product/Attribute_attr17}Attribute_attr17{/s}',
'Attribute_attr18': '{s name=columns/product/Attribute_attr18}Attribute_attr18{/s}',
'Attribute_attr19': '{s name=columns/product/Attribute_attr19}Attribute_attr19{/s}',
'Attribute_attr20': '{s name=columns/product/Attribute_attr20}Attribute_attr20{/s}',
'Price_price': '{s name=columns/product/Price_price}Price_price{/s}',
'Price_netPrice': '{s name=columns/product/Price_netPrice}Price_netPrice{/s}',
'Supplier_name': '{s name=columns/product/Supplier_name}Supplier{/s}',
'Tax_name': '{s name=columns/product/Tax_name}Tax{/s}'
},
/**
* Setup the component
*/
initComponent: function () {
var me = this;
this.setupStateManager();
me.columns = me.getColumns();
me.tbar = me.getToolbar();
me.bbar = me.getPagingbar();
me.selModel = me.getGridSelModel();
me.addEvents(
/**
* Fired when the user edited a product in the grid
*/
'saveProduct',
/**
* Delete a single article
*/
'deleteProduct',
/**
* Delete multiple articles
*/
'deleteMultipleProducts',
/**
* Trigger the split view
*/
'triggerSplitView',
/**
* Triggered when the product selection changes
*/
'productchange',
/**
* A search was triggered
*/
'search'
);
me.rowEditing = Ext.create('Ext.grid.plugin.RowEditing', {
clicksToEdit: 2,
autoCancel: true,
listeners: {
scope: me,
edit: function (editor, context) {
me.fireEvent('saveProduct', editor, context)
}
}
});
me.plugins = me.rowEditing;
me.listeners = {
'afterrender': me.onAfterRender
};
me.callParent(arguments);
},
onAfterRender: function() {
var me = this;
Ext.each(me.columns, function(col) {
if (col.dataIndex == 'Detail_active') {
me.detailActiveColumn = col;
window.setTimeout(function() { col.setVisible(false); }, 0);
}
});
},
setupStateManager: function () {
var me = this;
me.stateManager = new Ext.state.LocalStorageProvider({ });
Ext.state.Manager.setProvider(me.stateManager);
},
/**
* Creates rowEditor Plugin
*
* @return [Ext.grid.plugin.RowEditing]
*/
getRowEditorPlugin: function () {
return Ext.create('Ext.grid.plugin.RowEditing', {
clicksToEdit: 2,
errorSummary: false,
pluginId: 'rowEditing'
});
},
/**
* Creates the grid selection model for checkboxes
*
* @return [Ext.selection.CheckboxModel] grid selection model
*/
getGridSelModel: function () {
var me = this;
return Ext.create('Ext.selection.CheckboxModel', {
listeners: {
// Unlocks the delete button if the user has checked at least one checkbox
selectionchange: function (sm, selections) {
me.deleteButton.setDisabled(selections.length === 0);
me.splitViewModeBtn.setDisabled(selections.length === 0);
me.fireEvent('productchange', selections);
}
}
});
},
getActionColumn: function () {
var me = this;
return {
xtype: 'actioncolumn',
width: 60,
items: [
/*{if {acl_is_allowed resource=article privilege=save}}*/
{
action: 'edit',
cls: 'editBtn',
iconCls: 'sprite-pencil',
handler: function (view, rowIndex, colIndex, item, opts, record) {
Shopware.app.Application.addSubApplication({
name: 'Shopware.apps.Article',
action: 'detail',
params: {
articleId: record.get('Article_id')
}
});
}
},
/*{/if}*/
/*{if {acl_is_allowed resource=article privilege=delete}}*/
{
iconCls: 'sprite-minus-circle-frame',
action: 'delete',
handler: function (view, rowIndex, colIndex, item, opts, record) {
me.fireEvent('deleteProduct', record);
}
}
/*{/if}*/
]
};
},
/**
* Helper method which creates the columns for the
* grid panel in this widget.
*
* @return [array] generated columns
*/
getColumns: function () {
var me = this,
colLength,
i,
column,
stateColumn,
columnDefinition,
width,
xtype,
renderer,
columns = [ ];
colLength = me.columnConfig.length;
for (i = 0; i < colLength; i++) {
column = me.columnConfig[i];
if (!column.allowInGrid) {
continue;
}
columnDefinition = {
dataIndex: column.alias,
header: me.getTranslationForColumnHead(column.alias),
/*{if {acl_is_allowed resource=article privilege=save}}*/
editor: me.getEditorForColumn(column),
/*{/if}*/
hidden: !column.show
};
if (xtype = me.getXtypeForColumn(column)) {
columnDefinition.xtype = xtype;
}
if (renderer = me.getRendererForColumn(column)) {
columnDefinition.renderer = renderer;
}
if (width = me.getWidthForColumn(column)) {
columnDefinition.width = width;
} else {
columnDefinition.flex = 1;
}
if (column.alias == 'Detail_active') {
columnDefinition.hidden = true;
}
columns.push(columnDefinition);
}
columns.push({
header: '{s name=list/column_info}Info{/s}',
width: 90,
renderer: me.infoColumnRenderer
});
columns.push(me.getActionColumn());
return columns;
},
/**
* Returns a proper xtype fo a column
*
* @param column
* @returns *
*/
getXtypeForColumn: function (column) {
var me = this;
if (column.alias == 'Price_price') {
return 'numbercolumn';
}
return undefined;
},
/**
* Column renderer for columns shown in <b>tags</b>
*
* @param value
* @returns string
*/
boldColumnRenderer: function (value, metaData, record) {
var result = value;
var checkbox = this.up('window').down('checkbox[name=displayVariants]');
if (checkbox.getValue() && record.get('Detail_additionalText')) {
result = value + ' - ' + record.get('Detail_additionalText');
}
return '<b>' + this.defaultColumnRenderer(result) + '</b>';
},
/**
* Column renderer for most of the columns
*
* @param value
* @returns string
*/
defaultColumnRenderer: function (value) {
return Ext.util.Format.htmlEncode(value);
},
/**
* Column renderer for boolean columns in order to
* @param value
*/
booleanColumnRenderer: function (value) {
var checked = 'sprite-ui-check-box-uncheck';
if (value == true) {
checked = 'sprite-ui-check-box';
}
return '<span style="display:block; margin: 0 auto; height:25px; width:25px;" class="' + checked + '"></span>';
},
/**
*
* Show info like: Is this a configurator article / does it have images /
* does it have a category
*
* @param value
* @param metaData
* @param record
* @returns string
*/
infoColumnRenderer: function (value, metaData, record) {
var me = this,
result = '',
title;
var style = 'style="width: 25px; height: 25px; display: inline-block; margin-right: 3px;"';
if (!record.get('imageSrc')) {
title = '{s name=list/tooltip_noimage}Article has no image{/s}';
result = result + '<div title="' + title + '" class="sprite-image--exclamation" ' + style + '> </div>';
}
if (record.get('hasConfigurator')) {
title = '{s name=list/tooltip_hasconfigurator}Article has configurator{/s}';
result = result + '<div title="' + title + '" class="sprite-images-stack" ' + style + '> </div>';
}
if (!record.get('hasCategories')) {
title = '{s name=list/tooltip_categories}Article is not assigned to any category{/s}';
result = result + '<div title="' + title + '" class="sprite-blue-folder--exclamation" ' + style + '> </div>';
}
return result;
},
/**
* Will return a renderer depending on the passed column.
* todo: Article_name should not be hardcoded here
*
* @param column
* @returns string|function
*/
getRendererForColumn: function (column) {
var me = this;
if (column.alias == 'Article_name') {
return me.boldColumnRenderer;
}
if (column.type == 'boolean') {
return me.booleanColumnRenderer;
}
if (column.alias == 'Detail_inStock') {
return me.colorColumnRenderer;
}
if (column.alias == 'Price_price') {
return undefined;
}
return me.defaultColumnRenderer;
},
/**
* Will return a green string for values > 0 and red otherwise
*
* @param value
* @returns string
*/
colorColumnRenderer: function (value) {
value = value || 0;
if (value > 0) {
return '<span style="color:green;">' + value + '</span>';
} else {
return '<span style="color:red;">' + value + '</span>';
}
},
/**
* Helper method which returns a "human readable" translation for a columnAlias
* Will return the columnAlias, if no translation was created
*
* @param columnHeader
* @returns string
*/
getTranslationForColumnHead: function (columnHeader) {
var me = this;
if (me.snippets.hasOwnProperty(columnHeader)) {
return me.snippets[columnHeader];
}
return columnHeader;
},
/**
* Return width for a given column
*
* For known fields like boolean, integer, date and datetime, we can try and
* educated guess, for anything else undefined is returned.
*
* @param column
*/
getWidthForColumn: function (column) {
var me = this;
if (column.alias.slice(-2).toLowerCase() == 'id') {
return 60;
}
switch (column.alias) {
case 'Price_price':
return 90;
case 'Detail_number':
return 110;
case 'Supplier_name':
return 110;
case 'Article_active':
case 'Detail_active':
return 40;
case 'Tax_name':
return 75;
case 'Detail_inStock':
return 80;
}
switch (column.type) {
case 'integer':
case 'decimal':
case 'float':
return 60;
case 'string':
case 'text':
return undefined;
case 'boolean':
return 60;
case 'date':
return 100;
case 'datetime':
return 140;
default:
return undefined;
}
},
/**
* Helper method which returns a rowEditing.editor for a given column.
*
* @param column
* @returns Object|boolean
*/
getEditorForColumn: function (column) {
var me = this;
// Do create editor for columns, which have been configured to be non-editable
if (!column.editable) {
return false;
}
switch (column.alias) {
case 'Price_price':
return {
width: 85,
xtype: 'numberfield',
allowBlank: false,
hideTrigger: true,
keyNavEnabled: false,
mouseWheelEnabled: false
};
default:
switch (column.type) {
case 'integer':
case 'decimal':
case 'float':
var precision = 0;
if (column.precision) {
precision = column.precision
} else if (column.type == 'float') {
precision = 3;
} else if (column.type == 'decimal') {
precision = 3;
}
return { xtype: 'numberfield', decimalPrecision: precision };
break;
case 'string':
case 'text':
return 'textfield';
break;
case 'boolean':
return {
xtype: 'checkbox',
inputValue: 1,
uncheckedValue: 0
};
break;
case 'date':
return new Ext.form.DateField({
disabled: false,
format: 'Y-m-d'
});
break;
case 'datetime':
return new Ext.form.DateField({
disabled: false,
format: 'Y-m-d H:i:s'
});
return new Shopware.apps.Base.view.element.DateTime({
timeCfg: { format: 'H:i:s' },
dateCfg: { format: 'Y-m-d' }
});
break;
default:
break;
}
break;
}
},
/**
* Creates the grid toolbar
*
* @return [Ext.toolbar.Toolbar] grid toolbar
*/
getToolbar: function () {
var me = this, buttons = [];
me.splitViewModeBtn = Ext.create('Ext.button.Button', {
iconCls: 'sprite-ui-split-panel',
text: '{s name=enableSplitView}Activate split view{/s}',
disabled: true,
enableToggle: true,
handler: function () {
var selectionModel = me.getSelectionModel(),
record = selectionModel.getSelection()[0];
me.fireEvent('triggerSplitView', this, record);
}
});
buttons.push(me.splitViewModeBtn);
/*{if {acl_is_allowed resource=article privilege=save}}*/
buttons.push(
Ext.create('Ext.button.Button', {
text: '{s name=addProduct}Add{/s}',
iconCls: 'sprite-plus-circle-frame',
handler: function () {
Shopware.app.Application.addSubApplication({
name: 'Shopware.apps.Article',
action: 'detail'
});
}
})
);
/*{/if}*/
//creates the delete button to remove all selected esds in one request.
me.deleteButton = Ext.create('Ext.button.Button', {
iconCls: 'sprite-minus-circle-frame',
text: '{s name=deleteProduct}Delete{/s}',
disabled: true,
handler: function () {
var selectionModel = me.getSelectionModel(),
records = selectionModel.getSelection();
if (records.length > 0) {
me.fireEvent('deleteMultipleProducts', records);
}
}
});
/*{if {acl_is_allowed resource=article privilege=delete}}*/
buttons.push(me.deleteButton);
/*{/if}*/
buttons.push('->');
buttons.push({
xtype: 'textfield',
name: 'searchfield',
action: 'search',
width: 170,
cls: 'searchfield',
enableKeyEvents: true,
checkChangeBuffer: 500,
emptyText: '{s name=list/emptytext_search}Search ...{/s}',
listeners: {
'change': function (field, value) {
var store = me.store,
searchString = Ext.String.trim(value);
me.fireEvent('search', searchString);
}
}
});
return Ext.create('Ext.toolbar.Toolbar', {
ui: 'shopware-ui',
items: buttons
});
},
/**
* Creates pagingbar
*
* @return Ext.toolbar.Paging
*/
getPagingbar: function () {
var me = this,
productSnippet = '{s name=pagingCombo/products}products{/s}';
var pageSize = Ext.create('Ext.form.field.ComboBox', {
labelWidth: 120,
cls: Ext.baseCSSPrefix + 'page-size',
queryMode: 'local',
width: 180,
editable: false,
listeners: {
scope: me,
select: me.onPageSizeChange
},
store: Ext.create('Ext.data.Store', {
fields: [ 'value', 'name' ],
data: [
{ value: '25', name: '25 ' + productSnippet },
{ value: '50', name: '50 ' + productSnippet },
{ value: '75', name: '75 ' + productSnippet }
]
}),
displayField: 'name',
valueField: 'value'
});
var pagingBar = Ext.create('Ext.toolbar.Paging', {
dock: 'bottom',
displayInfo: true
});
pagingBar.insert(pagingBar.items.length - 2, [
{ xtype: 'tbspacer', width: 6 },
pageSize
]);
return pagingBar;
},
/**
* Event listener method which fires when the user selects
* a entry in the "number of orders"-combo box.
*
* @event select
* @param [object] combo - Ext.form.field.ComboBox
* @param [array] records - Array of selected entries
* @return void
*/
onPageSizeChange: function (combo, records) {
var record = records[0],
me = this;
me.store.pageSize = record.get('value');
if (!me.store.getProxy().extraParams.ast) {
return;
}
me.store.loadPage(1);
}
});
//{/block}
| Sunchairs/shopware | themes/Backend/ExtJs/backend/article_list/view/main/grid.js | JavaScript | agpl-3.0 | 27,560 |
import React from 'react';
import SPELLS from 'common/SPELLS';
import Panel from 'interface/others/Panel';
import CooldownOverview from 'interface/others/CooldownOverview';
import CoreCooldownThroughputTracker, { BUILT_IN_SUMMARY_TYPES } from 'parser/shared/modules/CooldownThroughputTracker';
class ProcTracker extends CoreCooldownThroughputTracker {
static cooldownSpells = [
{
spell: SPELLS.ASCENDANCE_TALENT_ENHANCEMENT,
summary: [
BUILT_IN_SUMMARY_TYPES.DAMAGE,
],
},
];
tab() {
return {
title: 'Procs',
url: 'procs',
render: () => (
<Panel>
<CooldownOverview
fightStart={this.owner.fight.start_time}
fightEnd={this.owner.fight.end_time}
cooldowns={this.pastCooldowns}
/>
</Panel>
),
};
}
}
export default ProcTracker;
| fyruna/WoWAnalyzer | src/parser/shaman/enhancement/modules/features/ProcTracker.js | JavaScript | agpl-3.0 | 874 |
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
* EU, LV-1021.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
"use strict";
function CreateGeometry(prst) {
var f = new Geometry();
switch (prst) {
case "accentBorderCallout1":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "112500");
f.AddAdj("adj4", 15, "-38333");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "t");
f.AddPathCommand(6);
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
break;
case "accentBorderCallout2":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "18750");
f.AddAdj("adj4", 15, "-16667");
f.AddAdj("adj5", 15, "112500");
f.AddAdj("adj6", 15, "-46667");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddGuide("y3", 0, "h", "adj5", "100000");
f.AddGuide("x3", 0, "w", "adj6", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddHandleXY("adj6", "-2147483647", "2147483647", "adj5", "-2147483647", "2147483647", "x3", "y3");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "t");
f.AddPathCommand(6);
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x3", "y3");
break;
case "accentBorderCallout3":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "18750");
f.AddAdj("adj4", 15, "-16667");
f.AddAdj("adj5", 15, "100000");
f.AddAdj("adj6", 15, "-16667");
f.AddAdj("adj7", 15, "112963");
f.AddAdj("adj8", 15, "-8333");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddGuide("y3", 0, "h", "adj5", "100000");
f.AddGuide("x3", 0, "w", "adj6", "100000");
f.AddGuide("y4", 0, "h", "adj7", "100000");
f.AddGuide("x4", 0, "w", "adj8", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddHandleXY("adj6", "-2147483647", "2147483647", "adj5", "-2147483647", "2147483647", "x3", "y3");
f.AddHandleXY("adj8", "-2147483647", "2147483647", "adj7", "-2147483647", "2147483647", "x4", "y4");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "t");
f.AddPathCommand(6);
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x4", "y4");
break;
case "accentCallout1":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "112500");
f.AddAdj("adj4", 15, "-38333");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "t");
f.AddPathCommand(6);
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
break;
case "accentCallout2":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "18750");
f.AddAdj("adj4", 15, "-16667");
f.AddAdj("adj5", 15, "112500");
f.AddAdj("adj6", 15, "-46667");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddGuide("y3", 0, "h", "adj5", "100000");
f.AddGuide("x3", 0, "w", "adj6", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddHandleXY("adj6", "-2147483647", "2147483647", "adj5", "-2147483647", "2147483647", "x3", "y3");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "t");
f.AddPathCommand(6);
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x3", "y3");
break;
case "accentCallout3":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "18750");
f.AddAdj("adj4", 15, "-16667");
f.AddAdj("adj5", 15, "100000");
f.AddAdj("adj6", 15, "-16667");
f.AddAdj("adj7", 15, "112963");
f.AddAdj("adj8", 15, "-8333");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddGuide("y3", 0, "h", "adj5", "100000");
f.AddGuide("x3", 0, "w", "adj6", "100000");
f.AddGuide("y4", 0, "h", "adj7", "100000");
f.AddGuide("x4", 0, "w", "adj8", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddHandleXY("adj6", "-2147483647", "2147483647", "adj5", "-2147483647", "2147483647", "x3", "y3");
f.AddHandleXY("adj8", "-2147483647", "2147483647", "adj7", "-2147483647", "2147483647", "x4", "y4");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "t");
f.AddPathCommand(6);
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x4", "y4");
break;
case "actionButtonBackPrevious":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g10", 1, "vc", "dx2", "0");
f.AddGuide("g11", 1, "hc", "0", "dx2");
f.AddGuide("g12", 1, "hc", "dx2", "0");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "g11", "vc");
f.AddPathCommand(2, "g12", "g9");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "g11", "vc");
f.AddPathCommand(2, "g12", "g9");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "g11", "vc");
f.AddPathCommand(2, "g12", "g9");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonBeginning":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g10", 1, "vc", "dx2", "0");
f.AddGuide("g11", 1, "hc", "0", "dx2");
f.AddGuide("g12", 1, "hc", "dx2", "0");
f.AddGuide("g13", 0, "ss", "3", "4");
f.AddGuide("g14", 0, "g13", "1", "8");
f.AddGuide("g15", 0, "g13", "1", "4");
f.AddGuide("g16", 1, "g11", "g14", "0");
f.AddGuide("g17", 1, "g11", "g15", "0");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "g17", "vc");
f.AddPathCommand(2, "g12", "g9");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(6);
f.AddPathCommand(1, "g16", "g9");
f.AddPathCommand(2, "g11", "g9");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(2, "g16", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "g17", "vc");
f.AddPathCommand(2, "g12", "g9");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(6);
f.AddPathCommand(1, "g16", "g9");
f.AddPathCommand(2, "g11", "g9");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(2, "g16", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "g17", "vc");
f.AddPathCommand(2, "g12", "g9");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(6);
f.AddPathCommand(1, "g16", "g9");
f.AddPathCommand(2, "g16", "g10");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(2, "g11", "g9");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonBlank":
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonDocument":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g10", 1, "vc", "dx2", "0");
f.AddGuide("dx1", 0, "ss", "9", "32");
f.AddGuide("g11", 1, "hc", "0", "dx1");
f.AddGuide("g12", 1, "hc", "dx1", "0");
f.AddGuide("g13", 0, "ss", "3", "16");
f.AddGuide("g14", 1, "g12", "0", "g13");
f.AddGuide("g15", 1, "g9", "g13", "0");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "g11", "g9");
f.AddPathCommand(2, "g14", "g9");
f.AddPathCommand(2, "g12", "g15");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "g11", "g9");
f.AddPathCommand(2, "g14", "g9");
f.AddPathCommand(2, "g14", "g15");
f.AddPathCommand(2, "g12", "g15");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "g14", "g9");
f.AddPathCommand(2, "g14", "g15");
f.AddPathCommand(2, "g12", "g15");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "g11", "g9");
f.AddPathCommand(2, "g14", "g9");
f.AddPathCommand(2, "g12", "g15");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(6);
f.AddPathCommand(1, "g12", "g15");
f.AddPathCommand(2, "g14", "g15");
f.AddPathCommand(2, "g14", "g9");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonEnd":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g10", 1, "vc", "dx2", "0");
f.AddGuide("g11", 1, "hc", "0", "dx2");
f.AddGuide("g12", 1, "hc", "dx2", "0");
f.AddGuide("g13", 0, "ss", "3", "4");
f.AddGuide("g14", 0, "g13", "3", "4");
f.AddGuide("g15", 0, "g13", "7", "8");
f.AddGuide("g16", 1, "g11", "g14", "0");
f.AddGuide("g17", 1, "g11", "g15", "0");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "g16", "vc");
f.AddPathCommand(2, "g11", "g9");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(6);
f.AddPathCommand(1, "g17", "g9");
f.AddPathCommand(2, "g12", "g9");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(2, "g17", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "g16", "vc");
f.AddPathCommand(2, "g11", "g9");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(6);
f.AddPathCommand(1, "g17", "g9");
f.AddPathCommand(2, "g12", "g9");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(2, "g17", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "g16", "vc");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(2, "g11", "g9");
f.AddPathCommand(6);
f.AddPathCommand(1, "g17", "g9");
f.AddPathCommand(2, "g12", "g9");
f.AddPathCommand(2, "g12", "g10");
f.AddPathCommand(2, "g17", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonForwardNext":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g10", 1, "vc", "dx2", "0");
f.AddGuide("g11", 1, "hc", "0", "dx2");
f.AddGuide("g12", 1, "hc", "dx2", "0");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "g12", "vc");
f.AddPathCommand(2, "g11", "g9");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "g12", "vc");
f.AddPathCommand(2, "g11", "g9");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "g12", "vc");
f.AddPathCommand(2, "g11", "g10");
f.AddPathCommand(2, "g11", "g9");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonHelp":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g11", 1, "hc", "0", "dx2");
f.AddGuide("g13", 0, "ss", "3", "4");
f.AddGuide("g14", 0, "g13", "1", "7");
f.AddGuide("g15", 0, "g13", "3", "14");
f.AddGuide("g16", 0, "g13", "2", "7");
f.AddGuide("g19", 0, "g13", "3", "7");
f.AddGuide("g20", 0, "g13", "4", "7");
f.AddGuide("g21", 0, "g13", "17", "28");
f.AddGuide("g23", 0, "g13", "21", "28");
f.AddGuide("g24", 0, "g13", "11", "14");
f.AddGuide("g27", 1, "g9", "g16", "0");
f.AddGuide("g29", 1, "g9", "g21", "0");
f.AddGuide("g30", 1, "g9", "g23", "0");
f.AddGuide("g31", 1, "g9", "g24", "0");
f.AddGuide("g33", 1, "g11", "g15", "0");
f.AddGuide("g36", 1, "g11", "g19", "0");
f.AddGuide("g37", 1, "g11", "g20", "0");
f.AddGuide("g41", 0, "g13", "1", "14");
f.AddGuide("g42", 0, "g13", "3", "28");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "g33", "g27");
f.AddPathCommand(3, "g16", "g16", "cd2", "cd2");
f.AddPathCommand(3, "g14", "g15", "0", "cd4");
f.AddPathCommand(3, "g41", "g42", "_3cd4", "-5400000");
f.AddPathCommand(2, "g37", "g30");
f.AddPathCommand(2, "g36", "g30");
f.AddPathCommand(2, "g36", "g29");
f.AddPathCommand(3, "g14", "g15", "cd2", "cd4");
f.AddPathCommand(3, "g41", "g42", "cd4", "-5400000");
f.AddPathCommand(3, "g14", "g14", "0", "-10800000");
f.AddPathCommand(6);
f.AddPathCommand(1, "hc", "g31");
f.AddPathCommand(3, "g42", "g42", "_3cd4", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "g33", "g27");
f.AddPathCommand(3, "g16", "g16", "cd2", "cd2");
f.AddPathCommand(3, "g14", "g15", "0", "cd4");
f.AddPathCommand(3, "g41", "g42", "_3cd4", "-5400000");
f.AddPathCommand(2, "g37", "g30");
f.AddPathCommand(2, "g36", "g30");
f.AddPathCommand(2, "g36", "g29");
f.AddPathCommand(3, "g14", "g15", "cd2", "cd4");
f.AddPathCommand(3, "g41", "g42", "cd4", "-5400000");
f.AddPathCommand(3, "g14", "g14", "0", "-10800000");
f.AddPathCommand(6);
f.AddPathCommand(1, "hc", "g31");
f.AddPathCommand(3, "g42", "g42", "_3cd4", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "g33", "g27");
f.AddPathCommand(3, "g16", "g16", "cd2", "cd2");
f.AddPathCommand(3, "g14", "g15", "0", "cd4");
f.AddPathCommand(3, "g41", "g42", "_3cd4", "-5400000");
f.AddPathCommand(2, "g37", "g30");
f.AddPathCommand(2, "g36", "g30");
f.AddPathCommand(2, "g36", "g29");
f.AddPathCommand(3, "g14", "g15", "cd2", "cd4");
f.AddPathCommand(3, "g41", "g42", "cd4", "-5400000");
f.AddPathCommand(3, "g14", "g14", "0", "-10800000");
f.AddPathCommand(6);
f.AddPathCommand(1, "hc", "g31");
f.AddPathCommand(3, "g42", "g42", "_3cd4", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonHome":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g10", 1, "vc", "dx2", "0");
f.AddGuide("g11", 1, "hc", "0", "dx2");
f.AddGuide("g12", 1, "hc", "dx2", "0");
f.AddGuide("g13", 0, "ss", "3", "4");
f.AddGuide("g14", 0, "g13", "1", "16");
f.AddGuide("g15", 0, "g13", "1", "8");
f.AddGuide("g16", 0, "g13", "3", "16");
f.AddGuide("g17", 0, "g13", "5", "16");
f.AddGuide("g18", 0, "g13", "7", "16");
f.AddGuide("g19", 0, "g13", "9", "16");
f.AddGuide("g20", 0, "g13", "11", "16");
f.AddGuide("g21", 0, "g13", "3", "4");
f.AddGuide("g22", 0, "g13", "13", "16");
f.AddGuide("g23", 0, "g13", "7", "8");
f.AddGuide("g24", 1, "g9", "g14", "0");
f.AddGuide("g25", 1, "g9", "g16", "0");
f.AddGuide("g26", 1, "g9", "g17", "0");
f.AddGuide("g27", 1, "g9", "g21", "0");
f.AddGuide("g28", 1, "g11", "g15", "0");
f.AddGuide("g29", 1, "g11", "g18", "0");
f.AddGuide("g30", 1, "g11", "g19", "0");
f.AddGuide("g31", 1, "g11", "g20", "0");
f.AddGuide("g32", 1, "g11", "g22", "0");
f.AddGuide("g33", 1, "g11", "g23", "0");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "hc", "g9");
f.AddPathCommand(2, "g11", "vc");
f.AddPathCommand(2, "g28", "vc");
f.AddPathCommand(2, "g28", "g10");
f.AddPathCommand(2, "g33", "g10");
f.AddPathCommand(2, "g33", "vc");
f.AddPathCommand(2, "g12", "vc");
f.AddPathCommand(2, "g32", "g26");
f.AddPathCommand(2, "g32", "g24");
f.AddPathCommand(2, "g31", "g24");
f.AddPathCommand(2, "g31", "g25");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "g32", "g26");
f.AddPathCommand(2, "g32", "g24");
f.AddPathCommand(2, "g31", "g24");
f.AddPathCommand(2, "g31", "g25");
f.AddPathCommand(6);
f.AddPathCommand(1, "g28", "vc");
f.AddPathCommand(2, "g28", "g10");
f.AddPathCommand(2, "g29", "g10");
f.AddPathCommand(2, "g29", "g27");
f.AddPathCommand(2, "g30", "g27");
f.AddPathCommand(2, "g30", "g10");
f.AddPathCommand(2, "g33", "g10");
f.AddPathCommand(2, "g33", "vc");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "hc", "g9");
f.AddPathCommand(2, "g11", "vc");
f.AddPathCommand(2, "g12", "vc");
f.AddPathCommand(6);
f.AddPathCommand(1, "g29", "g27");
f.AddPathCommand(2, "g30", "g27");
f.AddPathCommand(2, "g30", "g10");
f.AddPathCommand(2, "g29", "g10");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "hc", "g9");
f.AddPathCommand(2, "g31", "g25");
f.AddPathCommand(2, "g31", "g24");
f.AddPathCommand(2, "g32", "g24");
f.AddPathCommand(2, "g32", "g26");
f.AddPathCommand(2, "g12", "vc");
f.AddPathCommand(2, "g33", "vc");
f.AddPathCommand(2, "g33", "g10");
f.AddPathCommand(2, "g28", "g10");
f.AddPathCommand(2, "g28", "vc");
f.AddPathCommand(2, "g11", "vc");
f.AddPathCommand(6);
f.AddPathCommand(1, "g31", "g25");
f.AddPathCommand(2, "g32", "g26");
f.AddPathCommand(1, "g33", "vc");
f.AddPathCommand(2, "g28", "vc");
f.AddPathCommand(1, "g29", "g10");
f.AddPathCommand(2, "g29", "g27");
f.AddPathCommand(2, "g30", "g27");
f.AddPathCommand(2, "g30", "g10");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonInformation":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g11", 1, "hc", "0", "dx2");
f.AddGuide("g13", 0, "ss", "3", "4");
f.AddGuide("g14", 0, "g13", "1", "32");
f.AddGuide("g17", 0, "g13", "5", "16");
f.AddGuide("g18", 0, "g13", "3", "8");
f.AddGuide("g19", 0, "g13", "13", "32");
f.AddGuide("g20", 0, "g13", "19", "32");
f.AddGuide("g22", 0, "g13", "11", "16");
f.AddGuide("g23", 0, "g13", "13", "16");
f.AddGuide("g24", 0, "g13", "7", "8");
f.AddGuide("g25", 1, "g9", "g14", "0");
f.AddGuide("g28", 1, "g9", "g17", "0");
f.AddGuide("g29", 1, "g9", "g18", "0");
f.AddGuide("g30", 1, "g9", "g23", "0");
f.AddGuide("g31", 1, "g9", "g24", "0");
f.AddGuide("g32", 1, "g11", "g17", "0");
f.AddGuide("g34", 1, "g11", "g19", "0");
f.AddGuide("g35", 1, "g11", "g20", "0");
f.AddGuide("g37", 1, "g11", "g22", "0");
f.AddGuide("g38", 0, "g13", "3", "32");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "hc", "g9");
f.AddPathCommand(3, "dx2", "dx2", "_3cd4", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "hc", "g9");
f.AddPathCommand(3, "dx2", "dx2", "_3cd4", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(1, "hc", "g25");
f.AddPathCommand(3, "g38", "g38", "_3cd4", "21600000");
f.AddPathCommand(1, "g32", "g28");
f.AddPathCommand(2, "g32", "g29");
f.AddPathCommand(2, "g34", "g29");
f.AddPathCommand(2, "g34", "g30");
f.AddPathCommand(2, "g32", "g30");
f.AddPathCommand(2, "g32", "g31");
f.AddPathCommand(2, "g37", "g31");
f.AddPathCommand(2, "g37", "g30");
f.AddPathCommand(2, "g35", "g30");
f.AddPathCommand(2, "g35", "g28");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "lighten", false, undefined, undefined);
f.AddPathCommand(1, "hc", "g25");
f.AddPathCommand(3, "g38", "g38", "_3cd4", "21600000");
f.AddPathCommand(1, "g32", "g28");
f.AddPathCommand(2, "g35", "g28");
f.AddPathCommand(2, "g35", "g30");
f.AddPathCommand(2, "g37", "g30");
f.AddPathCommand(2, "g37", "g31");
f.AddPathCommand(2, "g32", "g31");
f.AddPathCommand(2, "g32", "g30");
f.AddPathCommand(2, "g34", "g30");
f.AddPathCommand(2, "g34", "g29");
f.AddPathCommand(2, "g32", "g29");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "hc", "g9");
f.AddPathCommand(3, "dx2", "dx2", "_3cd4", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(1, "hc", "g25");
f.AddPathCommand(3, "g38", "g38", "_3cd4", "21600000");
f.AddPathCommand(1, "g32", "g28");
f.AddPathCommand(2, "g35", "g28");
f.AddPathCommand(2, "g35", "g30");
f.AddPathCommand(2, "g37", "g30");
f.AddPathCommand(2, "g37", "g31");
f.AddPathCommand(2, "g32", "g31");
f.AddPathCommand(2, "g32", "g30");
f.AddPathCommand(2, "g34", "g30");
f.AddPathCommand(2, "g34", "g29");
f.AddPathCommand(2, "g32", "g29");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonMovie":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g10", 1, "vc", "dx2", "0");
f.AddGuide("g11", 1, "hc", "0", "dx2");
f.AddGuide("g12", 1, "hc", "dx2", "0");
f.AddGuide("g13", 0, "ss", "3", "4");
f.AddGuide("g14", 0, "g13", "1455", "21600");
f.AddGuide("g15", 0, "g13", "1905", "21600");
f.AddGuide("g16", 0, "g13", "2325", "21600");
f.AddGuide("g17", 0, "g13", "16155", "21600");
f.AddGuide("g18", 0, "g13", "17010", "21600");
f.AddGuide("g19", 0, "g13", "19335", "21600");
f.AddGuide("g20", 0, "g13", "19725", "21600");
f.AddGuide("g21", 0, "g13", "20595", "21600");
f.AddGuide("g22", 0, "g13", "5280", "21600");
f.AddGuide("g23", 0, "g13", "5730", "21600");
f.AddGuide("g24", 0, "g13", "6630", "21600");
f.AddGuide("g25", 0, "g13", "7492", "21600");
f.AddGuide("g26", 0, "g13", "9067", "21600");
f.AddGuide("g27", 0, "g13", "9555", "21600");
f.AddGuide("g28", 0, "g13", "13342", "21600");
f.AddGuide("g29", 0, "g13", "14580", "21600");
f.AddGuide("g30", 0, "g13", "15592", "21600");
f.AddGuide("g31", 1, "g11", "g14", "0");
f.AddGuide("g32", 1, "g11", "g15", "0");
f.AddGuide("g33", 1, "g11", "g16", "0");
f.AddGuide("g34", 1, "g11", "g17", "0");
f.AddGuide("g35", 1, "g11", "g18", "0");
f.AddGuide("g36", 1, "g11", "g19", "0");
f.AddGuide("g37", 1, "g11", "g20", "0");
f.AddGuide("g38", 1, "g11", "g21", "0");
f.AddGuide("g39", 1, "g9", "g22", "0");
f.AddGuide("g40", 1, "g9", "g23", "0");
f.AddGuide("g41", 1, "g9", "g24", "0");
f.AddGuide("g42", 1, "g9", "g25", "0");
f.AddGuide("g43", 1, "g9", "g26", "0");
f.AddGuide("g44", 1, "g9", "g27", "0");
f.AddGuide("g45", 1, "g9", "g28", "0");
f.AddGuide("g46", 1, "g9", "g29", "0");
f.AddGuide("g47", 1, "g9", "g30", "0");
f.AddGuide("g48", 1, "g9", "g31", "0");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "g11", "g39");
f.AddPathCommand(2, "g11", "g44");
f.AddPathCommand(2, "g31", "g44");
f.AddPathCommand(2, "g32", "g43");
f.AddPathCommand(2, "g33", "g43");
f.AddPathCommand(2, "g33", "g47");
f.AddPathCommand(2, "g35", "g47");
f.AddPathCommand(2, "g35", "g45");
f.AddPathCommand(2, "g36", "g45");
f.AddPathCommand(2, "g38", "g46");
f.AddPathCommand(2, "g12", "g46");
f.AddPathCommand(2, "g12", "g41");
f.AddPathCommand(2, "g38", "g41");
f.AddPathCommand(2, "g37", "g42");
f.AddPathCommand(2, "g35", "g42");
f.AddPathCommand(2, "g35", "g41");
f.AddPathCommand(2, "g34", "g40");
f.AddPathCommand(2, "g32", "g40");
f.AddPathCommand(2, "g31", "g39");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "g11", "g39");
f.AddPathCommand(2, "g11", "g44");
f.AddPathCommand(2, "g31", "g44");
f.AddPathCommand(2, "g32", "g43");
f.AddPathCommand(2, "g33", "g43");
f.AddPathCommand(2, "g33", "g47");
f.AddPathCommand(2, "g35", "g47");
f.AddPathCommand(2, "g35", "g45");
f.AddPathCommand(2, "g36", "g45");
f.AddPathCommand(2, "g38", "g46");
f.AddPathCommand(2, "g12", "g46");
f.AddPathCommand(2, "g12", "g41");
f.AddPathCommand(2, "g38", "g41");
f.AddPathCommand(2, "g37", "g42");
f.AddPathCommand(2, "g35", "g42");
f.AddPathCommand(2, "g35", "g41");
f.AddPathCommand(2, "g34", "g40");
f.AddPathCommand(2, "g32", "g40");
f.AddPathCommand(2, "g31", "g39");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "g11", "g39");
f.AddPathCommand(2, "g31", "g39");
f.AddPathCommand(2, "g32", "g40");
f.AddPathCommand(2, "g34", "g40");
f.AddPathCommand(2, "g35", "g41");
f.AddPathCommand(2, "g35", "g42");
f.AddPathCommand(2, "g37", "g42");
f.AddPathCommand(2, "g38", "g41");
f.AddPathCommand(2, "g12", "g41");
f.AddPathCommand(2, "g12", "g46");
f.AddPathCommand(2, "g38", "g46");
f.AddPathCommand(2, "g36", "g45");
f.AddPathCommand(2, "g35", "g45");
f.AddPathCommand(2, "g35", "g47");
f.AddPathCommand(2, "g33", "g47");
f.AddPathCommand(2, "g33", "g43");
f.AddPathCommand(2, "g32", "g43");
f.AddPathCommand(2, "g31", "g44");
f.AddPathCommand(2, "g11", "g44");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonReturn":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g10", 1, "vc", "dx2", "0");
f.AddGuide("g11", 1, "hc", "0", "dx2");
f.AddGuide("g12", 1, "hc", "dx2", "0");
f.AddGuide("g13", 0, "ss", "3", "4");
f.AddGuide("g14", 0, "g13", "7", "8");
f.AddGuide("g15", 0, "g13", "3", "4");
f.AddGuide("g16", 0, "g13", "5", "8");
f.AddGuide("g17", 0, "g13", "3", "8");
f.AddGuide("g18", 0, "g13", "1", "4");
f.AddGuide("g19", 1, "g9", "g15", "0");
f.AddGuide("g20", 1, "g9", "g16", "0");
f.AddGuide("g21", 1, "g9", "g18", "0");
f.AddGuide("g22", 1, "g11", "g14", "0");
f.AddGuide("g23", 1, "g11", "g15", "0");
f.AddGuide("g24", 1, "g11", "g16", "0");
f.AddGuide("g25", 1, "g11", "g17", "0");
f.AddGuide("g26", 1, "g11", "g18", "0");
f.AddGuide("g27", 0, "g13", "1", "8");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "g12", "g21");
f.AddPathCommand(2, "g23", "g9");
f.AddPathCommand(2, "hc", "g21");
f.AddPathCommand(2, "g24", "g21");
f.AddPathCommand(2, "g24", "g20");
f.AddPathCommand(3, "g27", "g27", "0", "cd4");
f.AddPathCommand(2, "g25", "g19");
f.AddPathCommand(3, "g27", "g27", "cd4", "cd4");
f.AddPathCommand(2, "g26", "g21");
f.AddPathCommand(2, "g11", "g21");
f.AddPathCommand(2, "g11", "g20");
f.AddPathCommand(3, "g17", "g17", "cd2", "-5400000");
f.AddPathCommand(2, "hc", "g10");
f.AddPathCommand(3, "g17", "g17", "cd4", "-5400000");
f.AddPathCommand(2, "g22", "g21");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "g12", "g21");
f.AddPathCommand(2, "g23", "g9");
f.AddPathCommand(2, "hc", "g21");
f.AddPathCommand(2, "g24", "g21");
f.AddPathCommand(2, "g24", "g20");
f.AddPathCommand(3, "g27", "g27", "0", "cd4");
f.AddPathCommand(2, "g25", "g19");
f.AddPathCommand(3, "g27", "g27", "cd4", "cd4");
f.AddPathCommand(2, "g26", "g21");
f.AddPathCommand(2, "g11", "g21");
f.AddPathCommand(2, "g11", "g20");
f.AddPathCommand(3, "g17", "g17", "cd2", "-5400000");
f.AddPathCommand(2, "hc", "g10");
f.AddPathCommand(3, "g17", "g17", "cd4", "-5400000");
f.AddPathCommand(2, "g22", "g21");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "g12", "g21");
f.AddPathCommand(2, "g22", "g21");
f.AddPathCommand(2, "g22", "g20");
f.AddPathCommand(3, "g17", "g17", "0", "cd4");
f.AddPathCommand(2, "g25", "g10");
f.AddPathCommand(3, "g17", "g17", "cd4", "cd4");
f.AddPathCommand(2, "g11", "g21");
f.AddPathCommand(2, "g26", "g21");
f.AddPathCommand(2, "g26", "g20");
f.AddPathCommand(3, "g27", "g27", "cd2", "-5400000");
f.AddPathCommand(2, "hc", "g19");
f.AddPathCommand(3, "g27", "g27", "cd4", "-5400000");
f.AddPathCommand(2, "g24", "g21");
f.AddPathCommand(2, "hc", "g21");
f.AddPathCommand(2, "g23", "g9");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "actionButtonSound":
f.AddGuide("dx2", 0, "ss", "3", "8");
f.AddGuide("g9", 1, "vc", "0", "dx2");
f.AddGuide("g10", 1, "vc", "dx2", "0");
f.AddGuide("g11", 1, "hc", "0", "dx2");
f.AddGuide("g12", 1, "hc", "dx2", "0");
f.AddGuide("g13", 0, "ss", "3", "4");
f.AddGuide("g14", 0, "g13", "1", "8");
f.AddGuide("g15", 0, "g13", "5", "16");
f.AddGuide("g16", 0, "g13", "5", "8");
f.AddGuide("g17", 0, "g13", "11", "16");
f.AddGuide("g18", 0, "g13", "3", "4");
f.AddGuide("g19", 0, "g13", "7", "8");
f.AddGuide("g20", 1, "g9", "g14", "0");
f.AddGuide("g21", 1, "g9", "g15", "0");
f.AddGuide("g22", 1, "g9", "g17", "0");
f.AddGuide("g23", 1, "g9", "g19", "0");
f.AddGuide("g24", 1, "g11", "g15", "0");
f.AddGuide("g25", 1, "g11", "g16", "0");
f.AddGuide("g26", 1, "g11", "g18", "0");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "g11", "g21");
f.AddPathCommand(2, "g11", "g22");
f.AddPathCommand(2, "g24", "g22");
f.AddPathCommand(2, "g25", "g10");
f.AddPathCommand(2, "g25", "g9");
f.AddPathCommand(2, "g24", "g21");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "g11", "g21");
f.AddPathCommand(2, "g11", "g22");
f.AddPathCommand(2, "g24", "g22");
f.AddPathCommand(2, "g25", "g10");
f.AddPathCommand(2, "g25", "g9");
f.AddPathCommand(2, "g24", "g21");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "g11", "g21");
f.AddPathCommand(2, "g24", "g21");
f.AddPathCommand(2, "g25", "g9");
f.AddPathCommand(2, "g25", "g10");
f.AddPathCommand(2, "g24", "g22");
f.AddPathCommand(2, "g11", "g22");
f.AddPathCommand(6);
f.AddPathCommand(1, "g26", "g21");
f.AddPathCommand(2, "g12", "g20");
f.AddPathCommand(1, "g26", "vc");
f.AddPathCommand(2, "g12", "vc");
f.AddPathCommand(1, "g26", "g22");
f.AddPathCommand(2, "g12", "g23");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "arc":
f.AddAdj("adj1", 15, "16200000");
f.AddAdj("adj2", 15, "0");
f.AddGuide("stAng", 10, "0", "adj1", "21599999");
f.AddGuide("enAng", 10, "0", "adj2", "21599999");
f.AddGuide("sw11", 1, "enAng", "0", "stAng");
f.AddGuide("sw12", 1, "sw11", "21600000", "0");
f.AddGuide("swAng", 3, "sw11", "sw11", "sw12");
f.AddGuide("wt1", 12, "wd2", "stAng");
f.AddGuide("ht1", 7, "hd2", "stAng");
f.AddGuide("dx1", 6, "wd2", "ht1", "wt1");
f.AddGuide("dy1", 11, "hd2", "ht1", "wt1");
f.AddGuide("wt2", 12, "wd2", "enAng");
f.AddGuide("ht2", 7, "hd2", "enAng");
f.AddGuide("dx2", 6, "wd2", "ht2", "wt2");
f.AddGuide("dy2", 11, "hd2", "ht2", "wt2");
f.AddGuide("x1", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "dy1", "0");
f.AddGuide("x2", 1, "hc", "dx2", "0");
f.AddGuide("y2", 1, "vc", "dy2", "0");
f.AddGuide("sw0", 1, "21600000", "0", "stAng");
f.AddGuide("da1", 1, "swAng", "0", "sw0");
f.AddGuide("g1", 8, "x1", "x2");
f.AddGuide("ir", 3, "da1", "r", "g1");
f.AddGuide("sw1", 1, "cd4", "0", "stAng");
f.AddGuide("sw2", 1, "27000000", "0", "stAng");
f.AddGuide("sw3", 3, "sw1", "sw1", "sw2");
f.AddGuide("da2", 1, "swAng", "0", "sw3");
f.AddGuide("g5", 8, "y1", "y2");
f.AddGuide("ib", 3, "da2", "b", "g5");
f.AddGuide("sw4", 1, "cd2", "0", "stAng");
f.AddGuide("sw5", 1, "32400000", "0", "stAng");
f.AddGuide("sw6", 3, "sw4", "sw4", "sw5");
f.AddGuide("da3", 1, "swAng", "0", "sw6");
f.AddGuide("g9", 16, "x1", "x2");
f.AddGuide("il", 3, "da3", "l", "g9");
f.AddGuide("sw7", 1, "_3cd4", "0", "stAng");
f.AddGuide("sw8", 1, "37800000", "0", "stAng");
f.AddGuide("sw9", 3, "sw7", "sw7", "sw8");
f.AddGuide("da4", 1, "swAng", "0", "sw9");
f.AddGuide("g13", 16, "y1", "y2");
f.AddGuide("it", 3, "da4", "t", "g13");
f.AddGuide("cang1", 1, "stAng", "0", "cd4");
f.AddGuide("cang2", 1, "enAng", "cd4", "0");
f.AddGuide("cang3", 2, "cang1", "cang2", "2");
f.AddHandlePolar("adj1", "0", "21599999", undefined, "0", "0", "x1", "y1");
f.AddHandlePolar("adj2", "0", "21599999", undefined, "0", "0", "x2", "y2");
f.AddCnx("cang1", "x1", "y1");
f.AddCnx("cang3", "hc", "vc");
f.AddCnx("cang2", "x2", "y2");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(3, "wd2", "hd2", "stAng", "swAng");
f.AddPathCommand(2, "hc", "vc");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(3, "wd2", "hd2", "stAng", "swAng");
break;
case "bentArrow":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddAdj("adj4", 15, "43750");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("a3", 10, "0", "adj3", "50000");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("aw2", 0, "ss", "a2", "100000");
f.AddGuide("th2", 0, "th", "1", "2");
f.AddGuide("dh2", 1, "aw2", "0", "th2");
f.AddGuide("ah", 0, "ss", "a3", "100000");
f.AddGuide("bw", 1, "r", "0", "ah");
f.AddGuide("bh", 1, "b", "0", "dh2");
f.AddGuide("bs", 16, "bw", "bh");
f.AddGuide("maxAdj4", 0, "100000", "bs", "ss");
f.AddGuide("a4", 10, "0", "adj4", "maxAdj4");
f.AddGuide("bd", 0, "ss", "a4", "100000");
f.AddGuide("bd3", 1, "bd", "0", "th");
f.AddGuide("bd2", 8, "bd3", "0");
f.AddGuide("x3", 1, "th", "bd2", "0");
f.AddGuide("x4", 1, "r", "0", "ah");
f.AddGuide("y3", 1, "dh2", "th", "0");
f.AddGuide("y4", 1, "y3", "dh2", "0");
f.AddGuide("y5", 1, "dh2", "bd", "0");
f.AddGuide("y6", 1, "y3", "bd2", "0");
f.AddHandleXY("adj1", "0", "maxAdj1", undefined, "0", "0", "th", "b");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "50000", "r", "y4");
f.AddHandleXY("adj3", "0", "50000", undefined, "0", "0", "x4", "t");
f.AddHandleXY("adj4", "0", "maxAdj4", undefined, "0", "0", "bd", "t");
f.AddCnx("_3cd4", "x4", "t");
f.AddCnx("cd4", "x4", "y4");
f.AddCnx("cd4", "th2", "b");
f.AddCnx("0", "r", "aw2");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "l", "y5");
f.AddPathCommand(3, "bd", "bd", "cd2", "cd4");
f.AddPathCommand(2, "x4", "dh2");
f.AddPathCommand(2, "x4", "t");
f.AddPathCommand(2, "r", "aw2");
f.AddPathCommand(2, "x4", "y4");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(3, "bd2", "bd2", "_3cd4", "-5400000");
f.AddPathCommand(2, "th", "b");
f.AddPathCommand(6);
break;
case "bentConnector2":
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
break;
case "bentConnector3":
f.AddAdj("adj1", 15, "50000");
f.AddGuide("x1", 0, "w", "adj1", "100000");
f.AddHandleXY("adj1", "-2147483647", "2147483647", undefined, "0", "0", "x1", "vc");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(2, "r", "b");
break;
case "bentConnector4":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("x1", 0, "w", "adj1", "100000");
f.AddGuide("x2", 2, "x1", "r", "2");
f.AddGuide("y2", 0, "h", "adj2", "100000");
f.AddGuide("y1", 2, "t", "y2", "2");
f.AddHandleXY("adj1", "-2147483647", "2147483647", undefined, "0", "0", "x1", "y1");
f.AddHandleXY(undefined, "0", "0", "adj2", "-2147483647", "2147483647", "x2", "y2");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "r", "b");
break;
case "bentConnector5":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddAdj("adj3", 15, "50000");
f.AddGuide("x1", 0, "w", "adj1", "100000");
f.AddGuide("x3", 0, "w", "adj3", "100000");
f.AddGuide("x2", 2, "x1", "x3", "2");
f.AddGuide("y2", 0, "h", "adj2", "100000");
f.AddGuide("y1", 2, "t", "y2", "2");
f.AddGuide("y3", 2, "b", "y2", "2");
f.AddHandleXY("adj1", "-2147483647", "2147483647", undefined, "0", "0", "x1", "y1");
f.AddHandleXY(undefined, "0", "0", "adj2", "-2147483647", "2147483647", "x2", "y2");
f.AddHandleXY("adj3", "-2147483647", "2147483647", undefined, "0", "0", "x3", "y3");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(2, "x3", "b");
f.AddPathCommand(2, "r", "b");
break;
case "bentUpArrow":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddGuide("a1", 10, "0", "adj1", "50000");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("a3", 10, "0", "adj3", "50000");
f.AddGuide("y1", 0, "ss", "a3", "100000");
f.AddGuide("dx1", 0, "ss", "a2", "50000");
f.AddGuide("x1", 1, "r", "0", "dx1");
f.AddGuide("dx3", 0, "ss", "a2", "100000");
f.AddGuide("x3", 1, "r", "0", "dx3");
f.AddGuide("dx2", 0, "ss", "a1", "200000");
f.AddGuide("x2", 1, "x3", "0", "dx2");
f.AddGuide("x4", 1, "x3", "dx2", "0");
f.AddGuide("dy2", 0, "ss", "a1", "100000");
f.AddGuide("y2", 1, "b", "0", "dy2");
f.AddGuide("x0", 0, "x4", "1", "2");
f.AddGuide("y3", 2, "y2", "b", "2");
f.AddGuide("y15", 2, "y1", "b", "2");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "50000", "l", "y2");
f.AddHandleXY("adj2", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "50000", "x2", "y1");
f.AddCnx("_3cd4", "x3", "t");
f.AddCnx("cd2", "x1", "y1");
f.AddCnx("cd2", "l", "y3");
f.AddCnx("cd4", "x0", "b");
f.AddCnx("0", "x4", "y15");
f.AddCnx("0", "r", "y1");
f.AddRect("l", "y2", "x4", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "x3", "t");
f.AddPathCommand(2, "r", "y1");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "x4", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "bevel":
f.AddAdj("adj", 15, "12500");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("x1", 0, "ss", "a", "100000");
f.AddGuide("x2", 1, "r", "0", "x1");
f.AddGuide("y2", 1, "b", "0", "x1");
f.AddHandleXY("adj", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddCnx("0", "r", "vc");
f.AddCnx("0", "x2", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "hc", "y2");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "hc", "x1");
f.AddRect("x1", "x1", "x2", "y2");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "x1", "x1");
f.AddPathCommand(2, "x2", "x1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "lightenLess", false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "x2", "x1");
f.AddPathCommand(2, "x1", "x1");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "lighten", false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x1", "x1");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darken", false, undefined, undefined);
f.AddPathCommand(1, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "x1");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "x1", "x1");
f.AddPathCommand(2, "x2", "x1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(6);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x1", "x1");
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(1, "r", "t");
f.AddPathCommand(2, "x2", "x1");
f.AddPathCommand(1, "r", "b");
f.AddPathCommand(2, "x2", "y2");
break;
case "blockArc":
f.AddAdj("adj1", 15, "10800000");
f.AddAdj("adj2", 15, "0");
f.AddAdj("adj3", 15, "25000");
f.AddGuide("stAng", 10, "0", "adj1", "21599999");
f.AddGuide("istAng", 10, "0", "adj2", "21599999");
f.AddGuide("a3", 10, "0", "adj3", "50000");
f.AddGuide("sw11", 1, "istAng", "0", "stAng");
f.AddGuide("sw12", 1, "sw11", "21600000", "0");
f.AddGuide("swAng", 3, "sw11", "sw11", "sw12");
f.AddGuide("iswAng", 1, "0", "0", "swAng");
f.AddGuide("wt1", 12, "wd2", "stAng");
f.AddGuide("ht1", 7, "hd2", "stAng");
f.AddGuide("wt3", 12, "wd2", "istAng");
f.AddGuide("ht3", 7, "hd2", "istAng");
f.AddGuide("dx1", 6, "wd2", "ht1", "wt1");
f.AddGuide("dy1", 11, "hd2", "ht1", "wt1");
f.AddGuide("dx3", 6, "wd2", "ht3", "wt3");
f.AddGuide("dy3", 11, "hd2", "ht3", "wt3");
f.AddGuide("x1", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "dy1", "0");
f.AddGuide("x3", 1, "hc", "dx3", "0");
f.AddGuide("y3", 1, "vc", "dy3", "0");
f.AddGuide("dr", 0, "ss", "a3", "100000");
f.AddGuide("iwd2", 1, "wd2", "0", "dr");
f.AddGuide("ihd2", 1, "hd2", "0", "dr");
f.AddGuide("wt2", 12, "iwd2", "istAng");
f.AddGuide("ht2", 7, "ihd2", "istAng");
f.AddGuide("wt4", 12, "iwd2", "stAng");
f.AddGuide("ht4", 7, "ihd2", "stAng");
f.AddGuide("dx2", 6, "iwd2", "ht2", "wt2");
f.AddGuide("dy2", 11, "ihd2", "ht2", "wt2");
f.AddGuide("dx4", 6, "iwd2", "ht4", "wt4");
f.AddGuide("dy4", 11, "ihd2", "ht4", "wt4");
f.AddGuide("x2", 1, "hc", "dx2", "0");
f.AddGuide("y2", 1, "vc", "dy2", "0");
f.AddGuide("x4", 1, "hc", "dx4", "0");
f.AddGuide("y4", 1, "vc", "dy4", "0");
f.AddGuide("sw0", 1, "21600000", "0", "stAng");
f.AddGuide("da1", 1, "swAng", "0", "sw0");
f.AddGuide("g1", 8, "x1", "x2");
f.AddGuide("g2", 8, "x3", "x4");
f.AddGuide("g3", 8, "g1", "g2");
f.AddGuide("ir", 3, "da1", "r", "g3");
f.AddGuide("sw1", 1, "cd4", "0", "stAng");
f.AddGuide("sw2", 1, "27000000", "0", "stAng");
f.AddGuide("sw3", 3, "sw1", "sw1", "sw2");
f.AddGuide("da2", 1, "swAng", "0", "sw3");
f.AddGuide("g5", 8, "y1", "y2");
f.AddGuide("g6", 8, "y3", "y4");
f.AddGuide("g7", 8, "g5", "g6");
f.AddGuide("ib", 3, "da2", "b", "g7");
f.AddGuide("sw4", 1, "cd2", "0", "stAng");
f.AddGuide("sw5", 1, "32400000", "0", "stAng");
f.AddGuide("sw6", 3, "sw4", "sw4", "sw5");
f.AddGuide("da3", 1, "swAng", "0", "sw6");
f.AddGuide("g9", 16, "x1", "x2");
f.AddGuide("g10", 16, "x3", "x4");
f.AddGuide("g11", 16, "g9", "g10");
f.AddGuide("il", 3, "da3", "l", "g11");
f.AddGuide("sw7", 1, "_3cd4", "0", "stAng");
f.AddGuide("sw8", 1, "37800000", "0", "stAng");
f.AddGuide("sw9", 3, "sw7", "sw7", "sw8");
f.AddGuide("da4", 1, "swAng", "0", "sw9");
f.AddGuide("g13", 16, "y1", "y2");
f.AddGuide("g14", 16, "y3", "y4");
f.AddGuide("g15", 16, "g13", "g14");
f.AddGuide("it", 3, "da4", "t", "g15");
f.AddGuide("x5", 2, "x1", "x4", "2");
f.AddGuide("y5", 2, "y1", "y4", "2");
f.AddGuide("x6", 2, "x3", "x2", "2");
f.AddGuide("y6", 2, "y3", "y2", "2");
f.AddGuide("cang1", 1, "stAng", "0", "cd4");
f.AddGuide("cang2", 1, "istAng", "cd4", "0");
f.AddGuide("cang3", 2, "cang1", "cang2", "2");
f.AddHandlePolar("adj1", "0", "21599999", undefined, "0", "0", "x1", "y1");
f.AddHandlePolar(undefined, "0", "0", "adj3", "0", "50000", "x2", "y2");
f.AddCnx("cang1", "x5", "y5");
f.AddCnx("cang2", "x6", "y6");
f.AddCnx("cang3", "hc", "vc");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(3, "wd2", "hd2", "stAng", "swAng");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(3, "iwd2", "ihd2", "istAng", "iswAng");
f.AddPathCommand(6);
break;
case "borderCallout1":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "112500");
f.AddAdj("adj4", 15, "-38333");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
break;
case "borderCallout2":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "18750");
f.AddAdj("adj4", 15, "-16667");
f.AddAdj("adj5", 15, "112500");
f.AddAdj("adj6", 15, "-46667");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddGuide("y3", 0, "h", "adj5", "100000");
f.AddGuide("x3", 0, "w", "adj6", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddHandleXY("adj6", "-2147483647", "2147483647", "adj5", "-2147483647", "2147483647", "x3", "y3");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x3", "y3");
break;
case "borderCallout3":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "18750");
f.AddAdj("adj4", 15, "-16667");
f.AddAdj("adj5", 15, "100000");
f.AddAdj("adj6", 15, "-16667");
f.AddAdj("adj7", 15, "112963");
f.AddAdj("adj8", 15, "-8333");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddGuide("y3", 0, "h", "adj5", "100000");
f.AddGuide("x3", 0, "w", "adj6", "100000");
f.AddGuide("y4", 0, "h", "adj7", "100000");
f.AddGuide("x4", 0, "w", "adj8", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddHandleXY("adj6", "-2147483647", "2147483647", "adj5", "-2147483647", "2147483647", "x3", "y3");
f.AddHandleXY("adj8", "-2147483647", "2147483647", "adj7", "-2147483647", "2147483647", "x4", "y4");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x4", "y4");
break;
case "bracePair":
f.AddAdj("adj", 15, "8333");
f.AddGuide("a", 10, "0", "adj", "25000");
f.AddGuide("x1", 0, "ss", "a", "100000");
f.AddGuide("x2", 0, "ss", "a", "50000");
f.AddGuide("x3", 1, "r", "0", "x2");
f.AddGuide("x4", 1, "r", "0", "x1");
f.AddGuide("y2", 1, "vc", "0", "x1");
f.AddGuide("y3", 1, "vc", "x1", "0");
f.AddGuide("y4", 1, "b", "0", "x1");
f.AddGuide("it", 0, "x1", "29289", "100000");
f.AddGuide("il", 1, "x1", "it", "0");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "it");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "25000", "l", "x1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "il", "ir", "ib");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "x2", "b");
f.AddPathCommand(3, "x1", "x1", "cd4", "cd4");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(3, "x1", "x1", "0", "-5400000");
f.AddPathCommand(3, "x1", "x1", "cd4", "-5400000");
f.AddPathCommand(2, "x1", "x1");
f.AddPathCommand(3, "x1", "x1", "cd2", "cd4");
f.AddPathCommand(2, "x3", "t");
f.AddPathCommand(3, "x1", "x1", "_3cd4", "cd4");
f.AddPathCommand(2, "x4", "y2");
f.AddPathCommand(3, "x1", "x1", "cd2", "-5400000");
f.AddPathCommand(3, "x1", "x1", "_3cd4", "-5400000");
f.AddPathCommand(2, "x4", "y4");
f.AddPathCommand(3, "x1", "x1", "0", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x2", "b");
f.AddPathCommand(3, "x1", "x1", "cd4", "cd4");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(3, "x1", "x1", "0", "-5400000");
f.AddPathCommand(3, "x1", "x1", "cd4", "-5400000");
f.AddPathCommand(2, "x1", "x1");
f.AddPathCommand(3, "x1", "x1", "cd2", "cd4");
f.AddPathCommand(1, "x3", "t");
f.AddPathCommand(3, "x1", "x1", "_3cd4", "cd4");
f.AddPathCommand(2, "x4", "y2");
f.AddPathCommand(3, "x1", "x1", "cd2", "-5400000");
f.AddPathCommand(3, "x1", "x1", "_3cd4", "-5400000");
f.AddPathCommand(2, "x4", "y4");
f.AddPathCommand(3, "x1", "x1", "0", "cd4");
break;
case "bracketPair":
f.AddAdj("adj", 15, "16667");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("x1", 0, "ss", "a", "100000");
f.AddGuide("x2", 1, "r", "0", "x1");
f.AddGuide("y2", 1, "b", "0", "x1");
f.AddGuide("il", 0, "x1", "29289", "100000");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "il");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "l", "x1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "il", "ir", "ib");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "x1");
f.AddPathCommand(3, "x1", "x1", "cd2", "cd4");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(3, "x1", "x1", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(3, "x1", "x1", "0", "cd4");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(3, "x1", "x1", "cd4", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "b");
f.AddPathCommand(3, "x1", "x1", "cd4", "cd4");
f.AddPathCommand(2, "l", "x1");
f.AddPathCommand(3, "x1", "x1", "cd2", "cd4");
f.AddPathCommand(1, "x2", "t");
f.AddPathCommand(3, "x1", "x1", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(3, "x1", "x1", "0", "cd4");
break;
case "callout1":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "112500");
f.AddAdj("adj4", 15, "-38333");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
break;
case "callout2":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "18750");
f.AddAdj("adj4", 15, "-16667");
f.AddAdj("adj5", 15, "112500");
f.AddAdj("adj6", 15, "-46667");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddGuide("y3", 0, "h", "adj5", "100000");
f.AddGuide("x3", 0, "w", "adj6", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddHandleXY("adj6", "-2147483647", "2147483647", "adj5", "-2147483647", "2147483647", "x3", "y3");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x3", "y3");
break;
case "callout3":
f.AddAdj("adj1", 15, "18750");
f.AddAdj("adj2", 15, "-8333");
f.AddAdj("adj3", 15, "18750");
f.AddAdj("adj4", 15, "-16667");
f.AddAdj("adj5", 15, "100000");
f.AddAdj("adj6", 15, "-16667");
f.AddAdj("adj7", 15, "112963");
f.AddAdj("adj8", 15, "-8333");
f.AddGuide("y1", 0, "h", "adj1", "100000");
f.AddGuide("x1", 0, "w", "adj2", "100000");
f.AddGuide("y2", 0, "h", "adj3", "100000");
f.AddGuide("x2", 0, "w", "adj4", "100000");
f.AddGuide("y3", 0, "h", "adj5", "100000");
f.AddGuide("x3", 0, "w", "adj6", "100000");
f.AddGuide("y4", 0, "h", "adj7", "100000");
f.AddGuide("x4", 0, "w", "adj8", "100000");
f.AddHandleXY("adj2", "-2147483647", "2147483647", "adj1", "-2147483647", "2147483647", "x1", "y1");
f.AddHandleXY("adj4", "-2147483647", "2147483647", "adj3", "-2147483647", "2147483647", "x2", "y2");
f.AddHandleXY("adj6", "-2147483647", "2147483647", "adj5", "-2147483647", "2147483647", "x3", "y3");
f.AddHandleXY("adj8", "-2147483647", "2147483647", "adj7", "-2147483647", "2147483647", "x4", "y4");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x4", "y4");
break;
case "can":
f.AddAdj("adj", 15, "25000");
f.AddGuide("maxAdj", 0, "50000", "h", "ss");
f.AddGuide("a", 10, "0", "adj", "maxAdj");
f.AddGuide("y1", 0, "ss", "a", "200000");
f.AddGuide("y2", 1, "y1", "y1", "0");
f.AddGuide("y3", 1, "b", "0", "y1");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "maxAdj", "hc", "y2");
f.AddCnx("_3cd4", "hc", "y2");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "y2", "r", "y3");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(3, "wd2", "y1", "cd2", "-10800000");
f.AddPathCommand(2, "r", "y3");
f.AddPathCommand(3, "wd2", "y1", "0", "cd2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "lighten", false, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(3, "wd2", "y1", "cd2", "cd2");
f.AddPathCommand(3, "wd2", "y1", "0", "cd2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "r", "y1");
f.AddPathCommand(3, "wd2", "y1", "0", "cd2");
f.AddPathCommand(3, "wd2", "y1", "cd2", "cd2");
f.AddPathCommand(2, "r", "y3");
f.AddPathCommand(3, "wd2", "y1", "0", "cd2");
f.AddPathCommand(2, "l", "y1");
break;
case "chartPlus":
f.AddPathCommand(0, false, "none", undefined, 10, 10);
f.AddPathCommand(1, "5", "0");
f.AddPathCommand(2, "5", "10");
f.AddPathCommand(1, "0", "5");
f.AddPathCommand(2, "10", "5");
f.AddPathCommand(0, undefined, undefined, false, 10, 10);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "0", "10");
f.AddPathCommand(2, "10", "10");
f.AddPathCommand(2, "10", "0");
f.AddPathCommand(6);
break;
case "chartStar":
f.AddPathCommand(0, false, "none", undefined, 10, 10);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "10", "10");
f.AddPathCommand(1, "0", "10");
f.AddPathCommand(2, "10", "0");
f.AddPathCommand(1, "5", "0");
f.AddPathCommand(2, "5", "10");
f.AddPathCommand(0, undefined, undefined, false, 10, 10);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "0", "10");
f.AddPathCommand(2, "10", "10");
f.AddPathCommand(2, "10", "0");
f.AddPathCommand(6);
break;
case "chartX":
f.AddPathCommand(0, false, "none", undefined, 10, 10);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "10", "10");
f.AddPathCommand(1, "0", "10");
f.AddPathCommand(2, "10", "0");
f.AddPathCommand(0, undefined, undefined, false, 10, 10);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "0", "10");
f.AddPathCommand(2, "10", "10");
f.AddPathCommand(2, "10", "0");
f.AddPathCommand(6);
break;
case "chevron":
f.AddAdj("adj", 15, "50000");
f.AddGuide("maxAdj", 0, "100000", "w", "ss");
f.AddGuide("a", 10, "0", "adj", "maxAdj");
f.AddGuide("x1", 0, "ss", "a", "100000");
f.AddGuide("x2", 1, "r", "0", "x1");
f.AddGuide("x3", 0, "x2", "1", "2");
f.AddGuide("dx", 1, "x2", "0", "x1");
f.AddGuide("il", 3, "dx", "x1", "l");
f.AddGuide("ir", 3, "dx", "x2", "r");
f.AddHandleXY("adj", "0", "maxAdj", undefined, "0", "0", "x2", "t");
f.AddCnx("_3cd4", "x3", "t");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("cd4", "x3", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "t", "ir", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(2, "x1", "vc");
f.AddPathCommand(6);
break;
case "chord":
f.AddAdj("adj1", 15, "2700000");
f.AddAdj("adj2", 15, "16200000");
f.AddGuide("stAng", 10, "0", "adj1", "21599999");
f.AddGuide("enAng", 10, "0", "adj2", "21599999");
f.AddGuide("sw1", 1, "enAng", "0", "stAng");
f.AddGuide("sw2", 1, "sw1", "21600000", "0");
f.AddGuide("swAng", 3, "sw1", "sw1", "sw2");
f.AddGuide("wt1", 12, "wd2", "stAng");
f.AddGuide("ht1", 7, "hd2", "stAng");
f.AddGuide("dx1", 6, "wd2", "ht1", "wt1");
f.AddGuide("dy1", 11, "hd2", "ht1", "wt1");
f.AddGuide("wt2", 12, "wd2", "enAng");
f.AddGuide("ht2", 7, "hd2", "enAng");
f.AddGuide("dx2", 6, "wd2", "ht2", "wt2");
f.AddGuide("dy2", 11, "hd2", "ht2", "wt2");
f.AddGuide("x1", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "dy1", "0");
f.AddGuide("x2", 1, "hc", "dx2", "0");
f.AddGuide("y2", 1, "vc", "dy2", "0");
f.AddGuide("x3", 2, "x1", "x2", "2");
f.AddGuide("y3", 2, "y1", "y2", "2");
f.AddGuide("midAng0", 0, "swAng", "1", "2");
f.AddGuide("midAng", 1, "stAng", "midAng0", "cd2");
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddHandlePolar("adj1", "0", "21599999", undefined, "0", "0", "x1", "y1");
f.AddHandlePolar("adj2", "0", "21599999", undefined, "0", "0", "x2", "y2");
f.AddCnx("stAng", "x1", "y1");
f.AddCnx("enAng", "x2", "y2");
f.AddCnx("midAng", "x3", "y3");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(3, "wd2", "hd2", "stAng", "swAng");
f.AddPathCommand(6);
break;
case "circularArrow":
f.AddAdj("adj1", 15, "12500");
f.AddAdj("adj2", 15, "1142319");
f.AddAdj("adj3", 15, "20457681");
f.AddAdj("adj4", 15, "10800000");
f.AddAdj("adj5", 15, "12500");
f.AddGuide("a5", 10, "0", "adj5", "25000");
f.AddGuide("maxAdj1", 0, "a5", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("enAng", 10, "1", "adj3", "21599999");
f.AddGuide("stAng", 10, "0", "adj4", "21599999");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("thh", 0, "ss", "a5", "100000");
f.AddGuide("th2", 0, "th", "1", "2");
f.AddGuide("rw1", 1, "wd2", "th2", "thh");
f.AddGuide("rh1", 1, "hd2", "th2", "thh");
f.AddGuide("rw2", 1, "rw1", "0", "th");
f.AddGuide("rh2", 1, "rh1", "0", "th");
f.AddGuide("rw3", 1, "rw2", "th2", "0");
f.AddGuide("rh3", 1, "rh2", "th2", "0");
f.AddGuide("wtH", 12, "rw3", "enAng");
f.AddGuide("htH", 7, "rh3", "enAng");
f.AddGuide("dxH", 6, "rw3", "htH", "wtH");
f.AddGuide("dyH", 11, "rh3", "htH", "wtH");
f.AddGuide("xH", 1, "hc", "dxH", "0");
f.AddGuide("yH", 1, "vc", "dyH", "0");
f.AddGuide("rI", 16, "rw2", "rh2");
f.AddGuide("u1", 0, "dxH", "dxH", "1");
f.AddGuide("u2", 0, "dyH", "dyH", "1");
f.AddGuide("u3", 0, "rI", "rI", "1");
f.AddGuide("u4", 1, "u1", "0", "u3");
f.AddGuide("u5", 1, "u2", "0", "u3");
f.AddGuide("u6", 0, "u4", "u5", "u1");
f.AddGuide("u7", 0, "u6", "1", "u2");
f.AddGuide("u8", 1, "1", "0", "u7");
f.AddGuide("u9", 13, "u8");
f.AddGuide("u10", 0, "u4", "1", "dxH");
f.AddGuide("u11", 0, "u10", "1", "dyH");
f.AddGuide("u12", 2, "1", "u9", "u11");
f.AddGuide("u13", 5, "1", "u12");
f.AddGuide("u14", 1, "u13", "21600000", "0");
f.AddGuide("u15", 3, "u13", "u13", "u14");
f.AddGuide("u16", 1, "u15", "0", "enAng");
f.AddGuide("u17", 1, "u16", "21600000", "0");
f.AddGuide("u18", 3, "u16", "u16", "u17");
f.AddGuide("u19", 1, "u18", "0", "cd2");
f.AddGuide("u20", 1, "u18", "0", "21600000");
f.AddGuide("u21", 3, "u19", "u20", "u18");
f.AddGuide("maxAng", 4, "u21");
f.AddGuide("aAng", 10, "0", "adj2", "maxAng");
f.AddGuide("ptAng", 1, "enAng", "aAng", "0");
f.AddGuide("wtA", 12, "rw3", "ptAng");
f.AddGuide("htA", 7, "rh3", "ptAng");
f.AddGuide("dxA", 6, "rw3", "htA", "wtA");
f.AddGuide("dyA", 11, "rh3", "htA", "wtA");
f.AddGuide("xA", 1, "hc", "dxA", "0");
f.AddGuide("yA", 1, "vc", "dyA", "0");
f.AddGuide("wtE", 12, "rw1", "stAng");
f.AddGuide("htE", 7, "rh1", "stAng");
f.AddGuide("dxE", 6, "rw1", "htE", "wtE");
f.AddGuide("dyE", 11, "rh1", "htE", "wtE");
f.AddGuide("xE", 1, "hc", "dxE", "0");
f.AddGuide("yE", 1, "vc", "dyE", "0");
f.AddGuide("dxG", 7, "thh", "ptAng");
f.AddGuide("dyG", 12, "thh", "ptAng");
f.AddGuide("xG", 1, "xH", "dxG", "0");
f.AddGuide("yG", 1, "yH", "dyG", "0");
f.AddGuide("dxB", 7, "thh", "ptAng");
f.AddGuide("dyB", 12, "thh", "ptAng");
f.AddGuide("xB", 1, "xH", "0", "dxB", "0");
f.AddGuide("yB", 1, "yH", "0", "dyB", "0");
f.AddGuide("sx1", 1, "xB", "0", "hc");
f.AddGuide("sy1", 1, "yB", "0", "vc");
f.AddGuide("sx2", 1, "xG", "0", "hc");
f.AddGuide("sy2", 1, "yG", "0", "vc");
f.AddGuide("rO", 16, "rw1", "rh1");
f.AddGuide("x1O", 0, "sx1", "rO", "rw1");
f.AddGuide("y1O", 0, "sy1", "rO", "rh1");
f.AddGuide("x2O", 0, "sx2", "rO", "rw1");
f.AddGuide("y2O", 0, "sy2", "rO", "rh1");
f.AddGuide("dxO", 1, "x2O", "0", "x1O");
f.AddGuide("dyO", 1, "y2O", "0", "y1O");
f.AddGuide("dO", 9, "dxO", "dyO", "0");
f.AddGuide("q1", 0, "x1O", "y2O", "1");
f.AddGuide("q2", 0, "x2O", "y1O", "1");
f.AddGuide("DO", 1, "q1", "0", "q2");
f.AddGuide("q3", 0, "rO", "rO", "1");
f.AddGuide("q4", 0, "dO", "dO", "1");
f.AddGuide("q5", 0, "q3", "q4", "1");
f.AddGuide("q6", 0, "DO", "DO", "1");
f.AddGuide("q7", 1, "q5", "0", "q6");
f.AddGuide("q8", 8, "q7", "0");
f.AddGuide("sdelO", 13, "q8");
f.AddGuide("ndyO", 0, "dyO", "-1", "1");
f.AddGuide("sdyO", 3, "ndyO", "-1", "1");
f.AddGuide("q9", 0, "sdyO", "dxO", "1");
f.AddGuide("q10", 0, "q9", "sdelO", "1");
f.AddGuide("q11", 0, "DO", "dyO", "1");
f.AddGuide("dxF1", 2, "q11", "q10", "q4");
f.AddGuide("q12", 1, "q11", "0", "q10");
f.AddGuide("dxF2", 0, "q12", "1", "q4");
f.AddGuide("adyO", 4, "dyO");
f.AddGuide("q13", 0, "adyO", "sdelO", "1");
f.AddGuide("q14", 0, "DO", "dxO", "-1");
f.AddGuide("dyF1", 2, "q14", "q13", "q4");
f.AddGuide("q15", 1, "q14", "0", "q13");
f.AddGuide("dyF2", 0, "q15", "1", "q4");
f.AddGuide("q16", 1, "x2O", "0", "dxF1");
f.AddGuide("q17", 1, "x2O", "0", "dxF2");
f.AddGuide("q18", 1, "y2O", "0", "dyF1");
f.AddGuide("q19", 1, "y2O", "0", "dyF2");
f.AddGuide("q20", 9, "q16", "q18", "0");
f.AddGuide("q21", 9, "q17", "q19", "0");
f.AddGuide("q22", 1, "q21", "0", "q20");
f.AddGuide("dxF", 3, "q22", "dxF1", "dxF2");
f.AddGuide("dyF", 3, "q22", "dyF1", "dyF2");
f.AddGuide("sdxF", 0, "dxF", "rw1", "rO");
f.AddGuide("sdyF", 0, "dyF", "rh1", "rO");
f.AddGuide("xF", 1, "hc", "sdxF", "0");
f.AddGuide("yF", 1, "vc", "sdyF", "0");
f.AddGuide("x1I", 0, "sx1", "rI", "rw2");
f.AddGuide("y1I", 0, "sy1", "rI", "rh2");
f.AddGuide("x2I", 0, "sx2", "rI", "rw2");
f.AddGuide("y2I", 0, "sy2", "rI", "rh2");
f.AddGuide("dxI", 1, "x2I", "0", "x1I");
f.AddGuide("dyI", 1, "y2I", "0", "y1I");
f.AddGuide("dI", 9, "dxI", "dyI", "0");
f.AddGuide("v1", 0, "x1I", "y2I", "1");
f.AddGuide("v2", 0, "x2I", "y1I", "1");
f.AddGuide("DI", 1, "v1", "0", "v2");
f.AddGuide("v3", 0, "rI", "rI", "1");
f.AddGuide("v4", 0, "dI", "dI", "1");
f.AddGuide("v5", 0, "v3", "v4", "1");
f.AddGuide("v6", 0, "DI", "DI", "1");
f.AddGuide("v7", 1, "v5", "0", "v6");
f.AddGuide("v8", 8, "v7", "0");
f.AddGuide("sdelI", 13, "v8");
f.AddGuide("v9", 0, "sdyO", "dxI", "1");
f.AddGuide("v10", 0, "v9", "sdelI", "1");
f.AddGuide("v11", 0, "DI", "dyI", "1");
f.AddGuide("dxC1", 2, "v11", "v10", "v4");
f.AddGuide("v12", 1, "v11", "0", "v10");
f.AddGuide("dxC2", 0, "v12", "1", "v4");
f.AddGuide("adyI", 4, "dyI");
f.AddGuide("v13", 0, "adyI", "sdelI", "1");
f.AddGuide("v14", 0, "DI", "dxI", "-1");
f.AddGuide("dyC1", 2, "v14", "v13", "v4");
f.AddGuide("v15", 1, "v14", "0", "v13");
f.AddGuide("dyC2", 0, "v15", "1", "v4");
f.AddGuide("v16", 1, "x1I", "0", "dxC1");
f.AddGuide("v17", 1, "x1I", "0", "dxC2");
f.AddGuide("v18", 1, "y1I", "0", "dyC1");
f.AddGuide("v19", 1, "y1I", "0", "dyC2");
f.AddGuide("v20", 9, "v16", "v18", "0");
f.AddGuide("v21", 9, "v17", "v19", "0");
f.AddGuide("v22", 1, "v21", "0", "v20");
f.AddGuide("dxC", 3, "v22", "dxC1", "dxC2");
f.AddGuide("dyC", 3, "v22", "dyC1", "dyC2");
f.AddGuide("sdxC", 0, "dxC", "rw2", "rI");
f.AddGuide("sdyC", 0, "dyC", "rh2", "rI");
f.AddGuide("xC", 1, "hc", "sdxC", "0");
f.AddGuide("yC", 1, "vc", "sdyC", "0");
f.AddGuide("ist0", 5, "sdxC", "sdyC");
f.AddGuide("ist1", 1, "ist0", "21600000", "0");
f.AddGuide("istAng", 3, "ist0", "ist0", "ist1");
f.AddGuide("isw1", 1, "stAng", "0", "istAng");
f.AddGuide("isw2", 1, "isw1", "0", "21600000");
f.AddGuide("iswAng", 3, "isw1", "isw2", "isw1");
f.AddGuide("p1", 1, "xF", "0", "xC");
f.AddGuide("p2", 1, "yF", "0", "yC");
f.AddGuide("p3", 9, "p1", "p2", "0");
f.AddGuide("p4", 0, "p3", "1", "2");
f.AddGuide("p5", 1, "p4", "0", "thh");
f.AddGuide("xGp", 3, "p5", "xF", "xG");
f.AddGuide("yGp", 3, "p5", "yF", "yG");
f.AddGuide("xBp", 3, "p5", "xC", "xB");
f.AddGuide("yBp", 3, "p5", "yC", "yB");
f.AddGuide("en0", 5, "sdxF", "sdyF");
f.AddGuide("en1", 1, "en0", "21600000", "0");
f.AddGuide("en2", 3, "en0", "en0", "en1");
f.AddGuide("sw0", 1, "en2", "0", "stAng");
f.AddGuide("sw1", 1, "sw0", "21600000", "0");
f.AddGuide("swAng", 3, "sw0", "sw0", "sw1");
f.AddGuide("wtI", 12, "rw3", "stAng");
f.AddGuide("htI", 7, "rh3", "stAng");
f.AddGuide("dxI", 6, "rw3", "htI", "wtI");
f.AddGuide("dyI", 11, "rh3", "htI", "wtI");
f.AddGuide("xI", 1, "hc", "dxI", "0");
f.AddGuide("yI", 1, "vc", "dyI", "0");
f.AddGuide("aI", 1, "stAng", "0", "cd4");
f.AddGuide("aA", 1, "ptAng", "cd4", "0");
f.AddGuide("aB", 1, "ptAng", "cd2", "0");
f.AddGuide("idx", 7, "rw1", "2700000");
f.AddGuide("idy", 12, "rh1", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddHandlePolar("adj2", "0", "maxAng", undefined, "0", "0", "xA", "yA");
f.AddHandlePolar("adj4", "0", "21599999", undefined, "0", "0", "xE", "yE");
f.AddHandlePolar(undefined, "0", "0", "adj1", "0", "maxAdj1", "xF", "yF");
f.AddHandlePolar(undefined, "0", "0", "adj5", "0", "25000", "xB", "yB");
f.AddCnx("aI", "xI", "yI");
f.AddCnx("ptAng", "xGp", "yGp");
f.AddCnx("aA", "xA", "yA");
f.AddCnx("aB", "xBp", "yBp");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "xE", "yE");
f.AddPathCommand(3, "rw1", "rh1", "stAng", "swAng");
f.AddPathCommand(2, "xGp", "yGp");
f.AddPathCommand(2, "xA", "yA");
f.AddPathCommand(2, "xBp", "yBp");
f.AddPathCommand(2, "xC", "yC");
f.AddPathCommand(3, "rw2", "rh2", "istAng", "iswAng");
f.AddPathCommand(6);
break;
case "cloud":
f.AddGuide("il", 0, "w", "2977", "21600");
f.AddGuide("it", 0, "h", "3262", "21600");
f.AddGuide("ir", 0, "w", "17087", "21600");
f.AddGuide("ib", 0, "h", "17337", "21600");
f.AddGuide("g27", 0, "w", "67", "21600");
f.AddGuide("g28", 0, "h", "21577", "21600");
f.AddGuide("g29", 0, "w", "21582", "21600");
f.AddGuide("g30", 0, "h", "1235", "21600");
f.AddCnx("0", "g29", "vc");
f.AddCnx("cd4", "hc", "g28");
f.AddCnx("cd2", "g27", "vc");
f.AddCnx("_3cd4", "hc", "g30");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, 43200, 43200);
f.AddPathCommand(1, "3900", "14370");
f.AddPathCommand(3, "6753", "9190", "-11429249", "7426832");
f.AddPathCommand(3, "5333", "7267", "-8646143", "5396714");
f.AddPathCommand(3, "4365", "5945", "-8748475", "5983381");
f.AddPathCommand(3, "4857", "6595", "-7859164", "7034504");
f.AddPathCommand(3, "5333", "7273", "-4722533", "6541615");
f.AddPathCommand(3, "6775", "9220", "-2776035", "7816140");
f.AddPathCommand(3, "5785", "7867", "37501", "6842000");
f.AddPathCommand(3, "6752", "9215", "1347096", "6910353");
f.AddPathCommand(3, "7720", "10543", "3974558", "4542661");
f.AddPathCommand(3, "4360", "5918", "-16496525", "8804134");
f.AddPathCommand(3, "4345", "5945", "-14809710", "9151131");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, 43200, 43200);
f.AddPathCommand(1, "4693", "26177");
f.AddPathCommand(3, "4345", "5945", "5204520", "1585770");
f.AddPathCommand(1, "6928", "34899");
f.AddPathCommand(3, "4360", "5918", "4416628", "686848");
f.AddPathCommand(1, "16478", "39090");
f.AddPathCommand(3, "6752", "9215", "8257449", "844866");
f.AddPathCommand(1, "28827", "34751");
f.AddPathCommand(3, "6752", "9215", "387196", "959901");
f.AddPathCommand(1, "34129", "22954");
f.AddPathCommand(3, "5785", "7867", "-4217541", "4255042");
f.AddPathCommand(1, "41798", "15354");
f.AddPathCommand(3, "5333", "7273", "1819082", "1665090");
f.AddPathCommand(1, "38324", "5426");
f.AddPathCommand(3, "4857", "6595", "-824660", "891534");
f.AddPathCommand(1, "29078", "3952");
f.AddPathCommand(3, "4857", "6595", "-8950887", "1091722");
f.AddPathCommand(1, "22141", "4720");
f.AddPathCommand(3, "4365", "5945", "-9809656", "1061181");
f.AddPathCommand(1, "14000", "5192");
f.AddPathCommand(3, "6753", "9190", "-4002417", "739161");
f.AddPathCommand(1, "4127", "15789");
f.AddPathCommand(3, "6753", "9190", "9459261", "711490");
f.AddPathCommand(6);
break;
case "cloudCallout":
f.AddAdj("adj1", 15, "-20833");
f.AddAdj("adj2", 15, "62500");
f.AddGuide("dxPos", 0, "w", "adj1", "100000");
f.AddGuide("dyPos", 0, "h", "adj2", "100000");
f.AddGuide("xPos", 1, "hc", "dxPos", "0");
f.AddGuide("yPos", 1, "vc", "dyPos", "0");
f.AddGuide("ht", 6, "hd2", "dxPos", "dyPos");
f.AddGuide("wt", 11, "wd2", "dxPos", "dyPos");
f.AddGuide("g2", 6, "wd2", "ht", "wt");
f.AddGuide("g3", 11, "hd2", "ht", "wt");
f.AddGuide("g4", 1, "hc", "g2", "0");
f.AddGuide("g5", 1, "vc", "g3", "0");
f.AddGuide("g6", 1, "g4", "0", "xPos");
f.AddGuide("g7", 1, "g5", "0", "yPos");
f.AddGuide("g8", 9, "g6", "g7", "0");
f.AddGuide("g9", 0, "ss", "6600", "21600");
f.AddGuide("g10", 1, "g8", "0", "g9");
f.AddGuide("g11", 0, "g10", "1", "3");
f.AddGuide("g12", 0, "ss", "1800", "21600");
f.AddGuide("g13", 1, "g11", "g12", "0");
f.AddGuide("g14", 0, "g13", "g6", "g8");
f.AddGuide("g15", 0, "g13", "g7", "g8");
f.AddGuide("g16", 1, "g14", "xPos", "0");
f.AddGuide("g17", 1, "g15", "yPos", "0");
f.AddGuide("g18", 0, "ss", "4800", "21600");
f.AddGuide("g19", 0, "g11", "2", "1");
f.AddGuide("g20", 1, "g18", "g19", "0");
f.AddGuide("g21", 0, "g20", "g6", "g8");
f.AddGuide("g22", 0, "g20", "g7", "g8");
f.AddGuide("g23", 1, "g21", "xPos", "0");
f.AddGuide("g24", 1, "g22", "yPos", "0");
f.AddGuide("g25", 0, "ss", "1200", "21600");
f.AddGuide("g26", 0, "ss", "600", "21600");
f.AddGuide("x23", 1, "xPos", "g26", "0");
f.AddGuide("x24", 1, "g16", "g25", "0");
f.AddGuide("x25", 1, "g23", "g12", "0");
f.AddGuide("il", 0, "w", "2977", "21600");
f.AddGuide("it", 0, "h", "3262", "21600");
f.AddGuide("ir", 0, "w", "17087", "21600");
f.AddGuide("ib", 0, "h", "17337", "21600");
f.AddGuide("g27", 0, "w", "67", "21600");
f.AddGuide("g28", 0, "h", "21577", "21600");
f.AddGuide("g29", 0, "w", "21582", "21600");
f.AddGuide("g30", 0, "h", "1235", "21600");
f.AddGuide("pang", 5, "dxPos", "dyPos");
f.AddHandleXY("adj1", "-2147483647", "2147483647", "adj2", "-2147483647", "2147483647", "xPos", "yPos");
f.AddCnx("cd2", "g27", "vc");
f.AddCnx("cd4", "hc", "g28");
f.AddCnx("0", "g29", "vc");
f.AddCnx("_3cd4", "hc", "g30");
f.AddCnx("pang", "xPos", "yPos");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, 43200, 43200);
f.AddPathCommand(1, "3900", "14370");
f.AddPathCommand(3, "6753", "9190", "-11429249", "7426832");
f.AddPathCommand(3, "5333", "7267", "-8646143", "5396714");
f.AddPathCommand(3, "4365", "5945", "-8748475", "5983381");
f.AddPathCommand(3, "4857", "6595", "-7859164", "7034504");
f.AddPathCommand(3, "5333", "7273", "-4722533", "6541615");
f.AddPathCommand(3, "6775", "9220", "-2776035", "7816140");
f.AddPathCommand(3, "5785", "7867", "37501", "6842000");
f.AddPathCommand(3, "6752", "9215", "1347096", "6910353");
f.AddPathCommand(3, "7720", "10543", "3974558", "4542661");
f.AddPathCommand(3, "4360", "5918", "-16496525", "8804134");
f.AddPathCommand(3, "4345", "5945", "-14809710", "9151131");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x23", "yPos");
f.AddPathCommand(3, "g26", "g26", "0", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x24", "g17");
f.AddPathCommand(3, "g25", "g25", "0", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x25", "g24");
f.AddPathCommand(3, "g12", "g12", "0", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, 43200, 43200);
f.AddPathCommand(1, "4693", "26177");
f.AddPathCommand(3, "4345", "5945", "5204520", "1585770");
f.AddPathCommand(1, "6928", "34899");
f.AddPathCommand(3, "4360", "5918", "4416628", "686848");
f.AddPathCommand(1, "16478", "39090");
f.AddPathCommand(3, "6752", "9215", "8257449", "844866");
f.AddPathCommand(1, "28827", "34751");
f.AddPathCommand(3, "6752", "9215", "387196", "959901");
f.AddPathCommand(1, "34129", "22954");
f.AddPathCommand(3, "5785", "7867", "-4217541", "4255042");
f.AddPathCommand(1, "41798", "15354");
f.AddPathCommand(3, "5333", "7273", "1819082", "1665090");
f.AddPathCommand(1, "38324", "5426");
f.AddPathCommand(3, "4857", "6595", "-824660", "891534");
f.AddPathCommand(1, "29078", "3952");
f.AddPathCommand(3, "4857", "6595", "-8950887", "1091722");
f.AddPathCommand(1, "22141", "4720");
f.AddPathCommand(3, "4365", "5945", "-9809656", "1061181");
f.AddPathCommand(1, "14000", "5192");
f.AddPathCommand(3, "6753", "9190", "-4002417", "739161");
f.AddPathCommand(1, "4127", "15789");
f.AddPathCommand(3, "6753", "9190", "9459261", "711490");
f.AddPathCommand(6);
break;
case "corner":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("maxAdj1", 0, "100000", "h", "ss");
f.AddGuide("maxAdj2", 0, "100000", "w", "ss");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("x1", 0, "ss", "a2", "100000");
f.AddGuide("dy1", 0, "ss", "a1", "100000");
f.AddGuide("y1", 1, "b", "0", "dy1");
f.AddGuide("cx1", 0, "x1", "1", "2");
f.AddGuide("cy1", 2, "y1", "b", "2");
f.AddGuide("d", 1, "w", "0", "h");
f.AddGuide("it", 3, "d", "y1", "t");
f.AddGuide("ir", 3, "d", "r", "x1");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "maxAdj1", "l", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x1", "t");
f.AddCnx("0", "r", "cy1");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "cx1", "t");
f.AddRect("l", "it", "ir", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "r", "y1");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "cornerTabs":
f.AddGuide("md", 9, "w", "h", "0");
f.AddGuide("dx", 0, "1", "md", "20");
f.AddGuide("y1", 1, "0", "b", "dx");
f.AddGuide("x1", 1, "0", "r", "dx");
f.AddCnx("cd2", "l", "t");
f.AddCnx("cd2", "l", "dx");
f.AddCnx("cd2", "l", "y1");
f.AddCnx("cd2", "l", "b");
f.AddCnx("_3cd4", "dx", "t");
f.AddCnx("_3cd4", "x1", "t");
f.AddCnx("cd4", "dx", "b");
f.AddCnx("cd4", "x1", "b");
f.AddCnx("0", "r", "t");
f.AddCnx("0", "r", "dx");
f.AddCnx("0", "r", "y1");
f.AddCnx("0", "r", "b");
f.AddRect("dx", "dx", "x1", "y1");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "dx", "t");
f.AddPathCommand(2, "l", "dx");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(2, "dx", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "dx");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "r", "y1");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(6);
break;
case "cube":
f.AddAdj("adj", 15, "25000");
f.AddGuide("a", 10, "0", "adj", "100000");
f.AddGuide("y1", 0, "ss", "a", "100000");
f.AddGuide("y4", 1, "b", "0", "y1");
f.AddGuide("y2", 0, "y4", "1", "2");
f.AddGuide("y3", 2, "y1", "b", "2");
f.AddGuide("x4", 1, "r", "0", "y1");
f.AddGuide("x2", 0, "x4", "1", "2");
f.AddGuide("x3", 2, "y1", "r", "2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "100000", "l", "y1");
f.AddCnx("_3cd4", "x3", "t");
f.AddCnx("_3cd4", "x2", "y1");
f.AddCnx("cd2", "l", "y3");
f.AddCnx("cd4", "x2", "b");
f.AddCnx("0", "x4", "y3");
f.AddCnx("0", "r", "y2");
f.AddRect("l", "y1", "x4", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "x4", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "x4", "y1");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "y4");
f.AddPathCommand(2, "x4", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "lightenLess", false, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(2, "y1", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(2, "y1", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "y4");
f.AddPathCommand(2, "x4", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(1, "x4", "y1");
f.AddPathCommand(2, "x4", "b");
break;
case "curvedConnector2":
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(5, "wd2", "t", "r", "hd2", "r", "b");
break;
case "curvedConnector3":
f.AddAdj("adj1", 15, "50000");
f.AddGuide("x2", 0, "w", "adj1", "100000");
f.AddGuide("x1", 2, "l", "x2", "2");
f.AddGuide("x3", 2, "r", "x2", "2");
f.AddGuide("y3", 0, "h", "3", "4");
f.AddHandleXY("adj1", "-2147483647", "2147483647", undefined, "0", "0", "x2", "vc");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(5, "x1", "t", "x2", "hd4", "x2", "vc");
f.AddPathCommand(5, "x2", "y3", "x3", "b", "r", "b");
break;
case "curvedConnector4":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("x2", 0, "w", "adj1", "100000");
f.AddGuide("x1", 2, "l", "x2", "2");
f.AddGuide("x3", 2, "r", "x2", "2");
f.AddGuide("x4", 2, "x2", "x3", "2");
f.AddGuide("x5", 2, "x3", "r", "2");
f.AddGuide("y4", 0, "h", "adj2", "100000");
f.AddGuide("y1", 2, "t", "y4", "2");
f.AddGuide("y2", 2, "t", "y1", "2");
f.AddGuide("y3", 2, "y1", "y4", "2");
f.AddGuide("y5", 2, "b", "y4", "2");
f.AddHandleXY("adj1", "-2147483647", "2147483647", undefined, "0", "0", "x2", "y1");
f.AddHandleXY(undefined, "0", "0", "adj2", "-2147483647", "2147483647", "x3", "y4");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(5, "x1", "t", "x2", "y2", "x2", "y1");
f.AddPathCommand(5, "x2", "y3", "x4", "y4", "x3", "y4");
f.AddPathCommand(5, "x5", "y4", "r", "y5", "r", "b");
break;
case "curvedConnector5":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddAdj("adj3", 15, "50000");
f.AddGuide("x3", 0, "w", "adj1", "100000");
f.AddGuide("x6", 0, "w", "adj3", "100000");
f.AddGuide("x1", 2, "x3", "x6", "2");
f.AddGuide("x2", 2, "l", "x3", "2");
f.AddGuide("x4", 2, "x3", "x1", "2");
f.AddGuide("x5", 2, "x6", "x1", "2");
f.AddGuide("x7", 2, "x6", "r", "2");
f.AddGuide("y4", 0, "h", "adj2", "100000");
f.AddGuide("y1", 2, "t", "y4", "2");
f.AddGuide("y2", 2, "t", "y1", "2");
f.AddGuide("y3", 2, "y1", "y4", "2");
f.AddGuide("y5", 2, "b", "y4", "2");
f.AddGuide("y6", 2, "y5", "y4", "2");
f.AddGuide("y7", 2, "y5", "b", "2");
f.AddHandleXY("adj1", "-2147483647", "2147483647", undefined, "0", "0", "x3", "y1");
f.AddHandleXY(undefined, "0", "0", "adj2", "-2147483647", "2147483647", "x1", "y4");
f.AddHandleXY("adj3", "-2147483647", "2147483647", undefined, "0", "0", "x6", "y5");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(5, "x2", "t", "x3", "y2", "x3", "y1");
f.AddPathCommand(5, "x3", "y3", "x4", "y4", "x1", "y4");
f.AddPathCommand(5, "x5", "y4", "x6", "y6", "x6", "y5");
f.AddPathCommand(5, "x6", "y7", "x7", "b", "r", "b");
break;
case "curvedDownArrow":
f.AddAdj("adj1", 15, "12960");
f.AddAdj("adj2", 15, "19440");
f.AddAdj("adj3", 15, "14400");
f.AddGuide("maxAdj2", 0, "50000", "w", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("aw", 0, "ss", "a2", "100000");
f.AddGuide("q1", 2, "th", "aw", "4");
f.AddGuide("wR", 1, "wd2", "0", "q1");
f.AddGuide("q7", 0, "wR", "2", "1");
f.AddGuide("q8", 0, "q7", "q7", "1");
f.AddGuide("q9", 0, "th", "th", "1");
f.AddGuide("q10", 1, "q8", "0", "q9");
f.AddGuide("q11", 13, "q10");
f.AddGuide("idy", 0, "q11", "h", "q7");
f.AddGuide("maxAdj3", 0, "100000", "idy", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("ah", 0, "ss", "adj3", "100000");
f.AddGuide("x3", 1, "wR", "th", "0");
f.AddGuide("q2", 0, "h", "h", "1");
f.AddGuide("q3", 0, "ah", "ah", "1");
f.AddGuide("q4", 1, "q2", "0", "q3");
f.AddGuide("q5", 13, "q4");
f.AddGuide("dx", 0, "q5", "wR", "h");
f.AddGuide("x5", 1, "wR", "dx", "0");
f.AddGuide("x7", 1, "x3", "dx", "0");
f.AddGuide("q6", 1, "aw", "0", "th");
f.AddGuide("dh", 0, "q6", "1", "2");
f.AddGuide("x4", 1, "x5", "0", "dh");
f.AddGuide("x8", 1, "x7", "dh", "0");
f.AddGuide("aw2", 0, "aw", "1", "2");
f.AddGuide("x6", 1, "r", "0", "aw2");
f.AddGuide("y1", 1, "b", "0", "ah");
f.AddGuide("swAng", 5, "ah", "dx");
f.AddGuide("mswAng", 1, "0", "0", "swAng");
f.AddGuide("iy", 1, "b", "0", "idy");
f.AddGuide("ix", 2, "wR", "x3", "2");
f.AddGuide("q12", 0, "th", "1", "2");
f.AddGuide("dang2", 5, "idy", "q12");
f.AddGuide("stAng", 1, "_3cd4", "swAng", "0");
f.AddGuide("stAng2", 1, "_3cd4", "0", "dang2");
f.AddGuide("swAng2", 1, "dang2", "0", "cd4");
f.AddGuide("swAng3", 1, "cd4", "dang2", "0");
f.AddHandleXY("adj1", "0", "adj2", undefined, "0", "0", "x7", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x4", "b");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "r", "y1");
f.AddCnx("_3cd4", "ix", "t");
f.AddCnx("cd4", "q12", "b");
f.AddCnx("cd4", "x4", "y1");
f.AddCnx("cd4", "x6", "b");
f.AddCnx("0", "x8", "y1");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "x6", "b");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "x5", "y1");
f.AddPathCommand(3, "wR", "h", "stAng", "mswAng");
f.AddPathCommand(2, "x3", "t");
f.AddPathCommand(3, "wR", "h", "_3cd4", "swAng");
f.AddPathCommand(2, "x8", "y1");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "ix", "iy");
f.AddPathCommand(3, "wR", "h", "stAng2", "swAng2");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(3, "wR", "h", "cd2", "swAng3");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "ix", "iy");
f.AddPathCommand(3, "wR", "h", "stAng2", "swAng2");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(3, "wR", "h", "cd2", "cd4");
f.AddPathCommand(2, "x3", "t");
f.AddPathCommand(3, "wR", "h", "_3cd4", "swAng");
f.AddPathCommand(2, "x8", "y1");
f.AddPathCommand(2, "x6", "b");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "x5", "y1");
f.AddPathCommand(3, "wR", "h", "stAng", "mswAng");
break;
case "curvedLeftArrow":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "50000");
f.AddAdj("adj3", 15, "25000");
f.AddGuide("maxAdj2", 0, "50000", "h", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("a1", 10, "0", "adj1", "a2");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("aw", 0, "ss", "a2", "100000");
f.AddGuide("q1", 2, "th", "aw", "4");
f.AddGuide("hR", 1, "hd2", "0", "q1");
f.AddGuide("q7", 0, "hR", "2", "1");
f.AddGuide("q8", 0, "q7", "q7", "1");
f.AddGuide("q9", 0, "th", "th", "1");
f.AddGuide("q10", 1, "q8", "0", "q9");
f.AddGuide("q11", 13, "q10");
f.AddGuide("idx", 0, "q11", "w", "q7");
f.AddGuide("maxAdj3", 0, "100000", "idx", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("ah", 0, "ss", "a3", "100000");
f.AddGuide("y3", 1, "hR", "th", "0");
f.AddGuide("q2", 0, "w", "w", "1");
f.AddGuide("q3", 0, "ah", "ah", "1");
f.AddGuide("q4", 1, "q2", "0", "q3");
f.AddGuide("q5", 13, "q4");
f.AddGuide("dy", 0, "q5", "hR", "w");
f.AddGuide("y5", 1, "hR", "dy", "0");
f.AddGuide("y7", 1, "y3", "dy", "0");
f.AddGuide("q6", 1, "aw", "0", "th");
f.AddGuide("dh", 0, "q6", "1", "2");
f.AddGuide("y4", 1, "y5", "0", "dh");
f.AddGuide("y8", 1, "y7", "dh", "0");
f.AddGuide("aw2", 0, "aw", "1", "2");
f.AddGuide("y6", 1, "b", "0", "aw2");
f.AddGuide("x1", 1, "l", "ah", "0");
f.AddGuide("swAng", 5, "ah", "dy");
f.AddGuide("mswAng", 1, "0", "0", "swAng");
f.AddGuide("ix", 1, "l", "idx", "0");
f.AddGuide("iy", 2, "hR", "y3", "2");
f.AddGuide("q12", 0, "th", "1", "2");
f.AddGuide("dang2", 5, "idx", "q12");
f.AddGuide("swAng2", 1, "dang2", "0", "swAng");
f.AddGuide("swAng3", 1, "swAng", "dang2", "0");
f.AddGuide("stAng3", 1, "0", "0", "dang2");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "a2", "x1", "y5");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "maxAdj2", "r", "y4");
f.AddHandleXY("adj3", "0", "maxAdj3", undefined, "0", "0", "x1", "b");
f.AddCnx("cd2", "l", "q12");
f.AddCnx("cd2", "x1", "y4");
f.AddCnx("cd3", "l", "y6");
f.AddCnx("cd4", "x1", "y8");
f.AddCnx("0", "r", "iy");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "y6");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(2, "x1", "y5");
f.AddPathCommand(3, "w", "hR", "swAng", "swAng2");
f.AddPathCommand(3, "w", "hR", "stAng3", "swAng3");
f.AddPathCommand(2, "x1", "y8");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "r", "y3");
f.AddPathCommand(3, "w", "hR", "0", "-5400000");
f.AddPathCommand(2, "l", "t");
f.AddPathCommand(3, "w", "hR", "_3cd4", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "r", "y3");
f.AddPathCommand(3, "w", "hR", "0", "-5400000");
f.AddPathCommand(2, "l", "t");
f.AddPathCommand(3, "w", "hR", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "y3");
f.AddPathCommand(3, "w", "hR", "0", "swAng");
f.AddPathCommand(2, "x1", "y8");
f.AddPathCommand(2, "l", "y6");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(2, "x1", "y5");
f.AddPathCommand(3, "w", "hR", "swAng", "swAng2");
break;
case "curvedRightArrow":
f.AddAdj("adj1", 15, "12960");
f.AddAdj("adj2", 15, "19440");
f.AddAdj("adj3", 15, "14400");
f.AddGuide("maxAdj2", 0, "50000", "h", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("a1", 10, "0", "adj1", "a2");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("aw", 0, "ss", "a2", "100000");
f.AddGuide("q1", 2, "th", "aw", "4");
f.AddGuide("hR", 1, "hd2", "0", "q1");
f.AddGuide("q7", 0, "hR", "2", "1");
f.AddGuide("q8", 0, "q7", "q7", "1");
f.AddGuide("q9", 0, "th", "th", "1");
f.AddGuide("q10", 1, "q8", "0", "q9");
f.AddGuide("q11", 13, "q10");
f.AddGuide("idx", 0, "q11", "w", "q7");
f.AddGuide("maxAdj3", 0, "100000", "idx", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("ah", 0, "ss", "a3", "100000");
f.AddGuide("y3", 1, "hR", "th", "0");
f.AddGuide("q2", 0, "w", "w", "1");
f.AddGuide("q3", 0, "ah", "ah", "1");
f.AddGuide("q4", 1, "q2", "0", "q3");
f.AddGuide("q5", 13, "q4");
f.AddGuide("dy", 0, "q5", "hR", "w");
f.AddGuide("y5", 1, "hR", "dy", "0");
f.AddGuide("y7", 1, "y3", "dy", "0");
f.AddGuide("q6", 1, "aw", "0", "th");
f.AddGuide("dh", 0, "q6", "1", "2");
f.AddGuide("y4", 1, "y5", "0", "dh");
f.AddGuide("y8", 1, "y7", "dh", "0");
f.AddGuide("aw2", 0, "aw", "1", "2");
f.AddGuide("y6", 1, "b", "0", "aw2");
f.AddGuide("x1", 1, "r", "0", "ah");
f.AddGuide("swAng", 5, "ah", "dy");
f.AddGuide("stAng", 1, "cd2", "0", "swAng");
f.AddGuide("mswAng", 1, "0", "0", "swAng");
f.AddGuide("ix", 1, "r", "0", "idx");
f.AddGuide("iy", 2, "hR", "y3", "2");
f.AddGuide("q12", 0, "th", "1", "2");
f.AddGuide("dang2", 5, "idx", "q12");
f.AddGuide("swAng2", 1, "dang2", "0", "cd4");
f.AddGuide("swAng3", 1, "cd4", "dang2", "0");
f.AddGuide("stAng3", 1, "cd2", "0", "dang2");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "a2", "x1", "y5");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "maxAdj2", "r", "y4");
f.AddHandleXY("adj3", "0", "maxAdj3", undefined, "0", "0", "x1", "b");
f.AddCnx("cd2", "l", "iy");
f.AddCnx("cd4", "x1", "y8");
f.AddCnx("0", "r", "y6");
f.AddCnx("0", "x1", "y4");
f.AddCnx("0", "r", "q12");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "hR");
f.AddPathCommand(3, "w", "hR", "cd2", "mswAng");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(2, "r", "y6");
f.AddPathCommand(2, "x1", "y8");
f.AddPathCommand(2, "x1", "y7");
f.AddPathCommand(3, "w", "hR", "stAng", "swAng");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "r", "th");
f.AddPathCommand(3, "w", "hR", "_3cd4", "swAng2");
f.AddPathCommand(3, "w", "hR", "stAng3", "swAng3");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "hR");
f.AddPathCommand(3, "w", "hR", "cd2", "mswAng");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(2, "r", "y6");
f.AddPathCommand(2, "x1", "y8");
f.AddPathCommand(2, "x1", "y7");
f.AddPathCommand(3, "w", "hR", "stAng", "swAng");
f.AddPathCommand(2, "l", "hR");
f.AddPathCommand(3, "w", "hR", "cd2", "cd4");
f.AddPathCommand(2, "r", "th");
f.AddPathCommand(3, "w", "hR", "_3cd4", "swAng2");
break;
case "curvedUpArrow":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "50000");
f.AddAdj("adj3", 15, "25000");
f.AddGuide("maxAdj2", 0, "50000", "w", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("aw", 0, "ss", "a2", "100000");
f.AddGuide("q1", 2, "th", "aw", "4");
f.AddGuide("wR", 1, "wd2", "0", "q1");
f.AddGuide("q7", 0, "wR", "2", "1");
f.AddGuide("q8", 0, "q7", "q7", "1");
f.AddGuide("q9", 0, "th", "th", "1");
f.AddGuide("q10", 1, "q8", "0", "q9");
f.AddGuide("q11", 13, "q10");
f.AddGuide("idy", 0, "q11", "h", "q7");
f.AddGuide("maxAdj3", 0, "100000", "idy", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("ah", 0, "ss", "adj3", "100000");
f.AddGuide("x3", 1, "wR", "th", "0");
f.AddGuide("q2", 0, "h", "h", "1");
f.AddGuide("q3", 0, "ah", "ah", "1");
f.AddGuide("q4", 1, "q2", "0", "q3");
f.AddGuide("q5", 13, "q4");
f.AddGuide("dx", 0, "q5", "wR", "h");
f.AddGuide("x5", 1, "wR", "dx", "0");
f.AddGuide("x7", 1, "x3", "dx", "0");
f.AddGuide("q6", 1, "aw", "0", "th");
f.AddGuide("dh", 0, "q6", "1", "2");
f.AddGuide("x4", 1, "x5", "0", "dh");
f.AddGuide("x8", 1, "x7", "dh", "0");
f.AddGuide("aw2", 0, "aw", "1", "2");
f.AddGuide("x6", 1, "r", "0", "aw2");
f.AddGuide("y1", 1, "t", "ah", "0");
f.AddGuide("swAng", 5, "ah", "dx");
f.AddGuide("mswAng", 1, "0", "0", "swAng");
f.AddGuide("iy", 1, "t", "idy", "0");
f.AddGuide("ix", 2, "wR", "x3", "2");
f.AddGuide("q12", 0, "th", "1", "2");
f.AddGuide("dang2", 5, "idy", "q12");
f.AddGuide("swAng2", 1, "dang2", "0", "swAng");
f.AddGuide("mswAng2", 1, "0", "0", "swAng2");
f.AddGuide("stAng3", 1, "cd4", "0", "swAng");
f.AddGuide("swAng3", 1, "swAng", "dang2", "0");
f.AddGuide("stAng2", 1, "cd4", "0", "dang2");
f.AddHandleXY("adj1", "0", "a2", undefined, "0", "0", "x7", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x4", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "r", "y1");
f.AddCnx("_3cd4", "x6", "t");
f.AddCnx("_3cd4", "x4", "y1");
f.AddCnx("_3cd4", "q12", "t");
f.AddCnx("cd4", "ix", "b");
f.AddCnx("0", "x8", "y1");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "x6", "t");
f.AddPathCommand(2, "x8", "y1");
f.AddPathCommand(2, "x7", "y1");
f.AddPathCommand(3, "wR", "h", "stAng3", "swAng3");
f.AddPathCommand(3, "wR", "h", "stAng2", "swAng2");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "wR", "b");
f.AddPathCommand(3, "wR", "h", "cd4", "cd4");
f.AddPathCommand(2, "th", "t");
f.AddPathCommand(3, "wR", "h", "cd2", "-5400000");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "ix", "iy");
f.AddPathCommand(3, "wR", "h", "stAng2", "swAng2");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "x6", "t");
f.AddPathCommand(2, "x8", "y1");
f.AddPathCommand(2, "x7", "y1");
f.AddPathCommand(3, "wR", "h", "stAng3", "swAng");
f.AddPathCommand(2, "wR", "b");
f.AddPathCommand(3, "wR", "h", "cd4", "cd4");
f.AddPathCommand(2, "th", "t");
f.AddPathCommand(3, "wR", "h", "cd2", "-5400000");
break;
case "decagon":
f.AddAdj("vf", 15, "105146");
f.AddGuide("shd2", 0, "hd2", "vf", "100000");
f.AddGuide("dx1", 7, "wd2", "2160000");
f.AddGuide("dx2", 7, "wd2", "4320000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "dx2", "0");
f.AddGuide("x4", 1, "hc", "dx1", "0");
f.AddGuide("dy1", 12, "shd2", "4320000");
f.AddGuide("dy2", 12, "shd2", "2160000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "dy2", "0");
f.AddGuide("y4", 1, "vc", "dy1", "0");
f.AddCnx("0", "x4", "y2");
f.AddCnx("0", "r", "vc");
f.AddCnx("0", "x4", "y3");
f.AddCnx("cd4", "x3", "y4");
f.AddCnx("cd4", "x2", "y4");
f.AddCnx("cd2", "x1", "y3");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd2", "x1", "y2");
f.AddCnx("_3cd4", "x2", "y1");
f.AddCnx("_3cd4", "x3", "y1");
f.AddRect("x1", "y2", "x4", "y3");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "x4", "y2");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "x3", "y4");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(6);
break;
case "diagStripe":
f.AddAdj("adj", 15, "50000");
f.AddGuide("a", 10, "0", "adj", "100000");
f.AddGuide("x2", 0, "w", "a", "100000");
f.AddGuide("x1", 0, "x2", "1", "2");
f.AddGuide("x3", 2, "x2", "r", "2");
f.AddGuide("y2", 0, "h", "a", "100000");
f.AddGuide("y1", 0, "y2", "1", "2");
f.AddGuide("y3", 2, "y2", "b", "2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "100000", "l", "y2");
f.AddCnx("0", "hc", "vc");
f.AddCnx("cd2", "l", "y3");
f.AddCnx("cd2", "x1", "y1");
f.AddCnx("_3cd4", "x3", "t");
f.AddRect("l", "t", "x3", "y3");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y2");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "diamond":
f.AddGuide("ir", 0, "w", "3", "4");
f.AddGuide("ib", 0, "h", "3", "4");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("wd4", "hd4", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(6);
break;
case "dodecagon":
f.AddGuide("x1", 0, "w", "2894", "21600");
f.AddGuide("x2", 0, "w", "7906", "21600");
f.AddGuide("x3", 0, "w", "13694", "21600");
f.AddGuide("x4", 0, "w", "18706", "21600");
f.AddGuide("y1", 0, "h", "2894", "21600");
f.AddGuide("y2", 0, "h", "7906", "21600");
f.AddGuide("y3", 0, "h", "13694", "21600");
f.AddGuide("y4", 0, "h", "18706", "21600");
f.AddCnx("0", "x4", "y1");
f.AddCnx("0", "r", "y2");
f.AddCnx("0", "r", "y3");
f.AddCnx("0", "x4", "y4");
f.AddCnx("cd4", "x3", "b");
f.AddCnx("cd4", "x2", "b");
f.AddCnx("cd2", "x1", "y4");
f.AddCnx("cd2", "l", "y3");
f.AddCnx("cd2", "l", "y2");
f.AddCnx("cd2", "x1", "y1");
f.AddCnx("_3cd4", "x2", "t");
f.AddCnx("_3cd4", "x3", "t");
f.AddRect("x1", "y1", "x4", "y4");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y2");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "x3", "t");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "r", "y3");
f.AddPathCommand(2, "x4", "y4");
f.AddPathCommand(2, "x3", "b");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(2, "l", "y3");
f.AddPathCommand(6);
break;
case "donut":
f.AddAdj("adj", 15, "25000");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("dr", 0, "ss", "a", "100000");
f.AddGuide("iwd2", 1, "wd2", "0", "dr");
f.AddGuide("ihd2", 1, "hd2", "0", "dr");
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddHandlePolar(undefined, "0", "0", "adj", "0", "50000", "dr", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "il", "it");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "il", "ib");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "ir", "ib");
f.AddCnx("0", "r", "vc");
f.AddCnx("_3cd4", "ir", "it");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "_3cd4", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "0", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "cd4", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(1, "dr", "vc");
f.AddPathCommand(3, "iwd2", "ihd2", "cd2", "-5400000");
f.AddPathCommand(3, "iwd2", "ihd2", "cd4", "-5400000");
f.AddPathCommand(3, "iwd2", "ihd2", "0", "-5400000");
f.AddPathCommand(3, "iwd2", "ihd2", "_3cd4", "-5400000");
f.AddPathCommand(6);
break;
case "doubleWave":
f.AddAdj("adj1", 15, "6250");
f.AddAdj("adj2", 15, "0");
f.AddGuide("a1", 10, "0", "adj1", "12500");
f.AddGuide("a2", 10, "-10000", "adj2", "10000");
f.AddGuide("y1", 0, "h", "a1", "100000");
f.AddGuide("dy2", 0, "y1", "10", "3");
f.AddGuide("y2", 1, "y1", "0", "dy2");
f.AddGuide("y3", 1, "y1", "dy2", "0");
f.AddGuide("y4", 1, "b", "0", "y1");
f.AddGuide("y5", 1, "y4", "0", "dy2");
f.AddGuide("y6", 1, "y4", "dy2", "0");
f.AddGuide("dx1", 0, "w", "a2", "100000");
f.AddGuide("of2", 0, "w", "a2", "50000");
f.AddGuide("x1", 4, "dx1");
f.AddGuide("dx2", 3, "of2", "0", "of2");
f.AddGuide("x2", 1, "l", "0", "dx2");
f.AddGuide("dx8", 3, "of2", "of2", "0");
f.AddGuide("x8", 1, "r", "0", "dx8");
f.AddGuide("dx3", 2, "dx2", "x8", "6");
f.AddGuide("x3", 1, "x2", "dx3", "0");
f.AddGuide("dx4", 2, "dx2", "x8", "3");
f.AddGuide("x4", 1, "x2", "dx4", "0");
f.AddGuide("x5", 2, "x2", "x8", "2");
f.AddGuide("x6", 1, "x5", "dx3", "0");
f.AddGuide("x7", 2, "x6", "x8", "2");
f.AddGuide("x9", 1, "l", "dx8", "0");
f.AddGuide("x15", 1, "r", "dx2", "0");
f.AddGuide("x10", 1, "x9", "dx3", "0");
f.AddGuide("x11", 1, "x9", "dx4", "0");
f.AddGuide("x12", 2, "x9", "x15", "2");
f.AddGuide("x13", 1, "x12", "dx3", "0");
f.AddGuide("x14", 2, "x13", "x15", "2");
f.AddGuide("x16", 1, "r", "0", "x1");
f.AddGuide("xAdj", 1, "hc", "dx1", "0");
f.AddGuide("il", 8, "x2", "x9");
f.AddGuide("ir", 16, "x8", "x15");
f.AddGuide("it", 0, "h", "a1", "50000");
f.AddGuide("ib", 1, "b", "0", "it");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "12500", "l", "y1");
f.AddHandleXY("adj2", "-10000", "10000", undefined, "0", "0", "xAdj", "b");
f.AddCnx("cd4", "x12", "y1");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("_3cd4", "x5", "y4");
f.AddCnx("0", "x16", "vc");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x2", "y1");
f.AddPathCommand(5, "x3", "y2", "x4", "y3", "x5", "y1");
f.AddPathCommand(5, "x6", "y2", "x7", "y3", "x8", "y1");
f.AddPathCommand(2, "x15", "y4");
f.AddPathCommand(5, "x14", "y6", "x13", "y5", "x12", "y4");
f.AddPathCommand(5, "x11", "y6", "x10", "y5", "x9", "y4");
f.AddPathCommand(6);
break;
case "downArrow":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("maxAdj2", 0, "100000", "h", "ss");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("dy1", 0, "ss", "a2", "100000");
f.AddGuide("y1", 1, "b", "0", "dy1");
f.AddGuide("dx1", 0, "w", "a1", "200000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "dx1", "0");
f.AddGuide("dy2", 0, "x1", "dy1", "wd2");
f.AddGuide("y2", 1, "y1", "dy2", "0");
f.AddHandleXY("adj1", "0", "100000", undefined, "0", "0", "x1", "t");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "maxAdj2", "l", "y1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "y1");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "y1");
f.AddRect("x1", "t", "x2", "y2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "r", "y1");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(6);
break;
case "downArrowCallout":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddAdj("adj4", 15, "64977");
f.AddGuide("maxAdj2", 0, "50000", "w", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("maxAdj3", 0, "100000", "h", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("q2", 0, "a3", "ss", "h");
f.AddGuide("maxAdj4", 1, "100000", "0", "q2");
f.AddGuide("a4", 10, "0", "adj4", "maxAdj4");
f.AddGuide("dx1", 0, "ss", "a2", "100000");
f.AddGuide("dx2", 0, "ss", "a1", "200000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "dx2", "0");
f.AddGuide("x4", 1, "hc", "dx1", "0");
f.AddGuide("dy3", 0, "ss", "a3", "100000");
f.AddGuide("y3", 1, "b", "0", "dy3");
f.AddGuide("y2", 0, "h", "a4", "100000");
f.AddGuide("y1", 0, "y2", "1", "2");
f.AddHandleXY("adj1", "0", "maxAdj1", undefined, "0", "0", "x2", "y3");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x1", "b");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "r", "y3");
f.AddHandleXY(undefined, "0", "0", "adj4", "0", "maxAdj4", "l", "y2");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "y1");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "y1");
f.AddRect("l", "t", "r", "y2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "l", "y2");
f.AddPathCommand(6);
break;
case "ellipse":
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "il", "it");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "il", "ib");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "ir", "ib");
f.AddCnx("0", "r", "vc");
f.AddCnx("_3cd4", "ir", "it");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "_3cd4", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "0", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "cd4", "cd4");
f.AddPathCommand(6);
break;
case "ellipseRibbon":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "50000");
f.AddAdj("adj3", 15, "12500");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("a2", 10, "25000", "adj2", "75000");
f.AddGuide("q10", 1, "100000", "0", "a1");
f.AddGuide("q11", 0, "q10", "1", "2");
f.AddGuide("q12", 1, "a1", "0", "q11");
f.AddGuide("minAdj3", 8, "0", "q12");
f.AddGuide("a3", 10, "minAdj3", "adj3", "a1");
f.AddGuide("dx2", 0, "w", "a2", "200000");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "x2", "wd8", "0");
f.AddGuide("x4", 1, "r", "0", "x3");
f.AddGuide("x5", 1, "r", "0", "x2");
f.AddGuide("x6", 1, "r", "0", "wd8");
f.AddGuide("dy1", 0, "h", "a3", "100000");
f.AddGuide("f1", 0, "4", "dy1", "w");
f.AddGuide("q1", 0, "x3", "x3", "w");
f.AddGuide("q2", 1, "x3", "0", "q1");
f.AddGuide("y1", 0, "f1", "q2", "1");
f.AddGuide("cx1", 0, "x3", "1", "2");
f.AddGuide("cy1", 0, "f1", "cx1", "1");
f.AddGuide("cx2", 1, "r", "0", "cx1");
f.AddGuide("q1", 0, "h", "a1", "100000");
f.AddGuide("dy3", 1, "q1", "0", "dy1");
f.AddGuide("q3", 0, "x2", "x2", "w");
f.AddGuide("q4", 1, "x2", "0", "q3");
f.AddGuide("q5", 0, "f1", "q4", "1");
f.AddGuide("y3", 1, "q5", "dy3", "0");
f.AddGuide("q6", 1, "dy1", "dy3", "y3");
f.AddGuide("q7", 1, "q6", "dy1", "0");
f.AddGuide("cy3", 1, "q7", "dy3", "0");
f.AddGuide("rh", 1, "b", "0", "q1");
f.AddGuide("q8", 0, "dy1", "14", "16");
f.AddGuide("y2", 2, "q8", "rh", "2");
f.AddGuide("y5", 1, "q5", "rh", "0");
f.AddGuide("y6", 1, "y3", "rh", "0");
f.AddGuide("cx4", 0, "x2", "1", "2");
f.AddGuide("q9", 0, "f1", "cx4", "1");
f.AddGuide("cy4", 1, "q9", "rh", "0");
f.AddGuide("cx5", 1, "r", "0", "cx4");
f.AddGuide("cy6", 1, "cy3", "rh", "0");
f.AddGuide("y7", 1, "y1", "dy3", "0");
f.AddGuide("cy7", 1, "q1", "q1", "y7");
f.AddGuide("y8", 1, "b", "0", "dy1");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "100000", "hc", "q1");
f.AddHandleXY("adj2", "25000", "75000", undefined, "0", "0", "x2", "b");
f.AddHandleXY(undefined, "0", "0", "adj3", "minAdj3", "a1", "l", "y8");
f.AddCnx("_3cd4", "hc", "q1");
f.AddCnx("cd2", "wd8", "y2");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "x6", "y2");
f.AddRect("x2", "q1", "x5", "y6");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(4, "cx1", "cy1", "x3", "y1");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(4, "hc", "cy3", "x5", "y3");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(4, "cx2", "cy1", "r", "t");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(2, "r", "rh");
f.AddPathCommand(4, "cx5", "cy4", "x5", "y5");
f.AddPathCommand(2, "x5", "y6");
f.AddPathCommand(4, "hc", "cy6", "x2", "y6");
f.AddPathCommand(2, "x2", "y5");
f.AddPathCommand(4, "cx4", "cy4", "l", "rh");
f.AddPathCommand(2, "wd8", "y2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "x3", "y7");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(4, "hc", "cy3", "x5", "y3");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "x4", "y7");
f.AddPathCommand(4, "hc", "cy7", "x3", "y7");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(4, "cx1", "cy1", "x3", "y1");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(4, "hc", "cy3", "x5", "y3");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(4, "cx2", "cy1", "r", "t");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(2, "r", "rh");
f.AddPathCommand(4, "cx5", "cy4", "x5", "y5");
f.AddPathCommand(2, "x5", "y6");
f.AddPathCommand(4, "hc", "cy6", "x2", "y6");
f.AddPathCommand(2, "x2", "y5");
f.AddPathCommand(4, "cx4", "cy4", "l", "rh");
f.AddPathCommand(2, "wd8", "y2");
f.AddPathCommand(6);
f.AddPathCommand(1, "x2", "y5");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(1, "x5", "y3");
f.AddPathCommand(2, "x5", "y5");
f.AddPathCommand(1, "x3", "y1");
f.AddPathCommand(2, "x3", "y7");
f.AddPathCommand(1, "x4", "y7");
f.AddPathCommand(2, "x4", "y1");
break;
case "ellipseRibbon2":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "50000");
f.AddAdj("adj3", 15, "12500");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("a2", 10, "25000", "adj2", "75000");
f.AddGuide("q10", 1, "100000", "0", "a1");
f.AddGuide("q11", 0, "q10", "1", "2");
f.AddGuide("q12", 1, "a1", "0", "q11");
f.AddGuide("minAdj3", 8, "0", "q12");
f.AddGuide("a3", 10, "minAdj3", "adj3", "a1");
f.AddGuide("dx2", 0, "w", "a2", "200000");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "x2", "wd8", "0");
f.AddGuide("x4", 1, "r", "0", "x3");
f.AddGuide("x5", 1, "r", "0", "x2");
f.AddGuide("x6", 1, "r", "0", "wd8");
f.AddGuide("dy1", 0, "h", "a3", "100000");
f.AddGuide("f1", 0, "4", "dy1", "w");
f.AddGuide("q1", 0, "x3", "x3", "w");
f.AddGuide("q2", 1, "x3", "0", "q1");
f.AddGuide("u1", 0, "f1", "q2", "1");
f.AddGuide("y1", 1, "b", "0", "u1");
f.AddGuide("cx1", 0, "x3", "1", "2");
f.AddGuide("cu1", 0, "f1", "cx1", "1");
f.AddGuide("cy1", 1, "b", "0", "cu1");
f.AddGuide("cx2", 1, "r", "0", "cx1");
f.AddGuide("q1", 0, "h", "a1", "100000");
f.AddGuide("dy3", 1, "q1", "0", "dy1");
f.AddGuide("q3", 0, "x2", "x2", "w");
f.AddGuide("q4", 1, "x2", "0", "q3");
f.AddGuide("q5", 0, "f1", "q4", "1");
f.AddGuide("u3", 1, "q5", "dy3", "0");
f.AddGuide("y3", 1, "b", "0", "u3");
f.AddGuide("q6", 1, "dy1", "dy3", "u3");
f.AddGuide("q7", 1, "q6", "dy1", "0");
f.AddGuide("cu3", 1, "q7", "dy3", "0");
f.AddGuide("cy3", 1, "b", "0", "cu3");
f.AddGuide("rh", 1, "b", "0", "q1");
f.AddGuide("q8", 0, "dy1", "14", "16");
f.AddGuide("u2", 2, "q8", "rh", "2");
f.AddGuide("y2", 1, "b", "0", "u2");
f.AddGuide("u5", 1, "q5", "rh", "0");
f.AddGuide("y5", 1, "b", "0", "u5");
f.AddGuide("u6", 1, "u3", "rh", "0");
f.AddGuide("y6", 1, "b", "0", "u6");
f.AddGuide("cx4", 0, "x2", "1", "2");
f.AddGuide("q9", 0, "f1", "cx4", "1");
f.AddGuide("cu4", 1, "q9", "rh", "0");
f.AddGuide("cy4", 1, "b", "0", "cu4");
f.AddGuide("cx5", 1, "r", "0", "cx4");
f.AddGuide("cu6", 1, "cu3", "rh", "0");
f.AddGuide("cy6", 1, "b", "0", "cu6");
f.AddGuide("u7", 1, "u1", "dy3", "0");
f.AddGuide("y7", 1, "b", "0", "u7");
f.AddGuide("cu7", 1, "q1", "q1", "u7");
f.AddGuide("cy7", 1, "b", "0", "cu7");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "100000", "hc", "rh");
f.AddHandleXY("adj2", "25000", "100000", undefined, "0", "0", "x2", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "minAdj3", "a1", "l", "dy1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "wd8", "y2");
f.AddCnx("cd4", "hc", "rh");
f.AddCnx("0", "x6", "y2");
f.AddRect("x2", "y6", "x5", "rh");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(4, "cx1", "cy1", "x3", "y1");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(4, "hc", "cy3", "x5", "y3");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(4, "cx2", "cy1", "r", "b");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(2, "r", "q1");
f.AddPathCommand(4, "cx5", "cy4", "x5", "y5");
f.AddPathCommand(2, "x5", "y6");
f.AddPathCommand(4, "hc", "cy6", "x2", "y6");
f.AddPathCommand(2, "x2", "y5");
f.AddPathCommand(4, "cx4", "cy4", "l", "q1");
f.AddPathCommand(2, "wd8", "y2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "x3", "y7");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(4, "hc", "cy3", "x5", "y3");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "x4", "y7");
f.AddPathCommand(4, "hc", "cy7", "x3", "y7");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "wd8", "y2");
f.AddPathCommand(2, "l", "q1");
f.AddPathCommand(4, "cx4", "cy4", "x2", "y5");
f.AddPathCommand(2, "x2", "y6");
f.AddPathCommand(4, "hc", "cy6", "x5", "y6");
f.AddPathCommand(2, "x5", "y5");
f.AddPathCommand(4, "cx5", "cy4", "r", "q1");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(4, "cx2", "cy1", "x4", "y1");
f.AddPathCommand(2, "x5", "y3");
f.AddPathCommand(4, "hc", "cy3", "x2", "y3");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(4, "cx1", "cy1", "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "x2", "y3");
f.AddPathCommand(2, "x2", "y5");
f.AddPathCommand(1, "x5", "y5");
f.AddPathCommand(2, "x5", "y3");
f.AddPathCommand(1, "x3", "y7");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(1, "x4", "y1");
f.AddPathCommand(2, "x4", "y7");
break;
case "flowChartAlternateProcess":
f.AddGuide("x2", 1, "r", "0", "ssd6");
f.AddGuide("y2", 1, "b", "0", "ssd6");
f.AddGuide("il", 0, "ssd6", "29289", "100000");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "il");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "il", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "ssd6");
f.AddPathCommand(3, "ssd6", "ssd6", "cd2", "cd4");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(3, "ssd6", "ssd6", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(3, "ssd6", "ssd6", "0", "cd4");
f.AddPathCommand(2, "ssd6", "b");
f.AddPathCommand(3, "ssd6", "ssd6", "cd4", "cd4");
f.AddPathCommand(6);
break;
case "flowChartCollate":
f.AddGuide("ir", 0, "w", "3", "4");
f.AddGuide("ib", 0, "h", "3", "4");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "hc", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddRect("wd4", "hd4", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, 2, 2);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "2", "0");
f.AddPathCommand(2, "1", "1");
f.AddPathCommand(2, "2", "2");
f.AddPathCommand(2, "0", "2");
f.AddPathCommand(2, "1", "1");
f.AddPathCommand(6);
break;
case "flowChartConnector":
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "il", "it");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "il", "ib");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "ir", "ib");
f.AddCnx("0", "r", "vc");
f.AddCnx("_3cd4", "ir", "it");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "_3cd4", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "0", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "cd4", "cd4");
f.AddPathCommand(6);
break;
case "flowChartDecision":
f.AddGuide("ir", 0, "w", "3", "4");
f.AddGuide("ib", 0, "h", "3", "4");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("wd4", "hd4", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, 2, 2);
f.AddPathCommand(1, "0", "1");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "2", "1");
f.AddPathCommand(2, "1", "2");
f.AddPathCommand(6);
break;
case "flowChartDelay":
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(3, "wd2", "hd2", "_3cd4", "cd2");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "flowChartDisplay":
f.AddGuide("x2", 0, "w", "5", "6");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("wd6", "t", "x2", "b");
f.AddPathCommand(0, undefined, undefined, undefined, 6, 6);
f.AddPathCommand(1, "0", "3");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "5", "0");
f.AddPathCommand(3, "1", "3", "_3cd4", "cd2");
f.AddPathCommand(2, "1", "6");
f.AddPathCommand(6);
break;
case "flowChartDocument":
f.AddGuide("y1", 0, "h", "17322", "21600");
f.AddGuide("y2", 0, "h", "20172", "21600");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "y2");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "t", "r", "y1");
f.AddPathCommand(0, undefined, undefined, undefined, 21600, 21600);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "21600", "0");
f.AddPathCommand(2, "21600", "17322");
f.AddPathCommand(5, "10800", "17322", "10800", "23922", "0", "20172");
f.AddPathCommand(6);
break;
case "flowChartExtract":
f.AddGuide("x2", 0, "w", "3", "4");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "wd4", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "x2", "vc");
f.AddRect("wd4", "vc", "x2", "b");
f.AddPathCommand(0, undefined, undefined, undefined, 2, 2);
f.AddPathCommand(1, "0", "2");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "2", "2");
f.AddPathCommand(6);
break;
case "flowChartInputOutput":
f.AddGuide("x3", 0, "w", "2", "5");
f.AddGuide("x4", 0, "w", "3", "5");
f.AddGuide("x5", 0, "w", "4", "5");
f.AddGuide("x6", 0, "w", "9", "10");
f.AddCnx("_3cd4", "x4", "t");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "wd10", "vc");
f.AddCnx("cd4", "x3", "b");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "x6", "vc");
f.AddRect("wd5", "t", "x5", "b");
f.AddPathCommand(0, undefined, undefined, undefined, 5, 5);
f.AddPathCommand(1, "0", "5");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "5", "0");
f.AddPathCommand(2, "4", "5");
f.AddPathCommand(6);
break;
case "flowChartInternalStorage":
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("wd8", "hd8", "r", "b");
f.AddPathCommand(0, false, undefined, false, 1, 1);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "1", "1");
f.AddPathCommand(2, "0", "1");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, 8, 8);
f.AddPathCommand(1, "1", "0");
f.AddPathCommand(2, "1", "8");
f.AddPathCommand(1, "0", "1");
f.AddPathCommand(2, "8", "1");
f.AddPathCommand(0, undefined, "none", undefined, 1, 1);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "1", "1");
f.AddPathCommand(2, "0", "1");
f.AddPathCommand(6);
break;
case "flowChartMagneticDisk":
f.AddGuide("y3", 0, "h", "5", "6");
f.AddCnx("_3cd4", "hc", "hd3");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "hd3", "r", "y3");
f.AddPathCommand(0, false, undefined, false, 6, 6);
f.AddPathCommand(1, "0", "1");
f.AddPathCommand(3, "3", "1", "cd2", "cd2");
f.AddPathCommand(2, "6", "5");
f.AddPathCommand(3, "3", "1", "0", "cd2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, 6, 6);
f.AddPathCommand(1, "6", "1");
f.AddPathCommand(3, "3", "1", "0", "cd2");
f.AddPathCommand(0, undefined, "none", undefined, 6, 6);
f.AddPathCommand(1, "0", "1");
f.AddPathCommand(3, "3", "1", "cd2", "cd2");
f.AddPathCommand(2, "6", "5");
f.AddPathCommand(3, "3", "1", "0", "cd2");
f.AddPathCommand(6);
break;
case "flowChartMagneticDrum":
f.AddGuide("x2", 0, "w", "2", "3");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "x2", "vc");
f.AddCnx("0", "r", "vc");
f.AddRect("wd6", "t", "x2", "b");
f.AddPathCommand(0, false, undefined, false, 6, 6);
f.AddPathCommand(1, "1", "0");
f.AddPathCommand(2, "5", "0");
f.AddPathCommand(3, "1", "3", "_3cd4", "cd2");
f.AddPathCommand(2, "1", "6");
f.AddPathCommand(3, "1", "3", "cd4", "cd2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, 6, 6);
f.AddPathCommand(1, "5", "6");
f.AddPathCommand(3, "1", "3", "cd4", "cd2");
f.AddPathCommand(0, undefined, "none", undefined, 6, 6);
f.AddPathCommand(1, "1", "0");
f.AddPathCommand(2, "5", "0");
f.AddPathCommand(3, "1", "3", "_3cd4", "cd2");
f.AddPathCommand(2, "1", "6");
f.AddPathCommand(3, "1", "3", "cd4", "cd2");
f.AddPathCommand(6);
break;
case "flowChartMagneticTape":
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddGuide("ang1", 5, "1", "1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "hc", "b");
f.AddPathCommand(3, "wd2", "hd2", "cd4", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "_3cd4", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "0", "ang1");
f.AddPathCommand(2, "r", "ib");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(6);
break;
case "flowChartManualInput":
f.AddCnx("_3cd4", "hc", "hd10");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "hd5", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, 5, 5);
f.AddPathCommand(1, "0", "1");
f.AddPathCommand(2, "5", "0");
f.AddPathCommand(2, "5", "5");
f.AddPathCommand(2, "0", "5");
f.AddPathCommand(6);
break;
case "flowChartManualOperation":
f.AddGuide("x3", 0, "w", "4", "5");
f.AddGuide("x4", 0, "w", "9", "10");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "wd10", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "x4", "vc");
f.AddRect("wd5", "t", "x3", "b");
f.AddPathCommand(0, undefined, undefined, undefined, 5, 5);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "5", "0");
f.AddPathCommand(2, "4", "5");
f.AddPathCommand(2, "1", "5");
f.AddPathCommand(6);
break;
case "flowChartMerge":
f.AddGuide("x2", 0, "w", "3", "4");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "wd4", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "x2", "vc");
f.AddRect("wd4", "t", "x2", "vc");
f.AddPathCommand(0, undefined, undefined, undefined, 2, 2);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "2", "0");
f.AddPathCommand(2, "1", "2");
f.AddPathCommand(6);
break;
case "flowChartMultidocument":
f.AddGuide("y2", 0, "h", "3675", "21600");
f.AddGuide("y8", 0, "h", "20782", "21600");
f.AddGuide("x3", 0, "w", "9298", "21600");
f.AddGuide("x4", 0, "w", "12286", "21600");
f.AddGuide("x5", 0, "w", "18595", "21600");
f.AddCnx("_3cd4", "x4", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "x3", "y8");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "y2", "x5", "y8");
f.AddPathCommand(0, false, undefined, false, 21600, 21600);
f.AddPathCommand(1, "0", "20782");
f.AddPathCommand(5, "9298", "23542", "9298", "18022", "18595", "18022");
f.AddPathCommand(2, "18595", "3675");
f.AddPathCommand(2, "0", "3675");
f.AddPathCommand(6);
f.AddPathCommand(1, "1532", "3675");
f.AddPathCommand(2, "1532", "1815");
f.AddPathCommand(2, "20000", "1815");
f.AddPathCommand(2, "20000", "16252");
f.AddPathCommand(5, "19298", "16252", "18595", "16352", "18595", "16352");
f.AddPathCommand(2, "18595", "3675");
f.AddPathCommand(6);
f.AddPathCommand(1, "2972", "1815");
f.AddPathCommand(2, "2972", "0");
f.AddPathCommand(2, "21600", "0");
f.AddPathCommand(2, "21600", "14392");
f.AddPathCommand(5, "20800", "14392", "20000", "14467", "20000", "14467");
f.AddPathCommand(2, "20000", "1815");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, 21600, 21600);
f.AddPathCommand(1, "0", "3675");
f.AddPathCommand(2, "18595", "3675");
f.AddPathCommand(2, "18595", "18022");
f.AddPathCommand(5, "9298", "18022", "9298", "23542", "0", "20782");
f.AddPathCommand(6);
f.AddPathCommand(1, "1532", "3675");
f.AddPathCommand(2, "1532", "1815");
f.AddPathCommand(2, "20000", "1815");
f.AddPathCommand(2, "20000", "16252");
f.AddPathCommand(5, "19298", "16252", "18595", "16352", "18595", "16352");
f.AddPathCommand(1, "2972", "1815");
f.AddPathCommand(2, "2972", "0");
f.AddPathCommand(2, "21600", "0");
f.AddPathCommand(2, "21600", "14392");
f.AddPathCommand(5, "20800", "14392", "20000", "14467", "20000", "14467");
f.AddPathCommand(0, undefined, "none", false, 21600, 21600);
f.AddPathCommand(1, "0", "20782");
f.AddPathCommand(5, "9298", "23542", "9298", "18022", "18595", "18022");
f.AddPathCommand(2, "18595", "16352");
f.AddPathCommand(5, "18595", "16352", "19298", "16252", "20000", "16252");
f.AddPathCommand(2, "20000", "14467");
f.AddPathCommand(5, "20000", "14467", "20800", "14392", "21600", "14392");
f.AddPathCommand(2, "21600", "0");
f.AddPathCommand(2, "2972", "0");
f.AddPathCommand(2, "2972", "1815");
f.AddPathCommand(2, "1532", "1815");
f.AddPathCommand(2, "1532", "3675");
f.AddPathCommand(2, "0", "3675");
f.AddPathCommand(6);
break;
case "flowChartOfflineStorage":
f.AddGuide("x4", 0, "w", "3", "4");
f.AddCnx("0", "x4", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "wd4", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("wd4", "t", "x4", "vc");
f.AddPathCommand(0, false, undefined, false, 2, 2);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "2", "0");
f.AddPathCommand(2, "1", "2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, 5, 5);
f.AddPathCommand(1, "2", "4");
f.AddPathCommand(2, "3", "4");
f.AddPathCommand(0, true, "none", undefined, 2, 2);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "2", "0");
f.AddPathCommand(2, "1", "2");
f.AddPathCommand(6);
break;
case "flowChartOffpageConnector":
f.AddGuide("y1", 0, "h", "4", "5");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "t", "r", "y1");
f.AddPathCommand(0, undefined, undefined, undefined, 10, 10);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "10", "0");
f.AddPathCommand(2, "10", "8");
f.AddPathCommand(2, "5", "10");
f.AddPathCommand(2, "0", "8");
f.AddPathCommand(6);
break;
case "flowChartOnlineStorage":
f.AddGuide("x2", 0, "w", "5", "6");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "x2", "vc");
f.AddRect("wd6", "t", "x2", "b");
f.AddPathCommand(0, undefined, undefined, undefined, 6, 6);
f.AddPathCommand(1, "1", "0");
f.AddPathCommand(2, "6", "0");
f.AddPathCommand(3, "1", "3", "_3cd4", "-10800000");
f.AddPathCommand(2, "1", "6");
f.AddPathCommand(3, "1", "3", "cd4", "cd2");
f.AddPathCommand(6);
break;
case "flowChartOr":
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "il", "it");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "il", "ib");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "ir", "ib");
f.AddCnx("0", "r", "vc");
f.AddCnx("_3cd4", "ir", "it");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "_3cd4", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "0", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "cd4", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "hc", "t");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "_3cd4", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "0", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "cd4", "cd4");
f.AddPathCommand(6);
break;
case "flowChartPredefinedProcess":
f.AddGuide("x2", 0, "w", "7", "8");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("wd8", "t", "x2", "b");
f.AddPathCommand(0, false, undefined, false, 1, 1);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "1", "1");
f.AddPathCommand(2, "0", "1");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, 8, 8);
f.AddPathCommand(1, "1", "0");
f.AddPathCommand(2, "1", "8");
f.AddPathCommand(1, "7", "0");
f.AddPathCommand(2, "7", "8");
f.AddPathCommand(0, undefined, "none", undefined, 1, 1);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "1", "1");
f.AddPathCommand(2, "0", "1");
f.AddPathCommand(6);
break;
case "flowChartPreparation":
f.AddGuide("x2", 0, "w", "4", "5");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("wd5", "t", "x2", "b");
f.AddPathCommand(0, undefined, undefined, undefined, 10, 10);
f.AddPathCommand(1, "0", "5");
f.AddPathCommand(2, "2", "0");
f.AddPathCommand(2, "8", "0");
f.AddPathCommand(2, "10", "5");
f.AddPathCommand(2, "8", "10");
f.AddPathCommand(2, "2", "10");
f.AddPathCommand(6);
break;
case "flowChartProcess":
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, 1, 1);
f.AddPathCommand(1, "0", "0");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "1", "1");
f.AddPathCommand(2, "0", "1");
f.AddPathCommand(6);
break;
case "flowChartPunchedCard":
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "hd5", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, 5, 5);
f.AddPathCommand(1, "0", "1");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "5", "0");
f.AddPathCommand(2, "5", "5");
f.AddPathCommand(2, "0", "5");
f.AddPathCommand(6);
break;
case "flowChartPunchedTape":
f.AddGuide("y2", 0, "h", "9", "10");
f.AddGuide("ib", 0, "h", "4", "5");
f.AddCnx("_3cd4", "hc", "hd10");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "y2");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "hd5", "r", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, 20, 20);
f.AddPathCommand(1, "0", "2");
f.AddPathCommand(3, "5", "2", "cd2", "-10800000");
f.AddPathCommand(3, "5", "2", "cd2", "cd2");
f.AddPathCommand(2, "20", "18");
f.AddPathCommand(3, "5", "2", "0", "-10800000");
f.AddPathCommand(3, "5", "2", "0", "cd2");
f.AddPathCommand(6);
break;
case "flowChartSort":
f.AddGuide("ir", 0, "w", "3", "4");
f.AddGuide("ib", 0, "h", "3", "4");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("wd4", "hd4", "ir", "ib");
f.AddPathCommand(0, false, undefined, false, 2, 2);
f.AddPathCommand(1, "0", "1");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "2", "1");
f.AddPathCommand(2, "1", "2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, 2, 2);
f.AddPathCommand(1, "0", "1");
f.AddPathCommand(2, "2", "1");
f.AddPathCommand(0, undefined, "none", undefined, 2, 2);
f.AddPathCommand(1, "0", "1");
f.AddPathCommand(2, "1", "0");
f.AddPathCommand(2, "2", "1");
f.AddPathCommand(2, "1", "2");
f.AddPathCommand(6);
break;
case "flowChartSummingJunction":
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "il", "it");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "il", "ib");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "ir", "ib");
f.AddCnx("0", "r", "vc");
f.AddCnx("_3cd4", "ir", "it");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "_3cd4", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "0", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "cd4", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "il", "it");
f.AddPathCommand(2, "ir", "ib");
f.AddPathCommand(1, "ir", "it");
f.AddPathCommand(2, "il", "ib");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "_3cd4", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "0", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "cd4", "cd4");
f.AddPathCommand(6);
break;
case "flowChartTerminator":
f.AddGuide("il", 0, "w", "1018", "21600");
f.AddGuide("ir", 0, "w", "20582", "21600");
f.AddGuide("it", 0, "h", "3163", "21600");
f.AddGuide("ib", 0, "h", "18437", "21600");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, 21600, 21600);
f.AddPathCommand(1, "3475", "0");
f.AddPathCommand(2, "18125", "0");
f.AddPathCommand(3, "3475", "10800", "_3cd4", "cd2");
f.AddPathCommand(2, "3475", "21600");
f.AddPathCommand(3, "3475", "10800", "cd4", "cd2");
f.AddPathCommand(6);
break;
case "foldedCorner":
f.AddAdj("adj", 15, "16667");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("dy2", 0, "ss", "a", "100000");
f.AddGuide("dy1", 0, "dy2", "1", "5");
f.AddGuide("x1", 1, "r", "0", "dy2");
f.AddGuide("x2", 1, "x1", "dy1", "0");
f.AddGuide("y2", 1, "b", "0", "dy2");
f.AddGuide("y1", 1, "y2", "dy1", "0");
f.AddHandleXY("adj", "0", "50000", undefined, "0", "0", "x1", "b");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "t", "r", "y2");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "x1", "b");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "b");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(2, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "y2");
break;
case "frame":
f.AddAdj("adj1", 15, "12500");
f.AddGuide("a1", 10, "0", "adj1", "50000");
f.AddGuide("x1", 0, "ss", "a1", "100000");
f.AddGuide("x4", 1, "r", "0", "x1");
f.AddGuide("y4", 1, "b", "0", "x1");
f.AddHandleXY("adj1", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("x1", "x1", "x4", "y4");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(1, "x1", "x1");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(2, "x4", "y4");
f.AddPathCommand(2, "x4", "x1");
f.AddPathCommand(6);
break;
case "funnel":
f.AddGuide("d", 0, "ss", "1", "20");
f.AddGuide("rw2", 1, "wd2", "0", "d");
f.AddGuide("rh2", 1, "hd4", "0", "d");
f.AddGuide("t1", 7, "wd2", "480000");
f.AddGuide("t2", 12, "hd4", "480000");
f.AddGuide("da", 5, "t1", "t2");
f.AddGuide("2da", 0, "da", "2", "1");
f.AddGuide("stAng1", 1, "cd2", "0", "da");
f.AddGuide("swAng1", 1, "cd2", "2da", "0");
f.AddGuide("swAng3", 1, "cd2", "0", "2da");
f.AddGuide("rw3", 0, "wd2", "1", "4");
f.AddGuide("rh3", 0, "hd4", "1", "4");
f.AddGuide("ct1", 7, "hd4", "stAng1");
f.AddGuide("st1", 12, "wd2", "stAng1");
f.AddGuide("m1", 9, "ct1", "st1", "0");
f.AddGuide("n1", 0, "wd2", "hd4", "m1");
f.AddGuide("dx1", 7, "n1", "stAng1");
f.AddGuide("dy1", 12, "n1", "stAng1");
f.AddGuide("x1", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "hd4", "dy1", "0");
f.AddGuide("ct3", 7, "rh3", "da");
f.AddGuide("st3", 12, "rw3", "da");
f.AddGuide("m3", 9, "ct3", "st3", "0");
f.AddGuide("n3", 0, "rw3", "rh3", "m3");
f.AddGuide("dx3", 7, "n3", "da");
f.AddGuide("dy3", 12, "n3", "da");
f.AddGuide("x3", 1, "hc", "dx3", "0");
f.AddGuide("vc3", 1, "b", "0", "rh3");
f.AddGuide("y2", 1, "vc3", "dy3", "0");
f.AddGuide("x2", 1, "wd2", "0", "rw2");
f.AddGuide("cd", 0, "cd2", "2", "1");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(3, "wd2", "hd4", "stAng1", "swAng1");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(3, "rw3", "rh3", "da", "swAng3");
f.AddPathCommand(6);
f.AddPathCommand(1, "x2", "hd4");
f.AddPathCommand(3, "rw2", "rh2", "cd2", "-21600000");
f.AddPathCommand(6);
break;
case "gear6":
f.AddAdj("adj1", 15, "15000");
f.AddAdj("adj2", 15, "3526");
f.AddGuide("a1", 10, "0", "adj1", "20000");
f.AddGuide("a2", 10, "0", "adj2", "5358");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("lFD", 0, "ss", "a2", "100000");
f.AddGuide("th2", 0, "th", "1", "2");
f.AddGuide("l2", 0, "lFD", "1", "2");
f.AddGuide("l3", 1, "th2", "l2", "0");
f.AddGuide("rh", 1, "hd2", "0", "th");
f.AddGuide("rw", 1, "wd2", "0", "th");
f.AddGuide("dr", 1, "rw", "0", "rh");
f.AddGuide("maxr", 3, "dr", "rh", "rw");
f.AddGuide("ha", 5, "maxr", "l3");
f.AddGuide("aA1", 1, "19800000", "0", "ha");
f.AddGuide("aD1", 1, "19800000", "ha", "0");
f.AddGuide("ta11", 7, "rw", "aA1");
f.AddGuide("ta12", 12, "rh", "aA1");
f.AddGuide("bA1", 5, "ta11", "ta12");
f.AddGuide("cta1", 7, "rh", "bA1");
f.AddGuide("sta1", 12, "rw", "bA1");
f.AddGuide("ma1", 9, "cta1", "sta1", "0");
f.AddGuide("na1", 0, "rw", "rh", "ma1");
f.AddGuide("dxa1", 7, "na1", "bA1");
f.AddGuide("dya1", 12, "na1", "bA1");
f.AddGuide("xA1", 1, "hc", "dxa1", "0");
f.AddGuide("yA1", 1, "vc", "dya1", "0");
f.AddGuide("td11", 7, "rw", "aD1");
f.AddGuide("td12", 12, "rh", "aD1");
f.AddGuide("bD1", 5, "td11", "td12");
f.AddGuide("ctd1", 7, "rh", "bD1");
f.AddGuide("std1", 12, "rw", "bD1");
f.AddGuide("md1", 9, "ctd1", "std1", "0");
f.AddGuide("nd1", 0, "rw", "rh", "md1");
f.AddGuide("dxd1", 7, "nd1", "bD1");
f.AddGuide("dyd1", 12, "nd1", "bD1");
f.AddGuide("xD1", 1, "hc", "dxd1", "0");
f.AddGuide("yD1", 1, "vc", "dyd1", "0");
f.AddGuide("xAD1", 1, "xA1", "0", "xD1");
f.AddGuide("yAD1", 1, "yA1", "0", "yD1");
f.AddGuide("lAD1", 9, "xAD1", "yAD1", "0");
f.AddGuide("a1", 5, "yAD1", "xAD1");
f.AddGuide("dxF1", 12, "lFD", "a1");
f.AddGuide("dyF1", 7, "lFD", "a1");
f.AddGuide("xF1", 1, "xD1", "dxF1", "0");
f.AddGuide("yF1", 1, "yD1", "dyF1", "0");
f.AddGuide("xE1", 1, "xA1", "0", "dxF1");
f.AddGuide("yE1", 1, "yA1", "0", "dyF1");
f.AddGuide("yC1t", 12, "th", "a1");
f.AddGuide("xC1t", 7, "th", "a1");
f.AddGuide("yC1", 1, "yF1", "yC1t", "0");
f.AddGuide("xC1", 1, "xF1", "0", "xC1t");
f.AddGuide("yB1", 1, "yE1", "yC1t", "0");
f.AddGuide("xB1", 1, "xE1", "0", "xC1t");
f.AddGuide("aD6", 1, "_3cd4", "ha", "0");
f.AddGuide("td61", 7, "rw", "aD6");
f.AddGuide("td62", 12, "rh", "aD6");
f.AddGuide("bD6", 5, "td61", "td62");
f.AddGuide("ctd6", 7, "rh", "bD6");
f.AddGuide("std6", 12, "rw", "bD6");
f.AddGuide("md6", 9, "ctd6", "std6", "0");
f.AddGuide("nd6", 0, "rw", "rh", "md6");
f.AddGuide("dxd6", 7, "nd6", "bD6");
f.AddGuide("dyd6", 12, "nd6", "bD6");
f.AddGuide("xD6", 1, "hc", "dxd6", "0");
f.AddGuide("yD6", 1, "vc", "dyd6", "0");
f.AddGuide("xA6", 1, "hc", "0", "dxd6");
f.AddGuide("xF6", 1, "xD6", "0", "lFD");
f.AddGuide("xE6", 1, "xA6", "lFD", "0");
f.AddGuide("yC6", 1, "yD6", "0", "th");
f.AddGuide("swAng1", 1, "bA1", "0", "bD6");
f.AddGuide("aA2", 1, "1800000", "0", "ha");
f.AddGuide("aD2", 1, "1800000", "ha", "0");
f.AddGuide("ta21", 7, "rw", "aA2");
f.AddGuide("ta22", 12, "rh", "aA2");
f.AddGuide("bA2", 5, "ta21", "ta22");
f.AddGuide("yA2", 1, "h", "0", "yD1");
f.AddGuide("td21", 7, "rw", "aD2");
f.AddGuide("td22", 12, "rh", "aD2");
f.AddGuide("bD2", 5, "td21", "td22");
f.AddGuide("yD2", 1, "h", "0", "yA1");
f.AddGuide("yC2", 1, "h", "0", "yB1");
f.AddGuide("yB2", 1, "h", "0", "yC1");
f.AddGuide("xB2", 15, "xC1");
f.AddGuide("swAng2", 1, "bA2", "0", "bD1");
f.AddGuide("aD3", 1, "cd4", "ha", "0");
f.AddGuide("td31", 7, "rw", "aD3");
f.AddGuide("td32", 12, "rh", "aD3");
f.AddGuide("bD3", 5, "td31", "td32");
f.AddGuide("yD3", 1, "h", "0", "yD6");
f.AddGuide("yB3", 1, "h", "0", "yC6");
f.AddGuide("aD4", 1, "9000000", "ha", "0");
f.AddGuide("td41", 7, "rw", "aD4");
f.AddGuide("td42", 12, "rh", "aD4");
f.AddGuide("bD4", 5, "td41", "td42");
f.AddGuide("xD4", 1, "w", "0", "xD1");
f.AddGuide("xC4", 1, "w", "0", "xC1");
f.AddGuide("xB4", 1, "w", "0", "xB1");
f.AddGuide("aD5", 1, "12600000", "ha", "0");
f.AddGuide("td51", 7, "rw", "aD5");
f.AddGuide("td52", 12, "rh", "aD5");
f.AddGuide("bD5", 5, "td51", "td52");
f.AddGuide("xD5", 1, "w", "0", "xA1");
f.AddGuide("xC5", 1, "w", "0", "xB1");
f.AddGuide("xB5", 1, "w", "0", "xC1");
f.AddGuide("xCxn1", 2, "xB1", "xC1", "2");
f.AddGuide("yCxn1", 2, "yB1", "yC1", "2");
f.AddGuide("yCxn2", 1, "b", "0", "yCxn1");
f.AddGuide("xCxn4", 2, "r", "0", "xCxn1");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "20000", "xD6", "yD6");
f.AddHandleXY("adj2", "0", "5358", undefined, "0", "0", "xA6", "yD6");
f.AddCnx("19800000", "xCxn1", "yCxn1");
f.AddCnx("1800000", "xCxn1", "yCxn2");
f.AddCnx("cd4", "hc", "yB3");
f.AddCnx("9000000", "xCxn4", "yCxn2");
f.AddCnx("12600000", "xCxn4", "yCxn1");
f.AddCnx("_3cd4", "hc", "yC6");
f.AddRect("xD5", "yA1", "xA1", "yD2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "xA1", "yA1");
f.AddPathCommand(2, "xB1", "yB1");
f.AddPathCommand(2, "xC1", "yC1");
f.AddPathCommand(2, "xD1", "yD1");
f.AddPathCommand(3, "rh", "rw", "bD1", "swAng2");
f.AddPathCommand(2, "xC1", "yB2");
f.AddPathCommand(2, "xB1", "yC2");
f.AddPathCommand(2, "xA1", "yD2");
f.AddPathCommand(3, "rh", "rw", "bD2", "swAng1");
f.AddPathCommand(2, "xF6", "yB3");
f.AddPathCommand(2, "xE6", "yB3");
f.AddPathCommand(2, "xA6", "yD3");
f.AddPathCommand(3, "rh", "rw", "bD3", "swAng1");
f.AddPathCommand(2, "xB4", "yC2");
f.AddPathCommand(2, "xC4", "yB2");
f.AddPathCommand(2, "xD4", "yA2");
f.AddPathCommand(3, "rh", "rw", "bD4", "swAng2");
f.AddPathCommand(2, "xB5", "yC1");
f.AddPathCommand(2, "xC5", "yB1");
f.AddPathCommand(2, "xD5", "yA1");
f.AddPathCommand(3, "rh", "rw", "bD5", "swAng1");
f.AddPathCommand(2, "xE6", "yC6");
f.AddPathCommand(2, "xF6", "yC6");
f.AddPathCommand(2, "xD6", "yD6");
f.AddPathCommand(3, "rh", "rw", "bD6", "swAng1");
f.AddPathCommand(6);
break;
case "gear9":
f.AddAdj("adj1", 15, "10000");
f.AddAdj("adj2", 15, "1763");
f.AddGuide("a1", 10, "0", "adj1", "20000");
f.AddGuide("a2", 10, "0", "adj2", "2679");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("lFD", 0, "ss", "a2", "100000");
f.AddGuide("th2", 0, "th", "1", "2");
f.AddGuide("l2", 0, "lFD", "1", "2");
f.AddGuide("l3", 1, "th2", "l2", "0");
f.AddGuide("rh", 1, "hd2", "0", "th");
f.AddGuide("rw", 1, "wd2", "0", "th");
f.AddGuide("dr", 1, "rw", "0", "rh");
f.AddGuide("maxr", 3, "dr", "rh", "rw");
f.AddGuide("ha", 5, "maxr", "l3");
f.AddGuide("aA1", 1, "18600000", "0", "ha");
f.AddGuide("aD1", 1, "18600000", "ha", "0");
f.AddGuide("ta11", 7, "rw", "aA1");
f.AddGuide("ta12", 12, "rh", "aA1");
f.AddGuide("bA1", 5, "ta11", "ta12");
f.AddGuide("cta1", 7, "rh", "bA1");
f.AddGuide("sta1", 12, "rw", "bA1");
f.AddGuide("ma1", 9, "cta1", "sta1", "0");
f.AddGuide("na1", 0, "rw", "rh", "ma1");
f.AddGuide("dxa1", 7, "na1", "bA1");
f.AddGuide("dya1", 12, "na1", "bA1");
f.AddGuide("xA1", 1, "hc", "dxa1", "0");
f.AddGuide("yA1", 1, "vc", "dya1", "0");
f.AddGuide("td11", 7, "rw", "aD1");
f.AddGuide("td12", 12, "rh", "aD1");
f.AddGuide("bD1", 5, "td11", "td12");
f.AddGuide("ctd1", 7, "rh", "bD1");
f.AddGuide("std1", 12, "rw", "bD1");
f.AddGuide("md1", 9, "ctd1", "std1", "0");
f.AddGuide("nd1", 0, "rw", "rh", "md1");
f.AddGuide("dxd1", 7, "nd1", "bD1");
f.AddGuide("dyd1", 12, "nd1", "bD1");
f.AddGuide("xD1", 1, "hc", "dxd1", "0");
f.AddGuide("yD1", 1, "vc", "dyd1", "0");
f.AddGuide("xAD1", 1, "xA1", "0", "xD1");
f.AddGuide("yAD1", 1, "yA1", "0", "yD1");
f.AddGuide("lAD1", 9, "xAD1", "yAD1", "0");
f.AddGuide("a1", 5, "yAD1", "xAD1");
f.AddGuide("dxF1", 12, "lFD", "a1");
f.AddGuide("dyF1", 7, "lFD", "a1");
f.AddGuide("xF1", 1, "xD1", "dxF1", "0");
f.AddGuide("yF1", 1, "yD1", "dyF1", "0");
f.AddGuide("xE1", 1, "xA1", "0", "dxF1");
f.AddGuide("yE1", 1, "yA1", "0", "dyF1");
f.AddGuide("yC1t", 12, "th", "a1");
f.AddGuide("xC1t", 7, "th", "a1");
f.AddGuide("yC1", 1, "yF1", "yC1t", "0");
f.AddGuide("xC1", 1, "xF1", "0", "xC1t");
f.AddGuide("yB1", 1, "yE1", "yC1t", "0");
f.AddGuide("xB1", 1, "xE1", "0", "xC1t");
f.AddGuide("aA2", 1, "21000000", "0", "ha");
f.AddGuide("aD2", 1, "21000000", "ha", "0");
f.AddGuide("ta21", 7, "rw", "aA2");
f.AddGuide("ta22", 12, "rh", "aA2");
f.AddGuide("bA2", 5, "ta21", "ta22");
f.AddGuide("cta2", 7, "rh", "bA2");
f.AddGuide("sta2", 12, "rw", "bA2");
f.AddGuide("ma2", 9, "cta2", "sta2", "0");
f.AddGuide("na2", 0, "rw", "rh", "ma2");
f.AddGuide("dxa2", 7, "na2", "bA2");
f.AddGuide("dya2", 12, "na2", "bA2");
f.AddGuide("xA2", 1, "hc", "dxa2", "0");
f.AddGuide("yA2", 1, "vc", "dya2", "0");
f.AddGuide("td21", 7, "rw", "aD2");
f.AddGuide("td22", 12, "rh", "aD2");
f.AddGuide("bD2", 5, "td21", "td22");
f.AddGuide("ctd2", 7, "rh", "bD2");
f.AddGuide("std2", 12, "rw", "bD2");
f.AddGuide("md2", 9, "ctd2", "std2", "0");
f.AddGuide("nd2", 0, "rw", "rh", "md2");
f.AddGuide("dxd2", 7, "nd2", "bD2");
f.AddGuide("dyd2", 12, "nd2", "bD2");
f.AddGuide("xD2", 1, "hc", "dxd2", "0");
f.AddGuide("yD2", 1, "vc", "dyd2", "0");
f.AddGuide("xAD2", 1, "xA2", "0", "xD2");
f.AddGuide("yAD2", 1, "yA2", "0", "yD2");
f.AddGuide("lAD2", 9, "xAD2", "yAD2", "0");
f.AddGuide("a2", 5, "yAD2", "xAD2");
f.AddGuide("dxF2", 12, "lFD", "a2");
f.AddGuide("dyF2", 7, "lFD", "a2");
f.AddGuide("xF2", 1, "xD2", "dxF2", "0");
f.AddGuide("yF2", 1, "yD2", "dyF2", "0");
f.AddGuide("xE2", 1, "xA2", "0", "dxF2");
f.AddGuide("yE2", 1, "yA2", "0", "dyF2");
f.AddGuide("yC2t", 12, "th", "a2");
f.AddGuide("xC2t", 7, "th", "a2");
f.AddGuide("yC2", 1, "yF2", "yC2t", "0");
f.AddGuide("xC2", 1, "xF2", "0", "xC2t");
f.AddGuide("yB2", 1, "yE2", "yC2t", "0");
f.AddGuide("xB2", 1, "xE2", "0", "xC2t");
f.AddGuide("swAng1", 1, "bA2", "0", "bD1");
f.AddGuide("aA3", 1, "1800000", "0", "ha");
f.AddGuide("aD3", 1, "1800000", "ha", "0");
f.AddGuide("ta31", 7, "rw", "aA3");
f.AddGuide("ta32", 12, "rh", "aA3");
f.AddGuide("bA3", 5, "ta31", "ta32");
f.AddGuide("cta3", 7, "rh", "bA3");
f.AddGuide("sta3", 12, "rw", "bA3");
f.AddGuide("ma3", 9, "cta3", "sta3", "0");
f.AddGuide("na3", 0, "rw", "rh", "ma3");
f.AddGuide("dxa3", 7, "na3", "bA3");
f.AddGuide("dya3", 12, "na3", "bA3");
f.AddGuide("xA3", 1, "hc", "dxa3", "0");
f.AddGuide("yA3", 1, "vc", "dya3", "0");
f.AddGuide("td31", 7, "rw", "aD3");
f.AddGuide("td32", 12, "rh", "aD3");
f.AddGuide("bD3", 5, "td31", "td32");
f.AddGuide("ctd3", 7, "rh", "bD3");
f.AddGuide("std3", 12, "rw", "bD3");
f.AddGuide("md3", 9, "ctd3", "std3", "0");
f.AddGuide("nd3", 0, "rw", "rh", "md3");
f.AddGuide("dxd3", 7, "nd3", "bD3");
f.AddGuide("dyd3", 12, "nd3", "bD3");
f.AddGuide("xD3", 1, "hc", "dxd3", "0");
f.AddGuide("yD3", 1, "vc", "dyd3", "0");
f.AddGuide("xAD3", 1, "xA3", "0", "xD3");
f.AddGuide("yAD3", 1, "yA3", "0", "yD3");
f.AddGuide("lAD3", 9, "xAD3", "yAD3", "0");
f.AddGuide("a3", 5, "yAD3", "xAD3");
f.AddGuide("dxF3", 12, "lFD", "a3");
f.AddGuide("dyF3", 7, "lFD", "a3");
f.AddGuide("xF3", 1, "xD3", "dxF3", "0");
f.AddGuide("yF3", 1, "yD3", "dyF3", "0");
f.AddGuide("xE3", 1, "xA3", "0", "dxF3");
f.AddGuide("yE3", 1, "yA3", "0", "dyF3");
f.AddGuide("yC3t", 12, "th", "a3");
f.AddGuide("xC3t", 7, "th", "a3");
f.AddGuide("yC3", 1, "yF3", "yC3t", "0");
f.AddGuide("xC3", 1, "xF3", "0", "xC3t");
f.AddGuide("yB3", 1, "yE3", "yC3t", "0");
f.AddGuide("xB3", 1, "xE3", "0", "xC3t");
f.AddGuide("swAng2", 1, "bA3", "0", "bD2");
f.AddGuide("aA4", 1, "4200000", "0", "ha");
f.AddGuide("aD4", 1, "4200000", "ha", "0");
f.AddGuide("ta41", 7, "rw", "aA4");
f.AddGuide("ta42", 12, "rh", "aA4");
f.AddGuide("bA4", 5, "ta41", "ta42");
f.AddGuide("cta4", 7, "rh", "bA4");
f.AddGuide("sta4", 12, "rw", "bA4");
f.AddGuide("ma4", 9, "cta4", "sta4", "0");
f.AddGuide("na4", 0, "rw", "rh", "ma4");
f.AddGuide("dxa4", 7, "na4", "bA4");
f.AddGuide("dya4", 12, "na4", "bA4");
f.AddGuide("xA4", 1, "hc", "dxa4", "0");
f.AddGuide("yA4", 1, "vc", "dya4", "0");
f.AddGuide("td41", 7, "rw", "aD4");
f.AddGuide("td42", 12, "rh", "aD4");
f.AddGuide("bD4", 5, "td41", "td42");
f.AddGuide("ctd4", 7, "rh", "bD4");
f.AddGuide("std4", 12, "rw", "bD4");
f.AddGuide("md4", 9, "ctd4", "std4", "0");
f.AddGuide("nd4", 0, "rw", "rh", "md4");
f.AddGuide("dxd4", 7, "nd4", "bD4");
f.AddGuide("dyd4", 12, "nd4", "bD4");
f.AddGuide("xD4", 1, "hc", "dxd4", "0");
f.AddGuide("yD4", 1, "vc", "dyd4", "0");
f.AddGuide("xAD4", 1, "xA4", "0", "xD4");
f.AddGuide("yAD4", 1, "yA4", "0", "yD4");
f.AddGuide("lAD4", 9, "xAD4", "yAD4", "0");
f.AddGuide("a4", 5, "yAD4", "xAD4");
f.AddGuide("dxF4", 12, "lFD", "a4");
f.AddGuide("dyF4", 7, "lFD", "a4");
f.AddGuide("xF4", 1, "xD4", "dxF4", "0");
f.AddGuide("yF4", 1, "yD4", "dyF4", "0");
f.AddGuide("xE4", 1, "xA4", "0", "dxF4");
f.AddGuide("yE4", 1, "yA4", "0", "dyF4");
f.AddGuide("yC4t", 12, "th", "a4");
f.AddGuide("xC4t", 7, "th", "a4");
f.AddGuide("yC4", 1, "yF4", "yC4t", "0");
f.AddGuide("xC4", 1, "xF4", "0", "xC4t");
f.AddGuide("yB4", 1, "yE4", "yC4t", "0");
f.AddGuide("xB4", 1, "xE4", "0", "xC4t");
f.AddGuide("swAng3", 1, "bA4", "0", "bD3");
f.AddGuide("aA5", 1, "6600000", "0", "ha");
f.AddGuide("aD5", 1, "6600000", "ha", "0");
f.AddGuide("ta51", 7, "rw", "aA5");
f.AddGuide("ta52", 12, "rh", "aA5");
f.AddGuide("bA5", 5, "ta51", "ta52");
f.AddGuide("td51", 7, "rw", "aD5");
f.AddGuide("td52", 12, "rh", "aD5");
f.AddGuide("bD5", 5, "td51", "td52");
f.AddGuide("xD5", 1, "w", "0", "xA4");
f.AddGuide("xC5", 1, "w", "0", "xB4");
f.AddGuide("xB5", 1, "w", "0", "xC4");
f.AddGuide("swAng4", 1, "bA5", "0", "bD4");
f.AddGuide("aD6", 1, "9000000", "ha", "0");
f.AddGuide("td61", 7, "rw", "aD6");
f.AddGuide("td62", 12, "rh", "aD6");
f.AddGuide("bD6", 5, "td61", "td62");
f.AddGuide("xD6", 1, "w", "0", "xA3");
f.AddGuide("xC6", 1, "w", "0", "xB3");
f.AddGuide("xB6", 1, "w", "0", "xC3");
f.AddGuide("aD7", 1, "11400000", "ha", "0");
f.AddGuide("td71", 7, "rw", "aD7");
f.AddGuide("td72", 12, "rh", "aD7");
f.AddGuide("bD7", 5, "td71", "td72");
f.AddGuide("xD7", 1, "w", "0", "xA2");
f.AddGuide("xC7", 1, "w", "0", "xB2");
f.AddGuide("xB7", 1, "w", "0", "xC2");
f.AddGuide("aD8", 1, "13800000", "ha", "0");
f.AddGuide("td81", 7, "rw", "aD8");
f.AddGuide("td82", 12, "rh", "aD8");
f.AddGuide("bD8", 5, "td81", "td82");
f.AddGuide("xA8", 1, "w", "0", "xD1");
f.AddGuide("xD8", 1, "w", "0", "xA1");
f.AddGuide("xC8", 1, "w", "0", "xB1");
f.AddGuide("xB8", 1, "w", "0", "xC1");
f.AddGuide("aA9", 1, "_3cd4", "0", "ha");
f.AddGuide("aD9", 1, "_3cd4", "ha", "0");
f.AddGuide("td91", 7, "rw", "aD9");
f.AddGuide("td92", 12, "rh", "aD9");
f.AddGuide("bD9", 5, "td91", "td92");
f.AddGuide("ctd9", 7, "rh", "bD9");
f.AddGuide("std9", 12, "rw", "bD9");
f.AddGuide("md9", 9, "ctd9", "std9", "0");
f.AddGuide("nd9", 0, "rw", "rh", "md9");
f.AddGuide("dxd9", 7, "nd9", "bD9");
f.AddGuide("dyd9", 12, "nd9", "bD9");
f.AddGuide("xD9", 1, "hc", "dxd9", "0");
f.AddGuide("yD9", 1, "vc", "dyd9", "0");
f.AddGuide("ta91", 7, "rw", "aA9");
f.AddGuide("ta92", 12, "rh", "aA9");
f.AddGuide("bA9", 5, "ta91", "ta92");
f.AddGuide("xA9", 1, "hc", "0", "dxd9");
f.AddGuide("xF9", 1, "xD9", "0", "lFD");
f.AddGuide("xE9", 1, "xA9", "lFD", "0");
f.AddGuide("yC9", 1, "yD9", "0", "th");
f.AddGuide("swAng5", 1, "bA9", "0", "bD8");
f.AddGuide("xCxn1", 2, "xB1", "xC1", "2");
f.AddGuide("yCxn1", 2, "yB1", "yC1", "2");
f.AddGuide("xCxn2", 2, "xB2", "xC2", "2");
f.AddGuide("yCxn2", 2, "yB2", "yC2", "2");
f.AddGuide("xCxn3", 2, "xB3", "xC3", "2");
f.AddGuide("yCxn3", 2, "yB3", "yC3", "2");
f.AddGuide("xCxn4", 2, "xB4", "xC4", "2");
f.AddGuide("yCxn4", 2, "yB4", "yC4", "2");
f.AddGuide("xCxn5", 2, "r", "0", "xCxn4");
f.AddGuide("xCxn6", 2, "r", "0", "xCxn3");
f.AddGuide("xCxn7", 2, "r", "0", "xCxn2");
f.AddGuide("xCxn8", 2, "r", "0", "xCxn1");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "20000", "xD9", "yD9");
f.AddHandleXY("adj2", "0", "2679", undefined, "0", "0", "xA9", "yD9");
f.AddCnx("18600000", "xCxn1", "yCxn1");
f.AddCnx("21000000", "xCxn2", "yCxn2");
f.AddCnx("1800000", "xCxn3", "yCxn3");
f.AddCnx("4200000", "xCxn4", "yCxn4");
f.AddCnx("6600000", "xCxn5", "yCxn4");
f.AddCnx("9000000", "xCxn6", "yCxn3");
f.AddCnx("11400000", "xCxn7", "yCxn2");
f.AddCnx("13800000", "xCxn8", "yCxn1");
f.AddCnx("_3cd4", "hc", "yC9");
f.AddRect("xA8", "yD1", "xD1", "yD3");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "xA1", "yA1");
f.AddPathCommand(2, "xB1", "yB1");
f.AddPathCommand(2, "xC1", "yC1");
f.AddPathCommand(2, "xD1", "yD1");
f.AddPathCommand(3, "rh", "rw", "bD1", "swAng1");
f.AddPathCommand(2, "xB2", "yB2");
f.AddPathCommand(2, "xC2", "yC2");
f.AddPathCommand(2, "xD2", "yD2");
f.AddPathCommand(3, "rh", "rw", "bD2", "swAng2");
f.AddPathCommand(2, "xB3", "yB3");
f.AddPathCommand(2, "xC3", "yC3");
f.AddPathCommand(2, "xD3", "yD3");
f.AddPathCommand(3, "rh", "rw", "bD3", "swAng3");
f.AddPathCommand(2, "xB4", "yB4");
f.AddPathCommand(2, "xC4", "yC4");
f.AddPathCommand(2, "xD4", "yD4");
f.AddPathCommand(3, "rh", "rw", "bD4", "swAng4");
f.AddPathCommand(2, "xB5", "yC4");
f.AddPathCommand(2, "xC5", "yB4");
f.AddPathCommand(2, "xD5", "yA4");
f.AddPathCommand(3, "rh", "rw", "bD5", "swAng3");
f.AddPathCommand(2, "xB6", "yC3");
f.AddPathCommand(2, "xC6", "yB3");
f.AddPathCommand(2, "xD6", "yA3");
f.AddPathCommand(3, "rh", "rw", "bD6", "swAng2");
f.AddPathCommand(2, "xB7", "yC2");
f.AddPathCommand(2, "xC7", "yB2");
f.AddPathCommand(2, "xD7", "yA2");
f.AddPathCommand(3, "rh", "rw", "bD7", "swAng1");
f.AddPathCommand(2, "xB8", "yC1");
f.AddPathCommand(2, "xC8", "yB1");
f.AddPathCommand(2, "xD8", "yA1");
f.AddPathCommand(3, "rh", "rw", "bD8", "swAng5");
f.AddPathCommand(2, "xE9", "yC9");
f.AddPathCommand(2, "xF9", "yC9");
f.AddPathCommand(2, "xD9", "yD9");
f.AddPathCommand(3, "rh", "rw", "bD9", "swAng5");
f.AddPathCommand(6);
break;
case "halfFrame":
f.AddAdj("adj1", 15, "33333");
f.AddAdj("adj2", 15, "33333");
f.AddGuide("maxAdj2", 0, "100000", "w", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("x1", 0, "ss", "a2", "100000");
f.AddGuide("g1", 0, "h", "x1", "w");
f.AddGuide("g2", 1, "h", "0", "g1");
f.AddGuide("maxAdj1", 0, "100000", "g2", "ss");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("y1", 0, "ss", "a1", "100000");
f.AddGuide("dx2", 0, "y1", "w", "h");
f.AddGuide("x2", 1, "r", "0", "dx2");
f.AddGuide("dy2", 0, "x1", "h", "w");
f.AddGuide("y2", 1, "b", "0", "dy2");
f.AddGuide("cx1", 0, "x1", "1", "2");
f.AddGuide("cy1", 2, "y2", "b", "2");
f.AddGuide("cx2", 2, "x2", "r", "2");
f.AddGuide("cy2", 0, "y1", "1", "2");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "maxAdj1", "l", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x1", "t");
f.AddCnx("0", "cx2", "cy2");
f.AddCnx("cd4", "cx1", "cy1");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "heart":
f.AddGuide("dx1", 0, "w", "49", "48");
f.AddGuide("dx2", 0, "w", "10", "48");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "dx2", "0");
f.AddGuide("x4", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "t", "0", "hd3");
f.AddGuide("il", 0, "w", "1", "6");
f.AddGuide("ir", 0, "w", "5", "6");
f.AddGuide("ib", 0, "h", "2", "3");
f.AddCnx("_3cd4", "hc", "hd4");
f.AddCnx("cd4", "hc", "b");
f.AddRect("il", "hd4", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "hc", "hd4");
f.AddPathCommand(5, "x3", "y1", "x4", "hd4", "hc", "b");
f.AddPathCommand(5, "x1", "hd4", "x2", "y1", "hc", "hd4");
f.AddPathCommand(6);
break;
case "heptagon":
f.AddAdj("hf", 15, "102572");
f.AddAdj("vf", 15, "105210");
f.AddGuide("swd2", 0, "wd2", "hf", "100000");
f.AddGuide("shd2", 0, "hd2", "vf", "100000");
f.AddGuide("svc", 0, "vc", "vf", "100000");
f.AddGuide("dx1", 0, "swd2", "97493", "100000");
f.AddGuide("dx2", 0, "swd2", "78183", "100000");
f.AddGuide("dx3", 0, "swd2", "43388", "100000");
f.AddGuide("dy1", 0, "shd2", "62349", "100000");
f.AddGuide("dy2", 0, "shd2", "22252", "100000");
f.AddGuide("dy3", 0, "shd2", "90097", "100000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "0", "dx3");
f.AddGuide("x4", 1, "hc", "dx3", "0");
f.AddGuide("x5", 1, "hc", "dx2", "0");
f.AddGuide("x6", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "svc", "0", "dy1");
f.AddGuide("y2", 1, "svc", "dy2", "0");
f.AddGuide("y3", 1, "svc", "dy3", "0");
f.AddGuide("ib", 1, "b", "0", "y1");
f.AddCnx("0", "x5", "y1");
f.AddCnx("0", "x6", "y2");
f.AddCnx("cd4", "x4", "y3");
f.AddCnx("cd4", "x3", "y3");
f.AddCnx("cd2", "x1", "y2");
f.AddCnx("cd2", "x2", "y1");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("x2", "y1", "x5", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y2");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "x5", "y1");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(6);
break;
case "hexagon":
f.AddAdj("adj", 15, "25000");
f.AddAdj("vf", 15, "115470");
f.AddGuide("maxAdj", 0, "50000", "w", "ss");
f.AddGuide("a", 10, "0", "adj", "maxAdj");
f.AddGuide("shd2", 0, "hd2", "vf", "100000");
f.AddGuide("x1", 0, "ss", "a", "100000");
f.AddGuide("x2", 1, "r", "0", "x1");
f.AddGuide("dy1", 12, "shd2", "3600000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "dy1", "0");
f.AddGuide("q1", 0, "maxAdj", "-1", "2");
f.AddGuide("q2", 1, "a", "q1", "0");
f.AddGuide("q3", 3, "q2", "4", "2");
f.AddGuide("q4", 3, "q2", "3", "2");
f.AddGuide("q5", 3, "q2", "q1", "0");
f.AddGuide("q6", 2, "a", "q5", "q1");
f.AddGuide("q7", 0, "q6", "q4", "-1");
f.AddGuide("q8", 1, "q3", "q7", "0");
f.AddGuide("il", 0, "w", "q8", "24");
f.AddGuide("it", 0, "h", "q8", "24");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "it");
f.AddHandleXY("adj", "0", "maxAdj", undefined, "0", "0", "x1", "t");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "x2", "y2");
f.AddCnx("cd4", "x1", "y2");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "x1", "y1");
f.AddCnx("_3cd4", "x2", "y1");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(6);
break;
case "homePlate":
f.AddAdj("adj", 15, "50000");
f.AddGuide("maxAdj", 0, "100000", "w", "ss");
f.AddGuide("a", 10, "0", "adj", "maxAdj");
f.AddGuide("dx1", 0, "ss", "a", "100000");
f.AddGuide("x1", 1, "r", "0", "dx1");
f.AddGuide("ir", 2, "x1", "r", "2");
f.AddGuide("x2", 0, "x1", "1", "2");
f.AddHandleXY("adj", "0", "maxAdj", undefined, "0", "0", "x1", "t");
f.AddCnx("_3cd4", "x2", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "x1", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "t", "ir", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "horizontalScroll":
f.AddAdj("adj", 15, "12500");
f.AddGuide("a", 10, "0", "adj", "25000");
f.AddGuide("ch", 0, "ss", "a", "100000");
f.AddGuide("ch2", 0, "ch", "1", "2");
f.AddGuide("ch4", 0, "ch", "1", "4");
f.AddGuide("y3", 1, "ch", "ch2", "0");
f.AddGuide("y4", 1, "ch", "ch", "0");
f.AddGuide("y6", 1, "b", "0", "ch");
f.AddGuide("y7", 1, "b", "0", "ch2");
f.AddGuide("y5", 1, "y6", "0", "ch2");
f.AddGuide("x3", 1, "r", "0", "ch");
f.AddGuide("x4", 1, "r", "0", "ch2");
f.AddHandleXY("adj", "0", "25000", undefined, "0", "0", "ch", "t");
f.AddCnx("cd4", "hc", "ch");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "y6");
f.AddCnx("0", "r", "vc");
f.AddRect("ch", "ch", "x4", "y6");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "r", "ch2");
f.AddPathCommand(3, "ch2", "ch2", "0", "cd4");
f.AddPathCommand(2, "x4", "ch2");
f.AddPathCommand(3, "ch4", "ch4", "0", "cd2");
f.AddPathCommand(2, "x3", "ch");
f.AddPathCommand(2, "ch2", "ch");
f.AddPathCommand(3, "ch2", "ch2", "_3cd4", "-5400000");
f.AddPathCommand(2, "l", "y7");
f.AddPathCommand(3, "ch2", "ch2", "cd2", "-10800000");
f.AddPathCommand(2, "ch", "y6");
f.AddPathCommand(2, "x4", "y6");
f.AddPathCommand(3, "ch2", "ch2", "cd4", "-5400000");
f.AddPathCommand(6);
f.AddPathCommand(1, "ch2", "y4");
f.AddPathCommand(3, "ch2", "ch2", "cd4", "-5400000");
f.AddPathCommand(3, "ch4", "ch4", "0", "-10800000");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "ch2", "y4");
f.AddPathCommand(3, "ch2", "ch2", "cd4", "-5400000");
f.AddPathCommand(3, "ch4", "ch4", "0", "-10800000");
f.AddPathCommand(6);
f.AddPathCommand(1, "x4", "ch");
f.AddPathCommand(3, "ch2", "ch2", "cd4", "-16200000");
f.AddPathCommand(3, "ch4", "ch4", "cd2", "-10800000");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y3");
f.AddPathCommand(3, "ch2", "ch2", "cd2", "cd4");
f.AddPathCommand(2, "x3", "ch");
f.AddPathCommand(2, "x3", "ch2");
f.AddPathCommand(3, "ch2", "ch2", "cd2", "cd2");
f.AddPathCommand(2, "r", "y5");
f.AddPathCommand(3, "ch2", "ch2", "0", "cd4");
f.AddPathCommand(2, "ch", "y6");
f.AddPathCommand(2, "ch", "y7");
f.AddPathCommand(3, "ch2", "ch2", "0", "cd2");
f.AddPathCommand(6);
f.AddPathCommand(1, "x3", "ch");
f.AddPathCommand(2, "x4", "ch");
f.AddPathCommand(3, "ch2", "ch2", "cd4", "-5400000");
f.AddPathCommand(1, "x4", "ch");
f.AddPathCommand(2, "x4", "ch2");
f.AddPathCommand(3, "ch4", "ch4", "0", "cd2");
f.AddPathCommand(1, "ch2", "y4");
f.AddPathCommand(2, "ch2", "y3");
f.AddPathCommand(3, "ch4", "ch4", "cd2", "cd2");
f.AddPathCommand(3, "ch2", "ch2", "0", "cd2");
f.AddPathCommand(1, "ch", "y3");
f.AddPathCommand(2, "ch", "y6");
break;
case "irregularSeal1":
f.AddGuide("x5", 0, "w", "4627", "21600");
f.AddGuide("x12", 0, "w", "8485", "21600");
f.AddGuide("x21", 0, "w", "16702", "21600");
f.AddGuide("x24", 0, "w", "14522", "21600");
f.AddGuide("y3", 0, "h", "6320", "21600");
f.AddGuide("y6", 0, "h", "8615", "21600");
f.AddGuide("y9", 0, "h", "13937", "21600");
f.AddGuide("y18", 0, "h", "13290", "21600");
f.AddCnx("_3cd4", "x24", "t");
f.AddCnx("cd2", "l", "y6");
f.AddCnx("cd4", "x12", "b");
f.AddCnx("0", "r", "y18");
f.AddRect("x5", "y3", "x21", "y9");
f.AddPathCommand(0, undefined, undefined, undefined, 21600, 21600);
f.AddPathCommand(1, "10800", "5800");
f.AddPathCommand(2, "14522", "0");
f.AddPathCommand(2, "14155", "5325");
f.AddPathCommand(2, "18380", "4457");
f.AddPathCommand(2, "16702", "7315");
f.AddPathCommand(2, "21097", "8137");
f.AddPathCommand(2, "17607", "10475");
f.AddPathCommand(2, "21600", "13290");
f.AddPathCommand(2, "16837", "12942");
f.AddPathCommand(2, "18145", "18095");
f.AddPathCommand(2, "14020", "14457");
f.AddPathCommand(2, "13247", "19737");
f.AddPathCommand(2, "10532", "14935");
f.AddPathCommand(2, "8485", "21600");
f.AddPathCommand(2, "7715", "15627");
f.AddPathCommand(2, "4762", "17617");
f.AddPathCommand(2, "5667", "13937");
f.AddPathCommand(2, "135", "14587");
f.AddPathCommand(2, "3722", "11775");
f.AddPathCommand(2, "0", "8615");
f.AddPathCommand(2, "4627", "7617");
f.AddPathCommand(2, "370", "2295");
f.AddPathCommand(2, "7312", "6320");
f.AddPathCommand(2, "8352", "2295");
f.AddPathCommand(6);
break;
case "irregularSeal2":
f.AddGuide("x2", 0, "w", "9722", "21600");
f.AddGuide("x5", 0, "w", "5372", "21600");
f.AddGuide("x16", 0, "w", "11612", "21600");
f.AddGuide("x19", 0, "w", "14640", "21600");
f.AddGuide("y2", 0, "h", "1887", "21600");
f.AddGuide("y3", 0, "h", "6382", "21600");
f.AddGuide("y8", 0, "h", "12877", "21600");
f.AddGuide("y14", 0, "h", "19712", "21600");
f.AddGuide("y16", 0, "h", "18842", "21600");
f.AddGuide("y17", 0, "h", "15935", "21600");
f.AddGuide("y24", 0, "h", "6645", "21600");
f.AddCnx("_3cd4", "x2", "y2");
f.AddCnx("cd2", "l", "y8");
f.AddCnx("cd4", "x16", "y16");
f.AddCnx("0", "r", "y24");
f.AddRect("x5", "y3", "x19", "y17");
f.AddPathCommand(0, undefined, undefined, undefined, 21600, 21600);
f.AddPathCommand(1, "11462", "4342");
f.AddPathCommand(2, "14790", "0");
f.AddPathCommand(2, "14525", "5777");
f.AddPathCommand(2, "18007", "3172");
f.AddPathCommand(2, "16380", "6532");
f.AddPathCommand(2, "21600", "6645");
f.AddPathCommand(2, "16985", "9402");
f.AddPathCommand(2, "18270", "11290");
f.AddPathCommand(2, "16380", "12310");
f.AddPathCommand(2, "18877", "15632");
f.AddPathCommand(2, "14640", "14350");
f.AddPathCommand(2, "14942", "17370");
f.AddPathCommand(2, "12180", "15935");
f.AddPathCommand(2, "11612", "18842");
f.AddPathCommand(2, "9872", "17370");
f.AddPathCommand(2, "8700", "19712");
f.AddPathCommand(2, "7527", "18125");
f.AddPathCommand(2, "4917", "21600");
f.AddPathCommand(2, "4805", "18240");
f.AddPathCommand(2, "1285", "17825");
f.AddPathCommand(2, "3330", "15370");
f.AddPathCommand(2, "0", "12877");
f.AddPathCommand(2, "3935", "11592");
f.AddPathCommand(2, "1172", "8270");
f.AddPathCommand(2, "5372", "7817");
f.AddPathCommand(2, "4502", "3625");
f.AddPathCommand(2, "8550", "6382");
f.AddPathCommand(2, "9722", "1887");
f.AddPathCommand(6);
break;
case "leftArrow":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("maxAdj2", 0, "100000", "w", "ss");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("dx2", 0, "ss", "a2", "100000");
f.AddGuide("x2", 1, "l", "dx2", "0");
f.AddGuide("dy1", 0, "h", "a1", "200000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "dy1", "0");
f.AddGuide("dx1", 0, "y1", "dx2", "hd2");
f.AddGuide("x1", 1, "x2", "0", "dx1");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "100000", "r", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x2", "t");
f.AddCnx("_3cd4", "x2", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "x2", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("x1", "y1", "r", "y2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "r", "y1");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(6);
break;
case "upArrow":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("maxAdj2", 0, "100000", "h", "ss");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("dy2", 0, "ss", "a2", "100000");
f.AddGuide("y2", 1, "t", "dy2", "0");
f.AddGuide("dx1", 0, "w", "a1", "200000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "dx1", "0");
f.AddGuide("dy1", 0, "x1", "dy2", "wd2");
f.AddGuide("y1", 1, "y2", "0", "dy1");
f.AddHandleXY("adj1", "0", "100000", undefined, "0", "0", "x1", "b");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "maxAdj2", "l", "y2");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "y2");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "y2");
f.AddRect("x1", "y1", "x2", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y2");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(6);
break;
case "leftArrowCallout":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddAdj("adj4", 15, "64977");
f.AddGuide("maxAdj2", 0, "50000", "h", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("maxAdj3", 0, "100000", "w", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("q2", 0, "a3", "ss", "w");
f.AddGuide("maxAdj4", 1, "100000", "0", "q2");
f.AddGuide("a4", 10, "0", "adj4", "maxAdj4");
f.AddGuide("dy1", 0, "ss", "a2", "100000");
f.AddGuide("dy2", 0, "ss", "a1", "200000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "dy2", "0");
f.AddGuide("y4", 1, "vc", "dy1", "0");
f.AddGuide("x1", 0, "ss", "a3", "100000");
f.AddGuide("dx2", 0, "w", "a4", "100000");
f.AddGuide("x2", 1, "r", "0", "dx2");
f.AddGuide("x3", 2, "x2", "r", "2");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "maxAdj1", "x1", "y2");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "maxAdj2", "l", "y1");
f.AddHandleXY("adj3", "0", "maxAdj3", undefined, "0", "0", "x1", "t");
f.AddHandleXY("adj4", "0", "maxAdj4", undefined, "0", "0", "x2", "b");
f.AddCnx("_3cd4", "x3", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "x3", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("x2", "t", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(6);
break;
case "leftBrace":
f.AddAdj("adj1", 15, "8333");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("a2", 10, "0", "adj2", "100000");
f.AddGuide("q1", 1, "100000", "0", "a2");
f.AddGuide("q2", 16, "q1", "a2");
f.AddGuide("q3", 0, "q2", "1", "2");
f.AddGuide("maxAdj1", 0, "q3", "h", "ss");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("y1", 0, "ss", "a1", "100000");
f.AddGuide("y3", 0, "h", "a2", "100000");
f.AddGuide("y4", 1, "y3", "y1", "0");
f.AddGuide("dx1", 7, "wd2", "2700000");
f.AddGuide("dy1", 12, "y1", "2700000");
f.AddGuide("il", 1, "r", "0", "dx1");
f.AddGuide("it", 1, "y1", "0", "dy1");
f.AddGuide("ib", 1, "b", "dy1", "y1");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "maxAdj1", "hc", "y1");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "100000", "l", "y3");
f.AddCnx("cd4", "r", "t");
f.AddCnx("cd2", "l", "y3");
f.AddCnx("_3cd4", "r", "b");
f.AddRect("il", "it", "r", "ib");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "r", "b");
f.AddPathCommand(3, "wd2", "y1", "cd4", "cd4");
f.AddPathCommand(2, "hc", "y4");
f.AddPathCommand(3, "wd2", "y1", "0", "-5400000");
f.AddPathCommand(3, "wd2", "y1", "cd4", "-5400000");
f.AddPathCommand(2, "hc", "y1");
f.AddPathCommand(3, "wd2", "y1", "cd2", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "r", "b");
f.AddPathCommand(3, "wd2", "y1", "cd4", "cd4");
f.AddPathCommand(2, "hc", "y4");
f.AddPathCommand(3, "wd2", "y1", "0", "-5400000");
f.AddPathCommand(3, "wd2", "y1", "cd4", "-5400000");
f.AddPathCommand(2, "hc", "y1");
f.AddPathCommand(3, "wd2", "y1", "cd2", "cd4");
break;
case "leftBracket":
f.AddAdj("adj", 15, "8333");
f.AddGuide("maxAdj", 0, "50000", "h", "ss");
f.AddGuide("a", 10, "0", "adj", "maxAdj");
f.AddGuide("y1", 0, "ss", "a", "100000");
f.AddGuide("y2", 1, "b", "0", "y1");
f.AddGuide("dx1", 7, "w", "2700000");
f.AddGuide("dy1", 12, "y1", "2700000");
f.AddGuide("il", 1, "r", "0", "dx1");
f.AddGuide("it", 1, "y1", "0", "dy1");
f.AddGuide("ib", 1, "b", "dy1", "y1");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "maxAdj", "l", "y1");
f.AddCnx("cd4", "r", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "r", "b");
f.AddRect("il", "it", "r", "ib");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "r", "b");
f.AddPathCommand(3, "w", "y1", "cd4", "cd4");
f.AddPathCommand(2, "l", "y1");
f.AddPathCommand(3, "w", "y1", "cd2", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "r", "b");
f.AddPathCommand(3, "w", "y1", "cd4", "cd4");
f.AddPathCommand(2, "l", "y1");
f.AddPathCommand(3, "w", "y1", "cd2", "cd4");
break;
case "leftCircularArrow":
f.AddAdj("adj1", 15, "12500");
f.AddAdj("adj2", 15, "-1142319");
f.AddAdj("adj3", 15, "1142319");
f.AddAdj("adj4", 15, "10800000");
f.AddAdj("adj5", 15, "12500");
f.AddGuide("a5", 10, "0", "adj5", "25000");
f.AddGuide("maxAdj1", 0, "a5", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("enAng", 10, "1", "adj3", "21599999");
f.AddGuide("stAng", 10, "0", "adj4", "21599999");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("thh", 0, "ss", "a5", "100000");
f.AddGuide("th2", 0, "th", "1", "2");
f.AddGuide("rw1", 1, "wd2", "th2", "thh");
f.AddGuide("rh1", 1, "hd2", "th2", "thh");
f.AddGuide("rw2", 1, "rw1", "0", "th");
f.AddGuide("rh2", 1, "rh1", "0", "th");
f.AddGuide("rw3", 1, "rw2", "th2", "0");
f.AddGuide("rh3", 1, "rh2", "th2", "0");
f.AddGuide("wtH", 12, "rw3", "enAng");
f.AddGuide("htH", 7, "rh3", "enAng");
f.AddGuide("dxH", 6, "rw3", "htH", "wtH");
f.AddGuide("dyH", 11, "rh3", "htH", "wtH");
f.AddGuide("xH", 1, "hc", "dxH", "0");
f.AddGuide("yH", 1, "vc", "dyH", "0");
f.AddGuide("rI", 16, "rw2", "rh2");
f.AddGuide("u1", 0, "dxH", "dxH", "1");
f.AddGuide("u2", 0, "dyH", "dyH", "1");
f.AddGuide("u3", 0, "rI", "rI", "1");
f.AddGuide("u4", 1, "u1", "0", "u3");
f.AddGuide("u5", 1, "u2", "0", "u3");
f.AddGuide("u6", 0, "u4", "u5", "u1");
f.AddGuide("u7", 0, "u6", "1", "u2");
f.AddGuide("u8", 1, "1", "0", "u7");
f.AddGuide("u9", 13, "u8");
f.AddGuide("u10", 0, "u4", "1", "dxH");
f.AddGuide("u11", 0, "u10", "1", "dyH");
f.AddGuide("u12", 2, "1", "u9", "u11");
f.AddGuide("u13", 5, "1", "u12");
f.AddGuide("u14", 1, "u13", "21600000", "0");
f.AddGuide("u15", 3, "u13", "u13", "u14");
f.AddGuide("u16", 1, "u15", "0", "enAng");
f.AddGuide("u17", 1, "u16", "21600000", "0");
f.AddGuide("u18", 3, "u16", "u16", "u17");
f.AddGuide("u19", 1, "u18", "0", "cd2");
f.AddGuide("u20", 1, "u18", "0", "21600000");
f.AddGuide("u21", 3, "u19", "u20", "u18");
f.AddGuide("u22", 4, "u21");
f.AddGuide("minAng", 0, "u22", "-1", "1");
f.AddGuide("u23", 4, "adj2");
f.AddGuide("a2", 0, "u23", "-1", "1");
f.AddGuide("aAng", 10, "minAng", "a2", "0");
f.AddGuide("ptAng", 1, "enAng", "aAng", "0");
f.AddGuide("wtA", 12, "rw3", "ptAng");
f.AddGuide("htA", 7, "rh3", "ptAng");
f.AddGuide("dxA", 6, "rw3", "htA", "wtA");
f.AddGuide("dyA", 11, "rh3", "htA", "wtA");
f.AddGuide("xA", 1, "hc", "dxA", "0");
f.AddGuide("yA", 1, "vc", "dyA", "0");
f.AddGuide("wtE", 12, "rw1", "stAng");
f.AddGuide("htE", 7, "rh1", "stAng");
f.AddGuide("dxE", 6, "rw1", "htE", "wtE");
f.AddGuide("dyE", 11, "rh1", "htE", "wtE");
f.AddGuide("xE", 1, "hc", "dxE", "0");
f.AddGuide("yE", 1, "vc", "dyE", "0");
f.AddGuide("wtD", 12, "rw2", "stAng");
f.AddGuide("htD", 7, "rh2", "stAng");
f.AddGuide("dxD", 6, "rw2", "htD", "wtD");
f.AddGuide("dyD", 11, "rh2", "htD", "wtD");
f.AddGuide("xD", 1, "hc", "dxD", "0");
f.AddGuide("yD", 1, "vc", "dyD", "0");
f.AddGuide("dxG", 7, "thh", "ptAng");
f.AddGuide("dyG", 12, "thh", "ptAng");
f.AddGuide("xG", 1, "xH", "dxG", "0");
f.AddGuide("yG", 1, "yH", "dyG", "0");
f.AddGuide("dxB", 7, "thh", "ptAng");
f.AddGuide("dyB", 12, "thh", "ptAng");
f.AddGuide("xB", 1, "xH", "0", "dxB", "0");
f.AddGuide("yB", 1, "yH", "0", "dyB", "0");
f.AddGuide("sx1", 1, "xB", "0", "hc");
f.AddGuide("sy1", 1, "yB", "0", "vc");
f.AddGuide("sx2", 1, "xG", "0", "hc");
f.AddGuide("sy2", 1, "yG", "0", "vc");
f.AddGuide("rO", 16, "rw1", "rh1");
f.AddGuide("x1O", 0, "sx1", "rO", "rw1");
f.AddGuide("y1O", 0, "sy1", "rO", "rh1");
f.AddGuide("x2O", 0, "sx2", "rO", "rw1");
f.AddGuide("y2O", 0, "sy2", "rO", "rh1");
f.AddGuide("dxO", 1, "x2O", "0", "x1O");
f.AddGuide("dyO", 1, "y2O", "0", "y1O");
f.AddGuide("dO", 9, "dxO", "dyO", "0");
f.AddGuide("q1", 0, "x1O", "y2O", "1");
f.AddGuide("q2", 0, "x2O", "y1O", "1");
f.AddGuide("DO", 1, "q1", "0", "q2");
f.AddGuide("q3", 0, "rO", "rO", "1");
f.AddGuide("q4", 0, "dO", "dO", "1");
f.AddGuide("q5", 0, "q3", "q4", "1");
f.AddGuide("q6", 0, "DO", "DO", "1");
f.AddGuide("q7", 1, "q5", "0", "q6");
f.AddGuide("q8", 8, "q7", "0");
f.AddGuide("sdelO", 13, "q8");
f.AddGuide("ndyO", 0, "dyO", "-1", "1");
f.AddGuide("sdyO", 3, "ndyO", "-1", "1");
f.AddGuide("q9", 0, "sdyO", "dxO", "1");
f.AddGuide("q10", 0, "q9", "sdelO", "1");
f.AddGuide("q11", 0, "DO", "dyO", "1");
f.AddGuide("dxF1", 2, "q11", "q10", "q4");
f.AddGuide("q12", 1, "q11", "0", "q10");
f.AddGuide("dxF2", 0, "q12", "1", "q4");
f.AddGuide("adyO", 4, "dyO");
f.AddGuide("q13", 0, "adyO", "sdelO", "1");
f.AddGuide("q14", 0, "DO", "dxO", "-1");
f.AddGuide("dyF1", 2, "q14", "q13", "q4");
f.AddGuide("q15", 1, "q14", "0", "q13");
f.AddGuide("dyF2", 0, "q15", "1", "q4");
f.AddGuide("q16", 1, "x2O", "0", "dxF1");
f.AddGuide("q17", 1, "x2O", "0", "dxF2");
f.AddGuide("q18", 1, "y2O", "0", "dyF1");
f.AddGuide("q19", 1, "y2O", "0", "dyF2");
f.AddGuide("q20", 9, "q16", "q18", "0");
f.AddGuide("q21", 9, "q17", "q19", "0");
f.AddGuide("q22", 1, "q21", "0", "q20");
f.AddGuide("dxF", 3, "q22", "dxF1", "dxF2");
f.AddGuide("dyF", 3, "q22", "dyF1", "dyF2");
f.AddGuide("sdxF", 0, "dxF", "rw1", "rO");
f.AddGuide("sdyF", 0, "dyF", "rh1", "rO");
f.AddGuide("xF", 1, "hc", "sdxF", "0");
f.AddGuide("yF", 1, "vc", "sdyF", "0");
f.AddGuide("x1I", 0, "sx1", "rI", "rw2");
f.AddGuide("y1I", 0, "sy1", "rI", "rh2");
f.AddGuide("x2I", 0, "sx2", "rI", "rw2");
f.AddGuide("y2I", 0, "sy2", "rI", "rh2");
f.AddGuide("dxI", 1, "x2I", "0", "x1I");
f.AddGuide("dyI", 1, "y2I", "0", "y1I");
f.AddGuide("dI", 9, "dxI", "dyI", "0");
f.AddGuide("v1", 0, "x1I", "y2I", "1");
f.AddGuide("v2", 0, "x2I", "y1I", "1");
f.AddGuide("DI", 1, "v1", "0", "v2");
f.AddGuide("v3", 0, "rI", "rI", "1");
f.AddGuide("v4", 0, "dI", "dI", "1");
f.AddGuide("v5", 0, "v3", "v4", "1");
f.AddGuide("v6", 0, "DI", "DI", "1");
f.AddGuide("v7", 1, "v5", "0", "v6");
f.AddGuide("v8", 8, "v7", "0");
f.AddGuide("sdelI", 13, "v8");
f.AddGuide("v9", 0, "sdyO", "dxI", "1");
f.AddGuide("v10", 0, "v9", "sdelI", "1");
f.AddGuide("v11", 0, "DI", "dyI", "1");
f.AddGuide("dxC1", 2, "v11", "v10", "v4");
f.AddGuide("v12", 1, "v11", "0", "v10");
f.AddGuide("dxC2", 0, "v12", "1", "v4");
f.AddGuide("adyI", 4, "dyI");
f.AddGuide("v13", 0, "adyI", "sdelI", "1");
f.AddGuide("v14", 0, "DI", "dxI", "-1");
f.AddGuide("dyC1", 2, "v14", "v13", "v4");
f.AddGuide("v15", 1, "v14", "0", "v13");
f.AddGuide("dyC2", 0, "v15", "1", "v4");
f.AddGuide("v16", 1, "x1I", "0", "dxC1");
f.AddGuide("v17", 1, "x1I", "0", "dxC2");
f.AddGuide("v18", 1, "y1I", "0", "dyC1");
f.AddGuide("v19", 1, "y1I", "0", "dyC2");
f.AddGuide("v20", 9, "v16", "v18", "0");
f.AddGuide("v21", 9, "v17", "v19", "0");
f.AddGuide("v22", 1, "v21", "0", "v20");
f.AddGuide("dxC", 3, "v22", "dxC1", "dxC2");
f.AddGuide("dyC", 3, "v22", "dyC1", "dyC2");
f.AddGuide("sdxC", 0, "dxC", "rw2", "rI");
f.AddGuide("sdyC", 0, "dyC", "rh2", "rI");
f.AddGuide("xC", 1, "hc", "sdxC", "0");
f.AddGuide("yC", 1, "vc", "sdyC", "0");
f.AddGuide("ist0", 5, "sdxC", "sdyC");
f.AddGuide("ist1", 1, "ist0", "21600000", "0");
f.AddGuide("istAng0", 3, "ist0", "ist0", "ist1");
f.AddGuide("isw1", 1, "stAng", "0", "istAng0");
f.AddGuide("isw2", 1, "isw1", "21600000", "0");
f.AddGuide("iswAng0", 3, "isw1", "isw1", "isw2");
f.AddGuide("istAng", 1, "istAng0", "iswAng0", "0");
f.AddGuide("iswAng", 1, "0", "0", "iswAng0");
f.AddGuide("p1", 1, "xF", "0", "xC");
f.AddGuide("p2", 1, "yF", "0", "yC");
f.AddGuide("p3", 9, "p1", "p2", "0");
f.AddGuide("p4", 0, "p3", "1", "2");
f.AddGuide("p5", 1, "p4", "0", "thh");
f.AddGuide("xGp", 3, "p5", "xF", "xG");
f.AddGuide("yGp", 3, "p5", "yF", "yG");
f.AddGuide("xBp", 3, "p5", "xC", "xB");
f.AddGuide("yBp", 3, "p5", "yC", "yB");
f.AddGuide("en0", 5, "sdxF", "sdyF");
f.AddGuide("en1", 1, "en0", "21600000", "0");
f.AddGuide("en2", 3, "en0", "en0", "en1");
f.AddGuide("sw0", 1, "en2", "0", "stAng");
f.AddGuide("sw1", 1, "sw0", "0", "21600000");
f.AddGuide("swAng", 3, "sw0", "sw1", "sw0");
f.AddGuide("stAng0", 1, "stAng", "swAng", "0");
f.AddGuide("swAng0", 1, "0", "0", "swAng");
f.AddGuide("wtI", 12, "rw3", "stAng");
f.AddGuide("htI", 7, "rh3", "stAng");
f.AddGuide("dxI", 6, "rw3", "htI", "wtI");
f.AddGuide("dyI", 11, "rh3", "htI", "wtI");
f.AddGuide("xI", 1, "hc", "dxI", "0");
f.AddGuide("yI", 1, "vc", "dyI", "0");
f.AddGuide("aI", 1, "stAng", "cd4", "0");
f.AddGuide("aA", 1, "ptAng", "0", "cd4");
f.AddGuide("aB", 1, "ptAng", "cd2", "0");
f.AddGuide("idx", 7, "rw1", "2700000");
f.AddGuide("idy", 12, "rh1", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddHandlePolar("adj2", "minAng", "0", undefined, "0", "0", "xA", "yA");
f.AddHandlePolar("adj4", "0", "21599999", undefined, "0", "0", "xE", "yE");
f.AddHandlePolar(undefined, "0", "0", "adj1", "0", "maxAdj1", "xF", "yF");
f.AddHandlePolar(undefined, "0", "0", "adj5", "0", "25000", "xB", "yB");
f.AddCnx("aI", "xI", "yI");
f.AddCnx("ptAng", "xGp", "yGp");
f.AddCnx("aA", "xA", "yA");
f.AddCnx("aB", "xBp", "yBp");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "xE", "yE");
f.AddPathCommand(2, "xD", "yD");
f.AddPathCommand(3, "rw2", "rh2", "istAng", "iswAng");
f.AddPathCommand(2, "xBp", "yBp");
f.AddPathCommand(2, "xA", "yA");
f.AddPathCommand(2, "xGp", "yGp");
f.AddPathCommand(2, "xF", "yF");
f.AddPathCommand(3, "rw1", "rh1", "stAng0", "swAng0");
f.AddPathCommand(6);
break;
case "leftRightArrow":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("maxAdj2", 0, "50000", "w", "ss");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("x2", 0, "ss", "a2", "100000");
f.AddGuide("x3", 1, "r", "0", "x2");
f.AddGuide("dy", 0, "h", "a1", "200000");
f.AddGuide("y1", 1, "vc", "0", "dy");
f.AddGuide("y2", 1, "vc", "dy", "0");
f.AddGuide("dx1", 0, "y1", "x2", "hd2");
f.AddGuide("x1", 1, "x2", "0", "dx1");
f.AddGuide("x4", 1, "x3", "dx1", "0");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "100000", "x3", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x2", "t");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "x3", "b");
f.AddCnx("cd4", "x2", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "x2", "t");
f.AddCnx("_3cd4", "x3", "t");
f.AddRect("x1", "y1", "x4", "y2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "x3", "t");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x3", "b");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(6);
break;
case "leftRightArrowCallout":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddAdj("adj4", 15, "48123");
f.AddGuide("maxAdj2", 0, "50000", "h", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("maxAdj3", 0, "50000", "w", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("q2", 0, "a3", "ss", "wd2");
f.AddGuide("maxAdj4", 1, "100000", "0", "q2");
f.AddGuide("a4", 10, "0", "adj4", "maxAdj4");
f.AddGuide("dy1", 0, "ss", "a2", "100000");
f.AddGuide("dy2", 0, "ss", "a1", "200000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "dy2", "0");
f.AddGuide("y4", 1, "vc", "dy1", "0");
f.AddGuide("x1", 0, "ss", "a3", "100000");
f.AddGuide("x4", 1, "r", "0", "x1");
f.AddGuide("dx2", 0, "w", "a4", "200000");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "dx2", "0");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "maxAdj1", "x1", "y2");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "maxAdj2", "l", "y1");
f.AddHandleXY("adj3", "0", "maxAdj3", undefined, "0", "0", "x1", "t");
f.AddHandleXY("adj4", "0", "maxAdj4", undefined, "0", "0", "x2", "b");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("x2", "t", "x3", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "x3", "t");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(2, "x4", "y2");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x4", "y4");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x3", "b");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(6);
break;
case "leftRightCircularArrow":
f.AddAdj("adj1", 15, "12500");
f.AddAdj("adj2", 15, "1142319");
f.AddAdj("adj3", 15, "20457681");
f.AddAdj("adj4", 15, "11942319");
f.AddAdj("adj5", 15, "12500");
f.AddGuide("a5", 10, "0", "adj5", "25000");
f.AddGuide("maxAdj1", 0, "a5", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("enAng", 10, "1", "adj3", "21599999");
f.AddGuide("stAng", 10, "0", "adj4", "21599999");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("thh", 0, "ss", "a5", "100000");
f.AddGuide("th2", 0, "th", "1", "2");
f.AddGuide("rw1", 1, "wd2", "th2", "thh");
f.AddGuide("rh1", 1, "hd2", "th2", "thh");
f.AddGuide("rw2", 1, "rw1", "0", "th");
f.AddGuide("rh2", 1, "rh1", "0", "th");
f.AddGuide("rw3", 1, "rw2", "th2", "0");
f.AddGuide("rh3", 1, "rh2", "th2", "0");
f.AddGuide("wtH", 12, "rw3", "enAng");
f.AddGuide("htH", 7, "rh3", "enAng");
f.AddGuide("dxH", 6, "rw3", "htH", "wtH");
f.AddGuide("dyH", 11, "rh3", "htH", "wtH");
f.AddGuide("xH", 1, "hc", "dxH", "0");
f.AddGuide("yH", 1, "vc", "dyH", "0");
f.AddGuide("rI", 16, "rw2", "rh2");
f.AddGuide("u1", 0, "dxH", "dxH", "1");
f.AddGuide("u2", 0, "dyH", "dyH", "1");
f.AddGuide("u3", 0, "rI", "rI", "1");
f.AddGuide("u4", 1, "u1", "0", "u3");
f.AddGuide("u5", 1, "u2", "0", "u3");
f.AddGuide("u6", 0, "u4", "u5", "u1");
f.AddGuide("u7", 0, "u6", "1", "u2");
f.AddGuide("u8", 1, "1", "0", "u7");
f.AddGuide("u9", 13, "u8");
f.AddGuide("u10", 0, "u4", "1", "dxH");
f.AddGuide("u11", 0, "u10", "1", "dyH");
f.AddGuide("u12", 2, "1", "u9", "u11");
f.AddGuide("u13", 5, "1", "u12");
f.AddGuide("u14", 1, "u13", "21600000", "0");
f.AddGuide("u15", 3, "u13", "u13", "u14");
f.AddGuide("u16", 1, "u15", "0", "enAng");
f.AddGuide("u17", 1, "u16", "21600000", "0");
f.AddGuide("u18", 3, "u16", "u16", "u17");
f.AddGuide("u19", 1, "u18", "0", "cd2");
f.AddGuide("u20", 1, "u18", "0", "21600000");
f.AddGuide("u21", 3, "u19", "u20", "u18");
f.AddGuide("maxAng", 4, "u21");
f.AddGuide("aAng", 10, "0", "adj2", "maxAng");
f.AddGuide("ptAng", 1, "enAng", "aAng", "0");
f.AddGuide("wtA", 12, "rw3", "ptAng");
f.AddGuide("htA", 7, "rh3", "ptAng");
f.AddGuide("dxA", 6, "rw3", "htA", "wtA");
f.AddGuide("dyA", 11, "rh3", "htA", "wtA");
f.AddGuide("xA", 1, "hc", "dxA", "0");
f.AddGuide("yA", 1, "vc", "dyA", "0");
f.AddGuide("dxG", 7, "thh", "ptAng");
f.AddGuide("dyG", 12, "thh", "ptAng");
f.AddGuide("xG", 1, "xH", "dxG", "0");
f.AddGuide("yG", 1, "yH", "dyG", "0");
f.AddGuide("dxB", 7, "thh", "ptAng");
f.AddGuide("dyB", 12, "thh", "ptAng");
f.AddGuide("xB", 1, "xH", "0", "dxB", "0");
f.AddGuide("yB", 1, "yH", "0", "dyB", "0");
f.AddGuide("sx1", 1, "xB", "0", "hc");
f.AddGuide("sy1", 1, "yB", "0", "vc");
f.AddGuide("sx2", 1, "xG", "0", "hc");
f.AddGuide("sy2", 1, "yG", "0", "vc");
f.AddGuide("rO", 16, "rw1", "rh1");
f.AddGuide("x1O", 0, "sx1", "rO", "rw1");
f.AddGuide("y1O", 0, "sy1", "rO", "rh1");
f.AddGuide("x2O", 0, "sx2", "rO", "rw1");
f.AddGuide("y2O", 0, "sy2", "rO", "rh1");
f.AddGuide("dxO", 1, "x2O", "0", "x1O");
f.AddGuide("dyO", 1, "y2O", "0", "y1O");
f.AddGuide("dO", 9, "dxO", "dyO", "0");
f.AddGuide("q1", 0, "x1O", "y2O", "1");
f.AddGuide("q2", 0, "x2O", "y1O", "1");
f.AddGuide("DO", 1, "q1", "0", "q2");
f.AddGuide("q3", 0, "rO", "rO", "1");
f.AddGuide("q4", 0, "dO", "dO", "1");
f.AddGuide("q5", 0, "q3", "q4", "1");
f.AddGuide("q6", 0, "DO", "DO", "1");
f.AddGuide("q7", 1, "q5", "0", "q6");
f.AddGuide("q8", 8, "q7", "0");
f.AddGuide("sdelO", 13, "q8");
f.AddGuide("ndyO", 0, "dyO", "-1", "1");
f.AddGuide("sdyO", 3, "ndyO", "-1", "1");
f.AddGuide("q9", 0, "sdyO", "dxO", "1");
f.AddGuide("q10", 0, "q9", "sdelO", "1");
f.AddGuide("q11", 0, "DO", "dyO", "1");
f.AddGuide("dxF1", 2, "q11", "q10", "q4");
f.AddGuide("q12", 1, "q11", "0", "q10");
f.AddGuide("dxF2", 0, "q12", "1", "q4");
f.AddGuide("adyO", 4, "dyO");
f.AddGuide("q13", 0, "adyO", "sdelO", "1");
f.AddGuide("q14", 0, "DO", "dxO", "-1");
f.AddGuide("dyF1", 2, "q14", "q13", "q4");
f.AddGuide("q15", 1, "q14", "0", "q13");
f.AddGuide("dyF2", 0, "q15", "1", "q4");
f.AddGuide("q16", 1, "x2O", "0", "dxF1");
f.AddGuide("q17", 1, "x2O", "0", "dxF2");
f.AddGuide("q18", 1, "y2O", "0", "dyF1");
f.AddGuide("q19", 1, "y2O", "0", "dyF2");
f.AddGuide("q20", 9, "q16", "q18", "0");
f.AddGuide("q21", 9, "q17", "q19", "0");
f.AddGuide("q22", 1, "q21", "0", "q20");
f.AddGuide("dxF", 3, "q22", "dxF1", "dxF2");
f.AddGuide("dyF", 3, "q22", "dyF1", "dyF2");
f.AddGuide("sdxF", 0, "dxF", "rw1", "rO");
f.AddGuide("sdyF", 0, "dyF", "rh1", "rO");
f.AddGuide("xF", 1, "hc", "sdxF", "0");
f.AddGuide("yF", 1, "vc", "sdyF", "0");
f.AddGuide("x1I", 0, "sx1", "rI", "rw2");
f.AddGuide("y1I", 0, "sy1", "rI", "rh2");
f.AddGuide("x2I", 0, "sx2", "rI", "rw2");
f.AddGuide("y2I", 0, "sy2", "rI", "rh2");
f.AddGuide("dxI", 1, "x2I", "0", "x1I");
f.AddGuide("dyI", 1, "y2I", "0", "y1I");
f.AddGuide("dI", 9, "dxI", "dyI", "0");
f.AddGuide("v1", 0, "x1I", "y2I", "1");
f.AddGuide("v2", 0, "x2I", "y1I", "1");
f.AddGuide("DI", 1, "v1", "0", "v2");
f.AddGuide("v3", 0, "rI", "rI", "1");
f.AddGuide("v4", 0, "dI", "dI", "1");
f.AddGuide("v5", 0, "v3", "v4", "1");
f.AddGuide("v6", 0, "DI", "DI", "1");
f.AddGuide("v7", 1, "v5", "0", "v6");
f.AddGuide("v8", 8, "v7", "0");
f.AddGuide("sdelI", 13, "v8");
f.AddGuide("v9", 0, "sdyO", "dxI", "1");
f.AddGuide("v10", 0, "v9", "sdelI", "1");
f.AddGuide("v11", 0, "DI", "dyI", "1");
f.AddGuide("dxC1", 2, "v11", "v10", "v4");
f.AddGuide("v12", 1, "v11", "0", "v10");
f.AddGuide("dxC2", 0, "v12", "1", "v4");
f.AddGuide("adyI", 4, "dyI");
f.AddGuide("v13", 0, "adyI", "sdelI", "1");
f.AddGuide("v14", 0, "DI", "dxI", "-1");
f.AddGuide("dyC1", 2, "v14", "v13", "v4");
f.AddGuide("v15", 1, "v14", "0", "v13");
f.AddGuide("dyC2", 0, "v15", "1", "v4");
f.AddGuide("v16", 1, "x1I", "0", "dxC1");
f.AddGuide("v17", 1, "x1I", "0", "dxC2");
f.AddGuide("v18", 1, "y1I", "0", "dyC1");
f.AddGuide("v19", 1, "y1I", "0", "dyC2");
f.AddGuide("v20", 9, "v16", "v18", "0");
f.AddGuide("v21", 9, "v17", "v19", "0");
f.AddGuide("v22", 1, "v21", "0", "v20");
f.AddGuide("dxC", 3, "v22", "dxC1", "dxC2");
f.AddGuide("dyC", 3, "v22", "dyC1", "dyC2");
f.AddGuide("sdxC", 0, "dxC", "rw2", "rI");
f.AddGuide("sdyC", 0, "dyC", "rh2", "rI");
f.AddGuide("xC", 1, "hc", "sdxC", "0");
f.AddGuide("yC", 1, "vc", "sdyC", "0");
f.AddGuide("wtI", 12, "rw3", "stAng");
f.AddGuide("htI", 7, "rh3", "stAng");
f.AddGuide("dxI", 6, "rw3", "htI", "wtI");
f.AddGuide("dyI", 11, "rh3", "htI", "wtI");
f.AddGuide("xI", 1, "hc", "dxI", "0");
f.AddGuide("yI", 1, "vc", "dyI", "0");
f.AddGuide("lptAng", 1, "stAng", "0", "aAng");
f.AddGuide("wtL", 12, "rw3", "lptAng");
f.AddGuide("htL", 7, "rh3", "lptAng");
f.AddGuide("dxL", 6, "rw3", "htL", "wtL");
f.AddGuide("dyL", 11, "rh3", "htL", "wtL");
f.AddGuide("xL", 1, "hc", "dxL", "0");
f.AddGuide("yL", 1, "vc", "dyL", "0");
f.AddGuide("dxK", 7, "thh", "lptAng");
f.AddGuide("dyK", 12, "thh", "lptAng");
f.AddGuide("xK", 1, "xI", "dxK", "0");
f.AddGuide("yK", 1, "yI", "dyK", "0");
f.AddGuide("dxJ", 7, "thh", "lptAng");
f.AddGuide("dyJ", 12, "thh", "lptAng");
f.AddGuide("xJ", 1, "xI", "0", "dxJ", "0");
f.AddGuide("yJ", 1, "yI", "0", "dyJ", "0");
f.AddGuide("p1", 1, "xF", "0", "xC");
f.AddGuide("p2", 1, "yF", "0", "yC");
f.AddGuide("p3", 9, "p1", "p2", "0");
f.AddGuide("p4", 0, "p3", "1", "2");
f.AddGuide("p5", 1, "p4", "0", "thh");
f.AddGuide("xGp", 3, "p5", "xF", "xG");
f.AddGuide("yGp", 3, "p5", "yF", "yG");
f.AddGuide("xBp", 3, "p5", "xC", "xB");
f.AddGuide("yBp", 3, "p5", "yC", "yB");
f.AddGuide("en0", 5, "sdxF", "sdyF");
f.AddGuide("en1", 1, "en0", "21600000", "0");
f.AddGuide("en2", 3, "en0", "en0", "en1");
f.AddGuide("od0", 1, "en2", "0", "enAng");
f.AddGuide("od1", 1, "od0", "21600000", "0");
f.AddGuide("od2", 3, "od0", "od0", "od1");
f.AddGuide("st0", 1, "stAng", "0", "od2");
f.AddGuide("st1", 1, "st0", "21600000", "0");
f.AddGuide("st2", 3, "st0", "st0", "st1");
f.AddGuide("sw0", 1, "en2", "0", "st2");
f.AddGuide("sw1", 1, "sw0", "21600000", "0");
f.AddGuide("swAng", 3, "sw0", "sw0", "sw1");
f.AddGuide("ist0", 5, "sdxC", "sdyC");
f.AddGuide("ist1", 1, "ist0", "21600000", "0");
f.AddGuide("istAng", 3, "ist0", "ist0", "ist1");
f.AddGuide("id0", 1, "istAng", "0", "enAng");
f.AddGuide("id1", 1, "id0", "0", "21600000");
f.AddGuide("id2", 3, "id0", "id1", "id0");
f.AddGuide("ien0", 1, "stAng", "0", "id2");
f.AddGuide("ien1", 1, "ien0", "0", "21600000");
f.AddGuide("ien2", 3, "ien1", "ien1", "ien0");
f.AddGuide("isw1", 1, "ien2", "0", "istAng");
f.AddGuide("isw2", 1, "isw1", "0", "21600000");
f.AddGuide("iswAng", 3, "isw1", "isw2", "isw1");
f.AddGuide("wtE", 12, "rw1", "st2");
f.AddGuide("htE", 7, "rh1", "st2");
f.AddGuide("dxE", 6, "rw1", "htE", "wtE");
f.AddGuide("dyE", 11, "rh1", "htE", "wtE");
f.AddGuide("xE", 1, "hc", "dxE", "0");
f.AddGuide("yE", 1, "vc", "dyE", "0");
f.AddGuide("wtD", 12, "rw2", "ien2");
f.AddGuide("htD", 7, "rh2", "ien2");
f.AddGuide("dxD", 6, "rw2", "htD", "wtD");
f.AddGuide("dyD", 11, "rh2", "htD", "wtD");
f.AddGuide("xD", 1, "hc", "dxD", "0");
f.AddGuide("yD", 1, "vc", "dyD", "0");
f.AddGuide("xKp", 3, "p5", "xE", "xK");
f.AddGuide("yKp", 3, "p5", "yE", "yK");
f.AddGuide("xJp", 3, "p5", "xD", "xJ");
f.AddGuide("yJp", 3, "p5", "yD", "yJ");
f.AddGuide("aL", 1, "lptAng", "0", "cd4");
f.AddGuide("aA", 1, "ptAng", "cd4", "0");
f.AddGuide("aB", 1, "ptAng", "cd2", "0");
f.AddGuide("aJ", 1, "lptAng", "cd2", "0");
f.AddGuide("idx", 7, "rw1", "2700000");
f.AddGuide("idy", 12, "rh1", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddHandlePolar("adj2", "0", "maxAng", undefined, "0", "0", "xA", "yA");
f.AddHandlePolar("adj4", "0", "21599999", undefined, "0", "0", "xE", "yE");
f.AddHandlePolar(undefined, "0", "0", "adj1", "0", "maxAdj1", "xF", "yF");
f.AddHandlePolar(undefined, "0", "0", "adj5", "0", "25000", "xB", "yB");
f.AddCnx("aL", "xL", "yL");
f.AddCnx("lptAng", "xKp", "yKp");
f.AddCnx("ptAng", "xGp", "yGp");
f.AddCnx("aA", "xA", "yA");
f.AddCnx("aB", "xBp", "yBp");
f.AddCnx("aJ", "xJp", "yJp");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "xL", "yL");
f.AddPathCommand(2, "xKp", "yKp");
f.AddPathCommand(2, "xE", "yE");
f.AddPathCommand(3, "rw1", "rh1", "st2", "swAng");
f.AddPathCommand(2, "xGp", "yGp");
f.AddPathCommand(2, "xA", "yA");
f.AddPathCommand(2, "xBp", "yBp");
f.AddPathCommand(2, "xC", "yC");
f.AddPathCommand(3, "rw2", "rh2", "istAng", "iswAng");
f.AddPathCommand(2, "xJp", "yJp");
f.AddPathCommand(6);
break;
case "leftRightRibbon":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddAdj("adj3", 15, "16667");
f.AddGuide("a3", 10, "0", "adj3", "33333");
f.AddGuide("maxAdj1", 1, "100000", "0", "a3");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("w1", 1, "wd2", "0", "wd32");
f.AddGuide("maxAdj2", 0, "100000", "w1", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("x1", 0, "ss", "a2", "100000");
f.AddGuide("x4", 1, "r", "0", "x1");
f.AddGuide("dy1", 0, "h", "a1", "200000");
f.AddGuide("dy2", 0, "h", "a3", "-200000");
f.AddGuide("ly1", 1, "vc", "dy2", "dy1");
f.AddGuide("ry4", 1, "vc", "dy1", "dy2");
f.AddGuide("ly2", 1, "ly1", "dy1", "0");
f.AddGuide("ry3", 1, "b", "0", "ly2");
f.AddGuide("ly4", 0, "ly2", "2", "1");
f.AddGuide("ry1", 1, "b", "0", "ly4");
f.AddGuide("ly3", 1, "ly4", "0", "ly1");
f.AddGuide("ry2", 1, "b", "0", "ly3");
f.AddGuide("hR", 0, "a3", "ss", "400000");
f.AddGuide("x2", 1, "hc", "0", "wd32");
f.AddGuide("x3", 1, "hc", "wd32", "0");
f.AddGuide("y1", 1, "ly1", "hR", "0");
f.AddGuide("y2", 1, "ry2", "0", "hR");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "maxAdj1", "x4", "ry2");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x1", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "33333", "x3", "ry2");
f.AddCnx("0", "r", "ry3");
f.AddCnx("cd4", "x4", "b");
f.AddCnx("cd4", "x1", "ly4");
f.AddCnx("cd2", "l", "ly2");
f.AddCnx("_3cd4", "x1", "t");
f.AddCnx("_3cd4", "x4", "ry1");
f.AddRect("x1", "ly1", "x4", "ry4");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "ly2");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "x1", "ly1");
f.AddPathCommand(2, "hc", "ly1");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "cd2");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "-10800000");
f.AddPathCommand(2, "x4", "ry2");
f.AddPathCommand(2, "x4", "ry1");
f.AddPathCommand(2, "r", "ry3");
f.AddPathCommand(2, "x4", "b");
f.AddPathCommand(2, "x4", "ry4");
f.AddPathCommand(2, "hc", "ry4");
f.AddPathCommand(3, "wd32", "hR", "cd4", "cd4");
f.AddPathCommand(2, "x2", "ly3");
f.AddPathCommand(2, "x1", "ly3");
f.AddPathCommand(2, "x1", "ly4");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "x3", "y1");
f.AddPathCommand(3, "wd32", "hR", "0", "cd4");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "-10800000");
f.AddPathCommand(2, "x3", "ry2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "ly2");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "x1", "ly1");
f.AddPathCommand(2, "hc", "ly1");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "cd2");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "-10800000");
f.AddPathCommand(2, "x4", "ry2");
f.AddPathCommand(2, "x4", "ry1");
f.AddPathCommand(2, "r", "ry3");
f.AddPathCommand(2, "x4", "b");
f.AddPathCommand(2, "x4", "ry4");
f.AddPathCommand(2, "hc", "ry4");
f.AddPathCommand(3, "wd32", "hR", "cd4", "cd4");
f.AddPathCommand(2, "x2", "ly3");
f.AddPathCommand(2, "x1", "ly3");
f.AddPathCommand(2, "x1", "ly4");
f.AddPathCommand(6);
f.AddPathCommand(1, "x3", "y1");
f.AddPathCommand(2, "x3", "ry2");
f.AddPathCommand(1, "x2", "y2");
f.AddPathCommand(2, "x2", "ly3");
break;
case "leftRightUpArrow":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("q1", 1, "100000", "0", "maxAdj1");
f.AddGuide("maxAdj3", 0, "q1", "1", "2");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("x1", 0, "ss", "a3", "100000");
f.AddGuide("dx2", 0, "ss", "a2", "100000");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x5", 1, "hc", "dx2", "0");
f.AddGuide("dx3", 0, "ss", "a1", "200000");
f.AddGuide("x3", 1, "hc", "0", "dx3");
f.AddGuide("x4", 1, "hc", "dx3", "0");
f.AddGuide("x6", 1, "r", "0", "x1");
f.AddGuide("dy2", 0, "ss", "a2", "50000");
f.AddGuide("y2", 1, "b", "0", "dy2");
f.AddGuide("y4", 1, "b", "0", "dx2");
f.AddGuide("y3", 1, "y4", "0", "dx3");
f.AddGuide("y5", 1, "y4", "dx3", "0");
f.AddGuide("il", 0, "dx3", "x1", "dx2");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddHandleXY("adj1", "0", "maxAdj1", undefined, "0", "0", "x3", "x1");
f.AddHandleXY("adj2", "0", "50000", undefined, "0", "0", "x2", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "r", "x1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "y4");
f.AddCnx("cd4", "hc", "y5");
f.AddCnx("0", "r", "y4");
f.AddRect("il", "y3", "ir", "y5");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y4");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x3", "x1");
f.AddPathCommand(2, "x2", "x1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "x5", "x1");
f.AddPathCommand(2, "x4", "x1");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "x6", "y3");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(2, "r", "y4");
f.AddPathCommand(2, "x6", "b");
f.AddPathCommand(2, "x6", "y5");
f.AddPathCommand(2, "x1", "y5");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(6);
break;
case "leftUpArrow":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("maxAdj3", 1, "100000", "0", "maxAdj1");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("x1", 0, "ss", "a3", "100000");
f.AddGuide("dx2", 0, "ss", "a2", "50000");
f.AddGuide("x2", 1, "r", "0", "dx2");
f.AddGuide("y2", 1, "b", "0", "dx2");
f.AddGuide("dx4", 0, "ss", "a2", "100000");
f.AddGuide("x4", 1, "r", "0", "dx4");
f.AddGuide("y4", 1, "b", "0", "dx4");
f.AddGuide("dx3", 0, "ss", "a1", "200000");
f.AddGuide("x3", 1, "x4", "0", "dx3");
f.AddGuide("x5", 1, "x4", "dx3", "0");
f.AddGuide("y3", 1, "y4", "0", "dx3");
f.AddGuide("y5", 1, "y4", "dx3", "0");
f.AddGuide("il", 0, "dx3", "x1", "dx4");
f.AddGuide("cx1", 2, "x1", "x5", "2");
f.AddGuide("cy1", 2, "x1", "y5", "2");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "maxAdj1", "x3", "y3");
f.AddHandleXY("adj2", "0", "50000", undefined, "0", "0", "x2", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "x3", "x1");
f.AddCnx("_3cd4", "x4", "t");
f.AddCnx("cd2", "x2", "x1");
f.AddCnx("_3cd4", "x1", "y2");
f.AddCnx("cd2", "l", "y4");
f.AddCnx("cd4", "x1", "b");
f.AddCnx("cd4", "cx1", "y5");
f.AddCnx("0", "x5", "cy1");
f.AddCnx("0", "r", "x1");
f.AddRect("il", "y3", "x4", "y5");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y4");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x3", "x1");
f.AddPathCommand(2, "x2", "x1");
f.AddPathCommand(2, "x4", "t");
f.AddPathCommand(2, "r", "x1");
f.AddPathCommand(2, "x5", "x1");
f.AddPathCommand(2, "x5", "y5");
f.AddPathCommand(2, "x1", "y5");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(6);
break;
case "lightningBolt":
f.AddGuide("x1", 0, "w", "5022", "21600");
f.AddGuide("x3", 0, "w", "8472", "21600");
f.AddGuide("x4", 0, "w", "8757", "21600");
f.AddGuide("x5", 0, "w", "10012", "21600");
f.AddGuide("x8", 0, "w", "12860", "21600");
f.AddGuide("x9", 0, "w", "13917", "21600");
f.AddGuide("x11", 0, "w", "16577", "21600");
f.AddGuide("y1", 0, "h", "3890", "21600");
f.AddGuide("y2", 0, "h", "6080", "21600");
f.AddGuide("y4", 0, "h", "7437", "21600");
f.AddGuide("y6", 0, "h", "9705", "21600");
f.AddGuide("y7", 0, "h", "12007", "21600");
f.AddGuide("y10", 0, "h", "14277", "21600");
f.AddGuide("y11", 0, "h", "14915", "21600");
f.AddCnx("_3cd4", "x3", "t");
f.AddCnx("_3cd4", "l", "y1");
f.AddCnx("cd2", "x1", "y6");
f.AddCnx("cd2", "x5", "y11");
f.AddCnx("cd4", "r", "b");
f.AddCnx("0", "x11", "y7");
f.AddCnx("0", "x8", "y2");
f.AddRect("x4", "y4", "x9", "y10");
f.AddPathCommand(0, undefined, undefined, undefined, 21600, 21600);
f.AddPathCommand(1, "8472", "0");
f.AddPathCommand(2, "12860", "6080");
f.AddPathCommand(2, "11050", "6797");
f.AddPathCommand(2, "16577", "12007");
f.AddPathCommand(2, "14767", "12877");
f.AddPathCommand(2, "21600", "21600");
f.AddPathCommand(2, "10012", "14915");
f.AddPathCommand(2, "12222", "13987");
f.AddPathCommand(2, "5022", "9705");
f.AddPathCommand(2, "7602", "8382");
f.AddPathCommand(2, "0", "3890");
f.AddPathCommand(6);
break;
case "line":
f.AddCnx("cd4", "l", "t");
f.AddCnx("_3cd4", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "b");
break;
case "lineInv":
f.AddCnx("cd4", "l", "b");
f.AddCnx("_3cd4", "r", "t");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "r", "t");
break;
case "mathDivide":
f.AddAdj("adj1", 15, "23520");
f.AddAdj("adj2", 15, "5880");
f.AddAdj("adj3", 15, "11760");
f.AddGuide("a1", 10, "1000", "adj1", "36745");
f.AddGuide("ma1", 1, "0", "0", "a1");
f.AddGuide("ma3h", 2, "73490", "ma1", "4");
f.AddGuide("ma3w", 0, "36745", "w", "h");
f.AddGuide("maxAdj3", 16, "ma3h", "ma3w");
f.AddGuide("a3", 10, "1000", "adj3", "maxAdj3");
f.AddGuide("m4a3", 0, "-4", "a3", "1");
f.AddGuide("maxAdj2", 1, "73490", "m4a3", "a1");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("dy1", 0, "h", "a1", "200000");
f.AddGuide("yg", 0, "h", "a2", "100000");
f.AddGuide("rad", 0, "h", "a3", "100000");
f.AddGuide("dx1", 0, "w", "73490", "200000");
f.AddGuide("y3", 1, "vc", "0", "dy1");
f.AddGuide("y4", 1, "vc", "dy1", "0");
f.AddGuide("a", 1, "yg", "rad", "0");
f.AddGuide("y2", 1, "y3", "0", "a");
f.AddGuide("y1", 1, "y2", "0", "rad");
f.AddGuide("y5", 1, "b", "0", "y1");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x3", 1, "hc", "dx1", "0");
f.AddGuide("x2", 1, "hc", "0", "rad");
f.AddHandleXY(undefined, "0", "0", "adj1", "1000", "36745", "l", "y3");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "maxAdj2", "r", "y2");
f.AddHandleXY("adj3", "1000", "maxAdj3", undefined, "0", "0", "x2", "t");
f.AddCnx("0", "x3", "vc");
f.AddCnx("cd4", "hc", "y5");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("_3cd4", "hc", "y1");
f.AddRect("x1", "y3", "x3", "y4");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "hc", "y1");
f.AddPathCommand(3, "rad", "rad", "_3cd4", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(1, "hc", "y5");
f.AddPathCommand(3, "rad", "rad", "cd4", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(1, "x1", "y3");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x3", "y4");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(6);
break;
case "mathEqual":
f.AddAdj("adj1", 15, "23520");
f.AddAdj("adj2", 15, "11760");
f.AddGuide("a1", 10, "0", "adj1", "36745");
f.AddGuide("2a1", 0, "a1", "2", "1");
f.AddGuide("mAdj2", 1, "100000", "0", "2a1");
f.AddGuide("a2", 10, "0", "adj2", "mAdj2");
f.AddGuide("dy1", 0, "h", "a1", "100000");
f.AddGuide("dy2", 0, "h", "a2", "200000");
f.AddGuide("dx1", 0, "w", "73490", "200000");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "dy2", "0");
f.AddGuide("y1", 1, "y2", "0", "dy1");
f.AddGuide("y4", 1, "y3", "dy1", "0");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "dx1", "0");
f.AddGuide("yC1", 2, "y1", "y2", "2");
f.AddGuide("yC2", 2, "y3", "y4", "2");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "36745", "l", "y1");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "mAdj2", "r", "y2");
f.AddCnx("0", "x2", "yC1");
f.AddCnx("0", "x2", "yC2");
f.AddCnx("cd4", "hc", "y4");
f.AddCnx("cd2", "x1", "yC1");
f.AddCnx("cd2", "x1", "yC2");
f.AddCnx("_3cd4", "hc", "y1");
f.AddRect("x1", "y1", "x2", "y4");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(6);
f.AddPathCommand(1, "x1", "y3");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(6);
break;
case "mathMinus":
f.AddAdj("adj1", 15, "23520");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("dy1", 0, "h", "a1", "200000");
f.AddGuide("dx1", 0, "w", "73490", "200000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "dy1", "0");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "dx1", "0");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "100000", "l", "y1");
f.AddCnx("0", "x2", "vc");
f.AddCnx("cd4", "hc", "y2");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("_3cd4", "hc", "y1");
f.AddRect("x1", "y1", "x2", "y2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(6);
break;
case "mathMultiply":
f.AddAdj("adj1", 15, "23520");
f.AddGuide("a1", 10, "0", "adj1", "51965");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("a", 5, "w", "h");
f.AddGuide("sa", 12, "1", "a");
f.AddGuide("ca", 7, "1", "a");
f.AddGuide("ta", 14, "1", "a");
f.AddGuide("dl", 9, "w", "h", "0");
f.AddGuide("rw", 0, "dl", "51965", "100000");
f.AddGuide("lM", 1, "dl", "0", "rw");
f.AddGuide("xM", 0, "ca", "lM", "2");
f.AddGuide("yM", 0, "sa", "lM", "2");
f.AddGuide("dxAM", 0, "sa", "th", "2");
f.AddGuide("dyAM", 0, "ca", "th", "2");
f.AddGuide("xA", 1, "xM", "0", "dxAM");
f.AddGuide("yA", 1, "yM", "dyAM", "0");
f.AddGuide("xB", 1, "xM", "dxAM", "0");
f.AddGuide("yB", 1, "yM", "0", "dyAM");
f.AddGuide("xBC", 1, "hc", "0", "xB");
f.AddGuide("yBC", 0, "xBC", "ta", "1");
f.AddGuide("yC", 1, "yBC", "yB", "0");
f.AddGuide("xD", 1, "r", "0", "xB");
f.AddGuide("xE", 1, "r", "0", "xA");
f.AddGuide("yFE", 1, "vc", "0", "yA");
f.AddGuide("xFE", 0, "yFE", "1", "ta");
f.AddGuide("xF", 1, "xE", "0", "xFE");
f.AddGuide("xL", 1, "xA", "xFE", "0");
f.AddGuide("yG", 1, "b", "0", "yA");
f.AddGuide("yH", 1, "b", "0", "yB");
f.AddGuide("yI", 1, "b", "0", "yC");
f.AddGuide("xC2", 1, "r", "0", "xM");
f.AddGuide("yC3", 1, "b", "0", "yM");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "51965", "l", "th");
f.AddCnx("cd2", "xM", "yM");
f.AddCnx("_3cd4", "xC2", "yM");
f.AddCnx("0", "xC2", "yC3");
f.AddCnx("cd4", "xM", "yC3");
f.AddRect("xA", "yB", "xE", "yH");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "xA", "yA");
f.AddPathCommand(2, "xB", "yB");
f.AddPathCommand(2, "hc", "yC");
f.AddPathCommand(2, "xD", "yB");
f.AddPathCommand(2, "xE", "yA");
f.AddPathCommand(2, "xF", "vc");
f.AddPathCommand(2, "xE", "yG");
f.AddPathCommand(2, "xD", "yH");
f.AddPathCommand(2, "hc", "yI");
f.AddPathCommand(2, "xB", "yH");
f.AddPathCommand(2, "xA", "yG");
f.AddPathCommand(2, "xL", "vc");
f.AddPathCommand(6);
break;
case "mathNotEqual":
f.AddAdj("adj1", 15, "23520");
f.AddAdj("adj2", 15, "6600000");
f.AddAdj("adj3", 15, "11760");
f.AddGuide("a1", 10, "0", "adj1", "50000");
f.AddGuide("crAng", 10, "4200000", "adj2", "6600000");
f.AddGuide("2a1", 0, "a1", "2", "1");
f.AddGuide("maxAdj3", 1, "100000", "0", "2a1");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("dy1", 0, "h", "a1", "100000");
f.AddGuide("dy2", 0, "h", "a3", "200000");
f.AddGuide("dx1", 0, "w", "73490", "200000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x8", 1, "hc", "dx1", "0");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "dy2", "0");
f.AddGuide("y1", 1, "y2", "0", "dy1");
f.AddGuide("y4", 1, "y3", "dy1", "0");
f.AddGuide("cadj2", 1, "crAng", "0", "cd4");
f.AddGuide("xadj2", 14, "hd2", "cadj2");
f.AddGuide("len", 9, "xadj2", "hd2", "0");
f.AddGuide("bhw", 0, "len", "dy1", "hd2");
f.AddGuide("bhw2", 0, "bhw", "1", "2");
f.AddGuide("x7", 1, "hc", "xadj2", "bhw2");
f.AddGuide("dx67", 0, "xadj2", "y1", "hd2");
f.AddGuide("x6", 1, "x7", "0", "dx67");
f.AddGuide("dx57", 0, "xadj2", "y2", "hd2");
f.AddGuide("x5", 1, "x7", "0", "dx57");
f.AddGuide("dx47", 0, "xadj2", "y3", "hd2");
f.AddGuide("x4", 1, "x7", "0", "dx47");
f.AddGuide("dx37", 0, "xadj2", "y4", "hd2");
f.AddGuide("x3", 1, "x7", "0", "dx37");
f.AddGuide("dx27", 0, "xadj2", "2", "1");
f.AddGuide("x2", 1, "x7", "0", "dx27");
f.AddGuide("rx7", 1, "x7", "bhw", "0");
f.AddGuide("rx6", 1, "x6", "bhw", "0");
f.AddGuide("rx5", 1, "x5", "bhw", "0");
f.AddGuide("rx4", 1, "x4", "bhw", "0");
f.AddGuide("rx3", 1, "x3", "bhw", "0");
f.AddGuide("rx2", 1, "x2", "bhw", "0");
f.AddGuide("dx7", 0, "dy1", "hd2", "len");
f.AddGuide("rxt", 1, "x7", "dx7", "0");
f.AddGuide("lxt", 1, "rx7", "0", "dx7");
f.AddGuide("rx", 3, "cadj2", "rxt", "rx7");
f.AddGuide("lx", 3, "cadj2", "x7", "lxt");
f.AddGuide("dy3", 0, "dy1", "xadj2", "len");
f.AddGuide("dy4", 1, "0", "0", "dy3");
f.AddGuide("ry", 3, "cadj2", "dy3", "t");
f.AddGuide("ly", 3, "cadj2", "t", "dy4");
f.AddGuide("dlx", 1, "w", "0", "rx");
f.AddGuide("drx", 1, "w", "0", "lx");
f.AddGuide("dly", 1, "h", "0", "ry");
f.AddGuide("dry", 1, "h", "0", "ly");
f.AddGuide("xC1", 2, "rx", "lx", "2");
f.AddGuide("xC2", 2, "drx", "dlx", "2");
f.AddGuide("yC1", 2, "ry", "ly", "2");
f.AddGuide("yC2", 2, "y1", "y2", "2");
f.AddGuide("yC3", 2, "y3", "y4", "2");
f.AddGuide("yC4", 2, "dry", "dly", "2");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "50000", "l", "y1");
f.AddHandlePolar("adj2", "4200000", "6600000", undefined, "0", "0", "lx", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "r", "y2");
f.AddCnx("0", "x8", "yC2");
f.AddCnx("0", "x8", "yC3");
f.AddCnx("cd4", "xC2", "yC4");
f.AddCnx("cd2", "x1", "yC2");
f.AddCnx("cd2", "x1", "yC3");
f.AddCnx("_3cd4", "xC1", "yC1");
f.AddRect("x1", "y1", "x8", "y4");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "x6", "y1");
f.AddPathCommand(2, "lx", "ly");
f.AddPathCommand(2, "rx", "ry");
f.AddPathCommand(2, "rx6", "y1");
f.AddPathCommand(2, "x8", "y1");
f.AddPathCommand(2, "x8", "y2");
f.AddPathCommand(2, "rx5", "y2");
f.AddPathCommand(2, "rx4", "y3");
f.AddPathCommand(2, "x8", "y3");
f.AddPathCommand(2, "x8", "y4");
f.AddPathCommand(2, "rx3", "y4");
f.AddPathCommand(2, "drx", "dry");
f.AddPathCommand(2, "dlx", "dly");
f.AddPathCommand(2, "x3", "y4");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "x5", "y2");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(6);
break;
case "mathPlus":
f.AddAdj("adj1", 15, "23520");
f.AddGuide("a1", 10, "0", "adj1", "73490");
f.AddGuide("dx1", 0, "w", "73490", "200000");
f.AddGuide("dy1", 0, "h", "73490", "200000");
f.AddGuide("dx2", 0, "ss", "a1", "200000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "dx2", "0");
f.AddGuide("x4", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "0", "dx2");
f.AddGuide("y3", 1, "vc", "dx2", "0");
f.AddGuide("y4", 1, "vc", "dy1", "0");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "73490", "l", "y2");
f.AddCnx("0", "x4", "vc");
f.AddCnx("cd4", "hc", "y4");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("_3cd4", "hc", "y1");
f.AddRect("x1", "y2", "x4", "y3");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(2, "x4", "y2");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x3", "y4");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(6);
break;
case "moon":
f.AddAdj("adj", 15, "50000");
f.AddGuide("a", 10, "0", "adj", "875000");
f.AddGuide("g0", 0, "ss", "a", "100000");
f.AddGuide("g0w", 0, "g0", "w", "ss");
f.AddGuide("g1", 1, "ss", "0", "g0");
f.AddGuide("g2", 0, "g0", "g0", "g1");
f.AddGuide("g3", 0, "ss", "ss", "g1");
f.AddGuide("g4", 0, "g3", "2", "1");
f.AddGuide("g5", 1, "g4", "0", "g2");
f.AddGuide("g6", 1, "g5", "0", "g0");
f.AddGuide("g6w", 0, "g6", "w", "ss");
f.AddGuide("g7", 0, "g5", "1", "2");
f.AddGuide("g8", 1, "g7", "0", "g0");
f.AddGuide("dy1", 0, "g8", "hd2", "ss");
f.AddGuide("g10h", 1, "vc", "0", "dy1");
f.AddGuide("g11h", 1, "vc", "dy1", "0");
f.AddGuide("g12", 0, "g0", "9598", "32768");
f.AddGuide("g12w", 0, "g12", "w", "ss");
f.AddGuide("g13", 1, "ss", "0", "g12");
f.AddGuide("q1", 0, "ss", "ss", "1");
f.AddGuide("q2", 0, "g13", "g13", "1");
f.AddGuide("q3", 1, "q1", "0", "q2");
f.AddGuide("q4", 13, "q3");
f.AddGuide("dy4", 0, "q4", "hd2", "ss");
f.AddGuide("g15h", 1, "vc", "0", "dy4");
f.AddGuide("g16h", 1, "vc", "dy4", "0");
f.AddGuide("g17w", 1, "g6w", "0", "g0w");
f.AddGuide("g18w", 0, "g17w", "1", "2");
f.AddGuide("dx2p", 1, "g0w", "g18w", "w");
f.AddGuide("dx2", 0, "dx2p", "-1", "1");
f.AddGuide("dy2", 0, "hd2", "-1", "1");
f.AddGuide("stAng1", 5, "dx2", "dy2");
f.AddGuide("enAngp1", 5, "dx2", "hd2");
f.AddGuide("enAng1", 1, "enAngp1", "0", "21600000");
f.AddGuide("swAng1", 1, "enAng1", "0", "stAng1");
f.AddHandleXY("adj", "0", "87500", undefined, "0", "0", "g0w", "vc");
f.AddCnx("_3cd4", "r", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "r", "b");
f.AddCnx("0", "g0w", "vc");
f.AddRect("g12w", "g15h", "g0w", "g16h");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "r", "b");
f.AddPathCommand(3, "w", "hd2", "cd4", "cd2");
f.AddPathCommand(3, "g18w", "dy1", "stAng1", "swAng1");
f.AddPathCommand(6);
break;
case "nonIsoscelesTrapezoid":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddGuide("maxAdj", 0, "50000", "w", "ss");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj");
f.AddGuide("x1", 0, "ss", "a1", "200000");
f.AddGuide("x2", 0, "ss", "a1", "100000");
f.AddGuide("dx3", 0, "ss", "a2", "100000");
f.AddGuide("x3", 1, "r", "0", "dx3");
f.AddGuide("x4", 2, "r", "x3", "2");
f.AddGuide("il", 0, "wd3", "a1", "maxAdj");
f.AddGuide("adjm", 8, "a1", "a2");
f.AddGuide("it", 0, "hd3", "adjm", "maxAdj");
f.AddGuide("irt", 0, "wd3", "a2", "maxAdj");
f.AddGuide("ir", 1, "r", "0", "irt");
f.AddHandleXY("adj1", "0", "maxAdj", undefined, "0", "0", "x2", "t");
f.AddHandleXY("adj2", "0", "maxAdj", undefined, "0", "0", "x3", "t");
f.AddCnx("0", "x4", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("il", "it", "ir", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "x3", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(6);
break;
case "noSmoking":
f.AddAdj("adj", 15, "18750");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("dr", 0, "ss", "a", "100000");
f.AddGuide("iwd2", 1, "wd2", "0", "dr");
f.AddGuide("ihd2", 1, "hd2", "0", "dr");
f.AddGuide("ang", 5, "w", "h");
f.AddGuide("ct", 7, "ihd2", "ang");
f.AddGuide("st", 12, "iwd2", "ang");
f.AddGuide("m", 9, "ct", "st", "0");
f.AddGuide("n", 0, "iwd2", "ihd2", "m");
f.AddGuide("drd2", 0, "dr", "1", "2");
f.AddGuide("dang", 5, "n", "drd2");
f.AddGuide("2dang", 0, "dang", "2", "1");
f.AddGuide("swAng", 1, "-10800000", "2dang", "0");
f.AddGuide("t3", 5, "w", "h");
f.AddGuide("stAng1", 1, "t3", "0", "dang");
f.AddGuide("stAng2", 1, "stAng1", "0", "cd2");
f.AddGuide("ct1", 7, "ihd2", "stAng1");
f.AddGuide("st1", 12, "iwd2", "stAng1");
f.AddGuide("m1", 9, "ct1", "st1", "0");
f.AddGuide("n1", 0, "iwd2", "ihd2", "m1");
f.AddGuide("dx1", 7, "n1", "stAng1");
f.AddGuide("dy1", 12, "n1", "stAng1");
f.AddGuide("x1", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "dy1", "0");
f.AddGuide("x2", 1, "hc", "0", "dx1");
f.AddGuide("y2", 1, "vc", "0", "dy1");
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddHandlePolar(undefined, "0", "0", "adj", "0", "50000", "dr", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "il", "it");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "il", "ib");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "ir", "ib");
f.AddCnx("0", "r", "vc");
f.AddCnx("_3cd4", "ir", "it");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(3, "iwd2", "ihd2", "stAng1", "swAng");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(1, "x2", "y2");
f.AddPathCommand(3, "iwd2", "ihd2", "stAng2", "swAng");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "_3cd4", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "0", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "cd4", "cd4");
f.AddPathCommand(6);
break;
case "notchedRightArrow":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("maxAdj2", 0, "100000", "w", "ss");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("dx2", 0, "ss", "a2", "100000");
f.AddGuide("x2", 1, "r", "0", "dx2");
f.AddGuide("dy1", 0, "h", "a1", "200000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "dy1", "0");
f.AddGuide("x1", 0, "dy1", "dx2", "hd2");
f.AddGuide("x3", 1, "r", "0", "x1");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "100000", "r", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x2", "t");
f.AddCnx("_3cd4", "x2", "t");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("cd4", "x2", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("x1", "y1", "x3", "y2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "l", "y2");
f.AddPathCommand(2, "x1", "vc");
f.AddPathCommand(6);
break;
case "octagon":
f.AddAdj("adj", 15, "29289");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("x1", 0, "ss", "a", "100000");
f.AddGuide("x2", 1, "r", "0", "x1");
f.AddGuide("y2", 1, "b", "0", "x1");
f.AddGuide("il", 0, "x1", "1", "2");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "il");
f.AddHandleXY("adj", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddCnx("0", "r", "x1");
f.AddCnx("0", "r", "y2");
f.AddCnx("cd4", "x2", "b");
f.AddCnx("cd4", "x1", "b");
f.AddCnx("cd2", "l", "y2");
f.AddCnx("cd2", "l", "x1");
f.AddCnx("_3cd4", "x1", "t");
f.AddCnx("_3cd4", "x2", "t");
f.AddRect("il", "il", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "x1");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "r", "x1");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(2, "l", "y2");
f.AddPathCommand(6);
break;
case "parallelogram":
f.AddAdj("adj", 15, "25000");
f.AddGuide("maxAdj", 0, "100000", "w", "ss");
f.AddGuide("a", 10, "0", "adj", "maxAdj");
f.AddGuide("x1", 0, "ss", "a", "200000");
f.AddGuide("x2", 0, "ss", "a", "100000");
f.AddGuide("x6", 1, "r", "0", "x1");
f.AddGuide("x5", 1, "r", "0", "x2");
f.AddGuide("x3", 0, "x5", "1", "2");
f.AddGuide("x4", 1, "r", "0", "x3");
f.AddGuide("il", 0, "wd2", "a", "maxAdj");
f.AddGuide("q1", 0, "5", "a", "maxAdj");
f.AddGuide("q2", 2, "1", "q1", "12");
f.AddGuide("il", 0, "q2", "w", "1");
f.AddGuide("it", 0, "q2", "h", "1");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "it");
f.AddGuide("q3", 0, "h", "hc", "x2");
f.AddGuide("y1", 10, "0", "q3", "h");
f.AddGuide("y2", 1, "b", "0", "y1");
f.AddHandleXY("adj", "0", "maxAdj", undefined, "0", "0", "x2", "t");
f.AddCnx("_3cd4", "hc", "y2");
f.AddCnx("_3cd4", "x4", "t");
f.AddCnx("0", "x6", "vc");
f.AddCnx("cd4", "x3", "b");
f.AddCnx("cd4", "hc", "y1");
f.AddCnx("cd2", "x1", "vc");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "x5", "b");
f.AddPathCommand(6);
break;
case "pentagon":
f.AddAdj("hf", 15, "105146");
f.AddAdj("vf", 15, "110557");
f.AddGuide("swd2", 0, "wd2", "hf", "100000");
f.AddGuide("shd2", 0, "hd2", "vf", "100000");
f.AddGuide("svc", 0, "vc", "vf", "100000");
f.AddGuide("dx1", 7, "swd2", "1080000");
f.AddGuide("dx2", 7, "swd2", "18360000");
f.AddGuide("dy1", 12, "shd2", "1080000");
f.AddGuide("dy2", 12, "shd2", "18360000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "dx2", "0");
f.AddGuide("x4", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "svc", "0", "dy1");
f.AddGuide("y2", 1, "svc", "0", "dy2");
f.AddGuide("it", 0, "y1", "dx2", "dx1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "x1", "y1");
f.AddCnx("cd4", "x2", "y2");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "x3", "y2");
f.AddCnx("0", "x4", "y1");
f.AddRect("x2", "it", "x3", "y2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(6);
break;
case "pie":
f.AddAdj("adj1", 15, "0");
f.AddAdj("adj2", 15, "16200000");
f.AddGuide("stAng", 10, "0", "adj1", "21599999");
f.AddGuide("enAng", 10, "0", "adj2", "21599999");
f.AddGuide("sw1", 1, "enAng", "0", "stAng");
f.AddGuide("sw2", 1, "sw1", "21600000", "0");
f.AddGuide("swAng", 3, "sw1", "sw1", "sw2");
f.AddGuide("wt1", 12, "wd2", "stAng");
f.AddGuide("ht1", 7, "hd2", "stAng");
f.AddGuide("dx1", 6, "wd2", "ht1", "wt1");
f.AddGuide("dy1", 11, "hd2", "ht1", "wt1");
f.AddGuide("x1", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "dy1", "0");
f.AddGuide("wt2", 12, "wd2", "enAng");
f.AddGuide("ht2", 7, "hd2", "enAng");
f.AddGuide("dx2", 6, "wd2", "ht2", "wt2");
f.AddGuide("dy2", 11, "hd2", "ht2", "wt2");
f.AddGuide("x2", 1, "hc", "dx2", "0");
f.AddGuide("y2", 1, "vc", "dy2", "0");
f.AddGuide("idx", 7, "hc", "2700000");
f.AddGuide("idy", 12, "vc", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddHandlePolar("adj1", "0", "21599999", undefined, "0", "0", "x1", "y1");
f.AddHandlePolar("adj2", "0", "21599999", undefined, "0", "0", "x2", "y2");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(3, "wd2", "hd2", "stAng", "swAng");
f.AddPathCommand(2, "hc", "vc");
f.AddPathCommand(6);
break;
case "pieWedge":
f.AddGuide("g1", 7, "w", "13500000");
f.AddGuide("g2", 12, "h", "13500000");
f.AddGuide("x1", 1, "r", "g1", "0");
f.AddGuide("y1", 1, "b", "g2", "0");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddRect("x1", "y1", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(3, "w", "h", "cd2", "cd4");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(6);
break;
case "plaque":
f.AddAdj("adj", 15, "16667");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("x1", 0, "ss", "a", "100000");
f.AddGuide("x2", 1, "r", "0", "x1");
f.AddGuide("y2", 1, "b", "0", "x1");
f.AddGuide("il", 0, "x1", "70711", "100000");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "il");
f.AddHandleXY("adj", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "il", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "x1");
f.AddPathCommand(3, "x1", "x1", "cd4", "-5400000");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(3, "x1", "x1", "cd2", "-5400000");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(3, "x1", "x1", "_3cd4", "-5400000");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(3, "x1", "x1", "0", "-5400000");
f.AddPathCommand(6);
break;
case "plaqueTabs":
f.AddGuide("md", 9, "w", "h", "0");
f.AddGuide("dx", 0, "1", "md", "20");
f.AddGuide("y1", 1, "0", "b", "dx");
f.AddGuide("x1", 1, "0", "r", "dx");
f.AddCnx("cd2", "l", "t");
f.AddCnx("cd2", "l", "dx");
f.AddCnx("cd2", "l", "y1");
f.AddCnx("cd2", "l", "b");
f.AddCnx("_3cd4", "dx", "t");
f.AddCnx("_3cd4", "x1", "t");
f.AddCnx("cd4", "dx", "b");
f.AddCnx("cd4", "x1", "b");
f.AddCnx("0", "r", "t");
f.AddCnx("0", "r", "dx");
f.AddCnx("0", "r", "y1");
f.AddCnx("0", "r", "b");
f.AddRect("dx", "dx", "x1", "y1");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "dx", "t");
f.AddPathCommand(3, "dx", "dx", "0", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(3, "dx", "dx", "_3cd4", "cd4");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "r", "t");
f.AddPathCommand(2, "r", "dx");
f.AddPathCommand(3, "dx", "dx", "cd4", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "b");
f.AddPathCommand(3, "dx", "dx", "cd2", "cd4");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(6);
break;
case "plus":
f.AddAdj("adj", 15, "25000");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("x1", 0, "ss", "a", "100000");
f.AddGuide("x2", 1, "r", "0", "x1");
f.AddGuide("y2", 1, "b", "0", "x1");
f.AddGuide("d", 1, "w", "0", "h");
f.AddGuide("il", 3, "d", "l", "x1");
f.AddGuide("ir", 3, "d", "r", "x2");
f.AddGuide("it", 3, "d", "x1", "t");
f.AddGuide("ib", 3, "d", "y2", "b");
f.AddHandleXY("adj", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "x1");
f.AddPathCommand(2, "x1", "x1");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "x2", "x1");
f.AddPathCommand(2, "r", "x1");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "l", "y2");
f.AddPathCommand(6);
break;
case "quadArrow":
f.AddAdj("adj1", 15, "22500");
f.AddAdj("adj2", 15, "22500");
f.AddAdj("adj3", 15, "22500");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("q1", 1, "100000", "0", "maxAdj1");
f.AddGuide("maxAdj3", 0, "q1", "1", "2");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("x1", 0, "ss", "a3", "100000");
f.AddGuide("dx2", 0, "ss", "a2", "100000");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x5", 1, "hc", "dx2", "0");
f.AddGuide("dx3", 0, "ss", "a1", "200000");
f.AddGuide("x3", 1, "hc", "0", "dx3");
f.AddGuide("x4", 1, "hc", "dx3", "0");
f.AddGuide("x6", 1, "r", "0", "x1");
f.AddGuide("y2", 1, "vc", "0", "dx2");
f.AddGuide("y5", 1, "vc", "dx2", "0");
f.AddGuide("y3", 1, "vc", "0", "dx3");
f.AddGuide("y4", 1, "vc", "dx3", "0");
f.AddGuide("y6", 1, "b", "0", "x1");
f.AddGuide("il", 0, "dx3", "x1", "dx2");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddHandleXY("adj1", "0", "maxAdj1", undefined, "0", "0", "x3", "x1");
f.AddHandleXY("adj2", "0", "50000", undefined, "0", "0", "x2", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "r", "x1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "y3", "ir", "y4");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x3", "x1");
f.AddPathCommand(2, "x2", "x1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "x5", "x1");
f.AddPathCommand(2, "x4", "x1");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "x6", "y3");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x6", "y5");
f.AddPathCommand(2, "x6", "y4");
f.AddPathCommand(2, "x4", "y4");
f.AddPathCommand(2, "x4", "y6");
f.AddPathCommand(2, "x5", "y6");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "x2", "y6");
f.AddPathCommand(2, "x3", "y6");
f.AddPathCommand(2, "x3", "y4");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(2, "x1", "y5");
f.AddPathCommand(6);
break;
case "quadArrowCallout":
f.AddAdj("adj1", 15, "18515");
f.AddAdj("adj2", 15, "18515");
f.AddAdj("adj3", 15, "18515");
f.AddAdj("adj4", 15, "48123");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("maxAdj3", 1, "50000", "0", "a2");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("q2", 0, "a3", "2", "1");
f.AddGuide("maxAdj4", 1, "100000", "0", "q2");
f.AddGuide("a4", 10, "a1", "adj4", "maxAdj4");
f.AddGuide("dx2", 0, "ss", "a2", "100000");
f.AddGuide("dx3", 0, "ss", "a1", "200000");
f.AddGuide("ah", 0, "ss", "a3", "100000");
f.AddGuide("dx1", 0, "w", "a4", "200000");
f.AddGuide("dy1", 0, "h", "a4", "200000");
f.AddGuide("x8", 1, "r", "0", "ah");
f.AddGuide("x2", 1, "hc", "0", "dx1");
f.AddGuide("x7", 1, "hc", "dx1", "0");
f.AddGuide("x3", 1, "hc", "0", "dx2");
f.AddGuide("x6", 1, "hc", "dx2", "0");
f.AddGuide("x4", 1, "hc", "0", "dx3");
f.AddGuide("x5", 1, "hc", "dx3", "0");
f.AddGuide("y8", 1, "b", "0", "ah");
f.AddGuide("y2", 1, "vc", "0", "dy1");
f.AddGuide("y7", 1, "vc", "dy1", "0");
f.AddGuide("y3", 1, "vc", "0", "dx2");
f.AddGuide("y6", 1, "vc", "dx2", "0");
f.AddGuide("y4", 1, "vc", "0", "dx3");
f.AddGuide("y5", 1, "vc", "dx3", "0");
f.AddHandleXY("adj1", "0", "maxAdj1", undefined, "0", "0", "x4", "ah");
f.AddHandleXY("adj2", "0", "50000", undefined, "0", "0", "x3", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "r", "ah");
f.AddHandleXY(undefined, "0", "0", "adj4", "a1", "maxAdj4", "l", "y2");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("x2", "y2", "x7", "y7");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "ah", "y3");
f.AddPathCommand(2, "ah", "y4");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x4", "y2");
f.AddPathCommand(2, "x4", "ah");
f.AddPathCommand(2, "x3", "ah");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "x6", "ah");
f.AddPathCommand(2, "x5", "ah");
f.AddPathCommand(2, "x5", "y2");
f.AddPathCommand(2, "x7", "y2");
f.AddPathCommand(2, "x7", "y4");
f.AddPathCommand(2, "x8", "y4");
f.AddPathCommand(2, "x8", "y3");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x8", "y6");
f.AddPathCommand(2, "x8", "y5");
f.AddPathCommand(2, "x7", "y5");
f.AddPathCommand(2, "x7", "y7");
f.AddPathCommand(2, "x5", "y7");
f.AddPathCommand(2, "x5", "y8");
f.AddPathCommand(2, "x6", "y8");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "x3", "y8");
f.AddPathCommand(2, "x4", "y8");
f.AddPathCommand(2, "x4", "y7");
f.AddPathCommand(2, "x2", "y7");
f.AddPathCommand(2, "x2", "y5");
f.AddPathCommand(2, "ah", "y5");
f.AddPathCommand(2, "ah", "y6");
f.AddPathCommand(6);
break;
case "rect":
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "ribbon":
f.AddAdj("adj1", 15, "16667");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("a1", 10, "0", "adj1", "33333");
f.AddGuide("a2", 10, "25000", "adj2", "75000");
f.AddGuide("x10", 1, "r", "0", "wd8");
f.AddGuide("dx2", 0, "w", "a2", "200000");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x9", 1, "hc", "dx2", "0");
f.AddGuide("x3", 1, "x2", "wd32", "0");
f.AddGuide("x8", 1, "x9", "0", "wd32");
f.AddGuide("x5", 1, "x2", "wd8", "0");
f.AddGuide("x6", 1, "x9", "0", "wd8");
f.AddGuide("x4", 1, "x5", "0", "wd32");
f.AddGuide("x7", 1, "x6", "wd32", "0");
f.AddGuide("y1", 0, "h", "a1", "200000");
f.AddGuide("y2", 0, "h", "a1", "100000");
f.AddGuide("y4", 1, "b", "0", "y2");
f.AddGuide("y3", 0, "y4", "1", "2");
f.AddGuide("hR", 0, "h", "a1", "400000");
f.AddGuide("y5", 1, "b", "0", "hR");
f.AddGuide("y6", 1, "y2", "0", "hR");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "33333", "hc", "y2");
f.AddHandleXY("adj2", "25000", "75000", undefined, "0", "0", "x2", "t");
f.AddCnx("_3cd4", "hc", "y2");
f.AddCnx("cd2", "wd8", "y3");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "x10", "y3");
f.AddRect("x2", "y2", "x9", "b");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x4", "t");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "cd2");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "-10800000");
f.AddPathCommand(2, "x8", "y2");
f.AddPathCommand(3, "wd32", "hR", "cd4", "-10800000");
f.AddPathCommand(2, "x7", "y1");
f.AddPathCommand(3, "wd32", "hR", "cd4", "cd2");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "x10", "y3");
f.AddPathCommand(2, "r", "y4");
f.AddPathCommand(2, "x9", "y4");
f.AddPathCommand(2, "x9", "y5");
f.AddPathCommand(3, "wd32", "hR", "0", "cd4");
f.AddPathCommand(2, "x3", "b");
f.AddPathCommand(3, "wd32", "hR", "cd4", "cd4");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "l", "y4");
f.AddPathCommand(2, "wd8", "y3");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "x5", "hR");
f.AddPathCommand(3, "wd32", "hR", "0", "cd4");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "-10800000");
f.AddPathCommand(2, "x5", "y2");
f.AddPathCommand(6);
f.AddPathCommand(1, "x6", "hR");
f.AddPathCommand(3, "wd32", "hR", "cd2", "-5400000");
f.AddPathCommand(2, "x8", "y1");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "cd2");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x4", "t");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "cd2");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "-10800000");
f.AddPathCommand(2, "x8", "y2");
f.AddPathCommand(3, "wd32", "hR", "cd4", "-10800000");
f.AddPathCommand(2, "x7", "y1");
f.AddPathCommand(3, "wd32", "hR", "cd4", "cd2");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "x10", "y3");
f.AddPathCommand(2, "r", "y4");
f.AddPathCommand(2, "x9", "y4");
f.AddPathCommand(2, "x9", "y5");
f.AddPathCommand(3, "wd32", "hR", "0", "cd4");
f.AddPathCommand(2, "x3", "b");
f.AddPathCommand(3, "wd32", "hR", "cd4", "cd4");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "l", "y4");
f.AddPathCommand(2, "wd8", "y3");
f.AddPathCommand(6);
f.AddPathCommand(1, "x5", "hR");
f.AddPathCommand(2, "x5", "y2");
f.AddPathCommand(1, "x6", "y2");
f.AddPathCommand(2, "x6", "hR");
f.AddPathCommand(1, "x2", "y4");
f.AddPathCommand(2, "x2", "y6");
f.AddPathCommand(1, "x9", "y6");
f.AddPathCommand(2, "x9", "y4");
break;
case "ribbon2":
f.AddAdj("adj1", 15, "16667");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("a1", 10, "0", "adj1", "33333");
f.AddGuide("a2", 10, "25000", "adj2", "75000");
f.AddGuide("x10", 1, "r", "0", "wd8");
f.AddGuide("dx2", 0, "w", "a2", "200000");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x9", 1, "hc", "dx2", "0");
f.AddGuide("x3", 1, "x2", "wd32", "0");
f.AddGuide("x8", 1, "x9", "0", "wd32");
f.AddGuide("x5", 1, "x2", "wd8", "0");
f.AddGuide("x6", 1, "x9", "0", "wd8");
f.AddGuide("x4", 1, "x5", "0", "wd32");
f.AddGuide("x7", 1, "x6", "wd32", "0");
f.AddGuide("dy1", 0, "h", "a1", "200000");
f.AddGuide("y1", 1, "b", "0", "dy1");
f.AddGuide("dy2", 0, "h", "a1", "100000");
f.AddGuide("y2", 1, "b", "0", "dy2");
f.AddGuide("y4", 1, "t", "dy2", "0");
f.AddGuide("y3", 2, "y4", "b", "2");
f.AddGuide("hR", 0, "h", "a1", "400000");
f.AddGuide("y6", 1, "b", "0", "hR");
f.AddGuide("y7", 1, "y1", "0", "hR");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "33333", "hc", "y2");
f.AddHandleXY("adj2", "25000", "75000", undefined, "0", "0", "x2", "b");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "wd8", "y3");
f.AddCnx("cd4", "hc", "y2");
f.AddCnx("0", "x10", "y3");
f.AddRect("x2", "t", "x9", "y2");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "x4", "b");
f.AddPathCommand(3, "wd32", "hR", "cd4", "-10800000");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(3, "wd32", "hR", "cd4", "cd2");
f.AddPathCommand(2, "x8", "y2");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "cd2");
f.AddPathCommand(2, "x7", "y1");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "-10800000");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "x10", "y3");
f.AddPathCommand(2, "r", "y4");
f.AddPathCommand(2, "x9", "y4");
f.AddPathCommand(2, "x9", "hR");
f.AddPathCommand(3, "wd32", "hR", "0", "-5400000");
f.AddPathCommand(2, "x3", "t");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "-5400000");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "l", "y4");
f.AddPathCommand(2, "wd8", "y3");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "x5", "y6");
f.AddPathCommand(3, "wd32", "hR", "0", "-5400000");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(3, "wd32", "hR", "cd4", "cd2");
f.AddPathCommand(2, "x5", "y2");
f.AddPathCommand(6);
f.AddPathCommand(1, "x6", "y6");
f.AddPathCommand(3, "wd32", "hR", "cd2", "cd4");
f.AddPathCommand(2, "x8", "y1");
f.AddPathCommand(3, "wd32", "hR", "cd4", "-10800000");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "wd8", "y3");
f.AddPathCommand(2, "l", "y4");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "x2", "hR");
f.AddPathCommand(3, "wd32", "hR", "cd2", "cd4");
f.AddPathCommand(2, "x8", "t");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "cd4");
f.AddPathCommand(2, "x9", "y4");
f.AddPathCommand(2, "x9", "y4");
f.AddPathCommand(2, "r", "y4");
f.AddPathCommand(2, "x10", "y3");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "x7", "b");
f.AddPathCommand(3, "wd32", "hR", "cd4", "cd2");
f.AddPathCommand(2, "x8", "y1");
f.AddPathCommand(3, "wd32", "hR", "cd4", "-10800000");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "-10800000");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(3, "wd32", "hR", "_3cd4", "cd2");
f.AddPathCommand(6);
f.AddPathCommand(1, "x5", "y2");
f.AddPathCommand(2, "x5", "y6");
f.AddPathCommand(1, "x6", "y6");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(1, "x2", "y7");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(1, "x9", "y4");
f.AddPathCommand(2, "x9", "y7");
break;
case "rightArrow":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("maxAdj2", 0, "100000", "w", "ss");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("dx1", 0, "ss", "a2", "100000");
f.AddGuide("x1", 1, "r", "0", "dx1");
f.AddGuide("dy1", 0, "h", "a1", "200000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "dy1", "0");
f.AddGuide("dx2", 0, "y1", "dx1", "hd2");
f.AddGuide("x2", 1, "x1", "dx2", "0");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "100000", "l", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x1", "t");
f.AddCnx("_3cd4", "x1", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "x1", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "y1", "x2", "y2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "l", "y2");
f.AddPathCommand(6);
break;
case "rightArrowCallout":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddAdj("adj4", 15, "64977");
f.AddGuide("maxAdj2", 0, "50000", "h", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("maxAdj3", 0, "100000", "w", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("q2", 0, "a3", "ss", "w");
f.AddGuide("maxAdj4", 1, "100000", "0", "q2");
f.AddGuide("a4", 10, "0", "adj4", "maxAdj4");
f.AddGuide("dy1", 0, "ss", "a2", "100000");
f.AddGuide("dy2", 0, "ss", "a1", "200000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "dy2", "0");
f.AddGuide("y4", 1, "vc", "dy1", "0");
f.AddGuide("dx3", 0, "ss", "a3", "100000");
f.AddGuide("x3", 1, "r", "0", "dx3");
f.AddGuide("x2", 0, "w", "a4", "100000");
f.AddGuide("x1", 0, "x2", "1", "2");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "maxAdj1", "x3", "y2");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "maxAdj2", "r", "y1");
f.AddHandleXY("adj3", "0", "maxAdj3", undefined, "0", "0", "x3", "t");
f.AddHandleXY("adj4", "0", "maxAdj4", undefined, "0", "0", "x2", "b");
f.AddCnx("_3cd4", "x1", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "x1", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "t", "x2", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x3", "y4");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "rightBrace":
f.AddAdj("adj1", 15, "8333");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("a2", 10, "0", "adj2", "100000");
f.AddGuide("q1", 1, "100000", "0", "a2");
f.AddGuide("q2", 16, "q1", "a2");
f.AddGuide("q3", 0, "q2", "1", "2");
f.AddGuide("maxAdj1", 0, "q3", "h", "ss");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("y1", 0, "ss", "a1", "100000");
f.AddGuide("y3", 0, "h", "a2", "100000");
f.AddGuide("y2", 1, "y3", "0", "y1");
f.AddGuide("y4", 1, "b", "0", "y1");
f.AddGuide("dx1", 7, "wd2", "2700000");
f.AddGuide("dy1", 12, "y1", "2700000");
f.AddGuide("ir", 1, "l", "dx1", "0");
f.AddGuide("it", 1, "y1", "0", "dy1");
f.AddGuide("ib", 1, "b", "dy1", "y1");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "maxAdj1", "hc", "y1");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "100000", "r", "y3");
f.AddCnx("cd4", "l", "t");
f.AddCnx("cd2", "r", "y3");
f.AddCnx("_3cd4", "l", "b");
f.AddRect("l", "it", "ir", "ib");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(3, "wd2", "y1", "_3cd4", "cd4");
f.AddPathCommand(2, "hc", "y2");
f.AddPathCommand(3, "wd2", "y1", "cd2", "-5400000");
f.AddPathCommand(3, "wd2", "y1", "_3cd4", "-5400000");
f.AddPathCommand(2, "hc", "y4");
f.AddPathCommand(3, "wd2", "y1", "0", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(3, "wd2", "y1", "_3cd4", "cd4");
f.AddPathCommand(2, "hc", "y2");
f.AddPathCommand(3, "wd2", "y1", "cd2", "-5400000");
f.AddPathCommand(3, "wd2", "y1", "_3cd4", "-5400000");
f.AddPathCommand(2, "hc", "y4");
f.AddPathCommand(3, "wd2", "y1", "0", "cd4");
break;
case "rightBracket":
f.AddAdj("adj", 15, "8333");
f.AddGuide("maxAdj", 0, "50000", "h", "ss");
f.AddGuide("a", 10, "0", "adj", "maxAdj");
f.AddGuide("y1", 0, "ss", "a", "100000");
f.AddGuide("y2", 1, "b", "0", "y1");
f.AddGuide("dx1", 7, "w", "2700000");
f.AddGuide("dy1", 12, "y1", "2700000");
f.AddGuide("ir", 1, "l", "dx1", "0");
f.AddGuide("it", 1, "y1", "0", "dy1");
f.AddGuide("ib", 1, "b", "dy1", "y1");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "maxAdj", "r", "y1");
f.AddCnx("cd4", "l", "t");
f.AddCnx("_3cd4", "l", "b");
f.AddCnx("cd2", "r", "vc");
f.AddRect("l", "it", "ir", "ib");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(3, "w", "y1", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(3, "w", "y1", "0", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(3, "w", "y1", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(3, "w", "y1", "0", "cd4");
break;
case "round1Rect":
f.AddAdj("adj", 15, "16667");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("dx1", 0, "ss", "a", "100000");
f.AddGuide("x1", 1, "r", "0", "dx1");
f.AddGuide("idx", 0, "dx1", "29289", "100000");
f.AddGuide("ir", 1, "r", "0", "idx");
f.AddHandleXY("adj", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "t", "ir", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(3, "dx1", "dx1", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "round2DiagRect":
f.AddAdj("adj1", 15, "16667");
f.AddAdj("adj2", 15, "0");
f.AddGuide("a1", 10, "0", "adj1", "50000");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("x1", 0, "ss", "a1", "100000");
f.AddGuide("y1", 1, "b", "0", "x1");
f.AddGuide("a", 0, "ss", "a2", "100000");
f.AddGuide("x2", 1, "r", "0", "a");
f.AddGuide("y2", 1, "b", "0", "a");
f.AddGuide("dx1", 0, "x1", "29289", "100000");
f.AddGuide("dx2", 0, "a", "29289", "100000");
f.AddGuide("d", 1, "dx1", "0", "dx2");
f.AddGuide("dx", 3, "d", "dx1", "dx2");
f.AddGuide("ir", 1, "r", "0", "dx");
f.AddGuide("ib", 1, "b", "0", "dx");
f.AddHandleXY("adj1", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddHandleXY("adj2", "0", "50000", undefined, "0", "0", "x2", "t");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("dx", "dx", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "t");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(3, "a", "a", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "y1");
f.AddPathCommand(3, "x1", "x1", "0", "cd4");
f.AddPathCommand(2, "a", "b");
f.AddPathCommand(3, "a", "a", "cd4", "cd4");
f.AddPathCommand(2, "l", "x1");
f.AddPathCommand(3, "x1", "x1", "cd2", "cd4");
f.AddPathCommand(6);
break;
case "round2SameRect":
f.AddAdj("adj1", 15, "16667");
f.AddAdj("adj2", 15, "0");
f.AddGuide("a1", 10, "0", "adj1", "50000");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("tx1", 0, "ss", "a1", "100000");
f.AddGuide("tx2", 1, "r", "0", "tx1");
f.AddGuide("bx1", 0, "ss", "a2", "100000");
f.AddGuide("bx2", 1, "r", "0", "bx1");
f.AddGuide("by1", 1, "b", "0", "bx1");
f.AddGuide("d", 1, "tx1", "0", "bx1");
f.AddGuide("tdx", 0, "tx1", "29289", "100000");
f.AddGuide("bdx", 0, "bx1", "29289", "100000");
f.AddGuide("il", 3, "d", "tdx", "bdx");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "bdx");
f.AddHandleXY("adj1", "0", "50000", undefined, "0", "0", "tx2", "t");
f.AddHandleXY("adj2", "0", "50000", undefined, "0", "0", "bx1", "b");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("il", "tdx", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "tx1", "t");
f.AddPathCommand(2, "tx2", "t");
f.AddPathCommand(3, "tx1", "tx1", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "by1");
f.AddPathCommand(3, "bx1", "bx1", "0", "cd4");
f.AddPathCommand(2, "bx1", "b");
f.AddPathCommand(3, "bx1", "bx1", "cd4", "cd4");
f.AddPathCommand(2, "l", "tx1");
f.AddPathCommand(3, "tx1", "tx1", "cd2", "cd4");
f.AddPathCommand(6);
break;
case "roundRect":
f.AddAdj("adj", 15, "16667");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("x1", 0, "ss", "a", "100000");
f.AddGuide("x2", 1, "r", "0", "x1");
f.AddGuide("y2", 1, "b", "0", "x1");
f.AddGuide("il", 0, "x1", "29289", "100000");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "il");
f.AddHandleXY("adj", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "il", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "x1");
f.AddPathCommand(3, "x1", "x1", "cd2", "cd4");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(3, "x1", "x1", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(3, "x1", "x1", "0", "cd4");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(3, "x1", "x1", "cd4", "cd4");
f.AddPathCommand(6);
break;
case "rtTriangle":
f.AddGuide("it", 0, "h", "7", "12");
f.AddGuide("ir", 0, "w", "7", "12");
f.AddGuide("ib", 0, "h", "11", "12");
f.AddCnx("_3cd4", "l", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "l", "b");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "r", "b");
f.AddCnx("0", "hc", "vc");
f.AddRect("wd12", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "l", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(6);
break;
case "smileyFace":
f.AddAdj("adj", 15, "4653");
f.AddGuide("a", 10, "-4653", "adj", "4653");
f.AddGuide("x1", 0, "w", "4969", "21699");
f.AddGuide("x2", 0, "w", "6215", "21600");
f.AddGuide("x3", 0, "w", "13135", "21600");
f.AddGuide("x4", 0, "w", "16640", "21600");
f.AddGuide("y1", 0, "h", "7570", "21600");
f.AddGuide("y3", 0, "h", "16515", "21600");
f.AddGuide("dy2", 0, "h", "a", "100000");
f.AddGuide("y2", 1, "y3", "0", "dy2");
f.AddGuide("y4", 1, "y3", "dy2", "0");
f.AddGuide("dy3", 0, "h", "a", "50000");
f.AddGuide("y5", 1, "y4", "dy3", "0");
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddGuide("wR", 0, "w", "1125", "21600");
f.AddGuide("hR", 0, "h", "1125", "21600");
f.AddHandleXY(undefined, "0", "0", "adj", "-4653", "4653", "hc", "y4");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "il", "it");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "il", "ib");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "ir", "ib");
f.AddCnx("0", "r", "vc");
f.AddCnx("_3cd4", "ir", "it");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "21600000");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", undefined, undefined, undefined);
f.AddPathCommand(1, "x2", "y1");
f.AddPathCommand(3, "wR", "hR", "cd2", "21600000");
f.AddPathCommand(1, "x3", "y1");
f.AddPathCommand(3, "wR", "hR", "cd2", "21600000");
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y2");
f.AddPathCommand(4, "hc", "y5", "x4", "y2");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "21600000");
f.AddPathCommand(6);
break;
case "snip1Rect":
f.AddAdj("adj", 15, "16667");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("dx1", 0, "ss", "a", "100000");
f.AddGuide("x1", 1, "r", "0", "dx1");
f.AddGuide("it", 0, "dx1", "1", "2");
f.AddGuide("ir", 2, "x1", "r", "2");
f.AddHandleXY("adj", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("l", "it", "ir", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "r", "dx1");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "snip2DiagRect":
f.AddAdj("adj1", 15, "0");
f.AddAdj("adj2", 15, "16667");
f.AddGuide("a1", 10, "0", "adj1", "50000");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("lx1", 0, "ss", "a1", "100000");
f.AddGuide("lx2", 1, "r", "0", "lx1");
f.AddGuide("ly1", 1, "b", "0", "lx1");
f.AddGuide("rx1", 0, "ss", "a2", "100000");
f.AddGuide("rx2", 1, "r", "0", "rx1");
f.AddGuide("ry1", 1, "b", "0", "rx1");
f.AddGuide("d", 1, "lx1", "0", "rx1");
f.AddGuide("dx", 3, "d", "lx1", "rx1");
f.AddGuide("il", 0, "dx", "1", "2");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "il");
f.AddHandleXY("adj1", "0", "50000", undefined, "0", "0", "lx1", "t");
f.AddHandleXY("adj2", "0", "50000", undefined, "0", "0", "rx2", "t");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("il", "il", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "lx1", "t");
f.AddPathCommand(2, "rx2", "t");
f.AddPathCommand(2, "r", "rx1");
f.AddPathCommand(2, "r", "ly1");
f.AddPathCommand(2, "lx2", "b");
f.AddPathCommand(2, "rx1", "b");
f.AddPathCommand(2, "l", "ry1");
f.AddPathCommand(2, "l", "lx1");
f.AddPathCommand(6);
break;
case "snip2SameRect":
f.AddAdj("adj1", 15, "16667");
f.AddAdj("adj2", 15, "0");
f.AddGuide("a1", 10, "0", "adj1", "50000");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("tx1", 0, "ss", "a1", "100000");
f.AddGuide("tx2", 1, "r", "0", "tx1");
f.AddGuide("bx1", 0, "ss", "a2", "100000");
f.AddGuide("bx2", 1, "r", "0", "bx1");
f.AddGuide("by1", 1, "b", "0", "bx1");
f.AddGuide("d", 1, "tx1", "0", "bx1");
f.AddGuide("dx", 3, "d", "tx1", "bx1");
f.AddGuide("il", 0, "dx", "1", "2");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("it", 0, "tx1", "1", "2");
f.AddGuide("ib", 2, "by1", "b", "2");
f.AddHandleXY("adj1", "0", "50000", undefined, "0", "0", "tx2", "t");
f.AddHandleXY("adj2", "0", "50000", undefined, "0", "0", "bx1", "b");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "tx1", "t");
f.AddPathCommand(2, "tx2", "t");
f.AddPathCommand(2, "r", "tx1");
f.AddPathCommand(2, "r", "by1");
f.AddPathCommand(2, "bx2", "b");
f.AddPathCommand(2, "bx1", "b");
f.AddPathCommand(2, "l", "by1");
f.AddPathCommand(2, "l", "tx1");
f.AddPathCommand(6);
break;
case "snipRoundRect":
f.AddAdj("adj1", 15, "16667");
f.AddAdj("adj2", 15, "16667");
f.AddGuide("a1", 10, "0", "adj1", "50000");
f.AddGuide("a2", 10, "0", "adj2", "50000");
f.AddGuide("x1", 0, "ss", "a1", "100000");
f.AddGuide("dx2", 0, "ss", "a2", "100000");
f.AddGuide("x2", 1, "r", "0", "dx2");
f.AddGuide("il", 0, "x1", "29289", "100000");
f.AddGuide("ir", 2, "x2", "r", "2");
f.AddHandleXY("adj1", "0", "50000", undefined, "0", "0", "x1", "t");
f.AddHandleXY("adj2", "0", "50000", undefined, "0", "0", "x2", "t");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("il", "il", "ir", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "t");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "r", "dx2");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(2, "l", "x1");
f.AddPathCommand(3, "x1", "x1", "cd2", "cd4");
f.AddPathCommand(6);
break;
case "squareTabs":
f.AddGuide("md", 9, "w", "h", "0");
f.AddGuide("dx", 0, "1", "md", "20");
f.AddGuide("y1", 1, "0", "b", "dx");
f.AddGuide("x1", 1, "0", "r", "dx");
f.AddCnx("cd2", "l", "t");
f.AddCnx("cd2", "l", "dx");
f.AddCnx("cd2", "l", "y1");
f.AddCnx("cd2", "l", "b");
f.AddCnx("cd2", "dx", "dx");
f.AddCnx("cd2", "dx", "x1");
f.AddCnx("_3cd4", "dx", "t");
f.AddCnx("_3cd4", "x1", "t");
f.AddCnx("cd4", "dx", "b");
f.AddCnx("cd4", "x1", "b");
f.AddCnx("0", "r", "t");
f.AddCnx("0", "r", "dx");
f.AddCnx("0", "r", "y1");
f.AddCnx("0", "r", "b");
f.AddCnx("0", "x1", "dx");
f.AddCnx("0", "x1", "y1");
f.AddRect("dx", "dx", "x1", "y1");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "dx", "t");
f.AddPathCommand(2, "dx", "dx");
f.AddPathCommand(2, "l", "dx");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(2, "dx", "y1");
f.AddPathCommand(2, "dx", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "dx");
f.AddPathCommand(2, "x1", "dx");
f.AddPathCommand(6);
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "r", "y1");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(6);
break;
case "star10":
f.AddAdj("adj", 15, "42533");
f.AddAdj("hf", 15, "105146");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("swd2", 0, "wd2", "hf", "100000");
f.AddGuide("dx1", 0, "swd2", "95106", "100000");
f.AddGuide("dx2", 0, "swd2", "58779", "100000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "dx2", "0");
f.AddGuide("x4", 1, "hc", "dx1", "0");
f.AddGuide("dy1", 0, "hd2", "80902", "100000");
f.AddGuide("dy2", 0, "hd2", "30902", "100000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "dy2", "0");
f.AddGuide("y4", 1, "vc", "dy1", "0");
f.AddGuide("iwd2", 0, "swd2", "a", "50000");
f.AddGuide("ihd2", 0, "hd2", "a", "50000");
f.AddGuide("sdx1", 0, "iwd2", "80902", "100000");
f.AddGuide("sdx2", 0, "iwd2", "30902", "100000");
f.AddGuide("sdy1", 0, "ihd2", "95106", "100000");
f.AddGuide("sdy2", 0, "ihd2", "58779", "100000");
f.AddGuide("sx1", 1, "hc", "0", "iwd2");
f.AddGuide("sx2", 1, "hc", "0", "sdx1");
f.AddGuide("sx3", 1, "hc", "0", "sdx2");
f.AddGuide("sx4", 1, "hc", "sdx2", "0");
f.AddGuide("sx5", 1, "hc", "sdx1", "0");
f.AddGuide("sx6", 1, "hc", "iwd2", "0");
f.AddGuide("sy1", 1, "vc", "0", "sdy1");
f.AddGuide("sy2", 1, "vc", "0", "sdy2");
f.AddGuide("sy3", 1, "vc", "sdy2", "0");
f.AddGuide("sy4", 1, "vc", "sdy1", "0");
f.AddGuide("yAdj", 1, "vc", "0", "ihd2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "hc", "yAdj");
f.AddCnx("0", "x4", "y2");
f.AddCnx("0", "x4", "y3");
f.AddCnx("cd4", "x3", "y4");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "x2", "y4");
f.AddCnx("cd2", "x1", "y3");
f.AddCnx("cd2", "x1", "y2");
f.AddCnx("_3cd4", "x2", "y1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "x3", "y1");
f.AddRect("sx2", "sy2", "sx5", "sy3");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y2");
f.AddPathCommand(2, "sx2", "sy2");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "sx3", "sy1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "sx4", "sy1");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "sx5", "sy2");
f.AddPathCommand(2, "x4", "y2");
f.AddPathCommand(2, "sx6", "vc");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "sx5", "sy3");
f.AddPathCommand(2, "x3", "y4");
f.AddPathCommand(2, "sx4", "sy4");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "sx3", "sy4");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "sx2", "sy3");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "sx1", "vc");
f.AddPathCommand(6);
break;
case "star12":
f.AddAdj("adj", 15, "37500");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("dx1", 7, "wd2", "1800000");
f.AddGuide("dy1", 12, "hd2", "3600000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x3", 0, "w", "3", "4");
f.AddGuide("x4", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y3", 0, "h", "3", "4");
f.AddGuide("y4", 1, "vc", "dy1", "0");
f.AddGuide("iwd2", 0, "wd2", "a", "50000");
f.AddGuide("ihd2", 0, "hd2", "a", "50000");
f.AddGuide("sdx1", 7, "iwd2", "900000");
f.AddGuide("sdx2", 7, "iwd2", "2700000");
f.AddGuide("sdx3", 7, "iwd2", "4500000");
f.AddGuide("sdy1", 12, "ihd2", "4500000");
f.AddGuide("sdy2", 12, "ihd2", "2700000");
f.AddGuide("sdy3", 12, "ihd2", "900000");
f.AddGuide("sx1", 1, "hc", "0", "sdx1");
f.AddGuide("sx2", 1, "hc", "0", "sdx2");
f.AddGuide("sx3", 1, "hc", "0", "sdx3");
f.AddGuide("sx4", 1, "hc", "sdx3", "0");
f.AddGuide("sx5", 1, "hc", "sdx2", "0");
f.AddGuide("sx6", 1, "hc", "sdx1", "0");
f.AddGuide("sy1", 1, "vc", "0", "sdy1");
f.AddGuide("sy2", 1, "vc", "0", "sdy2");
f.AddGuide("sy3", 1, "vc", "0", "sdy3");
f.AddGuide("sy4", 1, "vc", "sdy3", "0");
f.AddGuide("sy5", 1, "vc", "sdy2", "0");
f.AddGuide("sy6", 1, "vc", "sdy1", "0");
f.AddGuide("yAdj", 1, "vc", "0", "ihd2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "hc", "yAdj");
f.AddCnx("0", "x4", "hd4");
f.AddCnx("0", "r", "vc");
f.AddCnx("0", "x4", "y3");
f.AddCnx("cd4", "x3", "y4");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "wd4", "y4");
f.AddCnx("cd2", "x1", "y3");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd2", "x1", "hd4");
f.AddCnx("_3cd4", "wd4", "y1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "x3", "y1");
f.AddRect("sx2", "sy2", "sx5", "sy5");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "sx1", "sy3");
f.AddPathCommand(2, "x1", "hd4");
f.AddPathCommand(2, "sx2", "sy2");
f.AddPathCommand(2, "wd4", "y1");
f.AddPathCommand(2, "sx3", "sy1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "sx4", "sy1");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "sx5", "sy2");
f.AddPathCommand(2, "x4", "hd4");
f.AddPathCommand(2, "sx6", "sy3");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "sx6", "sy4");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "sx5", "sy5");
f.AddPathCommand(2, "x3", "y4");
f.AddPathCommand(2, "sx4", "sy6");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "sx3", "sy6");
f.AddPathCommand(2, "wd4", "y4");
f.AddPathCommand(2, "sx2", "sy5");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "sx1", "sy4");
f.AddPathCommand(6);
break;
case "star16":
f.AddAdj("adj", 15, "37500");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("dx1", 0, "wd2", "92388", "100000");
f.AddGuide("dx2", 0, "wd2", "70711", "100000");
f.AddGuide("dx3", 0, "wd2", "38268", "100000");
f.AddGuide("dy1", 0, "hd2", "92388", "100000");
f.AddGuide("dy2", 0, "hd2", "70711", "100000");
f.AddGuide("dy3", 0, "hd2", "38268", "100000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "0", "dx3");
f.AddGuide("x4", 1, "hc", "dx3", "0");
f.AddGuide("x5", 1, "hc", "dx2", "0");
f.AddGuide("x6", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "0", "dy3");
f.AddGuide("y4", 1, "vc", "dy3", "0");
f.AddGuide("y5", 1, "vc", "dy2", "0");
f.AddGuide("y6", 1, "vc", "dy1", "0");
f.AddGuide("iwd2", 0, "wd2", "a", "50000");
f.AddGuide("ihd2", 0, "hd2", "a", "50000");
f.AddGuide("sdx1", 0, "iwd2", "98079", "100000");
f.AddGuide("sdx2", 0, "iwd2", "83147", "100000");
f.AddGuide("sdx3", 0, "iwd2", "55557", "100000");
f.AddGuide("sdx4", 0, "iwd2", "19509", "100000");
f.AddGuide("sdy1", 0, "ihd2", "98079", "100000");
f.AddGuide("sdy2", 0, "ihd2", "83147", "100000");
f.AddGuide("sdy3", 0, "ihd2", "55557", "100000");
f.AddGuide("sdy4", 0, "ihd2", "19509", "100000");
f.AddGuide("sx1", 1, "hc", "0", "sdx1");
f.AddGuide("sx2", 1, "hc", "0", "sdx2");
f.AddGuide("sx3", 1, "hc", "0", "sdx3");
f.AddGuide("sx4", 1, "hc", "0", "sdx4");
f.AddGuide("sx5", 1, "hc", "sdx4", "0");
f.AddGuide("sx6", 1, "hc", "sdx3", "0");
f.AddGuide("sx7", 1, "hc", "sdx2", "0");
f.AddGuide("sx8", 1, "hc", "sdx1", "0");
f.AddGuide("sy1", 1, "vc", "0", "sdy1");
f.AddGuide("sy2", 1, "vc", "0", "sdy2");
f.AddGuide("sy3", 1, "vc", "0", "sdy3");
f.AddGuide("sy4", 1, "vc", "0", "sdy4");
f.AddGuide("sy5", 1, "vc", "sdy4", "0");
f.AddGuide("sy6", 1, "vc", "sdy3", "0");
f.AddGuide("sy7", 1, "vc", "sdy2", "0");
f.AddGuide("sy8", 1, "vc", "sdy1", "0");
f.AddGuide("idx", 7, "iwd2", "2700000");
f.AddGuide("idy", 12, "ihd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddGuide("yAdj", 1, "vc", "0", "ihd2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "hc", "yAdj");
f.AddCnx("0", "x5", "y2");
f.AddCnx("0", "x6", "y3");
f.AddCnx("0", "r", "vc");
f.AddCnx("0", "x6", "y4");
f.AddCnx("0", "x5", "y5");
f.AddCnx("cd4", "x4", "y6");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "x3", "y6");
f.AddCnx("cd2", "x2", "y5");
f.AddCnx("cd2", "x1", "y4");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd2", "x1", "y3");
f.AddCnx("cd2", "x2", "y2");
f.AddCnx("_3cd4", "x3", "y1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "x4", "y1");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "sx1", "sy4");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "sx2", "sy3");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "sx3", "sy2");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "sx4", "sy1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "sx5", "sy1");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "sx6", "sy2");
f.AddPathCommand(2, "x5", "y2");
f.AddPathCommand(2, "sx7", "sy3");
f.AddPathCommand(2, "x6", "y3");
f.AddPathCommand(2, "sx8", "sy4");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "sx8", "sy5");
f.AddPathCommand(2, "x6", "y4");
f.AddPathCommand(2, "sx7", "sy6");
f.AddPathCommand(2, "x5", "y5");
f.AddPathCommand(2, "sx6", "sy7");
f.AddPathCommand(2, "x4", "y6");
f.AddPathCommand(2, "sx5", "sy8");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "sx4", "sy8");
f.AddPathCommand(2, "x3", "y6");
f.AddPathCommand(2, "sx3", "sy7");
f.AddPathCommand(2, "x2", "y5");
f.AddPathCommand(2, "sx2", "sy6");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(2, "sx1", "sy5");
f.AddPathCommand(6);
break;
case "star24":
f.AddAdj("adj", 15, "37500");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("dx1", 7, "wd2", "900000");
f.AddGuide("dx2", 7, "wd2", "1800000");
f.AddGuide("dx3", 7, "wd2", "2700000");
f.AddGuide("dx4", 15, "wd4");
f.AddGuide("dx5", 7, "wd2", "4500000");
f.AddGuide("dy1", 12, "hd2", "4500000");
f.AddGuide("dy2", 12, "hd2", "3600000");
f.AddGuide("dy3", 12, "hd2", "2700000");
f.AddGuide("dy4", 15, "hd4");
f.AddGuide("dy5", 12, "hd2", "900000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "0", "dx3");
f.AddGuide("x4", 1, "hc", "0", "dx4");
f.AddGuide("x5", 1, "hc", "0", "dx5");
f.AddGuide("x6", 1, "hc", "dx5", "0");
f.AddGuide("x7", 1, "hc", "dx4", "0");
f.AddGuide("x8", 1, "hc", "dx3", "0");
f.AddGuide("x9", 1, "hc", "dx2", "0");
f.AddGuide("x10", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "0", "dy3");
f.AddGuide("y4", 1, "vc", "0", "dy4");
f.AddGuide("y5", 1, "vc", "0", "dy5");
f.AddGuide("y6", 1, "vc", "dy5", "0");
f.AddGuide("y7", 1, "vc", "dy4", "0");
f.AddGuide("y8", 1, "vc", "dy3", "0");
f.AddGuide("y9", 1, "vc", "dy2", "0");
f.AddGuide("y10", 1, "vc", "dy1", "0");
f.AddGuide("iwd2", 0, "wd2", "a", "50000");
f.AddGuide("ihd2", 0, "hd2", "a", "50000");
f.AddGuide("sdx1", 0, "iwd2", "99144", "100000");
f.AddGuide("sdx2", 0, "iwd2", "92388", "100000");
f.AddGuide("sdx3", 0, "iwd2", "79335", "100000");
f.AddGuide("sdx4", 0, "iwd2", "60876", "100000");
f.AddGuide("sdx5", 0, "iwd2", "38268", "100000");
f.AddGuide("sdx6", 0, "iwd2", "13053", "100000");
f.AddGuide("sdy1", 0, "ihd2", "99144", "100000");
f.AddGuide("sdy2", 0, "ihd2", "92388", "100000");
f.AddGuide("sdy3", 0, "ihd2", "79335", "100000");
f.AddGuide("sdy4", 0, "ihd2", "60876", "100000");
f.AddGuide("sdy5", 0, "ihd2", "38268", "100000");
f.AddGuide("sdy6", 0, "ihd2", "13053", "100000");
f.AddGuide("sx1", 1, "hc", "0", "sdx1");
f.AddGuide("sx2", 1, "hc", "0", "sdx2");
f.AddGuide("sx3", 1, "hc", "0", "sdx3");
f.AddGuide("sx4", 1, "hc", "0", "sdx4");
f.AddGuide("sx5", 1, "hc", "0", "sdx5");
f.AddGuide("sx6", 1, "hc", "0", "sdx6");
f.AddGuide("sx7", 1, "hc", "sdx6", "0");
f.AddGuide("sx8", 1, "hc", "sdx5", "0");
f.AddGuide("sx9", 1, "hc", "sdx4", "0");
f.AddGuide("sx10", 1, "hc", "sdx3", "0");
f.AddGuide("sx11", 1, "hc", "sdx2", "0");
f.AddGuide("sx12", 1, "hc", "sdx1", "0");
f.AddGuide("sy1", 1, "vc", "0", "sdy1");
f.AddGuide("sy2", 1, "vc", "0", "sdy2");
f.AddGuide("sy3", 1, "vc", "0", "sdy3");
f.AddGuide("sy4", 1, "vc", "0", "sdy4");
f.AddGuide("sy5", 1, "vc", "0", "sdy5");
f.AddGuide("sy6", 1, "vc", "0", "sdy6");
f.AddGuide("sy7", 1, "vc", "sdy6", "0");
f.AddGuide("sy8", 1, "vc", "sdy5", "0");
f.AddGuide("sy9", 1, "vc", "sdy4", "0");
f.AddGuide("sy10", 1, "vc", "sdy3", "0");
f.AddGuide("sy11", 1, "vc", "sdy2", "0");
f.AddGuide("sy12", 1, "vc", "sdy1", "0");
f.AddGuide("idx", 7, "iwd2", "2700000");
f.AddGuide("idy", 12, "ihd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddGuide("yAdj", 1, "vc", "0", "ihd2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "hc", "yAdj");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "sx1", "sy6");
f.AddPathCommand(2, "x1", "y5");
f.AddPathCommand(2, "sx2", "sy5");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "sx3", "sy4");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "sx4", "sy3");
f.AddPathCommand(2, "x4", "y2");
f.AddPathCommand(2, "sx5", "sy2");
f.AddPathCommand(2, "x5", "y1");
f.AddPathCommand(2, "sx6", "sy1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "sx7", "sy1");
f.AddPathCommand(2, "x6", "y1");
f.AddPathCommand(2, "sx8", "sy2");
f.AddPathCommand(2, "x7", "y2");
f.AddPathCommand(2, "sx9", "sy3");
f.AddPathCommand(2, "x8", "y3");
f.AddPathCommand(2, "sx10", "sy4");
f.AddPathCommand(2, "x9", "y4");
f.AddPathCommand(2, "sx11", "sy5");
f.AddPathCommand(2, "x10", "y5");
f.AddPathCommand(2, "sx12", "sy6");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "sx12", "sy7");
f.AddPathCommand(2, "x10", "y6");
f.AddPathCommand(2, "sx11", "sy8");
f.AddPathCommand(2, "x9", "y7");
f.AddPathCommand(2, "sx10", "sy9");
f.AddPathCommand(2, "x8", "y8");
f.AddPathCommand(2, "sx9", "sy10");
f.AddPathCommand(2, "x7", "y9");
f.AddPathCommand(2, "sx8", "sy11");
f.AddPathCommand(2, "x6", "y10");
f.AddPathCommand(2, "sx7", "sy12");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "sx6", "sy12");
f.AddPathCommand(2, "x5", "y10");
f.AddPathCommand(2, "sx5", "sy11");
f.AddPathCommand(2, "x4", "y9");
f.AddPathCommand(2, "sx4", "sy10");
f.AddPathCommand(2, "x3", "y8");
f.AddPathCommand(2, "sx3", "sy9");
f.AddPathCommand(2, "x2", "y7");
f.AddPathCommand(2, "sx2", "sy8");
f.AddPathCommand(2, "x1", "y6");
f.AddPathCommand(2, "sx1", "sy7");
f.AddPathCommand(6);
break;
case "star32":
f.AddAdj("adj", 15, "37500");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("dx1", 0, "wd2", "98079", "100000");
f.AddGuide("dx2", 0, "wd2", "92388", "100000");
f.AddGuide("dx3", 0, "wd2", "83147", "100000");
f.AddGuide("dx4", 7, "wd2", "2700000");
f.AddGuide("dx5", 0, "wd2", "55557", "100000");
f.AddGuide("dx6", 0, "wd2", "38268", "100000");
f.AddGuide("dx7", 0, "wd2", "19509", "100000");
f.AddGuide("dy1", 0, "hd2", "98079", "100000");
f.AddGuide("dy2", 0, "hd2", "92388", "100000");
f.AddGuide("dy3", 0, "hd2", "83147", "100000");
f.AddGuide("dy4", 12, "hd2", "2700000");
f.AddGuide("dy5", 0, "hd2", "55557", "100000");
f.AddGuide("dy6", 0, "hd2", "38268", "100000");
f.AddGuide("dy7", 0, "hd2", "19509", "100000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "0", "dx3");
f.AddGuide("x4", 1, "hc", "0", "dx4");
f.AddGuide("x5", 1, "hc", "0", "dx5");
f.AddGuide("x6", 1, "hc", "0", "dx6");
f.AddGuide("x7", 1, "hc", "0", "dx7");
f.AddGuide("x8", 1, "hc", "dx7", "0");
f.AddGuide("x9", 1, "hc", "dx6", "0");
f.AddGuide("x10", 1, "hc", "dx5", "0");
f.AddGuide("x11", 1, "hc", "dx4", "0");
f.AddGuide("x12", 1, "hc", "dx3", "0");
f.AddGuide("x13", 1, "hc", "dx2", "0");
f.AddGuide("x14", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "0", "dy3");
f.AddGuide("y4", 1, "vc", "0", "dy4");
f.AddGuide("y5", 1, "vc", "0", "dy5");
f.AddGuide("y6", 1, "vc", "0", "dy6");
f.AddGuide("y7", 1, "vc", "0", "dy7");
f.AddGuide("y8", 1, "vc", "dy7", "0");
f.AddGuide("y9", 1, "vc", "dy6", "0");
f.AddGuide("y10", 1, "vc", "dy5", "0");
f.AddGuide("y11", 1, "vc", "dy4", "0");
f.AddGuide("y12", 1, "vc", "dy3", "0");
f.AddGuide("y13", 1, "vc", "dy2", "0");
f.AddGuide("y14", 1, "vc", "dy1", "0");
f.AddGuide("iwd2", 0, "wd2", "a", "50000");
f.AddGuide("ihd2", 0, "hd2", "a", "50000");
f.AddGuide("sdx1", 0, "iwd2", "99518", "100000");
f.AddGuide("sdx2", 0, "iwd2", "95694", "100000");
f.AddGuide("sdx3", 0, "iwd2", "88192", "100000");
f.AddGuide("sdx4", 0, "iwd2", "77301", "100000");
f.AddGuide("sdx5", 0, "iwd2", "63439", "100000");
f.AddGuide("sdx6", 0, "iwd2", "47140", "100000");
f.AddGuide("sdx7", 0, "iwd2", "29028", "100000");
f.AddGuide("sdx8", 0, "iwd2", "9802", "100000");
f.AddGuide("sdy1", 0, "ihd2", "99518", "100000");
f.AddGuide("sdy2", 0, "ihd2", "95694", "100000");
f.AddGuide("sdy3", 0, "ihd2", "88192", "100000");
f.AddGuide("sdy4", 0, "ihd2", "77301", "100000");
f.AddGuide("sdy5", 0, "ihd2", "63439", "100000");
f.AddGuide("sdy6", 0, "ihd2", "47140", "100000");
f.AddGuide("sdy7", 0, "ihd2", "29028", "100000");
f.AddGuide("sdy8", 0, "ihd2", "9802", "100000");
f.AddGuide("sx1", 1, "hc", "0", "sdx1");
f.AddGuide("sx2", 1, "hc", "0", "sdx2");
f.AddGuide("sx3", 1, "hc", "0", "sdx3");
f.AddGuide("sx4", 1, "hc", "0", "sdx4");
f.AddGuide("sx5", 1, "hc", "0", "sdx5");
f.AddGuide("sx6", 1, "hc", "0", "sdx6");
f.AddGuide("sx7", 1, "hc", "0", "sdx7");
f.AddGuide("sx8", 1, "hc", "0", "sdx8");
f.AddGuide("sx9", 1, "hc", "sdx8", "0");
f.AddGuide("sx10", 1, "hc", "sdx7", "0");
f.AddGuide("sx11", 1, "hc", "sdx6", "0");
f.AddGuide("sx12", 1, "hc", "sdx5", "0");
f.AddGuide("sx13", 1, "hc", "sdx4", "0");
f.AddGuide("sx14", 1, "hc", "sdx3", "0");
f.AddGuide("sx15", 1, "hc", "sdx2", "0");
f.AddGuide("sx16", 1, "hc", "sdx1", "0");
f.AddGuide("sy1", 1, "vc", "0", "sdy1");
f.AddGuide("sy2", 1, "vc", "0", "sdy2");
f.AddGuide("sy3", 1, "vc", "0", "sdy3");
f.AddGuide("sy4", 1, "vc", "0", "sdy4");
f.AddGuide("sy5", 1, "vc", "0", "sdy5");
f.AddGuide("sy6", 1, "vc", "0", "sdy6");
f.AddGuide("sy7", 1, "vc", "0", "sdy7");
f.AddGuide("sy8", 1, "vc", "0", "sdy8");
f.AddGuide("sy9", 1, "vc", "sdy8", "0");
f.AddGuide("sy10", 1, "vc", "sdy7", "0");
f.AddGuide("sy11", 1, "vc", "sdy6", "0");
f.AddGuide("sy12", 1, "vc", "sdy5", "0");
f.AddGuide("sy13", 1, "vc", "sdy4", "0");
f.AddGuide("sy14", 1, "vc", "sdy3", "0");
f.AddGuide("sy15", 1, "vc", "sdy2", "0");
f.AddGuide("sy16", 1, "vc", "sdy1", "0");
f.AddGuide("idx", 7, "iwd2", "2700000");
f.AddGuide("idy", 12, "ihd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddGuide("yAdj", 1, "vc", "0", "ihd2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "hc", "yAdj");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "sx1", "sy8");
f.AddPathCommand(2, "x1", "y7");
f.AddPathCommand(2, "sx2", "sy7");
f.AddPathCommand(2, "x2", "y6");
f.AddPathCommand(2, "sx3", "sy6");
f.AddPathCommand(2, "x3", "y5");
f.AddPathCommand(2, "sx4", "sy5");
f.AddPathCommand(2, "x4", "y4");
f.AddPathCommand(2, "sx5", "sy4");
f.AddPathCommand(2, "x5", "y3");
f.AddPathCommand(2, "sx6", "sy3");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(2, "sx7", "sy2");
f.AddPathCommand(2, "x7", "y1");
f.AddPathCommand(2, "sx8", "sy1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "sx9", "sy1");
f.AddPathCommand(2, "x8", "y1");
f.AddPathCommand(2, "sx10", "sy2");
f.AddPathCommand(2, "x9", "y2");
f.AddPathCommand(2, "sx11", "sy3");
f.AddPathCommand(2, "x10", "y3");
f.AddPathCommand(2, "sx12", "sy4");
f.AddPathCommand(2, "x11", "y4");
f.AddPathCommand(2, "sx13", "sy5");
f.AddPathCommand(2, "x12", "y5");
f.AddPathCommand(2, "sx14", "sy6");
f.AddPathCommand(2, "x13", "y6");
f.AddPathCommand(2, "sx15", "sy7");
f.AddPathCommand(2, "x14", "y7");
f.AddPathCommand(2, "sx16", "sy8");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "sx16", "sy9");
f.AddPathCommand(2, "x14", "y8");
f.AddPathCommand(2, "sx15", "sy10");
f.AddPathCommand(2, "x13", "y9");
f.AddPathCommand(2, "sx14", "sy11");
f.AddPathCommand(2, "x12", "y10");
f.AddPathCommand(2, "sx13", "sy12");
f.AddPathCommand(2, "x11", "y11");
f.AddPathCommand(2, "sx12", "sy13");
f.AddPathCommand(2, "x10", "y12");
f.AddPathCommand(2, "sx11", "sy14");
f.AddPathCommand(2, "x9", "y13");
f.AddPathCommand(2, "sx10", "sy15");
f.AddPathCommand(2, "x8", "y14");
f.AddPathCommand(2, "sx9", "sy16");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "sx8", "sy16");
f.AddPathCommand(2, "x7", "y14");
f.AddPathCommand(2, "sx7", "sy15");
f.AddPathCommand(2, "x6", "y13");
f.AddPathCommand(2, "sx6", "sy14");
f.AddPathCommand(2, "x5", "y12");
f.AddPathCommand(2, "sx5", "sy13");
f.AddPathCommand(2, "x4", "y11");
f.AddPathCommand(2, "sx4", "sy12");
f.AddPathCommand(2, "x3", "y10");
f.AddPathCommand(2, "sx3", "sy11");
f.AddPathCommand(2, "x2", "y9");
f.AddPathCommand(2, "sx2", "sy10");
f.AddPathCommand(2, "x1", "y8");
f.AddPathCommand(2, "sx1", "sy9");
f.AddPathCommand(6);
break;
case "star4":
f.AddAdj("adj", 15, "12500");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("iwd2", 0, "wd2", "a", "50000");
f.AddGuide("ihd2", 0, "hd2", "a", "50000");
f.AddGuide("sdx", 7, "iwd2", "2700000");
f.AddGuide("sdy", 12, "ihd2", "2700000");
f.AddGuide("sx1", 1, "hc", "0", "sdx");
f.AddGuide("sx2", 1, "hc", "sdx", "0");
f.AddGuide("sy1", 1, "vc", "0", "sdy");
f.AddGuide("sy2", 1, "vc", "sdy", "0");
f.AddGuide("yAdj", 1, "vc", "0", "ihd2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "hc", "yAdj");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("sx1", "sy1", "sx2", "sy2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "sx1", "sy1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "sx2", "sy1");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "sx2", "sy2");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "sx1", "sy2");
f.AddPathCommand(6);
break;
case "star5":
f.AddAdj("adj", 15, "19098");
f.AddAdj("hf", 15, "105146");
f.AddAdj("vf", 15, "110557");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("swd2", 0, "wd2", "hf", "100000");
f.AddGuide("shd2", 0, "hd2", "vf", "100000");
f.AddGuide("svc", 0, "vc", "vf", "100000");
f.AddGuide("dx1", 7, "swd2", "1080000");
f.AddGuide("dx2", 7, "swd2", "18360000");
f.AddGuide("dy1", 12, "shd2", "1080000");
f.AddGuide("dy2", 12, "shd2", "18360000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "dx2", "0");
f.AddGuide("x4", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "svc", "0", "dy1");
f.AddGuide("y2", 1, "svc", "0", "dy2");
f.AddGuide("iwd2", 0, "swd2", "a", "50000");
f.AddGuide("ihd2", 0, "shd2", "a", "50000");
f.AddGuide("sdx1", 7, "iwd2", "20520000");
f.AddGuide("sdx2", 7, "iwd2", "3240000");
f.AddGuide("sdy1", 12, "ihd2", "3240000");
f.AddGuide("sdy2", 12, "ihd2", "20520000");
f.AddGuide("sx1", 1, "hc", "0", "sdx1");
f.AddGuide("sx2", 1, "hc", "0", "sdx2");
f.AddGuide("sx3", 1, "hc", "sdx2", "0");
f.AddGuide("sx4", 1, "hc", "sdx1", "0");
f.AddGuide("sy1", 1, "svc", "0", "sdy1");
f.AddGuide("sy2", 1, "svc", "0", "sdy2");
f.AddGuide("sy3", 1, "svc", "ihd2", "0");
f.AddGuide("yAdj", 1, "svc", "0", "ihd2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "hc", "yAdj");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "x1", "y1");
f.AddCnx("cd4", "x2", "y2");
f.AddCnx("cd4", "x3", "y2");
f.AddCnx("0", "x4", "y1");
f.AddRect("sx1", "sy1", "sx4", "sy3");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y1");
f.AddPathCommand(2, "sx2", "sy1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "sx3", "sy1");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "sx4", "sy2");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(2, "hc", "sy3");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "sx1", "sy2");
f.AddPathCommand(6);
break;
case "star6":
f.AddAdj("adj", 15, "28868");
f.AddAdj("hf", 15, "115470");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("swd2", 0, "wd2", "hf", "100000");
f.AddGuide("dx1", 7, "swd2", "1800000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "dx1", "0");
f.AddGuide("y2", 1, "vc", "hd4", "0");
f.AddGuide("iwd2", 0, "swd2", "a", "50000");
f.AddGuide("ihd2", 0, "hd2", "a", "50000");
f.AddGuide("sdx2", 0, "iwd2", "1", "2");
f.AddGuide("sx1", 1, "hc", "0", "iwd2");
f.AddGuide("sx2", 1, "hc", "0", "sdx2");
f.AddGuide("sx3", 1, "hc", "sdx2", "0");
f.AddGuide("sx4", 1, "hc", "iwd2", "0");
f.AddGuide("sdy1", 12, "ihd2", "3600000");
f.AddGuide("sy1", 1, "vc", "0", "sdy1");
f.AddGuide("sy2", 1, "vc", "sdy1", "0");
f.AddGuide("yAdj", 1, "vc", "0", "ihd2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "hc", "yAdj");
f.AddCnx("0", "x2", "hd4");
f.AddCnx("0", "x2", "y2");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "x1", "y2");
f.AddCnx("cd2", "x1", "hd4");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("sx1", "sy1", "sx4", "sy2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "hd4");
f.AddPathCommand(2, "sx2", "sy1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "sx3", "sy1");
f.AddPathCommand(2, "x2", "hd4");
f.AddPathCommand(2, "sx4", "vc");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "sx3", "sy2");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "sx2", "sy2");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "sx1", "vc");
f.AddPathCommand(6);
break;
case "star7":
f.AddAdj("adj", 15, "34601");
f.AddAdj("hf", 15, "102572");
f.AddAdj("vf", 15, "105210");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("swd2", 0, "wd2", "hf", "100000");
f.AddGuide("shd2", 0, "hd2", "vf", "100000");
f.AddGuide("svc", 0, "vc", "vf", "100000");
f.AddGuide("dx1", 0, "swd2", "97493", "100000");
f.AddGuide("dx2", 0, "swd2", "78183", "100000");
f.AddGuide("dx3", 0, "swd2", "43388", "100000");
f.AddGuide("dy1", 0, "shd2", "62349", "100000");
f.AddGuide("dy2", 0, "shd2", "22252", "100000");
f.AddGuide("dy3", 0, "shd2", "90097", "100000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "0", "dx3");
f.AddGuide("x4", 1, "hc", "dx3", "0");
f.AddGuide("x5", 1, "hc", "dx2", "0");
f.AddGuide("x6", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "svc", "0", "dy1");
f.AddGuide("y2", 1, "svc", "dy2", "0");
f.AddGuide("y3", 1, "svc", "dy3", "0");
f.AddGuide("iwd2", 0, "swd2", "a", "50000");
f.AddGuide("ihd2", 0, "shd2", "a", "50000");
f.AddGuide("sdx1", 0, "iwd2", "97493", "100000");
f.AddGuide("sdx2", 0, "iwd2", "78183", "100000");
f.AddGuide("sdx3", 0, "iwd2", "43388", "100000");
f.AddGuide("sx1", 1, "hc", "0", "sdx1");
f.AddGuide("sx2", 1, "hc", "0", "sdx2");
f.AddGuide("sx3", 1, "hc", "0", "sdx3");
f.AddGuide("sx4", 1, "hc", "sdx3", "0");
f.AddGuide("sx5", 1, "hc", "sdx2", "0");
f.AddGuide("sx6", 1, "hc", "sdx1", "0");
f.AddGuide("sdy1", 0, "ihd2", "90097", "100000");
f.AddGuide("sdy2", 0, "ihd2", "22252", "100000");
f.AddGuide("sdy3", 0, "ihd2", "62349", "100000");
f.AddGuide("sy1", 1, "svc", "0", "sdy1");
f.AddGuide("sy2", 1, "svc", "0", "sdy2");
f.AddGuide("sy3", 1, "svc", "sdy3", "0");
f.AddGuide("sy4", 1, "svc", "ihd2", "0");
f.AddGuide("yAdj", 1, "svc", "0", "ihd2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "hc", "yAdj");
f.AddCnx("0", "x5", "y1");
f.AddCnx("0", "x6", "y2");
f.AddCnx("cd4", "x4", "y3");
f.AddCnx("cd4", "x3", "y3");
f.AddCnx("cd2", "x1", "y2");
f.AddCnx("cd2", "x2", "y1");
f.AddCnx("_3cd4", "hc", "t");
f.AddRect("sx2", "sy1", "sx5", "sy3");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x1", "y2");
f.AddPathCommand(2, "sx1", "sy2");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "sx3", "sy1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "sx4", "sy1");
f.AddPathCommand(2, "x5", "y1");
f.AddPathCommand(2, "sx6", "sy2");
f.AddPathCommand(2, "x6", "y2");
f.AddPathCommand(2, "sx5", "sy3");
f.AddPathCommand(2, "x4", "y3");
f.AddPathCommand(2, "hc", "sy4");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "sx2", "sy3");
f.AddPathCommand(6);
break;
case "star8":
f.AddAdj("adj", 15, "37500");
f.AddGuide("a", 10, "0", "adj", "50000");
f.AddGuide("dx1", 7, "wd2", "2700000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "dx1", "0");
f.AddGuide("dy1", 12, "hd2", "2700000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "dy1", "0");
f.AddGuide("iwd2", 0, "wd2", "a", "50000");
f.AddGuide("ihd2", 0, "hd2", "a", "50000");
f.AddGuide("sdx1", 0, "iwd2", "92388", "100000");
f.AddGuide("sdx2", 0, "iwd2", "38268", "100000");
f.AddGuide("sdy1", 0, "ihd2", "92388", "100000");
f.AddGuide("sdy2", 0, "ihd2", "38268", "100000");
f.AddGuide("sx1", 1, "hc", "0", "sdx1");
f.AddGuide("sx2", 1, "hc", "0", "sdx2");
f.AddGuide("sx3", 1, "hc", "sdx2", "0");
f.AddGuide("sx4", 1, "hc", "sdx1", "0");
f.AddGuide("sy1", 1, "vc", "0", "sdy1");
f.AddGuide("sy2", 1, "vc", "0", "sdy2");
f.AddGuide("sy3", 1, "vc", "sdy2", "0");
f.AddGuide("sy4", 1, "vc", "sdy1", "0");
f.AddGuide("yAdj", 1, "vc", "0", "ihd2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "50000", "hc", "yAdj");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "x2", "y2");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "x1", "y2");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "x1", "y1");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "x2", "y1");
f.AddRect("sx1", "sy1", "sx4", "sy4");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "sx1", "sy2");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "sx2", "sy1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "sx3", "sy1");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "sx4", "sy2");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "sx4", "sy3");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "sx3", "sy4");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "sx2", "sy4");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(2, "sx1", "sy3");
f.AddPathCommand(6);
break;
case "straightConnector1":
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "r", "b");
break;
case "stripedRightArrow":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("maxAdj2", 0, "84375", "w", "ss");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("x4", 0, "ss", "5", "32");
f.AddGuide("dx5", 0, "ss", "a2", "100000");
f.AddGuide("x5", 1, "r", "0", "dx5");
f.AddGuide("dy1", 0, "h", "a1", "200000");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("y2", 1, "vc", "dy1", "0");
f.AddGuide("dx6", 0, "dy1", "dx5", "hd2");
f.AddGuide("x6", 1, "r", "0", "dx6");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "100000", "l", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x5", "t");
f.AddCnx("_3cd4", "x5", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "x5", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("x4", "y1", "x6", "y2");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y1");
f.AddPathCommand(2, "ssd32", "y1");
f.AddPathCommand(2, "ssd32", "y2");
f.AddPathCommand(2, "l", "y2");
f.AddPathCommand(6);
f.AddPathCommand(1, "ssd16", "y1");
f.AddPathCommand(2, "ssd8", "y1");
f.AddPathCommand(2, "ssd8", "y2");
f.AddPathCommand(2, "ssd16", "y2");
f.AddPathCommand(6);
f.AddPathCommand(1, "x4", "y1");
f.AddPathCommand(2, "x5", "y1");
f.AddPathCommand(2, "x5", "t");
f.AddPathCommand(2, "r", "vc");
f.AddPathCommand(2, "x5", "b");
f.AddPathCommand(2, "x5", "y2");
f.AddPathCommand(2, "x4", "y2");
f.AddPathCommand(6);
break;
case "sun":
f.AddAdj("adj", 15, "25000");
f.AddGuide("a", 10, "12500", "adj", "46875");
f.AddGuide("g0", 1, "50000", "0", "a");
f.AddGuide("g1", 0, "g0", "30274", "32768");
f.AddGuide("g2", 0, "g0", "12540", "32768");
f.AddGuide("g3", 1, "g1", "50000", "0");
f.AddGuide("g4", 1, "g2", "50000", "0");
f.AddGuide("g5", 1, "50000", "0", "g1");
f.AddGuide("g6", 1, "50000", "0", "g2");
f.AddGuide("g7", 0, "g0", "23170", "32768");
f.AddGuide("g8", 1, "50000", "g7", "0");
f.AddGuide("g9", 1, "50000", "0", "g7");
f.AddGuide("g10", 0, "g5", "3", "4");
f.AddGuide("g11", 0, "g6", "3", "4");
f.AddGuide("g12", 1, "g10", "3662", "0");
f.AddGuide("g13", 1, "g11", "3662", "0");
f.AddGuide("g14", 1, "g11", "12500", "0");
f.AddGuide("g15", 1, "100000", "0", "g10");
f.AddGuide("g16", 1, "100000", "0", "g12");
f.AddGuide("g17", 1, "100000", "0", "g13");
f.AddGuide("g18", 1, "100000", "0", "g14");
f.AddGuide("ox1", 0, "w", "18436", "21600");
f.AddGuide("oy1", 0, "h", "3163", "21600");
f.AddGuide("ox2", 0, "w", "3163", "21600");
f.AddGuide("oy2", 0, "h", "18436", "21600");
f.AddGuide("x8", 0, "w", "g8", "100000");
f.AddGuide("x9", 0, "w", "g9", "100000");
f.AddGuide("x10", 0, "w", "g10", "100000");
f.AddGuide("x12", 0, "w", "g12", "100000");
f.AddGuide("x13", 0, "w", "g13", "100000");
f.AddGuide("x14", 0, "w", "g14", "100000");
f.AddGuide("x15", 0, "w", "g15", "100000");
f.AddGuide("x16", 0, "w", "g16", "100000");
f.AddGuide("x17", 0, "w", "g17", "100000");
f.AddGuide("x18", 0, "w", "g18", "100000");
f.AddGuide("x19", 0, "w", "a", "100000");
f.AddGuide("wR", 0, "w", "g0", "100000");
f.AddGuide("hR", 0, "h", "g0", "100000");
f.AddGuide("y8", 0, "h", "g8", "100000");
f.AddGuide("y9", 0, "h", "g9", "100000");
f.AddGuide("y10", 0, "h", "g10", "100000");
f.AddGuide("y12", 0, "h", "g12", "100000");
f.AddGuide("y13", 0, "h", "g13", "100000");
f.AddGuide("y14", 0, "h", "g14", "100000");
f.AddGuide("y15", 0, "h", "g15", "100000");
f.AddGuide("y16", 0, "h", "g16", "100000");
f.AddGuide("y17", 0, "h", "g17", "100000");
f.AddGuide("y18", 0, "h", "g18", "100000");
f.AddHandleXY("adj", "12500", "46875", undefined, "0", "0", "x19", "vc");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("x9", "y9", "x8", "y8");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "r", "vc");
f.AddPathCommand(2, "x15", "y18");
f.AddPathCommand(2, "x15", "y14");
f.AddPathCommand(6);
f.AddPathCommand(1, "ox1", "oy1");
f.AddPathCommand(2, "x16", "y13");
f.AddPathCommand(2, "x17", "y12");
f.AddPathCommand(6);
f.AddPathCommand(1, "hc", "t");
f.AddPathCommand(2, "x18", "y10");
f.AddPathCommand(2, "x14", "y10");
f.AddPathCommand(6);
f.AddPathCommand(1, "ox2", "oy1");
f.AddPathCommand(2, "x13", "y12");
f.AddPathCommand(2, "x12", "y13");
f.AddPathCommand(6);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(2, "x10", "y14");
f.AddPathCommand(2, "x10", "y18");
f.AddPathCommand(6);
f.AddPathCommand(1, "ox2", "oy2");
f.AddPathCommand(2, "x12", "y17");
f.AddPathCommand(2, "x13", "y16");
f.AddPathCommand(6);
f.AddPathCommand(1, "hc", "b");
f.AddPathCommand(2, "x14", "y15");
f.AddPathCommand(2, "x18", "y15");
f.AddPathCommand(6);
f.AddPathCommand(1, "ox1", "oy2");
f.AddPathCommand(2, "x17", "y16");
f.AddPathCommand(2, "x16", "y17");
f.AddPathCommand(6);
f.AddPathCommand(1, "x19", "vc");
f.AddPathCommand(3, "wR", "hR", "cd2", "21600000");
f.AddPathCommand(6);
break;
case "swooshArrow":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "16667");
f.AddGuide("a1", 10, "1", "adj1", "75000");
f.AddGuide("maxAdj2", 0, "70000", "w", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("ad1", 0, "h", "a1", "100000");
f.AddGuide("ad2", 0, "ss", "a2", "100000");
f.AddGuide("xB", 1, "r", "0", "ad2");
f.AddGuide("yB", 1, "t", "ssd8", "0");
f.AddGuide("alfa", 0, "cd4", "1", "14");
f.AddGuide("dx0", 14, "ssd8", "alfa");
f.AddGuide("xC", 1, "xB", "0", "dx0");
f.AddGuide("dx1", 14, "ad1", "alfa");
f.AddGuide("yF", 1, "yB", "ad1", "0");
f.AddGuide("xF", 1, "xB", "dx1", "0");
f.AddGuide("xE", 1, "xF", "dx0", "0");
f.AddGuide("yE", 1, "yF", "ssd8", "0");
f.AddGuide("dy2", 1, "yE", "0", "t");
f.AddGuide("dy22", 0, "dy2", "1", "2");
f.AddGuide("dy3", 0, "h", "1", "20");
f.AddGuide("yD", 1, "t", "dy22", "dy3");
f.AddGuide("dy4", 0, "hd6", "1", "1");
f.AddGuide("yP1", 1, "hd6", "dy4", "0");
f.AddGuide("xP1", 15, "wd6");
f.AddGuide("dy5", 0, "hd6", "1", "2");
f.AddGuide("yP2", 1, "yF", "dy5", "0");
f.AddGuide("xP2", 15, "wd4");
f.AddHandleXY(undefined, "0", "0", "adj1", "1", "75000", "xF", "yF");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "xB", "yB");
f.AddCnx("cd4", "l", "b");
f.AddCnx("_3cd4", "xC", "t");
f.AddCnx("0", "r", "yD");
f.AddCnx("cd4", "xE", "yE");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(4, "xP1", "yP1", "xB", "yB");
f.AddPathCommand(2, "xC", "t");
f.AddPathCommand(2, "r", "yD");
f.AddPathCommand(2, "xE", "yE");
f.AddPathCommand(2, "xF", "yF");
f.AddPathCommand(4, "xP2", "yP2", "l", "b");
f.AddPathCommand(6);
break;
case "teardrop":
f.AddAdj("adj", 15, "100000");
f.AddGuide("a", 10, "0", "adj", "200000");
f.AddGuide("r2", 13, "2");
f.AddGuide("tw", 0, "wd2", "r2", "1");
f.AddGuide("th", 0, "hd2", "r2", "1");
f.AddGuide("sw", 0, "tw", "a", "100000");
f.AddGuide("sh", 0, "th", "a", "100000");
f.AddGuide("dx1", 7, "sw", "2700000");
f.AddGuide("dy1", 12, "sh", "2700000");
f.AddGuide("x1", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "0", "dy1");
f.AddGuide("x2", 2, "hc", "x1", "2");
f.AddGuide("y2", 2, "vc", "y1", "2");
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddHandleXY("adj", "0", "200000", undefined, "0", "0", "x1", "t");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "ir", "ib");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "il", "ib");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("_3cd4", "il", "it");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "x1", "y1");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "vc");
f.AddPathCommand(3, "wd2", "hd2", "cd2", "cd4");
f.AddPathCommand(4, "x2", "t", "x1", "y1");
f.AddPathCommand(4, "r", "y2", "r", "vc");
f.AddPathCommand(3, "wd2", "hd2", "0", "cd4");
f.AddPathCommand(3, "wd2", "hd2", "cd4", "cd4");
f.AddPathCommand(6);
break;
case "trapezoid":
f.AddAdj("adj", 15, "25000");
f.AddGuide("maxAdj", 0, "50000", "w", "ss");
f.AddGuide("a", 10, "0", "adj", "maxAdj");
f.AddGuide("x1", 0, "ss", "a", "200000");
f.AddGuide("x2", 0, "ss", "a", "100000");
f.AddGuide("x3", 1, "r", "0", "x2");
f.AddGuide("x4", 1, "r", "0", "x1");
f.AddGuide("il", 0, "wd3", "a", "maxAdj");
f.AddGuide("it", 0, "hd3", "a", "maxAdj");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddHandleXY("adj", "0", "maxAdj", undefined, "0", "0", "x2", "t");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "x4", "vc");
f.AddRect("il", "it", "ir", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "x3", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(6);
break;
case "triangle":
f.AddAdj("adj", 15, "50000");
f.AddGuide("a", 10, "0", "adj", "100000");
f.AddGuide("x1", 0, "w", "a", "200000");
f.AddGuide("x2", 0, "w", "a", "100000");
f.AddGuide("x3", 1, "x1", "wd2", "0");
f.AddHandleXY("adj", "0", "100000", undefined, "0", "0", "x2", "t");
f.AddCnx("_3cd4", "x2", "t");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("cd4", "l", "b");
f.AddCnx("cd4", "x2", "b");
f.AddCnx("cd4", "r", "b");
f.AddCnx("0", "x3", "vc");
f.AddRect("x1", "vc", "x3", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(6);
break;
case "upArrowCallout":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddAdj("adj4", 15, "64977");
f.AddGuide("maxAdj2", 0, "50000", "w", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("maxAdj3", 0, "100000", "h", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("q2", 0, "a3", "ss", "h");
f.AddGuide("maxAdj4", 1, "100000", "0", "q2");
f.AddGuide("a4", 10, "0", "adj4", "maxAdj4");
f.AddGuide("dx1", 0, "ss", "a2", "100000");
f.AddGuide("dx2", 0, "ss", "a1", "200000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "dx2", "0");
f.AddGuide("x4", 1, "hc", "dx1", "0");
f.AddGuide("y1", 0, "ss", "a3", "100000");
f.AddGuide("dy2", 0, "h", "a4", "100000");
f.AddGuide("y2", 1, "b", "0", "dy2");
f.AddGuide("y3", 2, "y2", "b", "2");
f.AddHandleXY("adj1", "0", "maxAdj1", undefined, "0", "0", "x2", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x1", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "r", "y1");
f.AddHandleXY(undefined, "0", "0", "adj4", "0", "maxAdj4", "l", "y2");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "y2");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "y2");
f.AddRect("l", "y2", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(6);
break;
case "upDownArrow":
f.AddAdj("adj1", 15, "50000");
f.AddAdj("adj2", 15, "50000");
f.AddGuide("maxAdj2", 0, "50000", "h", "ss");
f.AddGuide("a1", 10, "0", "adj1", "100000");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("y2", 0, "ss", "a2", "100000");
f.AddGuide("y3", 1, "b", "0", "y2");
f.AddGuide("dx1", 0, "w", "a1", "200000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "dx1", "0");
f.AddGuide("dy1", 0, "x1", "y2", "wd2");
f.AddGuide("y1", 1, "y2", "0", "dy1");
f.AddGuide("y4", 1, "y3", "dy1", "0");
f.AddHandleXY("adj1", "0", "100000", undefined, "0", "0", "x1", "y3");
f.AddHandleXY(undefined, "0", "0", "adj2", "0", "maxAdj2", "l", "y2");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "y2");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("cd2", "l", "y3");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "y3");
f.AddCnx("0", "x2", "vc");
f.AddCnx("0", "r", "y2");
f.AddRect("x1", "y1", "x2", "y4");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y2");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(2, "r", "y3");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "l", "y3");
f.AddPathCommand(2, "x1", "y3");
f.AddPathCommand(2, "x1", "y2");
f.AddPathCommand(6);
break;
case "upDownArrowCallout":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddAdj("adj4", 15, "48123");
f.AddGuide("maxAdj2", 0, "50000", "w", "ss");
f.AddGuide("a2", 10, "0", "adj2", "maxAdj2");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("maxAdj3", 0, "50000", "h", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("q2", 0, "a3", "ss", "hd2");
f.AddGuide("maxAdj4", 1, "100000", "0", "q2");
f.AddGuide("a4", 10, "0", "adj4", "maxAdj4");
f.AddGuide("dx1", 0, "ss", "a2", "100000");
f.AddGuide("dx2", 0, "ss", "a1", "200000");
f.AddGuide("x1", 1, "hc", "0", "dx1");
f.AddGuide("x2", 1, "hc", "0", "dx2");
f.AddGuide("x3", 1, "hc", "dx2", "0");
f.AddGuide("x4", 1, "hc", "dx1", "0");
f.AddGuide("y1", 0, "ss", "a3", "100000");
f.AddGuide("y4", 1, "b", "0", "y1");
f.AddGuide("dy2", 0, "h", "a4", "200000");
f.AddGuide("y2", 1, "vc", "0", "dy2");
f.AddGuide("y3", 1, "vc", "dy2", "0");
f.AddHandleXY("adj1", "0", "maxAdj1", undefined, "0", "0", "x2", "y1");
f.AddHandleXY("adj2", "0", "maxAdj2", undefined, "0", "0", "x1", "t");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "r", "y1");
f.AddHandleXY(undefined, "0", "0", "adj4", "0", "maxAdj4", "l", "y2");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddRect("l", "y2", "r", "y3");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "y2");
f.AddPathCommand(2, "x2", "y2");
f.AddPathCommand(2, "x2", "y1");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(2, "hc", "t");
f.AddPathCommand(2, "x4", "y1");
f.AddPathCommand(2, "x3", "y1");
f.AddPathCommand(2, "x3", "y2");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "r", "y3");
f.AddPathCommand(2, "x3", "y3");
f.AddPathCommand(2, "x3", "y4");
f.AddPathCommand(2, "x4", "y4");
f.AddPathCommand(2, "hc", "b");
f.AddPathCommand(2, "x1", "y4");
f.AddPathCommand(2, "x2", "y4");
f.AddPathCommand(2, "x2", "y3");
f.AddPathCommand(2, "l", "y3");
f.AddPathCommand(6);
break;
case "uturnArrow":
f.AddAdj("adj1", 15, "25000");
f.AddAdj("adj2", 15, "25000");
f.AddAdj("adj3", 15, "25000");
f.AddAdj("adj4", 15, "43750");
f.AddAdj("adj5", 15, "75000");
f.AddGuide("a2", 10, "0", "adj2", "25000");
f.AddGuide("maxAdj1", 0, "a2", "2", "1");
f.AddGuide("a1", 10, "0", "adj1", "maxAdj1");
f.AddGuide("q2", 0, "a1", "ss", "h");
f.AddGuide("q3", 1, "100000", "0", "q2");
f.AddGuide("maxAdj3", 0, "q3", "h", "ss");
f.AddGuide("a3", 10, "0", "adj3", "maxAdj3");
f.AddGuide("q1", 1, "a3", "a1", "0");
f.AddGuide("minAdj5", 0, "q1", "ss", "h");
f.AddGuide("a5", 10, "minAdj5", "adj5", "100000");
f.AddGuide("th", 0, "ss", "a1", "100000");
f.AddGuide("aw2", 0, "ss", "a2", "100000");
f.AddGuide("th2", 0, "th", "1", "2");
f.AddGuide("dh2", 1, "aw2", "0", "th2");
f.AddGuide("y5", 0, "h", "a5", "100000");
f.AddGuide("ah", 0, "ss", "a3", "100000");
f.AddGuide("y4", 1, "y5", "0", "ah");
f.AddGuide("x9", 1, "r", "0", "dh2");
f.AddGuide("bw", 0, "x9", "1", "2");
f.AddGuide("bs", 16, "bw", "y4");
f.AddGuide("maxAdj4", 0, "bs", "100000", "ss");
f.AddGuide("a4", 10, "0", "adj4", "maxAdj4");
f.AddGuide("bd", 0, "ss", "a4", "100000");
f.AddGuide("bd3", 1, "bd", "0", "th");
f.AddGuide("bd2", 8, "bd3", "0");
f.AddGuide("x3", 1, "th", "bd2", "0");
f.AddGuide("x8", 1, "r", "0", "aw2");
f.AddGuide("x6", 1, "x8", "0", "aw2");
f.AddGuide("x7", 1, "x6", "dh2", "0");
f.AddGuide("x4", 1, "x9", "0", "bd");
f.AddGuide("x5", 1, "x7", "0", "bd2");
f.AddGuide("cx", 2, "th", "x7", "2");
f.AddHandleXY("adj1", "0", "maxAdj1", undefined, "0", "0", "th", "b");
f.AddHandleXY("adj2", "0", "25000", undefined, "0", "0", "x6", "b");
f.AddHandleXY(undefined, "0", "0", "adj3", "0", "maxAdj3", "x6", "y4");
f.AddHandleXY("adj4", "0", "maxAdj4", undefined, "0", "0", "bd", "t");
f.AddHandleXY(undefined, "0", "0", "adj5", "minAdj5", "100000", "r", "y5");
f.AddCnx("cd4", "x6", "y4");
f.AddCnx("cd4", "x8", "y5");
f.AddCnx("0", "r", "y4");
f.AddCnx("_3cd4", "cx", "t");
f.AddCnx("cd4", "th2", "b");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "b");
f.AddPathCommand(2, "l", "bd");
f.AddPathCommand(3, "bd", "bd", "cd2", "cd4");
f.AddPathCommand(2, "x4", "t");
f.AddPathCommand(3, "bd", "bd", "_3cd4", "cd4");
f.AddPathCommand(2, "x9", "y4");
f.AddPathCommand(2, "r", "y4");
f.AddPathCommand(2, "x8", "y5");
f.AddPathCommand(2, "x6", "y4");
f.AddPathCommand(2, "x7", "y4");
f.AddPathCommand(2, "x7", "x3");
f.AddPathCommand(3, "bd2", "bd2", "0", "-5400000");
f.AddPathCommand(2, "x3", "th");
f.AddPathCommand(3, "bd2", "bd2", "_3cd4", "-5400000");
f.AddPathCommand(2, "th", "b");
f.AddPathCommand(6);
break;
case "verticalScroll":
f.AddAdj("adj", 15, "12500");
f.AddGuide("a", 10, "0", "adj", "25000");
f.AddGuide("ch", 0, "ss", "a", "100000");
f.AddGuide("ch2", 0, "ch", "1", "2");
f.AddGuide("ch4", 0, "ch", "1", "4");
f.AddGuide("x3", 1, "ch", "ch2", "0");
f.AddGuide("x4", 1, "ch", "ch", "0");
f.AddGuide("x6", 1, "r", "0", "ch");
f.AddGuide("x7", 1, "r", "0", "ch2");
f.AddGuide("x5", 1, "x6", "0", "ch2");
f.AddGuide("y3", 1, "b", "0", "ch");
f.AddGuide("y4", 1, "b", "0", "ch2");
f.AddHandleXY(undefined, "0", "0", "adj", "0", "25000", "l", "ch");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("0", "ch", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd2", "x6", "vc");
f.AddRect("ch", "ch", "x6", "y4");
f.AddPathCommand(0, false, undefined, false, undefined, undefined);
f.AddPathCommand(1, "ch2", "b");
f.AddPathCommand(3, "ch2", "ch2", "cd4", "-5400000");
f.AddPathCommand(2, "ch2", "y4");
f.AddPathCommand(3, "ch4", "ch4", "cd4", "-10800000");
f.AddPathCommand(2, "ch", "y3");
f.AddPathCommand(2, "ch", "ch2");
f.AddPathCommand(3, "ch2", "ch2", "cd2", "cd4");
f.AddPathCommand(2, "x7", "t");
f.AddPathCommand(3, "ch2", "ch2", "_3cd4", "cd2");
f.AddPathCommand(2, "x6", "ch");
f.AddPathCommand(2, "x6", "y4");
f.AddPathCommand(3, "ch2", "ch2", "0", "cd4");
f.AddPathCommand(6);
f.AddPathCommand(1, "x4", "ch2");
f.AddPathCommand(3, "ch2", "ch2", "0", "cd4");
f.AddPathCommand(3, "ch4", "ch4", "cd4", "cd2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "darkenLess", false, undefined, undefined);
f.AddPathCommand(1, "x4", "ch2");
f.AddPathCommand(3, "ch2", "ch2", "0", "cd4");
f.AddPathCommand(3, "ch4", "ch4", "cd4", "cd2");
f.AddPathCommand(6);
f.AddPathCommand(1, "ch", "y4");
f.AddPathCommand(3, "ch2", "ch2", "0", "_3cd4");
f.AddPathCommand(3, "ch4", "ch4", "_3cd4", "cd2");
f.AddPathCommand(6);
f.AddPathCommand(0, false, "none", undefined, undefined, undefined);
f.AddPathCommand(1, "ch", "y3");
f.AddPathCommand(2, "ch", "ch2");
f.AddPathCommand(3, "ch2", "ch2", "cd2", "cd4");
f.AddPathCommand(2, "x7", "t");
f.AddPathCommand(3, "ch2", "ch2", "_3cd4", "cd2");
f.AddPathCommand(2, "x6", "ch");
f.AddPathCommand(2, "x6", "y4");
f.AddPathCommand(3, "ch2", "ch2", "0", "cd4");
f.AddPathCommand(2, "ch2", "b");
f.AddPathCommand(3, "ch2", "ch2", "cd4", "cd2");
f.AddPathCommand(6);
f.AddPathCommand(1, "x3", "t");
f.AddPathCommand(3, "ch2", "ch2", "_3cd4", "cd2");
f.AddPathCommand(3, "ch4", "ch4", "cd4", "cd2");
f.AddPathCommand(2, "x4", "ch2");
f.AddPathCommand(1, "x6", "ch");
f.AddPathCommand(2, "x3", "ch");
f.AddPathCommand(1, "ch2", "y3");
f.AddPathCommand(3, "ch4", "ch4", "_3cd4", "cd2");
f.AddPathCommand(2, "ch", "y4");
f.AddPathCommand(1, "ch2", "b");
f.AddPathCommand(3, "ch2", "ch2", "cd4", "-5400000");
f.AddPathCommand(2, "ch", "y3");
break;
case "wave":
f.AddAdj("adj1", 15, "12500");
f.AddAdj("adj2", 15, "0");
f.AddGuide("a1", 10, "0", "adj1", "20000");
f.AddGuide("a2", 10, "-10000", "adj2", "10000");
f.AddGuide("y1", 0, "h", "a1", "100000");
f.AddGuide("dy2", 0, "y1", "10", "3");
f.AddGuide("y2", 1, "y1", "0", "dy2");
f.AddGuide("y3", 1, "y1", "dy2", "0");
f.AddGuide("y4", 1, "b", "0", "y1");
f.AddGuide("y5", 1, "y4", "0", "dy2");
f.AddGuide("y6", 1, "y4", "dy2", "0");
f.AddGuide("dx1", 0, "w", "a2", "100000");
f.AddGuide("of2", 0, "w", "a2", "50000");
f.AddGuide("x1", 4, "dx1");
f.AddGuide("dx2", 3, "of2", "0", "of2");
f.AddGuide("x2", 1, "l", "0", "dx2");
f.AddGuide("dx5", 3, "of2", "of2", "0");
f.AddGuide("x5", 1, "r", "0", "dx5");
f.AddGuide("dx3", 2, "dx2", "x5", "3");
f.AddGuide("x3", 1, "x2", "dx3", "0");
f.AddGuide("x4", 2, "x3", "x5", "2");
f.AddGuide("x6", 1, "l", "dx5", "0");
f.AddGuide("x10", 1, "r", "dx2", "0");
f.AddGuide("x7", 1, "x6", "dx3", "0");
f.AddGuide("x8", 2, "x7", "x10", "2");
f.AddGuide("x9", 1, "r", "0", "x1");
f.AddGuide("xAdj", 1, "hc", "dx1", "0");
f.AddGuide("xAdj2", 1, "hc", "0", "dx1");
f.AddGuide("il", 8, "x2", "x6");
f.AddGuide("ir", 16, "x5", "x10");
f.AddGuide("it", 0, "h", "a1", "50000");
f.AddGuide("ib", 1, "b", "0", "it");
f.AddHandleXY(undefined, "0", "0", "adj1", "0", "20000", "l", "y1");
f.AddHandleXY("adj2", "-10000", "10000", undefined, "0", "0", "xAdj", "b");
f.AddCnx("cd4", "xAdj2", "y1");
f.AddCnx("cd2", "x1", "vc");
f.AddCnx("_3cd4", "xAdj", "y4");
f.AddCnx("0", "x9", "vc");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "x2", "y1");
f.AddPathCommand(5, "x3", "y2", "x4", "y3", "x5", "y1");
f.AddPathCommand(2, "x10", "y4");
f.AddPathCommand(5, "x8", "y6", "x7", "y5", "x6", "y4");
f.AddPathCommand(6);
break;
case "wedgeEllipseCallout":
f.AddAdj("adj1", 15, "-20833");
f.AddAdj("adj2", 15, "62500");
f.AddGuide("dxPos", 0, "w", "adj1", "100000");
f.AddGuide("dyPos", 0, "h", "adj2", "100000");
f.AddGuide("xPos", 1, "hc", "dxPos", "0");
f.AddGuide("yPos", 1, "vc", "dyPos", "0");
f.AddGuide("sdx", 0, "dxPos", "h", "1");
f.AddGuide("sdy", 0, "dyPos", "w", "1");
f.AddGuide("pang", 5, "sdx", "sdy");
f.AddGuide("stAng", 1, "pang", "660000", "0");
f.AddGuide("enAng", 1, "pang", "0", "660000");
f.AddGuide("dx1", 7, "wd2", "stAng");
f.AddGuide("dy1", 12, "hd2", "stAng");
f.AddGuide("x1", 1, "hc", "dx1", "0");
f.AddGuide("y1", 1, "vc", "dy1", "0");
f.AddGuide("dx2", 7, "wd2", "enAng");
f.AddGuide("dy2", 12, "hd2", "enAng");
f.AddGuide("x2", 1, "hc", "dx2", "0");
f.AddGuide("y2", 1, "vc", "dy2", "0");
f.AddGuide("stAng1", 5, "dx1", "dy1");
f.AddGuide("enAng1", 5, "dx2", "dy2");
f.AddGuide("swAng1", 1, "enAng1", "0", "stAng1");
f.AddGuide("swAng2", 1, "swAng1", "21600000", "0");
f.AddGuide("swAng", 3, "swAng1", "swAng1", "swAng2");
f.AddGuide("idx", 7, "wd2", "2700000");
f.AddGuide("idy", 12, "hd2", "2700000");
f.AddGuide("il", 1, "hc", "0", "idx");
f.AddGuide("ir", 1, "hc", "idx", "0");
f.AddGuide("it", 1, "vc", "0", "idy");
f.AddGuide("ib", 1, "vc", "idy", "0");
f.AddHandleXY("adj1", "-2147483647", "2147483647", "adj2", "-2147483647", "2147483647", "xPos", "yPos");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("_3cd4", "il", "it");
f.AddCnx("cd4", "il", "ib");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("cd4", "ir", "ib");
f.AddCnx("0", "r", "vc");
f.AddCnx("_3cd4", "ir", "it");
f.AddCnx("pang", "xPos", "yPos");
f.AddRect("il", "it", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "xPos", "yPos");
f.AddPathCommand(2, "x1", "y1");
f.AddPathCommand(3, "wd2", "hd2", "stAng1", "swAng");
f.AddPathCommand(6);
break;
case "wedgeRectCallout":
f.AddAdj("adj1", 15, "-20833");
f.AddAdj("adj2", 15, "62500");
f.AddGuide("dxPos", 0, "w", "adj1", "100000");
f.AddGuide("dyPos", 0, "h", "adj2", "100000");
f.AddGuide("xPos", 1, "hc", "dxPos", "0");
f.AddGuide("yPos", 1, "vc", "dyPos", "0");
f.AddGuide("dx", 1, "xPos", "0", "hc");
f.AddGuide("dy", 1, "yPos", "0", "vc");
f.AddGuide("dq", 0, "dxPos", "h", "w");
f.AddGuide("ady", 4, "dyPos");
f.AddGuide("adq", 4, "dq");
f.AddGuide("dz", 1, "ady", "0", "adq");
f.AddGuide("xg1", 3, "dxPos", "7", "2");
f.AddGuide("xg2", 3, "dxPos", "10", "5");
f.AddGuide("x1", 0, "w", "xg1", "12");
f.AddGuide("x2", 0, "w", "xg2", "12");
f.AddGuide("yg1", 3, "dyPos", "7", "2");
f.AddGuide("yg2", 3, "dyPos", "10", "5");
f.AddGuide("y1", 0, "h", "yg1", "12");
f.AddGuide("y2", 0, "h", "yg2", "12");
f.AddGuide("t1", 3, "dxPos", "l", "xPos");
f.AddGuide("xl", 3, "dz", "l", "t1");
f.AddGuide("t2", 3, "dyPos", "x1", "xPos");
f.AddGuide("xt", 3, "dz", "t2", "x1");
f.AddGuide("t3", 3, "dxPos", "xPos", "r");
f.AddGuide("xr", 3, "dz", "r", "t3");
f.AddGuide("t4", 3, "dyPos", "xPos", "x1");
f.AddGuide("xb", 3, "dz", "t4", "x1");
f.AddGuide("t5", 3, "dxPos", "y1", "yPos");
f.AddGuide("yl", 3, "dz", "y1", "t5");
f.AddGuide("t6", 3, "dyPos", "t", "yPos");
f.AddGuide("yt", 3, "dz", "t6", "t");
f.AddGuide("t7", 3, "dxPos", "yPos", "y1");
f.AddGuide("yr", 3, "dz", "y1", "t7");
f.AddGuide("t8", 3, "dyPos", "yPos", "b");
f.AddGuide("yb", 3, "dz", "t8", "b");
f.AddHandleXY("adj1", "-2147483647", "2147483647", "adj2", "-2147483647", "2147483647", "xPos", "yPos");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "xPos", "yPos");
f.AddRect("l", "t", "r", "b");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "t");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "xt", "yt");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "r", "t");
f.AddPathCommand(2, "r", "y1");
f.AddPathCommand(2, "xr", "yr");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "r", "b");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "xb", "yb");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(2, "l", "b");
f.AddPathCommand(2, "l", "y2");
f.AddPathCommand(2, "xl", "yl");
f.AddPathCommand(2, "l", "y1");
f.AddPathCommand(6);
break;
case "wedgeRoundRectCallout":
f.AddAdj("adj1", 15, "-20833");
f.AddAdj("adj2", 15, "62500");
f.AddAdj("adj3", 15, "16667");
f.AddGuide("dxPos", 0, "w", "adj1", "100000");
f.AddGuide("dyPos", 0, "h", "adj2", "100000");
f.AddGuide("xPos", 1, "hc", "dxPos", "0");
f.AddGuide("yPos", 1, "vc", "dyPos", "0");
f.AddGuide("dq", 0, "dxPos", "h", "w");
f.AddGuide("ady", 4, "dyPos");
f.AddGuide("adq", 4, "dq");
f.AddGuide("dz", 1, "ady", "0", "adq");
f.AddGuide("xg1", 3, "dxPos", "7", "2");
f.AddGuide("xg2", 3, "dxPos", "10", "5");
f.AddGuide("x1", 0, "w", "xg1", "12");
f.AddGuide("x2", 0, "w", "xg2", "12");
f.AddGuide("yg1", 3, "dyPos", "7", "2");
f.AddGuide("yg2", 3, "dyPos", "10", "5");
f.AddGuide("y1", 0, "h", "yg1", "12");
f.AddGuide("y2", 0, "h", "yg2", "12");
f.AddGuide("t1", 3, "dxPos", "l", "xPos");
f.AddGuide("xl", 3, "dz", "l", "t1");
f.AddGuide("t2", 3, "dyPos", "x1", "xPos");
f.AddGuide("xt", 3, "dz", "t2", "x1");
f.AddGuide("t3", 3, "dxPos", "xPos", "r");
f.AddGuide("xr", 3, "dz", "r", "t3");
f.AddGuide("t4", 3, "dyPos", "xPos", "x1");
f.AddGuide("xb", 3, "dz", "t4", "x1");
f.AddGuide("t5", 3, "dxPos", "y1", "yPos");
f.AddGuide("yl", 3, "dz", "y1", "t5");
f.AddGuide("t6", 3, "dyPos", "t", "yPos");
f.AddGuide("yt", 3, "dz", "t6", "t");
f.AddGuide("t7", 3, "dxPos", "yPos", "y1");
f.AddGuide("yr", 3, "dz", "y1", "t7");
f.AddGuide("t8", 3, "dyPos", "yPos", "b");
f.AddGuide("yb", 3, "dz", "t8", "b");
f.AddGuide("u1", 0, "ss", "adj3", "100000");
f.AddGuide("u2", 1, "r", "0", "u1");
f.AddGuide("v2", 1, "b", "0", "u1");
f.AddGuide("il", 0, "u1", "29289", "100000");
f.AddGuide("ir", 1, "r", "0", "il");
f.AddGuide("ib", 1, "b", "0", "il");
f.AddHandleXY("adj1", "-2147483647", "2147483647", "adj2", "-2147483647", "2147483647", "xPos", "yPos");
f.AddCnx("_3cd4", "hc", "t");
f.AddCnx("cd2", "l", "vc");
f.AddCnx("cd4", "hc", "b");
f.AddCnx("0", "r", "vc");
f.AddCnx("cd4", "xPos", "yPos");
f.AddRect("il", "il", "ir", "ib");
f.AddPathCommand(0, undefined, undefined, undefined, undefined, undefined);
f.AddPathCommand(1, "l", "u1");
f.AddPathCommand(3, "u1", "u1", "cd2", "cd4");
f.AddPathCommand(2, "x1", "t");
f.AddPathCommand(2, "xt", "yt");
f.AddPathCommand(2, "x2", "t");
f.AddPathCommand(2, "u2", "t");
f.AddPathCommand(3, "u1", "u1", "_3cd4", "cd4");
f.AddPathCommand(2, "r", "y1");
f.AddPathCommand(2, "xr", "yr");
f.AddPathCommand(2, "r", "y2");
f.AddPathCommand(2, "r", "v2");
f.AddPathCommand(3, "u1", "u1", "0", "cd4");
f.AddPathCommand(2, "x2", "b");
f.AddPathCommand(2, "xb", "yb");
f.AddPathCommand(2, "x1", "b");
f.AddPathCommand(2, "u1", "b");
f.AddPathCommand(3, "u1", "u1", "cd4", "cd4");
f.AddPathCommand(2, "l", "y2");
f.AddPathCommand(2, "xl", "yl");
f.AddPathCommand(2, "l", "y1");
f.AddPathCommand(6);
break;
}
if (typeof prst === "string" && prst.length > 0) {
f.setPreset(prst);
}
return f;
} | fluent93/DocumentServer | OfficeWeb/sdk/Common/Drawings/Format/CreateGeometry.js | JavaScript | agpl-3.0 | 416,165 |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery.turbolinks
//= require jquery_ujs
//= require jquery-ui/sortable
//= require jquery-ui/effect-highlight
//= require jquery-ui/widget
//= require jquery-ui/mouse
//= require jquery.ui.touch-punch
//= require jquery.multi-select
//= require twitter/bootstrap
//= require turbolinks
//= require bootstrap-select
//= require jquery.multi-select
//= require fullcalendar
//= require lang-all
//= require moment
//= require filterrific/filterrific-jquery
//= require moment
//= require bootstrap-datetimepicker
//= require moment/de
//= require recurring_select
//= require_tree .
//= require jquery-ui/autocomplete
//= require bootstrap-multiselect
jQuery.fn.bootstrap_flash = function(message, options) {
options = options || {};
options.timeout = options.timeout || 5000;
options.type = options.type || 'notice';
options.type = options.type == 'notice'? 'success' : options.type;
options.type = options.type == 'alert'? 'warning' : options.type;
options.type = options.type == 'error'? 'danger' : options.type;
flashbox = $('<div />').addClass('alert fade in alert-' + options.type);
flashbox.append($('<button />').addClass('close').attr('data-dismiss', 'alert').text('×'));
flashbox.append(message);
this.append(flashbox);
setTimeout(function(){
$('button', flashbox).click();
}, options.timeout);
}
| chrisma/event-und-raumplanung | app/assets/javascripts/application.js | JavaScript | agpl-3.0 | 1,950 |
'use strict';
var alphabet = require('./alphabet');
function decode(id) {
var characters = alphabet.shuffled();
return {
version: characters.indexOf(id.substr(0, 1)) & 0x0f,
worker: characters.indexOf(id.substr(1, 1)) & 0x0f
};
}
module.exports = decode;
| seraum/fortpress | base/util/uid/decode.js | JavaScript | agpl-3.0 | 285 |
/*
* Copyright (c) 2015 Memorial Sloan-Kettering Cancer Center.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS
* FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder
* is on an "as is" basis, and Memorial Sloan-Kettering Cancer Center has no
* obligations to provide maintenance, support, updates, enhancements or
* modifications. In no event shall Memorial Sloan-Kettering Cancer Center be
* liable to any party for direct, indirect, special, incidental or
* consequential damages, including lost profits, arising out of the use of this
* software and its documentation, even if Memorial Sloan-Kettering Cancer
* Center has been advised of the possibility of such damage.
*/
/*
* This file is part of cBioPortal.
*
* cBioPortal is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
//TODO: Colors have conflicts when user save SELECTED_CASES/UNSELECTED_CALSES/ALL_CASES
/*
* @author Hongxin Zhang
* @date Apr. 2014
*/
/*
*
* Save curve function has been disabled.
*/
var StudyViewSurvivalPlotView = (function() {
var oData = [], //The data before processing, orginal data
oDataLength = 0,
aData = {}, //The data after processing
inputArr = [],
survivalPlot = {},
kmEstimator = "",
logRankTest = "",
plotsInfo = {},
numOfPlots = 0,
opts = [],
// if survival plot has been initialized, the status will be set to true.
initStatus = false;
var curveInfo = {};
/*This color will be used for ALL_CASES, SELECTED_CASES AND UNSELECTED_CASES*/
// var uColor = ["#000000", "#dc3912", "#2986e2"];
// var reserveName = ["ALL_CASES", "SELECTED_CASES", "UNSELECTED_CASES"];
// var reserveDisplayName = ["All cases", "Selected cases", "Unselected cases"];
/*Store data for unique curves: the color of these will be changed when user
* saving them, in that case, the survival plot needs to redraw this curve*/
// var uColorCurveData = {};
//Saved curve information is identified based on the curve name,
//in other words, the name of each curve is identical.
var savedCurveInfo = {};
/**
* @param {type} _id cureve id
* @returns {Array} return name array of saved curves
*/
function getSavedCurveName(_id) {
if (_.isObject(savedCurveInfo[_id])) {
return Object.keys(savedCurveInfo[_id]);
} else {
return [];
}
}
function getInitStatus() {
return initStatus;
}
/**
* Containing all jQuery related functions
* @param {type} _plotKey the plot key
*/
function addEvents(_plotKey) {
var _opts = opts[_plotKey],
_title = $("#" + _opts.divs.main + " charttitleh4").text();
if (!initStatus) {
StudyViewUtil.showHideDivision(
'#' + _opts.divs.main,
'#' + _opts.divs.header
);
}
// $("#" + _opts.divs.pdf).unbind('submit');
// $("#" + _opts.divs.pdf).submit(function() {
// setSVGElementValue(_opts.divs.bodySvg,
// _opts.divs.pdfValue, _plotKey, _title);
// });
// $("#" + _opts.divs.svg).unbind('submit');
// $("#" + _opts.divs.svg).submit(function() {
// setSVGElementValue(_opts.divs.bodySvg,
// _opts.divs.svgValue, _plotKey, _title);
// });
// $("#" + _opts.divs.menu).unbind("click");
// $("#" + _opts.divs.menu).click(function() {
// var _svgWidth = 0,
// _label = $("#" + _opts.divs.bodyLabel),
// _display = _label.css('display');
//
// if (_display === "none") {
// StudyViewUtil.changePosition(
// '#' + _opts.divs.main,
// '#' + _opts.divs.bodyLabel,
// "#dc-plots");
// $('#' + _opts.divs.bodyLabel).children('float', '');
// _label.css('display', 'block');
// _svgWidth = $("#" + _opts.divs.bodyLabel + " svg").width();
// $("#" + _opts.divs.bodyLabel).width(_svgWidth + 15);
// } else {
// _label.css('display', 'none');
// }
// });
// if ($("#" + _opts.divs.bodyLabel).css('display') === 'block') {
// var _svgWidth = $("#" + _opts.divs.bodyLabel + " svg").width();
// $("#" + _opts.divs.bodyLabel).width(_svgWidth + 15);
// }
$("#" + _opts.divs.body).css('opacity', '1');
$("#" + _opts.divs.loader).css('display', 'none');
$('#' + _opts.divs.downloadIcon).qtip('destroy', true);
$('#' + _opts.divs.downloadIcon).qtip({
id: "#" + _opts.divs.downloadIcon + "-qtip",
style: { classes: 'qtip-light qtip-rounded qtip-shadow' },
show: {event: "click", delay: 0},
hide: {fixed:true, delay: 100, event: "mouseout"},
position: {my:'top center',at:'bottom center', viewport: $(window)},
content: {
text:
"<div style='display:inline-block;'>"+
"<button id='"+_opts.divs.pdf+"' style=\"width:50px\">PDF</button>"+
"</div>"+
"<br>"+
"<div style='display:inline-block;'>"+
"<button id='"+_opts.divs.svg+"' style=\"width:50px\">SVG</button>"+
"</div>"+
"<br>"+
"<div style='display:inline-block;'>"+
"<button id='"+_opts.divs.txt+"' style=\"width:50px\">TXT</button>"+
"</div>"
},
events: {
render: function(event, api) {
$("#" + _opts.divs.pdf, api.elements.tooltip).click(function() {
setSVGElementValue(_opts.divs.bodySvg,
_opts.divs.pdfValue, _plotKey, _title, {
filename: "Survival_Plot_result-" + StudyViewParams.params.studyId + ".pdf",
contentType: "application/pdf",
servletName: "svgtopdf.do"
});
});
$("#" + _opts.divs.svg, api.elements.tooltip).click(function() {
setSVGElementValue(_opts.divs.bodySvg,
_opts.divs.svgValue, _plotKey, _title, {
filename: "Survival_Plot_result-" + StudyViewParams.params.studyId + ".svg",
});
});
$("#"+_opts.divs.txt).click(function(){
var content = '';
var subtitle;
switch(_plotKey) {
case 'OS':
subtitle = 'Overall Survival';
break;
case 'DFS':
subtitle = 'Disease Free Survival';
break;
}
var attributes;
attributes = aData[_plotKey];
var groupFlag = false;
if(curveInfo[_plotKey].length > 1)
groupFlag = true;
if(groupFlag) {
content = content + 'Sample ID' + '\t';
content = content + 'Status' + '\t';
content = content + subtitle + '\t';
content = content + 'Group';
var oldContent = {};
for(var i in attributes){
var row = '\r\n';
row += attributes[i].case_id + '\t';
row += attributes[i].originalStatus + '\t';
row += StudyViewUtil.restrictNumDigits(attributes[i].months) + '\t';
oldContent[attributes[i].case_id] = row;
}
var groupInfo = curveInfo[_plotKey];
for(var i=0; i<groupInfo.length; i++) {
var group = groupInfo[i];
var name = group.name;
var dataInfo = group.data.data.getData();
for(var j=0; j<dataInfo.length; j++) {
var data = dataInfo[j];
oldContent[data.case_id] += name;
}
}
for(var row in oldContent) {
content += oldContent[row];
}
} else {
content = content + 'Sample ID' + '\t';
content = content + 'Status' + '\t';
content = content + subtitle;
for(var i in attributes){
content += '\r\n';
content += attributes[i].case_id + '\t';
content += attributes[i].originalStatus + '\t';
content += StudyViewUtil.restrictNumDigits(attributes[i].months);
}
}
var downloadOpts = {
// filename: cancerStudyName + "_" + subtitle + ".txt",
filename: StudyViewParams.params.studyId + "_" + subtitle + ".txt",
contentType: "text/plain;charset=utf-8",
preProcess: false
};
cbio.download.initDownload(content, downloadOpts);
});
// $("#study-view-scatter-plot-pdf", api.elements.tooltip).submit(function(){
// $("#study-view-scatter-plot-pdf-name").val("Scatter_Plot_result-"+ StudyViewParams.params.studyId +".pdf");
// setSVGElementValue("study-view-scatter-plot-body-svg",
// "study-view-scatter-plot-pdf-value",
// scatterPlotOptions,
// _title);
// });
// $("#study-view-scatter-plot-svg", api.elements.tooltip).submit(function(){
// $("#study-view-scatter-plot-svg-name").val("Scatter_Plot_result-"+ StudyViewParams.params.studyId +".svg");
// setSVGElementValue("study-view-scatter-plot-body-svg",
// "study-view-scatter-plot-svg-value",
// scatterPlotOptions,
// _title);
// });
}
}
});
}
/**
* Be used to create svg/pdf file
* @param {type} _svgParentDivId svg container
* @param {type} _idNeedToSetValue set the modified svg element value into
* this selected element
* @param {type} _plotKey
* @param {type} _title the title appears above saved file
* content, Exp. 'Scatter Plot'
* @returns {undefined}
*/
function setSVGElementValue(_svgParentDivId, _idNeedToSetValue, _plotKey, _title, downloadOptions) {
var _svgElement, _svgLabels, _svgTitle,
_labelTextMaxLength = 0,
_numOfLabels = 0,
_svgWidth = 360,
_svgheight = 360;
_svgElement = cbio.download.serializeHtml($("#" + _svgParentDivId + " svg")[0]);
_svgLabels = $("#" + opts[_plotKey].divs.bodyLabel + " svg");
_svgLabels.find('image').remove();
_svgLabels.find('text').each(function(i, obj) {
var _value = $(obj).attr('oValue');
if (typeof _value === 'undefined') {
_value = $(obj).text();
}
if (_value.length > _labelTextMaxLength) {
_labelTextMaxLength = _value.length;
}
$(obj).text(_value);
_numOfLabels++;
});
_svgWidth += _labelTextMaxLength * 14;
if (_svgheight < _numOfLabels * 20) {
_svgheight = _numOfLabels * 20 + 40;
}
_svgLabels = cbio.download.serializeHtml(_svgLabels[0]);
_svgTitle = "<g><text text-anchor='middle' x='210' y='30' " +
"style='font-weight:bold'>" + _title + "</text></g>";
_svgElement = "<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='" + _svgWidth + "px' height='" + _svgheight + "px' style='font-size:14px'>" +
_svgTitle + "<g transform='translate(0,40)'>" +
_svgElement + "</g><g transform='translate(370,50)'>" +
_svgLabels + "</g></svg>";
cbio.download.initDownload(
_svgElement, downloadOptions);
$("#" + opts[_plotKey].divs.bodyLabel + " svg").remove();
drawLabels(_plotKey);
//The style has been reset because of the addEvents function, so we
//need to change the related components manully
$("#" + opts[_plotKey].divs.header).css('display', 'block');
$("#" + opts[_plotKey].divs.main + " .study-view-drag-icon").css('display', 'block');
}
function highlightCurve(_curveId) {
var _hiddenDots = $("#" + _curveId + "-dots").find('path'),
_hiddenDotsLength = _hiddenDots.length;
for ( var i = 0; i < _hiddenDotsLength; i++) {
$(_hiddenDots[i]).css('opacity', '.6');
}
$("#" + _curveId + "-line").css('stroke-width', '3px');
}
function resetCurve(_curveId) {
var _hiddenDots = $("#" + _curveId + "-dots").find('path'),
_hiddenDotsLength = _hiddenDots.length;
for ( var i = 0; i < _hiddenDotsLength; i++) {
$(_hiddenDots[i]).css('opacity', '0');
}
$("#" + _curveId + "-line").css('stroke-width', '');
}
//Save all related information with this curve. The saved curve(s) will be
//showed again when redrawing survival plots
function saveCurveInfoFunc(_this, _plotKey) {
var _selectedIndex = $($(_this).parent()).index(),
_selectedCurveInfo = curveInfo[_plotKey][_selectedIndex];
if (!savedCurveInfo.hasOwnProperty(_plotKey)) {
savedCurveInfo[_plotKey] = {};
}
/*
if (StudyViewUtil.arrayFindByValue(uColor, _selectedCurveInfo.color)) {
var _color = colorSelection('');
//If no more color available, have to set the color here
if (!_color) {
_color = '#111111';
}
var _data = uColorCurveData[_selectedCurveInfo.color];
survivalPlot[_opts.index].removeCurve(_selectedCurveInfo.color.toString().substring(1));
_data.settings.line_color = _color;
_data.settings.mouseover_color = _color;
_data.settings.curveId = _color.toString().substring(1);
survivalPlot[_opts.index].addCurve(_data);
_selectedCurveInfo.color = _color;
}*/
savedCurveInfo[_plotKey][_selectedCurveInfo.name] = _selectedCurveInfo;
removeElement($(_this).parent());
//After saving curve, the related curve info should be delete from
//curvesInfo
StudyViewUtil.arrayDeleteByIndex(curveInfo[_plotKey], _selectedIndex);
redrawLabel(_plotKey);
}
function removeElement(_this) {
$(_this).remove();
}
//Move saved curve infomation back to curveInfo
function undoSavedCurve(_curveName, _plotKey) {
var _targetCurve = savedCurveInfo[_plotKey][_curveName];
curveInfo[_plotKey].push(_targetCurve);
}
function removeSavedCurveFunc(_curveName, _plotKey) {
delete savedCurveInfo[_plotKey][_curveName];
}
function removeCurveFunc(_index, _plotKey) {
curveInfo[_plotKey].splice(_index, 1);
}
//When user click pin icon, this dialog will be popped up and remind user
//input the curve name.
function nameCurveDialog(_this, _callBackFunc, _plotKey) {
var _parent = $(_this).parent(),
_value = $(_parent).find("text:first").attr('oValue'),
_qtipContent = '<input type="text" style="float:left" value="'+
_value+'"/><button style="float:left">OK</button>';
$(_this).qtip({
content: {
text: $(_qtipContent), // Create an input (style it using CSS)
title: 'Please name your curve',
button: 'Close'
},
position: {
my: 'left bottom',
at: 'top right',
target: $(_this),
viewport: $(window)
},
show: {
ready: true
},
hide: false,
style: {
tip: true,
classes: 'qtip-blue'
},
events: {
render: function(event, api) {
// Apply an event to the input element so we can close the tooltip when needed
$('button', api.elements.tooltip).bind('click', function() {
var _curveName = $('input', api.elements.tooltip).val();
var _modifiedName = _curveName;
if (_curveName === '') {
var _qtip = jQuery.extend(true, {}, StudyViewBoilerplate.warningQtip);
_qtip.content.text = $("<span>No Name Inputed</span>");
_qtip.position.target = $(_this);
$(_parent).qtip(_qtip);
} else if (getSavedCurveName().indexOf(_curveName) !== -1) {
var _qtip = jQuery.extend(true, {}, StudyViewBoilerplate.warningQtip);
_qtip.content.text = $("<span>The curve name exists</span>");
_qtip.position.target = $(_this);
$(_parent).qtip(_qtip);
} else {
var _index = _parent.find('text').attr('id');
//Destroy previous qtip first
$('#' + _index).qtip('destroy', true);
if (_curveName.length > 7) {
var _qtip = jQuery.extend(true, {}, StudyViewBoilerplate.pieLabelQtip);
_qtip.content.text = _curveName;
_qtip.position.my = "left bottom";
_qtip.position.at = "top right";
$('#' + _index).qtip(_qtip);
_modifiedName = _curveName.substring(0, 5) + "...";
}
_parent.find('text')
.text(_modifiedName)
.attr('value', _curveName);
//Update curve name with user inputted name
curveInfo[_plotKey][$($(_this).parent()).index()].name = _curveName;
_callBackFunc(_this, _plotKey);
}
//Set to True: call .hide() before destroy
api.destroy(true);
});
}
}
});
}
/*
* Generate survival plot division
* @param {object} _opt
*/
function createDiv(_opt) {
var _div = "<div id='" + _opt.divs.main +
"' class='study-view-dc-chart w2 h1half study-view-survival-plot'>" +
"<div id='" + _opt.divs.headerWrapper +
"' class='study-view-survival-plot-header-wrapper'>" +
"<chartTitleH4 oValue='" + _opt.title + "' id='" + _opt.divs.title +
"' class='study-view-survival-plot-title'>" + _opt.title + "</chartTitleH4>" +
"<div id='" + _opt.divs.header +
"' class='study-view-survival-plot-header' style='float:right'>" +
// "<form style='display:inline-block; float:left; margin-right:5px' action='svgtopdf.do' method='post' id='" + _opt.divs.pdf + "'>" +
// "<input type='hidden' name='svgelement' id='" + _opt.divs.pdfValue + "'>" +
// "<input type='hidden' name='filetype' value='pdf'>" +
// "<input type='hidden' id='" + _opt.divs.pdfName + "' name='filename' value=''>" +
// "<input type='submit' style='font-size:10px' value='PDF'>" +
// "</form>" +
// "<form style='display:inline-block; float:left; margin-right:5px' action='svgtopdf.do' method='post' id='" + _opt.divs.svg + "'>" +
// "<input type='hidden' name='svgelement' id='" + _opt.divs.svgValue + "'>" +
// "<input type='hidden' name='filetype' value='svg'>" +
// "<input type='hidden' id='" + _opt.divs.svgName + "' name='filename' value=''>" +
// "<input type='submit' style='font-size:10px' value='SVG'>" +
// "</form>" +
// "<img id='" + _opt.divs.menu + "' class='study-view-menu-icon' style='float:left; width:10px; height:10px;margin-top:4px; margin-right:4px;' class='study-view-menu-icon' src='images/menu.svg'/>" +
"<img id='"+_opt.divs.downloadIcon+"' class='study-view-download-icon' src='images/in.svg' alt='download' />" +
"<img style='float:left; width:10px; height:10px;margin-top:4px; margin-right:4px;' class='study-view-drag-icon' src='images/move.svg' alt='move' />" +
"<span class='study-view-chart-plot-delete study-view-survival-plot-delete'>x</span>" +
"</div></div>" +
"<div id='" + _opt.divs.loader + "' class='study-view-loader'>" +
"<img src='images/ajax-loader.gif' alt='loading' /></div>" +
"<div id='" + _opt.divs.body + "' class='study-view-survival-plot-body'>" +
"<div id='" + _opt.divs.bodySvg + "' style='float:left'></div>" +
"<div id='" + _opt.divs.bodyLabel +
"' class='study-view-survival-plot-body-label'></div>" +
"</div></div>";
$("#study-view-charts").append(_div);
}
/*
Convert input data into survivalProxy required format
@param _plotInfo the plot basic information
---- format----
{
identifier1: {
name: '',
property: [''],
status: [['']],
caseLists: {
identifier1: {
caseIds: [],
color: ''
},
identifier1:
}
},
identifier1:
}
*/
function dataProcess(_plotInfo) {
var _numOfValuedCase = 0;
var _plotData = {};
for (var i = 0; i < oDataLength; i++) {
if (oData[i].hasOwnProperty(_plotInfo.property[0]) && oData[i].hasOwnProperty(_plotInfo.property[1])) {
var _time = oData[i][_plotInfo.property[0]],
_status = oData[i][_plotInfo.property[1]].toUpperCase(),
_caseID = oData[i].CASE_ID;
_plotData[_caseID] = {};
_plotData[_caseID].case_id = _caseID;
if (_plotInfo.status[0].indexOf(_status) !== -1) {
_plotData[_caseID].status = '0';
} else if (_plotInfo.status[1].indexOf(_status) !== -1) {
_plotData[_caseID].status = '1';
} else {
_plotData[_caseID].status = 'NA';
}
_plotData[_caseID].originalStatus = _status;
if (isNaN(_time)) {
_plotData[_caseID].months = 'NA';
} else {
_plotData[_caseID].months = Number(_time);
}
}
}
//Refind search data, if only one or no case has months information,
//the survival plot should not be initialized.
for (var key in _plotData) {
if (_plotData[key].months !== 'NA') {
_numOfValuedCase++;
}
}
if (_numOfValuedCase < 2) {
_plotData = {};
}
return _plotData;
}
/*
* Put all cases into groups based on keys in _seperateAttr, if no _seoerateAttr
* inputted, the _casesInfo will not be changed.
*
* @param {object} _casesInfo cases information object, if _seperateAttr
* initialized, the _casesInfo only include group name and
* group color. If not initalzied, it includes all information.
* @param {string} _seperateAttr The unique attribute, like 'OS_MONTHS'
*/
function grouping(_casesInfo, _seperateAttr) {
//If seperation attribute has been defined, the data will be put in
//different group based on this attribute.
var _trimedCasesInfo = jQuery.extend(true, {}, _casesInfo);
/*
if (_seperateAttr !== '' && _seperateAttr) {
for (var i = 0; i < oDataLength; i++) {
var _arr = oData[i][_seperateAttr],
_caseID = oData[i].CASE_ID;
if (!_trimedCasesInfo.hasOwnProperty(_arr)) {
if (_trimedCasesInfo.hasOwnProperty('NA')) {
_trimedCasesInfo['NA'].caseIds.push(_caseID);
} else {
//TODO: User may only draw survial based on current groups.
//StudyViewUtil.echoWarningMessg("Unexpected attribute: " + _arr);
}
} else {
_trimedCasesInfo[_arr].caseIds.push(_caseID);
}
}
}*/
return _trimedCasesInfo;
}
/*
* Initilize all options for current survival plot
* @param _index The survival plot identifier
* @return _opts The initilized option object
*/
function initOpts(_index, _key) {
var _opts = {};
_opts.index = _index;
_opts.key = _key;
_opts.title = plotsInfo[_key].name;
_opts.divs = {};
_opts.divs.main = "study-view-survival-plot-" + _index;
_opts.divs.title = "study-view-survival-pot-title-" + _index;
_opts.divs.header = "study-view-survival-plot-header-" + _index;
_opts.divs.headerWrapper = "study-view-survival-plot-header-wrapper-" + _index;
_opts.divs.body = "study-view-survival-plot-body-" + _index;
_opts.divs.bodySvg = "study-view-survival-plot-body-svg-" + _index;
_opts.divs.bodyLabel = "study-view-survival-plot-body-label-" + _index;
_opts.divs.pdf = "study-view-survival-plot-pdf-" + _index;
_opts.divs.pdfName = "study-view-survival-plot-pdf-name-" + _index;
_opts.divs.pdfValue = "study-view-survival-plot-pdf-value-" + _index;
_opts.divs.svg = "study-view-survival-plot-svg-" + _index;
_opts.divs.svgName = "study-view-survival-plot-svg-name-" + _index;
_opts.divs.svgValue = "study-view-survival-plot-svg-value-" + _index;
_opts.divs.txt = "study-view-survival-plot-tsv-" + _index;
_opts.divs.menu = "study-view-survival-plot-menu-" + _index;
_opts.divs.loader = "study-view-survival-plot-loader-" + _index;
_opts.divs.downloadIcon = "study-view-survival-download-icon-" + _index;
//plot in _opts is for survival plot
_opts.plot = jQuery.extend(true, {}, SurvivalCurveBroilerPlate);
_opts.plot.text.xTitle = "Months Survival";
_opts.plot.text.yTitle = "Surviving";
_opts.plot.text.qTips.estimation = "Survival estimate";
_opts.plot.text.qTips.censoredEvent = "Time of last observation";
_opts.plot.text.qTips.failureEvent = "Time of death";
_opts.plot.text.qTips.id = 'Sample ID';
_opts.plot.settings.canvas_width = 365;
_opts.plot.settings.canvas_height = 310;
_opts.plot.settings.chart_width = 290;
_opts.plot.settings.chart_height = 250;
_opts.plot.settings.chart_left = 70;
_opts.plot.settings.chart_top = 5;
_opts.plot.settings.pval_x = 295;
_opts.plot.settings.pval_y = 35;
_opts.plot.settings.include_legend = false;
_opts.plot.settings.include_pvalue = false;
_opts.plot.style.axisX_title_pos_x = 200;
_opts.plot.style.axisX_title_pos_y = 295;
_opts.plot.style.axisY_title_pos_x = -120;
_opts.plot.style.axisY_title_pos_y = 20;
_opts.plot.style.pval_font_size = 10;
_opts.plot.style.pval_font_style = 'normal';
_opts.plot.divs.curveDivId = "study-view-survival-plot-body-svg-" + _index;
_opts.plot.divs.headerDivId = "";
_opts.plot.divs.infoTableDivId = "study-view-survival-plot-table-" + _index;
_opts.plot.text.infoTableTitles.total_cases = "#total cases";
_opts.plot.text.infoTableTitles.num_of_events_cases = "#cases deceased";
_opts.plot.text.infoTableTitles.median = "median months survival";
_opts.plot.text.pValTitle = 'p=';
_opts.plot.qtipFunc = cbio.util.getLinkToSampleView;
if(_key === 'DFS') {
_opts.plot.text.qTips.estimation = "Disease free estimate";
}
return _opts;
}
function redrawView(_plotKey, _casesInfo) {
var _color = "";
var opts = {
settings:{
include_pvalue: false
}
};
var data = {};
inputArr = [];
kmEstimator = new KmEstimator();
logRankTest = new LogRankTest();
//confidenceIntervals = new ConfidenceIntervals();
curveInfo[_plotKey] = [];
for (var key in _casesInfo) {
var instanceData = new SurvivalCurveProxy();
instanceData.init(aData[_plotKey], _casesInfo[key].caseIds, kmEstimator, logRankTest);
//If no data return, will no draw this curve
if (instanceData.getData().length > 0) {
var instanceSettings = jQuery.extend(true, {}, SurvivalCurveBroilerPlate.subGroupSettings);
_color = _casesInfo[key].color;
if (_color) {
instanceSettings.line_color = _color;
instanceSettings.mouseover_color = _color;
instanceSettings.curveId = _plotKey + "-" + _color.toString().substring(1);
//Assemble the input
var instance = {};
instance.data = instanceData;
instance.settings = instanceSettings;
inputArr.push(instance);
// if (StudyViewUtil.arrayFindByValue(reserveName, key)) {
// uColorCurveData[uColor[reserveName.indexOf(key)]] = instance;
// }
var _curveInfoDatum = {
name: key,
color: _color,
caseList: _casesInfo[key].color,
data: instance
};
curveInfo[_plotKey].push(_curveInfoDatum);
} else {
//alert("Sorry, you can not create more than 30 curves.");
//break;
}
}
}
var inputArrLength = inputArr.length;
for (var i = 0; i < inputArrLength; i++) {
survivalPlot[_plotKey].addCurve(inputArr[i]);
}
if(inputArrLength === 2) {
opts.settings.include_pvalue = true;
logRankTest.calc(inputArr[0].data.getData(), inputArr[1].data.getData(), function(_pval){
data.pval = _pval;
survivalPlot[_plotKey].updateView(data, opts);
});
}else{
survivalPlot[_plotKey].updateView({}, opts);
}
}
/*
* Initialize survival plot by calling survivalCurve component
*
* @param {object} _casesInfo Grouped cases information.
* @param {object} _data The processed data by function dataprocess.
* @param {object} _plotIndex The selected plot indentifier.
*/
function initView(_casesInfo, _data, _plotKey) {
var _color = "",
inputArr = [];
kmEstimator = new KmEstimator();
logRankTest = new LogRankTest();
//confidenceIntervals = new ConfidenceIntervals();
curveInfo[_plotKey] = [];
for (var key in _casesInfo) {
var instanceData = new SurvivalCurveProxy();
instanceData.init(_data, _casesInfo[key].caseIds, kmEstimator, logRankTest);
//If no data return, will no draw this curve
if (instanceData.getData().length > 0) {
var instanceSettings = jQuery.extend(true, {}, SurvivalCurveBroilerPlate.subGroupSettings);
_color = _casesInfo[key].color;
if (_color) {
instanceSettings.line_color = _color;
instanceSettings.mouseover_color = _color;
instanceSettings.curveId = _plotKey + "-" + _color.toString().substring(1);
//Assemble the input
var instance = {};
instance.data = instanceData;
instance.settings = instanceSettings;
inputArr.push(instance);
// if (StudyViewUtil.arrayFindByValue(reserveName, key)) {
// uColorCurveData[uColor[reserveName.indexOf(key)]] = instance;
// }
var _curveInfoDatum = {
name: key,
color: _color,
caseList: _casesInfo[key].caseIds,
data: instance
};
curveInfo[_plotKey].push(_curveInfoDatum);
} else {
alert("Sorry, you can not create more than 30 curves.");
break;
}
}
}
if(curveInfo[_plotKey].size === 2) {
opts[_plotKey].plot.settings.include_pvalue = true;
}
//We disabled pvalue calculation in here
survivalPlot[_plotKey] = new SurvivalCurve();
survivalPlot[_plotKey].init(inputArr, opts[_plotKey].plot);
}
/**
* Redraw curves based on selected cases and unselected cases
*
* @param {type} _casesInfo the same as _casesInfo in initView
* @param {type} _selectedAttr the selected attribute which will be used to
* seperate cases. Can be false or ''.
*/
function redraw(_casesInfo, _selectedAttr) {
for (var key in plotsInfo) {
var _curveInfoLength = curveInfo[key].length;
for (var i = 0; i < _curveInfoLength; i++) {
survivalPlot[key].removeCurve(key+ "-" + curveInfo[key][i].color.toString().substring(1));
}
$("#" + opts[key].divs.main).qtip('destroy', true);
kmEstimator = "";
logRankTest = "";
delete curveInfo[key];
var _tmpCasesInfo = grouping(_casesInfo, _selectedAttr[0]);
redrawView(key, _tmpCasesInfo);
drawLabels(key);
if (typeof _selectedAttr !== 'undefined') {
StudyViewUtil.changeTitle("#" + opts[key].divs.main + " chartTitleH4", _selectedAttr[1], false);
}
addEvents(key);
}
}
/**
* The main function to draw survival plot labels.
*
* @param {type} _plotKey the current selected plot indentifier.
*/
function drawLabels(_plotKey) {
var _svg = '',
_curveInfo = curveInfo[_plotKey],
_savedCurveInfo = savedCurveInfo[_plotKey],
_newLabelsLength = _curveInfo.length,
_savedLabelsLength = getSavedCurveName(_plotKey).length,
_numOfLabels = _newLabelsLength + _savedLabelsLength,
_width = 0,
_height = _numOfLabels * 20 - 5;
$("#" + opts[_plotKey].divs.main + " svg").qtip('destroy', true);
if (_numOfLabels === 0) {
$("#" + opts[_plotKey].divs.bodyLabel).css('display', 'none');
} else {
//TODO: this width is calculated by maximum name length multiply
//a constant, need to be changed later
for (var i = 0; i < _newLabelsLength; i++) {
if (_curveInfo[i].name.length * 10 > _width) {
_width = _curveInfo[i].name.length * 10;
}
}
for (var key in _savedCurveInfo) {
if (_savedCurveInfo[key].name.length * 10 > _width) {
_width = _savedCurveInfo[key].name.length * 10;
}
}
//_width += 45;
_width += 30;
$("#" + opts[_plotKey].divs.bodyLabel + " svg").remove();
if (_savedLabelsLength > 0) {
_height += 20;
}
_svg = d3.select("#" + opts[_plotKey].divs.bodyLabel)
.append("svg")
.attr('width', _width)
.attr("height", _height);
drawNewLabels(_plotKey, _svg, 0, _width);
if (_savedLabelsLength > 0) {
//separator's height is 20px;
drawSeparator(_svg, _newLabelsLength * 20, _width);
drawSavedLabels(_plotKey, _svg, (_newLabelsLength + 1) * 20, _width);
}
}
$("#" + opts[_plotKey].divs.main + " svg").qtip({
id: opts[_plotKey].divs.bodyLabel + "-qtip",
style: { classes: 'qtip-light qtip-rounded qtip-shadow forceZindex'},
show: {event: "mouseover", delay: 0},
hide: {fixed:true, delay: 100, event: "mouseout"},
position: {my:'left top',at:'top right', viewport: $(window)},
content: $("#" + opts[_plotKey].divs.bodyLabel).html(),
events: {
render: function(event, api) {
$('svg image', api.elements.tooltip).hover(function() {
$(this).css('cursor', 'pointer');
});
$('svg image', api.elements.tooltip).unbind('click');
$('svg image', api.elements.tooltip).click(function() {
if ($(this).attr('name') === 'pin') {
//The following functions will be excuted after user inputting
//the curve name, so we need to give it a call back function.
nameCurveDialog(this, saveCurveInfoFunc, _plotKey);
} else if ($(this).attr('name') === 'close') {
var _parent = $(this).parent(),
_name = $(_parent).find('text').attr('oValue'),
_color = $(_parent).find('rect').attr('fill'),
_index = $(this).parent().index();
$(_parent).remove();
removeCurveFunc(_index, _plotKey);
redrawLabel(_plotKey);
survivalPlot[_plotKey].removeCurve(_plotKey + "-" + _color.toString().substring(1));
} else if ($(this).attr('name') === 'saved-close') {
var _parent = $(this).parent(),
_name = $(_parent).find('text').attr('oValue');
$(_parent).remove();
undoSavedCurve(_name, _plotKey);
removeSavedCurveFunc(_name, _plotKey);
redrawLabel(_plotKey);
} else {
//TODO: Add more function
}
});
//$('#' + _opts.divs.main + ' svg rect').unbind('hover');
$('svg rect', api.elements.tooltip).hover(function() {
$(this).css('cursor', 'pointer');
});
$('svg rect', api.elements.tooltip).unbind('click');
$('svg rect', api.elements.tooltip).click(function() {
var _text = $($(this).parent()).find('text:first'),
_rgbRect = StudyViewUtil.rgbStringConvert($(this).css('fill')),
_rgbText = StudyViewUtil.rgbStringConvert($(_text).css('fill')),
_rectColor = StudyViewUtil.rgbToHex(_rgbRect[0], _rgbRect[1], _rgbRect[2]),
_textColor = StudyViewUtil.rgbToHex(_rgbText[0], _rgbText[1], _rgbText[2]);
if (_textColor === '#000000') {
$(_text).css('fill', 'red');
highlightCurve(_plotKey + "-" + _rectColor.substring(1));
} else {
$(_text).css('fill', 'black');
resetCurve(_plotKey + "-" + _rectColor.substring(1));
}
});
}
}
});
}
/**
* Draw 'Saved Curves' and black line between new labels and saved labels
*
* @param _svg the svg container.
* @param _yPosition the vertical position of this separator
* @param _width the width of svg
*/
function drawSeparator(_svg, _yPosition, _width) {
var _g = _svg.append("g").attr('transform', 'translate(0, ' + _yPosition + ')');
_g.append("text")
.attr('x', _width / 2)
.attr('y', 12)
.attr('fill', 'black')
.attr('text-anchor', 'middle')
.attr('class', 'study-view-survival-label-font-1')
.text('Saved Curves');
_g.append("line")
.attr('x1', 0)
.attr('y1', 16)
.attr('x2', _width)
.attr('y2', 16)
.attr('stroke', 'black')
.attr('stroke-width', '2px');
}
/**
* Draw saved labels if have any
*
* @param _plotKey the plot identifier
* @param _svg
* @param _startedIndex
* @param _svgWidth
*/
function drawSavedLabels(_plotKey, _svg, _startedIndex, _svgWidth) {
var _savedLabelsLength = getSavedCurveName(_plotKey).length,
_savedCurveInfo = savedCurveInfo[_plotKey];
if (_savedLabelsLength > 0) {
var _index = 0;
for (var key in _savedCurveInfo) {
drawLabelBasicComponent(_plotKey, _svg, _index + _startedIndex, _savedCurveInfo[key].color, _savedCurveInfo[key].name, 'close', _svgWidth);
_index++;
}
}
}
/**
* Draw basic label componets: one rect, one lable name,
* icons(pin or delete icons)
*
* @param {type} _plotKey the current selected plot identifier.
* @param {type} _svg the svg where to draw labels.
* @param {type} _index the label index in current plot.
* @param {type} _color the label color.
* @param {type} _textName the label name.
* @param {type} _iconType 'pin' or 'close', pin will draw pin icon and
* delete icon, close will only draw delete icon.
* @param {type} _svgWidth the svg width.
*/
function drawLabelBasicComponent(_plotKey, _svg, _index, _color, _textName, _iconType, _svgWidth) {
var _g = _svg.append("g").attr('transform', 'translate(0, ' + (_index * 20) + ')');
_g.append("rect")
.attr('width', 10)
.attr('height', 10)
.attr('fill', _color);
_g.append("text")
.attr('x', 15)
.attr('y', 10)
.attr('fill', 'black')
.attr('font', '12px')
.attr('id', 'survival_label_text_' + _plotKey + "_" + _index)
.attr('oValue', _textName)
.text(_textName);
if (_iconType === 'pin') {
// Temporary disable save curve function
// var _image = _g.append("image")
// .attr('x', _svgWidth - 30)
// .attr('y', '0')
// .attr('height', '10px')
// .attr('width', '10px');
//
// _image.attr('xlink:href', 'images/pushpin.svg');
// _image.attr('name', 'pin');
var _image = _g.append("image")
.attr('x', _svgWidth - 15)
.attr('y', '1')
.attr('height', '8px')
.attr('width', '8px');
_image.attr('xlink:href', 'images/close.svg');
_image.attr('name', 'close');
} else if (_iconType === 'close') {
var _image = _g.append("image")
.attr('x', _svgWidth - 15)
.attr('y', '1')
.attr('height', '8px')
.attr('width', '8px');
_image.attr('xlink:href', 'images/close.svg');
_image.attr('name', 'saved-close');
} else {
//TODO:
}
}
/**
* Calling drawLabelBasicComponent to draw all new labels including
* curve color, name and icontype = 'pin'.
*
* @param {type} _plotKey the selected plot identifier.
* @param {type} _svg the svg where to draw labels.
* @param {type} _startedIndex
* @param {type} _svgWidth the svg width.
*/
function drawNewLabels(_plotKey, _svg, _startedIndex, _svgWidth) {
var _numOfLabels = curveInfo[_plotKey].length;
for (var i = 0; i < _numOfLabels; i++) {
drawLabelBasicComponent(
_plotKey,
_svg,
i + _startedIndex,
curveInfo[_plotKey][i].color,
curveInfo[_plotKey][i].name,
'pin',
_svgWidth);
}
}
/**
* Will be called when user pin/delete labeles
* @param {type} _plotKey
*/
function redrawLabel(_plotKey) {
$("#" + opts[_plotKey].divs.bodyLabel + " svg").remove();
drawLabels(_plotKey);
addEvents(_plotKey);
}
/**
*
* @param {type} _plotsInfo
* @param {type} _data all data before prcessing, and clone it to oData.
*/
function createCurves(_plotsInfo, _data) {
var _keys = Object.keys(_plotsInfo);
numOfPlots = Object.keys(_plotsInfo).length;
plotsInfo = _plotsInfo;
oData = _data;
oDataLength = _data.length;
for (var i = 0; i < numOfPlots; i++) {
plotBasicFuncs(i, _keys[i]);
}
//The initStatus will be used from other view
initStatus = true;
}
function plotBasicFuncs(_index, _key) {
var _casesInfo;
aData[_key] = {};
opts[_key] = {};
aData[_key] = dataProcess(plotsInfo[_key]);
/*
for(var _key in aData[_index]){
console.log("-----");
console.log(_key);
console.log(aData[_index][_key].months);
console.log(aData[_index][_key].status);
console.log();
}
*/
//If no data returned, this survival plot should not be initialized.
if (Object.keys(aData[_key]).length !== 0) {
opts[_key] = initOpts(_index, _key);
createDiv(opts[_key]);
_casesInfo = grouping(plotsInfo[_key].caseLists, '');
initView(_casesInfo, aData[_key], _key);
drawLabels(_key);
addEvents(_key);
} else {
console.log("No data for Survival Plot: " + _key);
}
}
function getNumOfPlots() {
return numOfPlots;
}
function detectLabelPosition() {
for (var i = 0; i < numOfPlots; i++) {
if ($("#" + opts[i].divs.bodyLabel).css('display') === 'block') {
StudyViewUtil.changePosition(
'#' + opts[i].divs.main,
'#' + opts[i].divs.bodyLabel,
"#summary");
}
}
}
return {
init: function(_plotsInfo, _data) {
createCurves(_plotsInfo, _data);
},
getInitStatus: getInitStatus,
redraw: redraw,
redrawLabel: redrawLabel,
getNumOfPlots: getNumOfPlots,
detectLabelPosition: detectLabelPosition
};
})(); | shrumit/cbioportal-gsoc-final | portal/src/main/webapp/js/src/study-view/view/StudyViewSurvivalPlotView.js | JavaScript | agpl-3.0 | 50,320 |
var searchData=
[
['scalaradvectionartdiff',['ScalarAdvectionArtDiff',['../class_scalar_advection_art_diff.html#ae7e81248053af98f4a0aeb3bdf6b55b8',1,'ScalarAdvectionArtDiff']]],
['scalaradvectionartdiffnobcbc',['ScalarAdvectionArtDiffNoBCBC',['../class_scalar_advection_art_diff_no_b_c_b_c.html#a8f70d330617fa5b7c1eb089f0803787b',1,'ScalarAdvectionArtDiffNoBCBC']]],
['scalartransportbase',['ScalarTransportBase',['../class_scalar_transport_base.html#abd16e28f828e00f930c2fa07272fa5a1',1,'ScalarTransportBase']]],
['scalartransporttimederivative',['ScalarTransportTimeDerivative',['../class_scalar_transport_time_derivative.html#a5d48ccb97444c67708a920b8f7d7b901',1,'ScalarTransportTimeDerivative']]],
['selffissioneigenkernel',['SelfFissionEigenKernel',['../class_self_fission_eigen_kernel.html#a0747b8bccb2986134c94adfe8dc76474',1,'SelfFissionEigenKernel']]],
['sigmar',['SigmaR',['../class_sigma_r.html#a9d3593d181f130870331c54fb7b74144',1,'SigmaR']]],
['splinecomputeqpproperties',['splineComputeQpProperties',['../class_generic_moltres_material.html#a09ce2406367ed9e1a2b35235eb71c9d2',1,'GenericMoltresMaterial']]],
['splineconstruct',['splineConstruct',['../class_generic_moltres_material.html#a466f5e5e7b898da7cc6771c83cc7eda3',1,'GenericMoltresMaterial']]]
];
| lindsayad/moltres | docs/search/functions_d.js | JavaScript | lgpl-2.1 | 1,284 |
CATS.Model.Contest = Classify(CATS.Model.Entity, {
init: function () {
this.$$parent();
this.type = "contest";
this.name = null;
this.url = null;
this.problems_url = null;
this.full_name = null;
this.affiliation = null;
this.start_time = null;
this.finish_time = null;
this.freeze_time = null;
this.unfreeze_time = null;
this.is_open_registration = null;
this.scoring = null;//*: "acm", "school"
this.is_all_results_visible = true;
this.problems = [];
this.users = [];
this.prizes = [];
this.runs = [];
},
add_object: function (obj) {
if ($.inArray(obj.id, this[obj.type + "s"]) == -1)
this[obj.type + "s"].push(obj.id);
},
sort_runs: function () {
this.runs.sort(function (a, b) {
return CATS.App.runs[a].start_processing_time - CATS.App.runs[b].start_processing_time;
});
},
get_problem_index: function (p_id) {
for(var i = 0; i < this.problems.length; ++i)
if (this.problems[i] == p_id)
return i;
return null;
},
get_problems_stats: function () {
var stats = {};
for(var i = 0; i < this.problems.length; ++i) {
stats[this.problems[i]] = {runs: 0, sols: 0, points: 0, first_accept: this.compute_duration_minutes(), last_accept: 0};
}
for(var i = 0; i < this.runs.length; ++i) {
var run = CATS.App.runs[this.runs[i]];
stats[run.problem].runs++;
stats[run.problem].sols += run.status == "accepted" ? 1 : 0;
stats[run.problem].points += run.points;
if (run.status == 'accepted') {
var time = CATS.App.utils.get_time_diff(this.start_time, run.start_processing_time);
stats[run.problem].first_accept = Math.min(time, stats[run.problem].first_accept);
stats[run.problem].last_accept = Math.max(time, stats[run.problem].last_accept);
}
}
return stats;
},
compute_duration_minutes: function () {
return CATS.App.utils.get_time_diff(this.start_time, this.finish_time);
},
compute_current_duration_minutes: function () {
var time = new Date;
return CATS.App.utils.get_time_diff(
this.start_time,
this.start_time <= time && time <= this.finish_time ? time : this.finish_time
);
}
});
| Zimovik007/cats-score | app/models/contest.js | JavaScript | lgpl-2.1 | 2,514 |
$(function() {
var paging = $('.lazyloading-paging').hide();
if (!paging.length) {
return;
}
var loading = $('<div><i class="icon16 loading"></i>Loading...</div>').hide().insertBefore(paging);
var win = $(window);
var product_list = $('#product-list .product-list');
var current = paging.find('li.selected');
var next = current.next();
win.lazyLoad('stop');
if (next.length) {
win.lazyLoad({
container: $('#main'),
load: function() {
win.lazyLoad('sleep');
var url = next.find('a').attr('href');
if (!url) {
win.lazyLoad('stop');
}
loading.show();
$.get(url, function(html) {
var tmp = $('<div></div>').html(html);
product_list.append(tmp.find('#product-list .product-list').children());
var tmp_paging = tmp.find('.lazyloading-paging').hide();
paging.replaceWith(tmp_paging);
paging = tmp_paging;
current = paging.find('li.selected');
next = current.next();
if (next.length) {
win.lazyLoad('wake');
} else {
win.lazyLoad('stop');
}
loading.hide();
tmp.remove();
});
}
});
}
}); | dmitriyzhdankin/avantmarketcomua | wa-apps/shop/themes/default/lazyloading.js | JavaScript | lgpl-3.0 | 1,548 |
( function($) {
var Drawer = ( function($) {
Drawer = function(options) {
var that = this;
that.$wrapper = options["$wrapper"];
if (that.$wrapper && that.$wrapper.length) {
// DOM
that.$block = that.$wrapper.find(".drawer-body");
that.$body = $(window.top.document).find("body");
that.$window = $(window.top);
// VARS
that.options = (options["options"] || false);
that.direction = getDirection(options["direction"]);
that.animation_time = 333;
that.hide_class = "is-hide";
// DYNAMIC VARS
that.is_visible = false;
that.is_locked = false;
// HELPERS
that.onBgClick = (options["onBgClick"] || false);
that.onOpen = (options["onOpen"] || function() {});
that.onClose = (options["onClose"] || function() {});
// INIT
that.initClass();
} else {
log("Error: bad data for drawer");
}
function getDirection(direction) {
var result = "right",
direction_array = ["left", "right"];
if (direction_array.indexOf(direction) !== -1) {
result = direction;
}
return result;
}
};
Drawer.prototype.initClass = function() {
var that = this;
// save link on drawer
that.$wrapper.data("drawer", that);
//
that.render();
// Delay binding close events so that drawer does not close immidiately
// from the same click that opened it.
setTimeout( function() {
that.bindEvents();
}, 0);
};
Drawer.prototype.bindEvents = function() {
var that = this,
$document = $(document),
$block = (that.$block) ? that.$block : that.$wrapper;
that.$wrapper.on("close", close);
// Click on background, default nothing
that.$wrapper.on("click", ".drawer-background", function(event) {
if (typeof that.onBgClick === "function") {
that.onBgClick(event);
} else {
event.stopPropagation();
}
});
$document.on("keyup", function(event) {
var escape_code = 27;
if (event.keyCode === escape_code) {
that.close();
}
});
$block.on("click", ".js-close-drawer", close);
//
function close() {
var result = that.close();
if (result === true) {
$document.off("click", close);
$document.off("wa_before_load", close);
}
}
};
Drawer.prototype.render = function() {
var that = this;
var direction_class = (that.direction === "left" ? "left" : "right");
that.$wrapper.addClass(direction_class).addClass(that.hide_class).show();
try {
that.show();
} catch(e) {
log("Error: " + e.message);
}
//
that.onOpen(that.$wrapper, that);
};
Drawer.prototype.close = function() {
var that = this,
result = null;
if (that.is_visible) {
//
result = that.onClose(that);
//
if (result !== false) {
if (!that.is_locked) {
that.is_locked = true;
that.$wrapper.addClass(that.hide_class);
setTimeout( function() {
that.$wrapper.remove();
that.is_locked = false;
}, that.animation_time);
}
}
}
return result;
};
Drawer.prototype.hide = function() {
var that = this;
if (!that.is_locked) {
that.is_locked = true;
that.$wrapper.addClass(that.hide_class);
setTimeout( function() {
$("<div />").append(that.$wrapper.hide());
that.is_visible = false;
that.is_locked = false;
}, that.animation_time);
}
};
Drawer.prototype.show = function() {
var that = this,
is_exist = $.contains(document, that.$wrapper[0]);
if (!is_exist) {
that.$body.append(that.$wrapper);
}
if (!that.is_locked) {
that.is_locked = true;
setTimeout( function() {
that.$wrapper.removeClass(that.hide_class);
that.is_locked = false;
}, 100);
}
that.is_visible = true;
};
return Drawer;
})($);
$.waDrawer = function(plugin_options) {
plugin_options = ( typeof plugin_options === "object" ? plugin_options : {});
var options = $.extend(true, {}, plugin_options),
result = false;
options["$wrapper"] = getWrapper(options);
if (options["$wrapper"]) {
result = new Drawer(options);
}
return result;
};
function getWrapper(options) {
var result = false;
if (options["html"]) {
result = $(options["html"]);
} else if (options["wrapper"]) {
result = options["wrapper"];
} else {
// result = generateDrawer(options["header"], options["content"], options["footer"]);
}
return result;
function generateDrawer($header, $content, $footer) {
var result = false;
var wrapper_class = "drawer",
bg_class = "drawer-background",
block_class = "drawer-body",
header_class = "drawer-header",
content_class = "drawer-content",
footer_class = "drawer-footer";
var $wrapper = $("<div />").addClass(wrapper_class),
$bg = $("<div />").addClass(bg_class),
$body = $("<div />").addClass(block_class),
$header_w = ( $header ? $("<div />").addClass(header_class).append($header) : false ),
$content_w = ( $content ? $("<div />").addClass(content_class).append($content) : false ),
$footer_w = ( $footer ? $("<div />").addClass(footer_class).append($footer) : false );
if ($header_w || $content_w || $footer_w) {
if ($header_w) {
$body.append($header_w)
}
if ($content_w) {
$body.append($content_w)
}
if ($footer_w) {
$body.append($footer_w)
}
result = $wrapper.append($bg).append($body);
}
return result;
}
}
function log(data) {
if (console && console.log) {
console.log(data);
}
}
})(jQuery);
| webasyst/webasyst-framework | wa-apps/ui/js/drawer.js | JavaScript | lgpl-3.0 | 7,494 |
import _ from 'underscore';
import State from 'components/navigator/models/state';
export default State.extend({
defaults: {
page: 1,
maxResultsReached: false,
query: {},
facets: ['facetMode', 'severities', 'resolutions'],
isContext: false,
allFacets: [
'facetMode',
'issues',
'severities',
'resolutions',
'statuses',
'createdAt',
'rules',
'tags',
'projectUuids',
'moduleUuids',
'directories',
'fileUuids',
'assignees',
'reporters',
'authors',
'languages',
'actionPlans'
],
facetsFromServer: [
'severities',
'statuses',
'resolutions',
'actionPlans',
'projectUuids',
'directories',
'rules',
'moduleUuids',
'tags',
'assignees',
'reporters',
'authors',
'fileUuids',
'languages',
'createdAt'
],
transform: {
'resolved': 'resolutions',
'assigned': 'assignees',
'planned': 'actionPlans',
'createdBefore': 'createdAt',
'createdAfter': 'createdAt',
'createdInLast': 'createdAt'
}
},
getFacetMode: function () {
var query = this.get('query');
return query.facetMode || 'count';
},
toJSON: function () {
return _.extend({ facetMode: this.getFacetMode() }, this.attributes);
}
});
| sulabh-msft/sonarqube | server/sonar-web/src/main/js/apps/issues/models/state.js | JavaScript | lgpl-3.0 | 1,371 |
GoogleElectionMap.shapeReady({name:"23_03",type:"state",state:"23_03",bounds:[],centroid:[],shapes:[
{points:[
{x:30.7337437360944,y: 29.4749206150606}
,
{x:30.7337582665663,y: 29.4744813215764}
,
{x:30.7337486793531,y: 29.4741262248318}
,
{x:30.733830562916,y: 29.4738380667479}
,
{x:30.7340080361753,y: 29.473327820204}
,
{x:30.7341651878043,y: 29.4730517736908}
,
{x:30.7344520513946,y: 29.4725116240948}
,
{x:30.7348409855116,y: 29.4716351886096}
,
{x:30.7351955311194,y: 29.4708009063601}
,
{x:30.7355230909151,y: 29.470284457395}
,
{x:30.7356461458813,y: 29.4702005296548}
,
{x:30.7357896998111,y: 29.4700986083796}
,
{x:30.7361318864607,y: 29.4700270493557}
,
{x:30.7368097530362,y: 29.4699861094456}
,
{x:30.7377482316251,y: 29.4699937683244}
,
{x:30.7384815604343,y: 29.4700492232038}
,
{x:30.7389134276977,y: 29.4700801118416}
,
{x:30.7392218783081,y: 29.4700747192928}
,
{x:30.7395645031246,y: 29.4700153232616}
,
{x:30.7399344083467,y: 29.4698838849901}
,
{x:30.7404890366786,y: 29.469572570395}
,
{x:30.7408929605935,y: 29.4693030177812}
,
{x:30.7413516785204,y: 29.4689855286123}
,
{x:30.7416668608143,y: 29.4688711551074}
,
{x:30.7420026581117,y: 29.4684933258493}
,
{x:30.7421416020257,y: 29.4681985365659}
,
{x:30.7423497370518,y: 29.4676867259306}
,
{x:30.7424565146772,y: 29.4673082910482}
,
{x:30.7425000289238,y: 29.4670354957972}
,
{x:30.7425056652583,y: 29.4668461382614}
,
{x:30.7424668409555,y: 29.4666789364439}
,
{x:30.7422670459396,y: 29.4660545177651}
,
{x:30.7419648424728,y: 29.4653461667668}
,
{x:30.7416691866977,y: 29.4647324511917}
,
{x:30.7414450472983,y: 29.4644420870476}
,
{x:30.7412406086227,y: 29.4642688023198}
,
{x:30.7401905455219,y: 29.4635336424456}
,
{x:30.7397409112532,y: 29.4630715614163}
,
{x:30.7395507834021,y: 29.4629322724499}
,
{x:30.7382444639931,y: 29.4622795741388}
,
{x:30.7371792803851,y: 29.4616884641447}
,
{x:30.7363487337865,y: 29.4612145021051}
,
{x:30.7355495073343,y: 29.4609072956145}
,
{x:30.7358250611577,y: 29.4599354368675}
,
{x:30.7359917766136,y: 29.4593078718213}
,
{x:30.7361455887816,y: 29.4587580729151}
,
{x:30.7363879130626,y: 29.4583529220415}
,
{x:30.7366881858206,y: 29.4576367148205}
,
{x:30.7368929145404,y: 29.4570370062853}
,
{x:30.7370588700427,y: 29.4566983819849}
,
{x:30.7372942325628,y: 29.4565265937063}
,
{x:30.7376252334876,y: 29.4561994085593}
,
{x:30.7378424223598,y: 29.4556886294292}
,
{x:30.7382262022104,y: 29.4545891766355}
,
{x:30.7383731022319,y: 29.4542505131024}
,
{x:30.7388826905544,y: 29.4536013932698}
,
{x:30.7390678373166,y: 29.4532016805322}
,
{x:30.7392468618439,y: 29.4527130501728}
,
{x:30.7394001329191,y: 29.452363284033}
,
{x:30.7394900722483,y: 29.4519522710418}
,
{x:30.7395355120611,y: 29.4515633960248}
,
{x:30.7394854055327,y: 29.4512965801288}
,
{x:30.739371884094,y: 29.4510018549404}
,
{x:30.7393531799295,y: 29.4508684597027}
,
{x:30.7394045117693,y: 29.4506574087628}
,
{x:30.7394938650466,y: 29.4504742161552}
,
{x:30.7398250373363,y: 29.4500692321482}
,
{x:30.740226527166,y: 29.4494754609916}
,
{x:30.7405069043938,y: 29.4490703761509}
,
{x:30.7400177748161,y: 29.4491805500574}
,
{x:30.7387601153286,y: 29.449422569003}
,
{x:30.7380931343112,y: 29.4495657247787}
,
{x:30.7374705771966,y: 29.449714522576}
,
{x:30.7371592040349,y: 29.4498250380094}
,
{x:30.7369628582897,y: 29.4489026698636}
,
{x:30.7366615293747,y: 29.4479919447956}
,
{x:30.7365395755887,y: 29.4475420370496}
,
{x:30.7363906374871,y: 29.447523067697}
,
{x:30.7361748456451,y: 29.4475004117503}
,
{x:30.7360036366457,y: 29.4474222784614}
,
{x:30.7358201509829,y: 29.4471829781191}
,
{x:30.7355735289301,y: 29.4468101922278}
,
{x:30.735370466963,y: 29.4464170241559}
,
{x:30.7354162353409,y: 29.4462653285985}
,
{x:30.735716420475,y: 29.4455713484906}
,
{x:30.7373803948223,y: 29.4453079378134}
,
{x:30.7388856789663,y: 29.4450330792086}
,
{x:30.7388169907413,y: 29.4445884134864}
,
{x:30.7391086302998,y: 29.4437615183476}
,
{x:30.7378591490194,y: 29.444292021291}
,
{x:30.7375795499263,y: 29.4443970441259}
,
{x:30.7374621985322,y: 29.4444031352381}
,
{x:30.737262746987,y: 29.4442437051023}
,
{x:30.7372359846121,y: 29.4433274026637}
,
{x:30.7368001953099,y: 29.4424882910357}
,
{x:30.7365862524853,y: 29.4424108540421}
,
{x:30.7364591654842,y: 29.4424106372243}
,
{x:30.7362022374827,y: 29.4424728463009}
,
{x:30.7360390036726,y: 29.442472628165}
,
{x:30.7361072257927,y: 29.4417523643756}
,
{x:30.7362794302522,y: 29.4408444995286}
,
{x:30.7366378276657,y: 29.4405015804495}
,
{x:30.7391084162232,y: 29.439785218456}
,
{x:30.7412172181524,y: 29.439402996603}
,
{x:30.7415026306487,y: 29.4390004546775}
,
{x:30.7423050705707,y: 29.438280152704}
,
{x:30.7421676801541,y: 29.4381139448919}
,
{x:30.7419315746239,y: 29.438081676141}
,
{x:30.7415719415553,y: 29.4380244976538}
,
{x:30.7411969521894,y: 29.4364980974541}
,
{x:30.7455262798143,y: 29.4349367234314}
,
{x:30.7454644699524,y: 29.4348990626453}
,
{x:30.7434187266449,y: 29.4335745864446}
,
{x:30.7406584030479,y: 29.4318847584242}
,
{x:30.7384461601571,y: 29.4304243161169}
,
{x:30.7357737849628,y: 29.4288494352676}
,
{x:30.7331430312176,y: 29.4272931140216}
,
{x:30.73312542294,y: 29.427260050583}
,
{x:30.7330799198185,y: 29.4271746058677}
,
{x:30.7330712458675,y: 29.4270892577748}
,
{x:30.7330517060069,y: 29.4268971764162}
,
{x:30.7332300230628,y: 29.4265595060341}
,
{x:30.7333435244158,y: 29.4263888708761}
,
{x:30.7343528226002,y: 29.4257258251609}
,
{x:30.7358127749672,y: 29.4248199480257}
,
{x:30.7364616132564,y: 29.4243334632074}
,
{x:30.7366660075708,y: 29.4236715481926}
,
{x:30.7367512272029,y: 29.4233952286899}
,
{x:30.7366843374453,y: 29.4233542542525}
,
{x:30.7353990383438,y: 29.4228393171567}
,
{x:30.7351118187787,y: 29.4228212005417}
,
{x:30.73500225186,y: 29.4228142902166}
,
{x:30.7342033253787,y: 29.4230714129566}
,
{x:30.73367698799,y: 29.4231911687554}
,
{x:30.7333292322704,y: 29.42323019218}
,
{x:30.7331412796385,y: 29.4232292234641}
,
{x:30.7328593930546,y: 29.4232032885458}
,
{x:30.731640415284,y: 29.4230338598676}
,
{x:30.730453868302,y: 29.4227707529317}
,
{x:30.7297147626786,y: 29.4226278751322}
,
{x:30.7287707549539,y: 29.4224515611718}
,
{x:30.7287776886447,y: 29.4224034296635}
,
{x:30.7280650308892,y: 29.4224622009933}
,
{x:30.7275062974059,y: 29.4225965259462}
,
{x:30.7269966198536,y: 29.422741919035}
,
{x:30.7269674740754,y: 29.4227550999955}
,
{x:30.7270318936572,y: 29.422603694839}
,
{x:30.7270598544851,y: 29.4225156594833}
,
{x:30.727146379139,y: 29.4223664301708}
,
{x:30.7272667082426,y: 29.4222066551446}
,
{x:30.727423907376,y: 29.4220363458895}
,
{x:30.7274671751401,y: 29.4219537084898}
,
{x:30.7275442095132,y: 29.4218738864323}
,
{x:30.727655046024,y: 29.4217861924436}
,
{x:30.7278767190654,y: 29.4216054549384}
,
{x:30.7279752795676,y: 29.4215096861137}
,
{x:30.7279726615412,y: 29.4212316099489}
,
{x:30.7280051743655,y: 29.4205334788643}
,
{x:30.7280403583748,y: 29.4200493677364}
,
{x:30.7280446891821,y: 29.4199300720758}
,
{x:30.727952746346,y: 29.419627897962}
,
{x:30.7279577239146,y: 29.4194610587148}
,
{x:30.7280342650715,y: 29.4192421973075}
,
{x:30.72820404981,y: 29.4190007250843}
,
{x:30.7284181785548,y: 29.418731338193}
,
{x:30.7285680130932,y: 29.418356383696}
,
{x:30.7286541108598,y: 29.4179436360357}
,
{x:30.7287994567796,y: 29.4173709649866}
,
{x:30.7288804574012,y: 29.4171080083002}
,
{x:30.7289332306787,y: 29.4168554682499}
,
{x:30.7289903399727,y: 29.4163617942551}
,
{x:30.7289786525612,y: 29.4161500493829}
,
{x:30.7289506742527,y: 29.4160200587721}
,
{x:30.7288666112848,y: 29.4157143382592}
,
{x:30.7288630234007,y: 29.4154299764237}
,
{x:30.7289345564532,y: 29.4151050000654}
,
{x:30.7290772404869,y: 29.4148128906473}
,
{x:30.7291941702515,y: 29.414651818156}
,
{x:30.7294157781056,y: 29.4144419623028}
,
{x:30.729597143231,y: 29.4142144002844}
,
{x:30.7296780628307,y: 29.4140274966577}
,
{x:30.7297343494422,y: 29.4138813462987}
,
{x:30.7298112856656,y: 29.4134567887334}
,
{x:30.7299737566905,y: 29.4126527352428}
,
{x:30.7300706000678,y: 29.412358131041}
,
{x:30.7301785764019,y: 29.4116515855356}
,
{x:30.7303288528371,y: 29.4114975886515}
,
{x:30.730452317884,y: 29.411338818064}
,
{x:30.7305811603619,y: 29.4111519717049}
,
{x:30.7306806797498,y: 29.4109145282342}
,
{x:30.7307491214927,y: 29.4106859961449}
,
{x:30.7307440311447,y: 29.4101712300579}
,
{x:30.7307282316302,y: 29.4100305171762}
,
{x:30.7307447629516,y: 29.4097867498468}
,
{x:30.7308909017426,y: 29.4092947353471}
,
{x:30.7310254729272,y: 29.4086106754117}
,
{x:30.7311658592945,y: 29.4080015104806}
,
{x:30.7312771492001,y: 29.4074622357346}
,
{x:30.7313653496698,y: 29.4072799555832}
,
{x:30.7314247050485,y: 29.407040975026}
,
{x:30.731435828596,y: 29.4068299931534}
,
{x:30.7314106113617,y: 29.406545315689}
,
{x:30.7313457759283,y: 29.4063608306648}
,
{x:30.7312391878276,y: 29.4061354631855}
,
{x:30.7310284431496,y: 29.4057120946044}
,
{x:30.7310384973009,y: 29.4056758810444}
,
{x:30.7310420428853,y: 29.4056734302509}
,
{x:30.7311649476767,y: 29.4055884838249}
,
{x:30.7313438644594,y: 29.4053944124492}
,
{x:30.7315054801169,y: 29.4051430684889}
,
{x:30.7316059972201,y: 29.4049602233563}
,
{x:30.7316760373083,y: 29.4047772966778}
,
{x:30.7317069526441,y: 29.4045675639953}
,
{x:30.7316724495034,y: 29.4044148847414}
,
{x:30.7316987469361,y: 29.4043310272223}
,
{x:30.7320132449941,y: 29.4038282677363}
,
{x:30.7321146721101,y: 29.4032181408042}
,
{x:30.7322381790278,y: 29.4024707236474}
,
{x:30.7323309792735,y: 29.4018414858947}
,
{x:30.7322853555342,y: 29.4012752069567}
,
{x:30.7321638227537,y: 29.40109558632}
,
{x:30.7320118379297,y: 29.4009197203433}
,
{x:30.7319468405862,y: 29.4007593080992}
,
{x:30.7319557458559,y: 29.4006333967044}
,
{x:30.7319951223603,y: 29.4004961021312}
,
{x:30.7320954343258,y: 29.4003398553316}
,
{x:30.7322000312708,y: 29.4002217751093}
,
{x:30.7322828780818,y: 29.4001036488691}
,
{x:30.7323570802729,y: 29.3999511602741}
,
{x:30.7324358055263,y: 29.399695646405}
,
{x:30.732471144491,y: 29.399375175207}
,
{x:30.7325367875318,y: 29.3991425327781}
,
{x:30.7327373372062,y: 29.3988719959889}
,
{x:30.7327681946768,y: 29.398635468793}
,
{x:30.7328431930837,y: 29.3980365211652}
,
{x:30.7329114981892,y: 29.3978625093322}
,
{x:30.7330654648884,y: 29.3977812809144}
,
{x:30.7331438475188,y: 29.3977280058781}
,
{x:30.7331830659477,y: 29.3976861053986}
,
{x:30.7332092917617,y: 29.3976136532079}
,
{x:30.7331926690207,y: 29.3971900683178}
,
{x:30.7331977931336,y: 29.396774163638}
,
{x:30.7331635146992,y: 29.3965031889163}
,
{x:30.7331202956336,y: 29.39636193337}
,
{x:30.7330770942221,y: 29.396213047361}
,
{x:30.7330251452101,y: 29.3960908570079}
,
{x:30.7329817980535,y: 29.3960182840716}
,
{x:30.7329689389761,y: 29.3959228735119}
,
{x:30.7330214033613,y: 29.3957817931135}
,
{x:30.7331347571971,y: 29.3956370049979}
,
{x:30.7334118160231,y: 29.3952359650217}
,
{x:30.7337755764967,y: 29.394852121998}
,
{x:30.7339368550701,y: 29.3946616201353}
,
{x:30.7342722225742,y: 29.3943950931066}
,
{x:30.7344291047702,y: 29.3942274697061}
,
{x:30.7346252531711,y: 29.3939950440335}
,
{x:30.7346951558955,y: 29.3938349067947}
,
{x:30.7347390113719,y: 29.3936556501883}
,
{x:30.7347525623744,y: 29.3934153012405}
,
{x:30.7348400836751,y: 29.3931521774434}
,
{x:30.7348882468717,y: 29.392995823555}
,
{x:30.7348798061697,y: 29.3928775349749}
,
{x:30.7349106567083,y: 29.3926868179713}
,
{x:30.7349459912611,y: 29.3924350649739}
,
{x:30.7349724665977,y: 29.3922596045483}
,
{x:30.7350162073598,y: 29.3921413989231}
,
{x:30.7350642379614,y: 29.3920499071963}
,
{x:30.7351557133695,y: 29.3919737405356}
,
{x:30.7352601795982,y: 29.3919204844525}
,
{x:30.7353689684882,y: 29.3918786789406}
,
{x:30.7354820788351,y: 29.3918483258012}
,
{x:30.7357342539947,y: 29.3918449939408}
,
{x:30.7358172216207,y: 29.3918459706098}
,
{x:30.7359608674845,y: 29.3918476610477}
,
{x:30.7361223017821,y: 29.3918531439838}
,
{x:30.7361492648989,y: 29.3909717991161}
,
{x:30.7361628921851,y: 29.3907200187137}
,
{x:30.7362460677994,y: 29.3904759694585}
,
{x:30.7364158869453,y: 29.3900604888871}
,
{x:30.7367064587319,y: 29.3895083841157}
,
{x:30.7368666804594,y: 29.3891636924934}
,
{x:30.7370897286574,y: 29.3885848819216}
,
{x:30.7372120813362,y: 29.3883370751517}
,
{x:30.7373736914701,y: 29.3880397276274}
,
{x:30.737619042892,y: 29.3876259368193}
,
{x:30.7377884073655,y: 29.3873764806622}
,
{x:30.7379458510552,y: 29.3869770131204}
,
{x:30.7380161098829,y: 29.3867587836825}
,
{x:30.7383446439709,y: 29.3865205362579}
,
{x:30.7385380033517,y: 29.3862910440277}
,
{x:30.7385943623703,y: 29.3861765377117}
,
{x:30.7386180860088,y: 29.3860325345592}
,
{x:30.7386282805399,y: 29.3858485454466}
,
{x:30.7385984580431,y: 29.3856839962993}
,
{x:30.7383941908826,y: 29.3849698933518}
,
{x:30.7382247284306,y: 29.3843054984266}
,
{x:30.73799021255,y: 29.3835380386987}
,
{x:30.7377383717043,y: 29.3827108248403}
,
{x:30.7374075054814,y: 29.3818738659019}
,
{x:30.7373905114762,y: 29.381843993739}
,
{x:30.7372074948858,y: 29.3815222856306}
,
{x:30.7369292292685,y: 29.3810102407829}
,
{x:30.7368378184757,y: 29.3807465984936}
,
{x:30.7368071907278,y: 29.3805249978369}
,
{x:30.7366756233385,y: 29.3801834025026}
,
{x:30.7367152384436,y: 29.3799893661398}
,
{x:30.7368069807393,y: 29.3798030461026}
,
{x:30.7370204908151,y: 29.379582712816}
,
{x:30.7372993040296,y: 29.3793168335935}
,
{x:30.7375212874628,y: 29.3791802518014}
,
{x:30.737682224169,y: 29.3791234784438}
,
{x:30.7381428130245,y: 29.3791443048569}
,
{x:30.7384858859347,y: 29.3791393146416}
,
{x:30.7386380806311,y: 29.3791335568585}
,
{x:30.7387252510581,y: 29.3790988977107}
,
{x:30.7388080335237,y: 29.3790153254861}
,
{x:30.7389258266404,y: 29.3788366671819}
,
{x:30.7390915578488,y: 29.378604817387}
,
{x:30.7392572188339,y: 29.37839961019}
,
{x:30.7394445015091,y: 29.3782363133086}
,
{x:30.7396926015186,y: 29.3780807489263}
,
{x:30.7399797437526,y: 29.3779519024796}
,
{x:30.7405755496939,y: 29.377774181953}
,
{x:30.7410928799071,y: 29.3776952648698}
,
{x:30.7418101361952,y: 29.3776053175386}
,
{x:30.7426055628594,y: 29.3775345491701}
,
{x:30.7431226598909,y: 29.3775469721388}
,
{x:30.7438268895987,y: 29.3776265787945}
,
{x:30.7442635614139,y: 29.3777150507872}
,
{x:30.7446606172503,y: 29.3777021951003}
,
{x:30.7448083962501,y: 29.3776910622892}
,
{x:30.7448954228917,y: 29.3776455550354}
,
{x:30.7450565926903,y: 29.3774936189912}
,
{x:30.7451311940447,y: 29.3772044929267}
,
{x:30.7450884544839,y: 29.3769189472961}
,
{x:30.7450846822872,y: 29.3766905695448}
,
{x:30.7451331428591,y: 29.3764280364316}
,
{x:30.7452509592861,y: 29.3762341480517}
,
{x:30.745577714722,y: 29.3758998331251}
,
{x:30.7460614195613,y: 29.375360285136}
,
{x:30.7466799709122,y: 29.374763899622}
,
{x:30.7471503162123,y: 29.3743499258152}
,
{x:30.7476467671322,y: 29.3739207749355}
,
{x:30.7478819591519,y: 29.3737042709532}
,
{x:30.7479691520653,y: 29.3735902517267}
,
{x:30.7480043397519,y: 29.3734190406798}
,
{x:30.7480613504983,y: 29.3732098089896}
,
{x:30.748127078842,y: 29.3729891758341}
,
{x:30.7483758138594,y: 29.3725671626624}
,
{x:30.7486331899291,y: 29.3721641966158}
,
{x:30.7488992458774,y: 29.3717650530788}
,
{x:30.7489952473424,y: 29.3716015691299}
,
{x:30.7491449055692,y: 29.371462066139}
,
{x:30.7492452072002,y: 29.3713936156567}
,
{x:30.7493737062256,y: 29.3713212028548}
,
{x:30.7497153063203,y: 29.3712650545796}
,
{x:30.7502105031874,y: 29.3712292000183}
,
{x:30.7506012363277,y: 29.3711957194385}
,
{x:30.7508600332519,y: 29.3711441123492}
,
{x:30.7509067987681,y: 29.3711347868122}
,
{x:30.7511041016956,y: 29.3710498489401}
,
{x:30.7512215562393,y: 29.3709967836654}
,
{x:30.7513522046017,y: 29.3708790370912}
,
{x:30.7514693622704,y: 29.3707188711231}
,
{x:30.7516273969964,y: 29.3705172857026}
,
{x:30.7518313673989,y: 29.370257106385}
,
{x:30.7521351101112,y: 29.3699246667849}
,
{x:30.7523064086644,y: 29.3698227077797}
,
{x:30.7524890590904,y: 29.3697621509414}
,
{x:30.7526455900965,y: 29.3697205753309}
,
{x:30.7528411083326,y: 29.3697285529759}
,
{x:30.7530714628188,y: 29.3697061460675}
,
{x:30.7532541031477,y: 29.3696493933947}
,
{x:30.7534542163257,y: 29.3695546122179}
,
{x:30.7538671541143,y: 29.3694982876135}
,
{x:30.7545103988575,y: 29.3694385839522}
,
{x:30.7548929738372,y: 29.3693593628357}
,
{x:30.7549190273763,y: 29.3693670239887}
,
{x:30.7549969756719,y: 29.3694775473016}
,
{x:30.7551834912847,y: 29.3696149153148}
,
{x:30.7556043953959,y: 29.3698592886608}
,
{x:30.7559168614569,y: 29.370023531305}
,
{x:30.7564378747642,y: 29.3701995756894}
,
{x:30.7568504853495,y: 29.3702802647081}
,
{x:30.757158946336,y: 29.3703036682679}
,
{x:30.7575023061997,y: 29.3702700424736}
,
{x:30.7584498960001,y: 29.3701385586821}
,
{x:30.759349676437,y: 29.3700107882149}
,
{x:30.7596451471473,y: 29.3700151316287}
,
{x:30.7602404773084,y: 29.3700047928204}
,
{x:30.7610830762164,y: 29.370169982998}
,
{x:30.7617347439102,y: 29.3702244449345}
,
{x:30.7619014945663,y: 29.3702922226078}
,
{x:30.7654172654264,y: 29.3699963309716}
,
{x:30.767813226812,y: 29.370013741085}
,
{x:30.7695122796071,y: 29.3692764513148}
,
{x:30.7715062721839,y: 29.3676201261079}
,
{x:30.7723375730886,y: 29.3668417051197}
,
{x:30.7730377808078,y: 29.3661855825875}
,
{x:30.7739290760942,y: 29.365513243719}
,
{x:30.7747421363417,y: 29.3651028616835}
,
{x:30.7756043334981,y: 29.3647756490932}
,
{x:30.7769020096993,y: 29.3644389261436}
,
{x:30.7770530874953,y: 29.3642855478207}
,
{x:30.7771253446836,y: 29.3639930204959}
,
{x:30.7774566557014,y: 29.3627160379801}
,
{x:30.7777395821559,y: 29.3621328756977}
,
{x:30.7779904724819,y: 29.3616683535709}
,
{x:30.7781350678152,y: 29.3615111641694}
,
{x:30.7783280344741,y: 29.3614220167217}
,
{x:30.7785826701407,y: 29.3613395574601}
,
{x:30.7787086434748,y: 29.3613074265354}
,
{x:30.7790668935957,y: 29.3613694493816}
,
{x:30.7799235585381,y: 29.3615278485162}
,
{x:30.7804063921102,y: 29.3616241998184}
,
{x:30.7807647771096,y: 29.3616247927567}
,
{x:30.7812321912911,y: 29.3615008031108}
,
{x:30.7814040039387,y: 29.3614552263432}
,
{x:30.781856099009,y: 29.3613535973595}
,
{x:30.7822223611869,y: 29.3613132505057}
,
{x:30.7830247860193,y: 29.3613350423348}
,
{x:30.7836481056298,y: 29.361315587066}
,
{x:30.7843650470065,y: 29.3612348569461}
,
{x:30.7851832548815,y: 29.3611611121652}
,
{x:30.7855182655113,y: 29.3611616546356}
,
{x:30.7864997951265,y: 29.3612246652754}
,
{x:30.7871308044873,y: 29.3612529807925}
,
{x:30.7875595205921,y: 29.3611512957522}
,
{x:30.7881596647867,y: 29.3610362329043}
,
{x:30.7884947315042,y: 29.3610094683427}
,
{x:30.789406142996,y: 29.361072345648}
,
{x:30.7898890539711,y: 29.3611345375935}
,
{x:30.7903810060778,y: 29.3614439614725}
,
{x:30.7906147302524,y: 29.3611569033453}
,
{x:30.7910551943976,y: 29.3606178307465}
,
{x:30.79129762087,y: 29.3604029289061}
,
{x:30.7915489238545,y: 29.3602290369328}
,
{x:30.7918066526939,y: 29.3599619050984}
,
{x:30.7920625476914,y: 29.3595795118515}
,
{x:30.7922445866749,y: 29.359389367837}
,
{x:30.7923385770418,y: 29.3592936547689}
,
{x:30.7924772882672,y: 29.3591523998279}
,
{x:30.7926618572118,y: 29.3589644461283}
,
{x:30.7928195166183,y: 29.3588038945235}
,
{x:30.7928737123318,y: 29.3587487053455}
,
{x:30.7928117784167,y: 29.3583958060077}
,
{x:30.7927484702357,y: 29.35791226186}
,
{x:30.7923955267057,y: 29.3575831536306}
,
{x:30.792181569991,y: 29.3574091536899}
,
{x:30.7920693354373,y: 29.3572728619897}
,
{x:30.7920159883517,y: 29.3571601307398}
,
{x:30.7920001647318,y: 29.357038070931}
,
{x:30.7920004339109,y: 29.3569066495358}
,
{x:30.7923070919291,y: 29.3562875703723}
,
{x:30.7929772613393,y: 29.3551656213066}
,
{x:30.7935063169847,y: 29.3540975142403}
,
{x:30.79380779042,y: 29.3533845496297}
,
{x:30.7939743117642,y: 29.353168901251}
,
{x:30.7942028645286,y: 29.3528819501541}
,
{x:30.7942392728394,y: 29.3528362393276}
,
{x:30.7942680580058,y: 29.3528000991441}
,
{x:30.7934508548656,y: 29.3523889413037}
,
{x:30.7916790764323,y: 29.3516257953084}
,
{x:30.7911652309366,y: 29.3513949974534}
,
{x:30.7906888396364,y: 29.3512716993268}
,
{x:30.7904100513784,y: 29.3512858500455}
,
{x:30.7900027689059,y: 29.3513415293774}
,
{x:30.7898467108654,y: 29.3513725363888}
,
{x:30.7888075583169,y: 29.351579004178}
,
{x:30.7878481404717,y: 29.3517839914195}
,
{x:30.7869098942928,y: 29.3520228930446}
,
{x:30.7863584649854,y: 29.3519224066284}
,
{x:30.7853078616417,y: 29.3521741649938}
,
{x:30.7838980609101,y: 29.3525379761701}
,
{x:30.7827775575029,y: 29.3529022480908}
,
{x:30.782220223391,y: 29.3529717380207}
,
{x:30.7821452572774,y: 29.3529528398099}
,
{x:30.782005636805,y: 29.3527115515788}
,
{x:30.7817446915707,y: 29.3523701687644}
,
{x:30.7817291442926,y: 29.3523442587521}
,
{x:30.7814937863889,y: 29.3519520206608}
,
{x:30.7814364895761,y: 29.3517335241072}
,
{x:30.7813450892239,y: 29.3513416018931}
,
{x:30.7813928969105,y: 29.3508895648768}
,
{x:30.7812375453797,y: 29.3500927516535}
,
{x:30.781163875518,y: 29.3499304391011}
,
{x:30.7811375686122,y: 29.3498724843451}
,
{x:30.7810740260361,y: 29.3499147215959}
,
{x:30.7809398943209,y: 29.3500038896142}
,
{x:30.7796424672598,y: 29.3508442261857}
,
{x:30.7782663122209,y: 29.3517226150426}
,
{x:30.7767742511451,y: 29.3526719960471}
,
{x:30.776077113018,y: 29.3530982032959}
,
{x:30.7753900876378,y: 29.3535184858109}
,
{x:30.7740174939536,y: 29.3543794016875}
,
{x:30.7723747557972,y: 29.3553819276219}
,
{x:30.770982564273,y: 29.3562763620861}
,
{x:30.7708920172997,y: 29.3563337790756}
,
{x:30.7696759332259,y: 29.3571051124148}
,
{x:30.7684865037308,y: 29.3578445568199}
,
{x:30.7672283470136,y: 29.3585701291526}
,
{x:30.7659121757543,y: 29.359354683622}
,
{x:30.764769809711,y: 29.3598454895488}
,
{x:30.7636060994296,y: 29.3602940049392}
,
{x:30.7622389091915,y: 29.3606858203342}
,
{x:30.7611506647812,y: 29.3609326232647}
,
{x:30.7598749415049,y: 29.3611556089939}
,
{x:30.7582993795534,y: 29.3612888568164}
,
{x:30.7575552945067,y: 29.3613485938891}
,
{x:30.756225734844,y: 29.3613457013267}
,
{x:30.7556392013859,y: 29.3613065538191}
,
{x:30.7549399732111,y: 29.3612685981177}
,
{x:30.7546783084081,y: 29.3612647328919}
,
{x:30.754721055628,y: 29.3606677764028}
,
{x:30.7549033965718,y: 29.3605337823473}
,
{x:30.755659653414,y: 29.3605903979431}
,
{x:30.7559415408687,y: 29.3579465879956}
,
{x:30.7562961907527,y: 29.3547689696778}
,
{x:30.7564863625842,y: 29.352537181496}
,
{x:30.7565234097806,y: 29.3521024018179}
,
{x:30.7566257289137,y: 29.351117745586}
,
{x:30.7569134067253,y: 29.3483492128994}
,
{x:30.7570139543885,y: 29.3471134966203}
,
{x:30.7570864340523,y: 29.3464840206851}
,
{x:30.7571047353247,y: 29.3462508651017}
,
{x:30.7570169090141,y: 29.34587760157}
,
{x:30.7564611905936,y: 29.3445396317368}
,
{x:30.7563553087912,y: 29.3442984752342}
,
{x:30.755391065438,y: 29.3425071267847}
,
{x:30.7553613840775,y: 29.3424353340629}
,
{x:30.7542535532485,y: 29.3428214049508}
,
{x:30.7532052026818,y: 29.3429596735358}
,
{x:30.7521288473353,y: 29.3430050239641}
,
{x:30.7505538860449,y: 29.343096502284}
,
{x:30.7503666396718,y: 29.3430730892604}
,
{x:30.7491080779195,y: 29.3428008180106}
,
{x:30.7483672750609,y: 29.3426607456986}
,
{x:30.7481626442108,y: 29.3426915810616}
,
{x:30.7468367919717,y: 29.3428920571962}
,
{x:30.7467793248216,y: 29.3424658056268}
,
{x:30.7467254611971,y: 29.3422617829535}
,
{x:30.746723597945,y: 29.3420639028842}
,
{x:30.7467529608148,y: 29.3418108267424}
,
{x:30.7467726903911,y: 29.3416589834266}
,
{x:30.7469378210624,y: 29.3414957495561}
,
{x:30.747473872561,y: 29.3407476398693}
,
{x:30.7475221315459,y: 29.3406311048313}
,
{x:30.7474299014491,y: 29.3405882705726}
,
{x:30.7473167170912,y: 29.3405206022219}
,
{x:30.7471536956464,y: 29.3403730530864}
,
{x:30.7469967936844,y: 29.3402048190445}
,
{x:30.7468880634606,y: 29.3401292380347}
,
{x:30.7467764807316,y: 29.340091386335}
,
{x:30.7464978469141,y: 29.3400479636974}
,
{x:30.7463740113836,y: 29.3400289639718}
,
{x:30.7463367106194,y: 29.3399992773488}
,
{x:30.7462900966839,y: 29.3399641891005}
,
{x:30.7462555676482,y: 29.3398832964474}
,
{x:30.7462118455638,y: 29.339815869752}
,
{x:30.7461557692157,y: 29.3397511245247}
,
{x:30.7460873397651,y: 29.3396890607403}
,
{x:30.7460468634979,y: 29.3396458940476}
,
{x:30.7460249285587,y: 29.3396000519561}
,
{x:30.7460244410615,y: 29.339521890185}
,
{x:30.7460239196277,y: 29.339438338318}
,
{x:30.7460233994455,y: 29.3393547873112}
,
{x:30.7460230965501,y: 29.3393062733176}
,
{x:30.7460040878829,y: 29.3392334816341}
,
{x:30.7459542858313,y: 29.3391822185488}
,
{x:30.745916904684,y: 29.3391390539483}
,
{x:30.7459135605328,y: 29.3390986221965}
,
{x:30.7459411266002,y: 29.3390555287819}
,
{x:30.7460301961871,y: 29.3389821332138}
,
{x:30.7461442044374,y: 29.3388886489935}
,
{x:30.7461657283339,y: 29.338831946397}
,
{x:30.7461683255041,y: 29.3387889519221}
,
{x:30.7461403079633,y: 29.3387592741237}
,
{x:30.7460474283108,y: 29.3387430009631}
,
{x:30.7456577906453,y: 29.3387479615677}
,
{x:30.7453856921938,y: 29.3387557463476}
,
{x:30.7453206648597,y: 29.3387421980792}
,
{x:30.7452794950207,y: 29.3387294536112}
,
{x:30.7452638495689,y: 29.3386890043546}
,
{x:30.7452327360722,y: 29.3386458464794}
,
{x:30.7452092172996,y: 29.3382468459252}
,
{x:30.7451932932396,y: 29.3381470861343}
,
{x:30.7451588883695,y: 29.3380607899988}
,
{x:30.7451246860393,y: 29.3380176271504}
,
{x:30.7450564736422,y: 29.3379717392822}
,
{x:30.7450130388273,y: 29.3379366565487}
,
{x:30.7448674842756,y: 29.3378745278423}
,
{x:30.7447961586136,y: 29.3378232447753}
,
{x:30.7446565512364,y: 29.3377098965363}
,
{x:30.7444828140231,y: 29.3375668617469}
,
{x:30.7444456270306,y: 29.3375452620424}
,
{x:30.7444039864647,y: 29.3375374500047}
,
{x:30.7444428391824,y: 29.3372875201343}
,
{x:30.7444687798473,y: 29.3372110757915}
,
{x:30.7445494294482,y: 29.3371424349883}
,
{x:30.744482509557,y: 29.3369603641336}
,
{x:30.7441178371403,y: 29.3362078474437}
,
{x:30.7442980185639,y: 29.336121603846}
,
{x:30.7455510939202,y: 29.3357072086061}
,
{x:30.7455156179142,y: 29.3356258768488}
,
{x:30.7451095573962,y: 29.3350004894022}
,
{x:30.7447909330195,y: 29.33437520216}
,
{x:30.7446037457423,y: 29.3342682954474}
,
{x:30.7444636957762,y: 29.3342427323874}
,
{x:30.7439507491885,y: 29.3342370596295}
,
{x:30.7434841867812,y: 29.3341857018577}
,
{x:30.7431571109171,y: 29.334068454337}
,
{x:30.742952552322,y: 29.3339716744725}
,
{x:30.7425200248304,y: 29.3337577558171}
,
{x:30.7420054928805,y: 29.3334675129522}
,
{x:30.7413564669114,y: 29.3330856270145}
,
{x:30.7408126370899,y: 29.3327445010346}
,
{x:30.7407246337082,y: 29.3326427709301}
,
{x:30.7403378603789,y: 29.3322612005825}
,
{x:30.7399327072862,y: 29.3317322665631}
,
{x:30.739937254461,y: 29.3317305168911}
,
{x:30.7397590476326,y: 29.331515751476}
,
{x:30.7393412450791,y: 29.3311450938444}
,
{x:30.7386324950694,y: 29.3307352436735}
,
{x:30.7382250832987,y: 29.3304096000468}
,
{x:30.7379957975295,y: 29.330158321857}
,
{x:30.7378318265414,y: 29.3300552010306}
,
{x:30.7375226124345,y: 29.3298654419017}
,
{x:30.7370071880047,y: 29.3295765889744}
,
{x:30.7362808196747,y: 29.3292050767706}
,
{x:30.7355828677653,y: 29.3287349322408}
,
{x:30.7350816599726,y: 29.3283967567538}
,
{x:30.7347961199117,y: 29.3281289128637}
,
{x:30.7347354295666,y: 29.328009546154}
,
{x:30.73469362635,y: 29.3278449860643}
,
{x:30.7346710631515,y: 29.3274995403848}
,
{x:30.7346668313439,y: 29.3273227200513}
,
{x:30.7346293668181,y: 29.3272938624029}
,
{x:30.7339069130173,y: 29.3272307381037}
,
{x:30.7337287015977,y: 29.3271933741849}
,
{x:30.7334426425208,y: 29.3271270095128}
,
{x:30.7333723981079,y: 29.3270734140515}
,
{x:30.7332788097936,y: 29.3269745399706}
,
{x:30.7331946824733,y: 29.3268469017896}
,
{x:30.7330920969061,y: 29.3265999816862}
,
{x:30.7330087874387,y: 29.3261598395143}
,
{x:30.7329766307325,y: 29.3258966124941}
,
{x:30.7329207325857,y: 29.3257402477247}
,
{x:30.7327711085063,y: 29.3255384632229}
,
{x:30.7325699899343,y: 29.3252913434497}
,
{x:30.7320297264056,y: 29.3255410814267}
,
{x:30.7317384077231,y: 29.3256926343336}
,
{x:30.7316209941149,y: 29.3257335169115}
,
{x:30.7315271704191,y: 29.3257251030846}
,
{x:30.7309272881819,y: 29.3255500899217}
,
{x:30.7305679204876,y: 29.3254509523715}
,
{x:30.7303952571132,y: 29.3254425317309}
,
{x:30.7302365917722,y: 29.3255081724647}
,
{x:30.7294105110572,y: 29.3259268274364}
,
{x:30.7291964202599,y: 29.3260419418632}
,
{x:30.7291355149775,y: 29.3260955314203}
,
{x:30.7290689492338,y: 29.3261769382358}
,
{x:30.7290068453729,y: 29.3262873303829}
,
{x:30.7289337955435,y: 29.3264171678806}
,
{x:30.7288267475657,y: 29.3266007443198}
,
{x:30.7286632785574,y: 29.3267486310602}
,
{x:30.7284352063182,y: 29.326921803498}
,
{x:30.7282732920474,y: 29.3270367811024}
,
{x:30.7280678679376,y: 29.3270913818589}
,
{x:30.7279060766244,y: 29.3270802250751}
,
{x:30.7262699677944,y: 29.3268315823306}
,
{x:30.7244074525342,y: 29.3265068842204}
,
{x:30.7229312305521,y: 29.3262531250678}
,
{x:30.7220903164735,y: 29.3261261661513}
,
{x:30.7219968585862,y: 29.3261205858408}
,
{x:30.7218598089202,y: 29.3261039994856}
,
{x:30.721665439592,y: 29.3261840611073}
,
{x:30.7213094170683,y: 29.326711562026}
,
{x:30.7211841537558,y: 29.3269306261982}
,
{x:30.7210841325118,y: 29.3271498560074}
,
{x:30.7209530554319,y: 29.3272099888608}
,
{x:30.7207910489853,y: 29.3271824069341}
,
{x:30.7205043762391,y: 29.3271492057472}
,
{x:30.7202926397625,y: 29.3270722510316}
,
{x:30.7202305580825,y: 29.3269845051606}
,
{x:30.7201498427018,y: 29.3268748207459}
,
{x:30.7201128352268,y: 29.326743267685}
,
{x:30.7201006509487,y: 29.3266501003283}
,
{x:30.7200386154101,y: 29.326551398174}
,
{x:30.7198953264306,y: 29.3265238447271}
,
{x:30.7196148067347,y: 29.3265235398451}
,
{x:30.7194216946198,y: 29.3264794947966}
,
{x:30.71919157201,y: 29.3263148657088}
,
{x:30.7189367078568,y: 29.3262309980443}
,
{x:30.7187696297012,y: 29.3260170320211}
,
{x:30.7187021398582,y: 29.3258031929176}
,
{x:30.718727898599,y: 29.3256113923381}
,
{x:30.7189228653834,y: 29.3251512299178}
,
{x:30.7193433680631,y: 29.3243240978148}
,
{x:30.7193688666224,y: 29.324187104375}
,
{x:30.7192777759291,y: 29.3237156538793}
,
{x:30.7191632105652,y: 29.3229701571301}
,
{x:30.7190736898631,y: 29.322219231421}
,
{x:30.7190066665523,y: 29.3219561043548}
,
{x:30.7189267886027,y: 29.3217806540975}
,
{x:30.7187661833809,y: 29.3215996472574}
,
{x:30.7186114041289,y: 29.321495371276}
,
{x:30.7175571799035,y: 29.3211162040862}
,
{x:30.7162669439504,y: 29.3207038970301}
,
{x:30.7152931004809,y: 29.3203686044518}
,
{x:30.7151502010732,y: 29.3203520055347}
,
{x:30.7150850862479,y: 29.3203554076002}
,
{x:30.7149449191635,y: 29.3203627284207}
,
{x:30.7147267941324,y: 29.3204282190162}
,
{x:30.7140280234631,y: 29.320717740219}
,
{x:30.7136789291139,y: 29.3208049548973}
,
{x:30.713460866423,y: 29.320837544114}
,
{x:30.7131429804567,y: 29.320897387492}
,
{x:30.7124098029648,y: 29.3209372053009}
,
{x:30.7112837678363,y: 29.3209183138745}
,
{x:30.7110085508025,y: 29.3209012669105}
,
{x:30.7108960203677,y: 29.3208736096049}
,
{x:30.7105210028173,y: 29.3207521762374}
,
{x:30.709821755367,y: 29.3204618067782}
,
{x:30.7087419718068,y: 29.3199811866014}
,
{x:30.7086097484335,y: 29.3197269397822}
,
{x:30.7084883478743,y: 29.3194935034573}
,
{x:30.7082492180996,y: 29.3190889283516}
,
{x:30.7079833384622,y: 29.3186457951446}
,
{x:30.7077240268507,y: 29.3181855455374}
,
{x:30.7074063049932,y: 29.3176452219941}
,
{x:30.7072572472211,y: 29.3173650889749}
,
{x:30.7071307990909,y: 29.3171535291298}
,
{x:30.7070400305603,y: 29.3169962954602}
,
{x:30.7069428047422,y: 29.3168190613558}
,
{x:30.7068222350379,y: 29.3164311585921}
,
{x:30.7066519672921,y: 29.3159961357525}
,
{x:30.7065745354366,y: 29.3157332907168}
,
{x:30.7065358608177,y: 29.3155875928805}
,
{x:30.7065166346055,y: 29.3154761990966}
,
{x:30.7064844759111,y: 29.3153305158723}
,
{x:30.7063907215384,y: 29.3148168957674}
,
{x:30.7061934492787,y: 29.3140103163957}
,
{x:30.7061035933899,y: 29.3135380656257}
,
{x:30.7059662989554,y: 29.3129476971219}
,
{x:30.7058589281234,y: 29.3125248962629}
,
{x:30.7058462269085,y: 29.3124106627132}
,
{x:30.7058465012048,y: 29.3123154915819}
,
{x:30.7058823043634,y: 29.3122039454528}
,
{x:30.705981842366,y: 29.312075958228}
,
{x:30.7061124781994,y: 29.3119620411261}
,
{x:30.7064257935094,y: 29.3117609695875}
,
{x:30.7067042067512,y: 29.311613117293}
,
{x:30.7069260222749,y: 29.3115108218886}
,
{x:30.7071174769694,y: 29.3113932310155}
,
{x:30.7072132957945,y: 29.3113020769074}
,
{x:30.7073135789343,y: 29.3111690582258}
,
{x:30.7073964881889,y: 29.3110359997304}
,
{x:30.7074316400677,y: 29.3108952231287}
,
{x:30.7074497812083,y: 29.3107143131317}
,
{x:30.7074409874419,y: 29.3104910268609}
,
{x:30.7074237662417,y: 29.3100537981188}
,
{x:30.7074122304915,y: 29.3097609042412}
,
{x:30.7074351869283,y: 29.3095762066503}
,
{x:30.7074668116918,y: 29.3093658233372}
,
{x:30.7075412657199,y: 29.3091289539042}
,
{x:30.7077942413001,y: 29.308649967312}
,
{x:30.7079815714777,y: 29.3083264914988}
,
{x:30.7080033888951,y: 29.3082888162339}
,
{x:30.7079989921706,y: 29.3082831309487}
,
{x:30.7077187452455,y: 29.3079987819046}
,
{x:30.70759562353,y: 29.3077919747417}
,
{x:30.7074427515095,y: 29.3076883693843}
,
{x:30.7073957854429,y: 29.3076314684217}
,
{x:30.7075741607026,y: 29.3070587213046}
,
{x:30.7075330570489,y: 29.3070121599473}
,
{x:30.7071327771124,y: 29.3069028456866}
,
{x:30.7070448119368,y: 29.3067632392474}
,
{x:30.7069684654605,y: 29.306680456671}
,
{x:30.7067800265428,y: 29.3066542232661}
,
{x:30.7065445785201,y: 29.3065865788852}
,
{x:30.7065211185236,y: 29.3065503834788}
,
{x:30.7065153760653,y: 29.3064987362158}
,
{x:30.7064981339884,y: 29.3063489591286}
,
{x:30.7054139496604,y: 29.3064291728587}
,
{x:30.7052195159211,y: 29.3064390682213}
,
{x:30.7050781613972,y: 29.3064284282418}
,
{x:30.7048544675772,y: 29.3063711335432}
,
{x:30.7044895836032,y: 29.3062463997605}
,
{x:30.7039604571852,y: 29.3058786184479}
,
{x:30.7030135719433,y: 29.3053395091112}
,
{x:30.702813565454,y: 29.3052409565852}
,
{x:30.7025252254854,y: 29.3051318795368}
,
{x:30.7021015150169,y: 29.3049811901194}
,
{x:30.7013490783784,y: 29.3044321779834}
,
{x:30.7003026060799,y: 29.3037121055232}
,
{x:30.6999794132811,y: 29.3034377142261}
,
{x:30.6999031362012,y: 29.3033342737967}
,
{x:30.6998622649332,y: 29.3032102589976}
,
{x:30.6998220007304,y: 29.3028797091292}
,
{x:30.6996591704507,y: 29.3021616252133}
,
{x:30.6995660127907,y: 29.3017896474038}
,
{x:30.6994785333288,y: 29.3014899711599}
,
{x:30.6993790293735,y: 29.3012728827119}
,
{x:30.6992556894628,y: 29.30114868143}
,
{x:30.6991085896555,y: 29.3010915501394}
,
{x:30.6988435388163,y: 29.3010806224035}
,
{x:30.698719864171,y: 29.3010700157152}
,
{x:30.6986324640787,y: 29.3007445219622}
,
{x:30.6985757834025,y: 29.2999905329298}
,
{x:30.6984935436732,y: 29.2999128948568}
,
{x:30.6981581896974,y: 29.2997727209571}
,
{x:30.6966449425557,y: 29.2995524104811}
,
{x:30.6947842586399,y: 29.2992781871842}
,
{x:30.6929651439281,y: 29.2990594694444}
,
{x:30.692367507658,y: 29.2990306716592}
,
{x:30.6918606813475,y: 29.2989239870829}
,
{x:30.6918432209452,y: 29.2989202229161}
,
{x:30.6914235086081,y: 29.2988297620114}
,
{x:30.6911172202449,y: 29.2987360044786}
,
{x:30.6904016686797,y: 29.2984335201914}
,
{x:30.690134725973,y: 29.2982597605607}
,
{x:30.6899813191462,y: 29.2981812813682}
,
{x:30.689527524889,y: 29.2979037111907}
,
{x:30.688956910502,y: 29.2975286356476}
,
{x:30.6883863640148,y: 29.2971072513265}
,
{x:30.6875988678031,y: 29.2965998488486}
,
{x:30.6869979127833,y: 29.296249187072}
,
{x:30.6864248564529,y: 29.2959449895977}
,
{x:30.6857934630225,y: 29.2955650413313}
,
{x:30.6853790750247,y: 29.2952028451179}
,
{x:30.6850620558663,y: 29.2949458266948}
,
{x:30.6848535044963,y: 29.294781811946}
,
{x:30.6847700862075,y: 29.2947376708581}
,
{x:30.6845804667734,y: 29.2946571761378}
,
{x:30.684069418304,y: 29.2944747037729}
,
{x:30.6835078431314,y: 29.294217043825}
,
{x:30.6828573929822,y: 29.2938689333466}
,
{x:30.6824404794193,y: 29.29365562395}
,
{x:30.6817515123163,y: 29.2934703776698}
,
{x:30.6808567243827,y: 29.2932699702521}
,
{x:30.680256671586,y: 29.2930560536766}
,
{x:30.6802655132506,y: 29.2930075595939}
,
{x:30.6804369255024,y: 29.2920671336757}
,
{x:30.6806172566386,y: 29.2909280863509}
,
{x:30.6808607246447,y: 29.2899090944632}
,
{x:30.6810943553994,y: 29.2887959142321}
,
{x:30.6812403125376,y: 29.2881518924889}
,
{x:30.6812840701598,y: 29.2880581121433}
,
{x:30.6813618465488,y: 29.2879516067685}
,
{x:30.6817701263415,y: 29.2874319079783}
,
{x:30.68258648872,y: 29.2864308201692}
,
{x:30.6836405810388,y: 29.2851782793301}
,
{x:30.684388369759,y: 29.2842322428753}
,
{x:30.6849563458666,y: 29.2835333222564}
,
{x:30.686124904199,y: 29.2819988323916}
,
{x:30.6868860844426,y: 29.2810248680536}
,
{x:30.6873935734159,y: 29.2803613525194}
,
{x:30.6879790764136,y: 29.2796127985835}
,
{x:30.6887790895345,y: 29.2786431744143}
,
{x:30.6891790635232,y: 29.2781668820863}
,
{x:30.6906727619676,y: 29.2764104049146}
,
{x:30.6934484471574,y: 29.2731530378031}
,
{x:30.6948980892584,y: 29.2714659969721}
,
{x:30.6959798181164,y: 29.2701144670935}
,
{x:30.696089980495,y: 29.2699983771351}
,
{x:30.6960798422641,y: 29.2699675786894}
,
{x:30.6953983213861,y: 29.2699768812014}
,
{x:30.6950637506969,y: 29.2700750818248}
,
{x:30.6944162330232,y: 29.2702981758152}
,
{x:30.693981765987,y: 29.2704113701814}
,
{x:30.6934344578574,y: 29.2705128844275}
,
{x:30.6928132679915,y: 29.2706408704569}
,
{x:30.6923127394006,y: 29.2707453771453}
,
{x:30.6921378556566,y: 29.2707269276371}
,
{x:30.6919130216077,y: 29.270570451207}
,
{x:30.6917000244132,y: 29.2704592553655}
,
{x:30.6915303915461,y: 29.2704054196459}
,
{x:30.691330191959,y: 29.2703820520404}
,
{x:30.6911342877946,y: 29.2703777798827}
,
{x:30.6909339950263,y: 29.2703849495961}
,
{x:30.6908295995908,y: 29.2703541687275}
,
{x:30.6907252719954,y: 29.2703004836377}
,
{x:30.6906341567163,y: 29.2701972035246}
,
{x:30.6905258922471,y: 29.2700060859631}
,
{x:30.6904653110006,y: 29.2698837910571}
,
{x:30.6903350478079,y: 29.2697689686102}
,
{x:30.6901480719882,y: 29.2696921865664}
,
{x:30.6898827662211,y: 29.2696037703863}
,
{x:30.6897437503102,y: 29.269504196057}
,
{x:30.6896528447977,y: 29.2693322039333}
,
{x:30.6895490989738,y: 29.2690876540856}
,
{x:30.6894411158992,y: 29.2688049202762}
,
{x:30.6893936553377,y: 29.2686635680411}
,
{x:30.6893156151056,y: 29.2685565014364}
,
{x:30.6891547405347,y: 29.2684874134163}
,
{x:30.6886371623736,y: 29.2683220589421}
,
{x:30.6878758426007,y: 29.2681370434656}
,
{x:30.6873974149937,y: 29.2679832281252}
,
{x:30.6872364493463,y: 29.267944676681}
,
{x:30.687127715465,y: 29.267910064841}
,
{x:30.6869884590059,y: 29.2678906508027}
,
{x:30.6868709125656,y: 29.2678903743773}
,
{x:30.6867227748322,y: 29.2679281988687}
,
{x:30.6866267968963,y: 29.267992867222}
,
{x:30.6865433654191,y: 29.2682255274346}
,
{x:30.6864732290912,y: 29.2683818721519}
,
{x:30.6863595788813,y: 29.2685304799034}
,
{x:30.6862460808688,y: 29.2686294625207}
,
{x:30.6861545259332,y: 29.2686712369096}
,
{x:30.6860543813245,y: 29.2686748177005}
,
{x:30.6859891826993,y: 29.2686403081181}
,
{x:30.6859023101517,y: 29.2685752090346}
,
{x:30.6857633706284,y: 29.2684527267876}
,
{x:30.6856938420725,y: 29.2684105718752}
,
{x:30.6855850603379,y: 29.2683912281353}
,
{x:30.6854456747289,y: 29.2684138027887}
,
{x:30.6853411182529,y: 29.2684364597009}
,
{x:30.6849881481465,y: 29.2685425094134}
,
{x:30.6847921893341,y: 29.2685573144052}
,
{x:30.6847051874219,y: 29.2685342048716}
,
{x:30.6846096676901,y: 29.2684499967532}
,
{x:30.6844188862808,y: 29.2681976015275}
,
{x:30.6842633470055,y: 29.2678116831964}
,
{x:30.6841163635102,y: 29.2674754108385}
,
{x:30.6840080669308,y: 29.2672995563062}
,
{x:30.6839039470833,y: 29.2671809719127}
,
{x:30.6838214663763,y: 29.267104429708}
,
{x:30.6837215001171,y: 29.2670507500874}
,
{x:30.6835519249107,y: 29.2669816353913}
,
{x:30.6834128003626,y: 29.2669202265457}
,
{x:30.6833389680456,y: 29.2668627914798}
,
{x:30.6832565815584,y: 29.2667557102342}
,
{x:30.683226485307,y: 29.2666334848854}
,
{x:30.6832271472114,y: 29.2664197166291}
,
{x:30.6831752003285,y: 29.2663241592349}
,
{x:30.6829194558209,y: 29.2659647223928}
,
{x:30.6827328949538,y: 29.2657581420173}
,
{x:30.6825721949,y: 29.2656356046921}
,
{x:30.6824330616917,y: 29.2655780127494}
,
{x:30.6822937511234,y: 29.2655776802802}
,
{x:30.6820456505421,y: 29.2655618190206}
,
{x:30.6818845598136,y: 29.2655652507649}
,
{x:30.6818191625925,y: 29.2655956335764}
,
{x:30.6818102656497,y: 29.2656566887828}
,
{x:30.6818447018876,y: 29.2657827427829}
,
{x:30.6818705381968,y: 29.2658744208438}
,
{x:30.6818224357097,y: 29.2659430168204}
,
{x:30.6817396251129,y: 29.2659733579564}
,
{x:30.6816351413098,y: 29.2659731080442}
,
{x:30.6815131837143,y: 29.2659919025944}
,
{x:30.6814433734229,y: 29.2660413607826}
,
{x:30.6813166822227,y: 29.2661822983172}
,
{x:30.6811288759709,y: 29.266376531919}
,
{x:30.6809760625875,y: 29.2665174060241}
,
{x:30.6808147200244,y: 29.2666010008397}
,
{x:30.6806448262923,y: 29.2666349492399}
,
{x:30.6805012679099,y: 29.2666002485982}
,
{x:30.6803708286493,y: 29.2665464927231}
,
{x:30.6802318510071,y: 29.2664392736303}
,
{x:30.680088495194,y: 29.2663396792631}
,
{x:30.6799493148722,y: 29.2662973540885}
,
{x:30.679714273376,y: 29.2662815186977}
,
{x:30.6793979427773,y: 29.2663195749086}
,
{x:30.6792787552057,y: 29.2663339127925}
,
{x:30.6791045553956,y: 29.266352579183}
,
{x:30.6789043423364,y: 29.2663368272544}
,
{x:30.6787387414332,y: 29.2663898701309}
,
{x:30.6785948841156,y: 29.266450600255}
,
{x:30.678420551291,y: 29.2665112558816}
,
{x:30.678220242068,y: 29.2665260406369}
,
{x:30.6778938010764,y: 29.2665023469464}
,
{x:30.6773891553283,y: 29.2663866056054}
,
{x:30.6769932154053,y: 29.2663131160788}
,
{x:30.6768147578326,y: 29.2663012309606}
,
{x:30.6766231673325,y: 29.2663122171385}
,
{x:30.6763835435212,y: 29.266368894707}
,
{x:30.6762049903785,y: 29.2663875464769}
,
{x:30.6759917045426,y: 29.2663755755042}
,
{x:30.6757610046343,y: 29.2663635617631}
,
{x:30.6755824390761,y: 29.2663860304632}
,
{x:30.6753340828195,y: 29.2664503199629}
,
{x:30.6751859067556,y: 29.2664995830381}
,
{x:30.6751030321435,y: 29.2665490060531}
,
{x:30.6750025255243,y: 29.2666670973621}
,
{x:30.6749062633051,y: 29.2668195548812}
,
{x:30.6748045401381,y: 29.2670300710742}
,
{x:30.6746562679598,y: 29.2673991771745}
,
{x:30.674581698515,y: 29.2675745908315}
,
{x:30.6744942153239,y: 29.2677041657961}
,
{x:30.6743719755476,y: 29.2678107515181}
,
{x:30.6741930047038,y: 29.2679591892325}
,
{x:30.6740229114051,y: 29.2680542060217}
,
{x:30.6737745264503,y: 29.268126126068}
,
{x:30.6735914458112,y: 29.2681982065781}
,
{x:30.6734126194879,y: 29.2683008353399}
,
{x:30.6732555738751,y: 29.2683996997865}
,
{x:30.6731246247615,y: 29.2685062632996}
,
{x:30.6730116946517,y: 29.2686574002585}
,
{x:30.6729136151661,y: 29.268855027617}
,
{x:30.6728225425801,y: 29.269032310423}
,
{x:30.6726563719543,y: 29.2692609408697}
,
{x:30.6725165670697,y: 29.2694132895622}
,
{x:30.6723987013067,y: 29.2695122504454}
,
{x:30.672276652969,y: 29.269557757869}
,
{x:30.6721765077615,y: 29.2695613281731}
,
{x:30.6717610013451,y: 29.2695821831629}
,
{x:30.6717608352965,y: 29.2696338167827}
,
{x:30.6717723347143,y: 29.2701799086415}
,
{x:30.6719538601972,y: 29.2714235216327}
,
{x:30.6720574094859,y: 29.2721905889968}
,
{x:30.672200676507,y: 29.2729693724596}
,
{x:30.6726350275716,y: 29.2738882920346}
,
{x:30.6730041321347,y: 29.2744933552792}
,
{x:30.6731546898383,y: 29.2749856145299}
,
{x:30.6731208187716,y: 29.2754470876488}
,
{x:30.6731515794253,y: 29.2761374595053}
,
{x:30.6730711814238,y: 29.2765675715043}
,
{x:30.6729771666345,y: 29.2768579787798}
,
{x:30.6728548419878,y: 29.2771160216391}
,
{x:30.6726978513103,y: 29.2772259194707}
,
{x:30.6723651037051,y: 29.2774126200159}
,
{x:30.6719194961228,y: 29.2775715560104}
,
{x:30.6715053341353,y: 29.2776754503874}
,
{x:30.6709972158586,y: 29.2777020287371}
,
{x:30.6704139066606,y: 29.2776788719139}
,
{x:30.6701316333067,y: 29.277678324634}
,
{x:30.6697928345608,y: 29.2777107185217}
,
{x:30.669447611977,y: 29.2778147097536}
,
{x:30.669158827571,y: 29.2779243155893}
,
{x:30.6687318999088,y: 29.2780942380746}
,
{x:30.6684806379628,y: 29.2782534887921}
,
{x:30.6681812528746,y: 29.2786010137503}
,
{x:30.6679523140959,y: 29.2789079603764}
,
{x:30.6676056225103,y: 29.2797060229613}
,
{x:30.6673221640432,y: 29.2802563154486}
,
{x:30.6670069032207,y: 29.2810158749101}
,
{x:30.6669118664672,y: 29.2814729114895}
,
{x:30.6669429041752,y: 29.2816437553439}
,
{x:30.6670116490342,y: 29.2817871368454}
,
{x:30.6670801924055,y: 29.2820351893484}
,
{x:30.6670609900513,y: 29.2822279642743}
,
{x:30.6669915412282,y: 29.282442666315}
,
{x:30.6664370147236,y: 29.2835983509145}
,
{x:30.6663361011986,y: 29.2838515434019}
,
{x:30.6662981217458,y: 29.284016730302}
,
{x:30.6661908338236,y: 29.2843194890414}
,
{x:30.6660586083476,y: 29.2845340454292}
,
{x:30.6657753497172,y: 29.2849465831074}
,
{x:30.6654291561014,y: 29.2854360979256}
,
{x:30.6652719126867,y: 29.2855954985904}
,
{x:30.6650644495713,y: 29.2857547818112}
,
{x:30.6648570590239,y: 29.2858754996909}
,
{x:30.6646434316179,y: 29.2859741666246}
,
{x:30.6643294079644,y: 29.2860505623527}
,
{x:30.6639274622124,y: 29.2861432763524}
,
{x:30.6637075689082,y: 29.2862309043082}
,
{x:30.6634685848475,y: 29.2863365807296}
,
{x:30.6626197957879,y: 29.2870546502039}
,
{x:30.6621482909988,y: 29.2873620117183}
,
{x:30.6618842688851,y: 29.2875211299798}
,
{x:30.6618744399425,y: 29.2875219276777}
,
{x:30.6617394903085,y: 29.2875962993103}
,
{x:30.6615547129352,y: 29.2877512125007}
,
{x:30.6612959937063,y: 29.2879803866164}
,
{x:30.660844835998,y: 29.2884841986065}
,
{x:30.6606228142321,y: 29.2887911289045}
,
{x:30.6605117835625,y: 29.2889526843743}
,
{x:30.6604266384064,y: 29.2890851743454}
,
{x:30.6603009561566,y: 29.2891981445491}
,
{x:30.6601441752508,y: 29.2893020811664}
,
{x:30.6599025699943,y: 29.2894474686277}
,
{x:30.659718520244,y: 29.2895582195221}
,
{x:30.6594880601905,y: 29.2897625301871}
,
{x:30.6592622792746,y: 29.2899322317927}
,
{x:30.6590515144454,y: 29.2900773333261}
,
{x:30.6587671452709,y: 29.2902001136101}
,
{x:30.6584898545437,y: 29.2903251122912}
,
{x:30.6583679471043,y: 29.2903668762934}
,
{x:30.658242186376,y: 29.2904668797761}
,
{x:30.6581755102574,y: 29.2905540862919}
,
{x:30.6581567850608,y: 29.2906511202363}
,
{x:30.6581526591712,y: 29.2908064402968}
,
{x:30.6581632586495,y: 29.2909747399562}
,
{x:30.6581704397885,y: 29.2910459506479}
,
{x:30.658229272389,y: 29.2911237634883}
,
{x:30.6583949813135,y: 29.2912568571439}
,
{x:30.6585422115679,y: 29.2913996127865}
,
{x:30.6586783523711,y: 29.2915488140007}
,
{x:30.6587517063442,y: 29.291714037303}
,
{x:30.6588580349854,y: 29.2919667183691}
,
{x:30.6588651006668,y: 29.2920799988933}
,
{x:30.6588647218424,y: 29.2922159129508}
,
{x:30.6588643149284,y: 29.2923615341979}
,
{x:30.6588411840838,y: 29.2927142068684}
,
{x:30.6587739047589,y: 29.2930149902438}
,
{x:30.6587175795952,y: 29.2933578684912}
,
{x:30.658716638471,y: 29.293396518405}
,
{x:30.6587134072101,y: 29.2935293690491}
,
{x:30.6587571170156,y: 29.2937365874798}
,
{x:30.6589038873504,y: 29.2940476234527}
,
{x:30.6593340692064,y: 29.2946473954921}
,
{x:30.6598120811744,y: 29.2953087827978}
,
{x:30.6602127740615,y: 29.2959052559209}
,
{x:30.660540236858,y: 29.2962911976767}
,
{x:30.6606872741826,y: 29.296514869566}
,
{x:30.6608452528481,y: 29.2967871131863}
,
{x:30.6609738809058,y: 29.2969945581936}
,
{x:30.6611063195883,y: 29.2971599449422}
,
{x:30.6612794552224,y: 29.2972930757115}
,
{x:30.6615743188135,y: 29.2974621226948}
,
{x:30.6619394617967,y: 29.2975828114139}
,
{x:30.6623600212389,y: 29.2976907013002}
,
{x:30.6626330401681,y: 29.2977529016279}
,
{x:30.6627990008724,y: 29.2978148219129}
,
{x:30.6628689324154,y: 29.297892673907}
,
{x:30.6629277546139,y: 29.2979834413948}
,
{x:30.6629385650842,y: 29.2980805548888}
,
{x:30.66291605287,y: 29.2982131803506}
,
{x:30.662815710975,y: 29.2984556314884}
,
{x:30.6627979218589,y: 29.2986141344242}
,
{x:30.6627494794106,y: 29.2987854965465}
,
{x:30.6626963258988,y: 29.2993321893942}
,
{x:30.6626765772941,y: 29.2998077845056}
,
{x:30.6626428650143,y: 29.2999888920214}
,
{x:30.6625870155794,y: 29.300166701933}
,
{x:30.6624386534821,y: 29.3004316224352}
,
{x:30.6623015469139,y: 29.3006286221172}
,
{x:30.6620941765568,y: 29.3008739644814}
,
{x:30.6619424090558,y: 29.3010320947507}
,
{x:30.6618535747587,y: 29.3011224484958}
,
{x:30.6616354761164,y: 29.3012415688703}
,
{x:30.6611549206757,y: 29.3015023341145}
,
{x:30.6609405820791,y: 29.3015955777697}
,
{x:30.6607299247562,y: 29.3016920663317}
,
{x:30.660545222412,y: 29.301746563993}
,
{x:30.6602571185239,y: 29.3018201907031}
,
{x:30.6599468319916,y: 29.3019066988071}
,
{x:30.6596992355041,y: 29.3020127908879}
,
{x:30.6594255514065,y: 29.3022061696776}
,
{x:30.6590150121377,y: 29.3024994716766}
,
{x:30.6587930990077,y: 29.3026573998568}
,
{x:30.6585822937948,y: 29.3028024163825}
,
{x:30.6584304770808,y: 29.3029702429814}
,
{x:30.6583191749181,y: 29.3031672989789}
,
{x:30.6582227393932,y: 29.3033288057935}
,
{x:30.658081329319,y: 29.3037231390495}
,
{x:30.6579882117499,y: 29.3040108353274}
,
{x:30.6578915716205,y: 29.3042402820877}
,
{x:30.6577837701944,y: 29.3044988167941}
,
{x:30.6575777340311,y: 29.3048994359971}
,
{x:30.6574403500057,y: 29.3051740623154}
,
{x:30.6573366066492,y: 29.305306425432}
,
{x:30.6571663452973,y: 29.3054644860513}
,
{x:30.6570257363486,y: 29.3055805696637}
,
{x:30.6569497962084,y: 29.3056657908525}
,
{x:30.6569437883305,y: 29.3056643658391}
,
{x:30.6565664970262,y: 29.305981332436}
,
{x:30.6563491218168,y: 29.3062086507502}
,
{x:30.6562241641574,y: 29.3063670780158}
,
{x:30.6560097331654,y: 29.30665247658}
,
{x:30.6558365551314,y: 29.3068829638379}
,
{x:30.6555737426912,y: 29.3071319145109}
,
{x:30.6553471589438,y: 29.3072775820652}
,
{x:30.6550882404024,y: 29.3074325973449}
,
{x:30.6545346856126,y: 29.3077854494324}
,
{x:30.6541594987535,y: 29.3080075901395}
,
{x:30.6538329642187,y: 29.3081789056314}
,
{x:30.6536426379265,y: 29.3082827531167}
,
{x:30.6535331394561,y: 29.3083483066293}
,
{x:30.6534700204634,y: 29.3083860948636}
,
{x:30.6532756178901,y: 29.3085696012458}
,
{x:30.6531620665646,y: 29.3087250172904}
,
{x:30.6530430271509,y: 29.3089134515917}
,
{x:30.6529615010952,y: 29.3091586209931}
,
{x:30.6528958334667,y: 29.309498216179}
,
{x:30.6528624109566,y: 29.3098567768431}
,
{x:30.6528183062803,y: 29.3101869923924}
,
{x:30.6528281766002,y: 29.3104748850185}
,
{x:30.6528275724699,y: 29.3106683669074}
,
{x:30.652880914823,y: 29.3108289649855}
,
{x:30.6529176612588,y: 29.3108808240385}
,
{x:30.6529613284742,y: 29.3109424488783}
,
{x:30.6533257938929,y: 29.3114814439746}
,
{x:30.6537174519505,y: 29.3119355716633}
,
{x:30.6538567882476,y: 29.3121483191418}
,
{x:30.6539262573963,y: 29.3123184000416}
,
{x:30.6540117627613,y: 29.3125262782155}
,
{x:30.6540755512746,y: 29.3127907232266}
,
{x:30.6540860101936,y: 29.3128898518185}
,
{x:30.6542780555081,y: 29.3134661113287}
,
{x:30.6543162108615,y: 29.3136014558057}
,
{x:30.6544005425284,y: 29.3139006038843}
,
{x:30.6543998157609,y: 29.3141318319967}
,
{x:30.6543993250106,y: 29.3142875578685}
,
{x:30.6543769385526,y: 29.3145564762183}
,
{x:30.6543222563102,y: 29.3148205849308}
,
{x:30.6542679006018,y: 29.3149808767821}
,
{x:30.6541917212661,y: 29.3152307666957}
,
{x:30.6541211192442,y: 29.3154193261079}
,
{x:30.6540872769931,y: 29.3155282612638}
,
{x:30.6540694943757,y: 29.3155254130676}
,
{x:30.6538279029047,y: 29.316134452197}
,
{x:30.6538145399488,y: 29.3161681389758}
,
{x:30.6535602616267,y: 29.3165963839932}
,
{x:30.653244024627,y: 29.3169502099466}
,
{x:30.6529617044917,y: 29.3171685568887}
,
{x:30.6523268055662,y: 29.3176923502773}
,
{x:30.6516960390256,y: 29.3180971275223}
,
{x:30.650929597297,y: 29.3187274227773}
,
{x:30.6502675919587,y: 29.3192816231846}
,
{x:30.6497751083785,y: 29.3197995092682}
,
{x:30.6493489914349,y: 29.3202091545826}
,
{x:30.6491738348229,y: 29.3203483438699}
,
{x:30.6488658134544,y: 29.3205041277063}
,
{x:30.6486324478698,y: 29.3206754788207}
,
{x:30.6483910015109,y: 29.3209058781197}
,
{x:30.648102458158,y: 29.3211481152197}
,
{x:30.6479873377223,y: 29.3213030785108}
,
{x:30.6478548368085,y: 29.3213983956375}
,
{x:30.6475840765165,y: 29.3214886856593}
,
{x:30.6473939298501,y: 29.3215730761618}
,
{x:30.6472799819917,y: 29.3216542198689}
,
{x:30.6471205927026,y: 29.3217952340954}
,
{x:30.6469548627282,y: 29.3219576720792}
,
{x:30.6468182349609,y: 29.3220360609118}
,
{x:30.6467132093236,y: 29.3220527968744}
,
{x:30.6465927709099,y: 29.322055135721}
,
{x:30.6465000739344,y: 29.3220765181981}
,
{x:30.6463763785596,y: 29.3221236193281}
,
{x:30.646244129419,y: 29.3222566337264}
,
{x:30.6461729128325,y: 29.3223590558138}
,
{x:30.6460926021822,y: 29.3224511365283}
,
{x:30.6460092816126,y: 29.3225063706343}
,
{x:30.6459149945434,y: 29.32254101941}
,
{x:30.6457575369946,y: 29.3225695673716}
,
{x:30.6456308088612,y: 29.3226124989527}
,
{x:30.6454823623365,y: 29.3226905447798}
,
{x:30.6454578008106,y: 29.3227074567836}
,
{x:30.6453493126115,y: 29.3227821628812}
,
{x:30.6449995826711,y: 29.323051748846}
,
{x:30.644801685543,y: 29.3231377456508}
,
{x:30.6444276597215,y: 29.3232774041177}
,
{x:30.6442668826944,y: 29.3233472966229}
,
{x:30.6441771498564,y: 29.323409274389}
,
{x:30.6441275405033,y: 29.3234767792329}
,
{x:30.644034531491,y: 29.3236009828696}
,
{x:30.643885696715,y: 29.3238062014807}
,
{x:30.6437493758541,y: 29.3239573396582}
,
{x:30.6436069920313,y: 29.324070578205}
,
{x:30.6432788636678,y: 29.3243402243283}
,
{x:30.6431209490611,y: 29.3244831827652}
,
{x:30.6428606257437,y: 29.3247936100259}
,
{x:30.642813929624,y: 29.3249179453385}
,
{x:30.6427737510479,y: 29.3250853804225}
,
{x:30.6427534575676,y: 29.3252711720371}
,
{x:30.6428031949836,y: 29.3254022614126}
,
{x:30.6428706506127,y: 29.3255593938544}
,
{x:30.642904346411,y: 29.3256487828443}
,
{x:30.6429164101501,y: 29.3257435218172}
,
{x:30.6429161715113,y: 29.3258219907166}
,
{x:30.6428812329929,y: 29.3259540243063}
,
{x:30.6428470945681,y: 29.3261979042795}
,
{x:30.6428404661622,y: 29.3263467062874}
,
{x:30.6428601350385,y: 29.3264833397556}
,
{x:30.6429347190848,y: 29.3268313188685}
,
{x:30.6429835500994,y: 29.3270208657736}
,
{x:30.6430137382841,y: 29.3272482412065}
,
{x:30.6430592017414,y: 29.3275297759468}
,
{x:30.6430802088369,y: 29.3277300659885}
,
{x:30.6430700802079,y: 29.3280141475428}
,
{x:30.6430349016515,y: 29.3284118001299}
,
{x:30.6430339543815,y: 29.3287229645526}
,
{x:30.6430271349492,y: 29.3289339982511}
,
{x:30.6430236183558,y: 29.3290746894117}
,
{x:30.6429732202414,y: 29.3293992409852}
,
{x:30.6429478312303,y: 29.3296237485994}
,
{x:30.6429030213904,y: 29.3301404265722}
,
{x:30.6428739070229,y: 29.3305732689067}
,
{x:30.6428170809171,y: 29.3309789734873}
,
{x:30.6427071916842,y: 29.3315685184324}
,
{x:30.6426351779002,y: 29.3318903002385}
,
{x:30.6426348552813,y: 29.3319958239833}
,
{x:30.6426407009143,y: 29.3321040718035}
,
{x:30.6427018187736,y: 29.3323152950974}
,
{x:30.6427507911609,y: 29.3324588391253}
,
{x:30.6427846135082,y: 29.3325076390046}
,
{x:30.6428431234756,y: 29.3325619205961}
,
{x:30.6429571316802,y: 29.3326461227934}
,
{x:30.6431697161723,y: 29.332811777311}
,
{x:30.6432712818649,y: 29.3329257065458}
,
{x:30.6432772511198,y: 29.3329933680432}
,
{x:30.6432769453329,y: 29.3330934792153}
,
{x:30.6432548570857,y: 29.3332476441428}
,
{x:30.6432047832292,y: 29.3334639615644}
,
{x:30.6431294668432,y: 29.3336587582975}
,
{x:30.6430615721886,y: 29.3338396534798}
,
{x:30.6429775916704,y: 29.3340342288662}
,
{x:30.64293095317,y: 29.3341369144045}
,
{x:30.6428965176058,y: 29.3342883385564}
,
{x:30.6428743270459,y: 29.3344749715574}
,
{x:30.6428739714555,y: 29.3345913170343}
,
{x:30.6428860005663,y: 29.3346968748741}
,
{x:30.642916444549,y: 29.3348403646539}
,
{x:30.6429346184136,y: 29.3349567633197}
,
{x:30.6429187623809,y: 29.3350920048731}
,
{x:30.6428965548948,y: 29.3352840483389}
,
{x:30.6428619190272,y: 29.3355004089041}
,
{x:30.6428273834111,y: 29.3356843000294}
,
{x:30.6427960509578,y: 29.3358303207172}
,
{x:30.6428331765351,y: 29.3361020820469}
,
{x:30.6427955844025,y: 29.3363239076718}
,
{x:30.6427952861089,y: 29.3364456963941}
,
{x:30.6428258949056,y: 29.3365540352463}
,
{x:30.6428657856153,y: 29.336654280882}
,
{x:30.6429396047947,y: 29.336768148868}
,
{x:30.6430041892659,y: 29.3368711662959}
,
{x:30.6430471347383,y: 29.3369849518598}
,
{x:30.6430839329334,y: 29.3370878954954}
,
{x:30.6431360686784,y: 29.3372314762286}
,
{x:30.6432158604588,y: 29.3374292598251}
,
{x:30.6432773521868,y: 29.3375349751834}
,
{x:30.643372773301,y: 29.3376543145792}
,
{x:30.64348055172,y: 29.337770979825}
,
{x:30.6435851445922,y: 29.3379282332671}
,
{x:30.64368349799,y: 29.3381125340566}
,
{x:30.6437294757934,y: 29.338250685085}
,
{x:30.6437907935262,y: 29.3384294740767}
,
{x:30.6438705845014,y: 29.3386299631196}
,
{x:30.6439135230565,y: 29.3387491608934}
,
{x:30.6439746732871,y: 29.3389983161647}
,
{x:30.6440144064547,y: 29.3391662212411}
,
{x:30.644090859596,y: 29.3394722525276}
,
{x:30.6441584019689,y: 29.3396321130321}
,
{x:30.6442381988526,y: 29.3398326020132}
,
{x:30.6442687634465,y: 29.3399625929482}
,
{x:30.6442899352008,y: 29.3401466865064}
,
{x:30.6443170757682,y: 29.3404174025758}
,
{x:30.6443471483243,y: 29.3407530803801}
,
{x:30.6443800709016,y: 29.3411889036865}
,
{x:30.6444319019366,y: 29.3414650990744}
,
{x:30.6445146059696,y: 29.3417440822745}
,
{x:30.6446128654222,y: 29.3419743922369}
,
{x:30.6447759103306,y: 29.3422292326049}
,
{x:30.6449390933707,y: 29.3424272377514}
,
{x:30.6450435553949,y: 29.342568617645}
,
{x:30.6452190839276,y: 29.3427476948252}
,
{x:30.645410048,y: 29.3429295189391}
,
{x:30.6456562808598,y: 29.3431709438839}
,
{x:30.6458290263914,y: 29.3432986806402}
,
{x:30.6459861916009,y: 29.3434208797856}
,
{x:30.6461680875114,y: 29.3435350280892}
,
{x:30.6464147584405,y: 29.3436791177719}
,
{x:30.6466152408873,y: 29.3437743742272}
,
{x:30.646769435879,y: 29.3438559739624}
,
{x:30.6469852784503,y: 29.3439810371606}
,
{x:30.6471701603317,y: 29.3441330758283}
,
{x:30.6474844867182,y: 29.3443828813661}
,
{x:30.6477370059963,y: 29.3446460484647}
,
{x:30.6481066881464,y: 29.3449825933663}
,
{x:30.6485257012235,y: 29.3453517427298}
,
{x:30.6490370460021,y: 29.3458402018695}
,
{x:30.6494686005843,y: 29.3461471427805}
,
{x:30.6496534438071,y: 29.3463181181608}
,
{x:30.6497611695575,y: 29.3464537066694}
,
{x:30.6498164490149,y: 29.3465675068246}
,
{x:30.6498805581884,y: 29.3468382774534}
,
{x:30.6499322144638,y: 29.3471441912237}
,
{x:30.6499594931597,y: 29.3473309770725}
,
{x:30.6499530669787,y: 29.3474202568788}
,
{x:30.6498226534016,y: 29.347666149729}
,
{x:30.6496116222006,y: 29.3480227703312}
,
{x:30.6493786223068,y: 29.3483733152941}
,
{x:30.649341283819,y: 29.3484679159237}
,
{x:30.649340956869,y: 29.3485815574693}
,
{x:30.6493336264492,y: 29.3489819920386}
,
{x:30.6493661694508,y: 29.3494799427743}
,
{x:30.6493811929834,y: 29.3496260961545}
,
{x:30.6494180330622,y: 29.3497046632709}
,
{x:30.6494734609588,y: 29.3497643405302}
,
{x:30.6495349572147,y: 29.3498619144489}
,
{x:30.6496486614869,y: 29.3500651549839}
,
{x:30.6498851992717,y: 29.350520364764}
,
{x:30.6500047567095,y: 29.3508372636344}
,
{x:30.6500474735888,y: 29.3510213713968}
,
{x:30.6500255248172,y: 29.3511349542818}
,
{x:30.6499478500945,y: 29.3512916799689}
,
{x:30.649798723553,y: 29.3515889128899}
,
{x:30.6496898461649,y: 29.3518537857429}
,
{x:30.649527604788,y: 29.3524134448498}
,
{x:30.6494025209404,y: 29.3529407366026}
,
{x:30.6493212915977,y: 29.3532570943525}
,
{x:30.6493147219101,y: 29.3533923665287}
,
{x:30.6493420312918,y: 29.3535629047915}
,
{x:30.6493999648212,y: 29.3538255229725}
,
{x:30.6494669619694,y: 29.3541585161003}
,
{x:30.6495485689133,y: 29.3547810685986}
,
{x:30.649563107478,y: 29.3550949803742}
,
{x:30.6495594310774,y: 29.3552979047516}
,
{x:30.6495374085504,y: 29.3554358421122}
,
{x:30.6494252249762,y: 29.3559550538331}
,
{x:30.6493650091253,y: 29.3566244473217}
,
{x:30.6493564299285,y: 29.3568909983252}
,
{x:30.6493433401347,y: 29.3571398993568}
,
{x:30.6492902966765,y: 29.3573183421417}
,
{x:30.6492496828902,y: 29.3574724658566}
,
{x:30.6491688676755,y: 29.3576400111397}
,
{x:30.6490540704711,y: 29.3578074658336}
,
{x:30.6489052920482,y: 29.3579748307921}
,
{x:30.6487862205231,y: 29.3581022892808}
,
{x:30.6485823007963,y: 29.3582106349428}
,
{x:30.648178042951,y: 29.3584031152399}
,
{x:30.6472761600769,y: 29.3589132779369}
,
{x:30.6468287721792,y: 29.3591869019585}
,
{x:30.646135536451,y: 29.3595963302709}
,
{x:30.6455030537889,y: 29.3600579212773}
,
{x:30.6454001676126,y: 29.3601381389315}
,
{x:30.6451724032365,y: 29.3603757315345}
,
{x:30.6449307390272,y: 29.3606050784459}
,
{x:30.6448161215125,y: 29.3607075922572}
,
{x:30.6446768716238,y: 29.360782980465}
,
{x:30.644515971476,y: 29.3608664287839}
,
{x:30.6443070960585,y: 29.3609217770431}
,
{x:30.6441510502442,y: 29.3609899133979}
,
{x:30.6440426177645,y: 29.3610897370806}
,
{x:30.6439680779556,y: 29.3612194176889}
,
{x:30.6438829776417,y: 29.3613242251779}
,
{x:30.6437842918067,y: 29.3613851650841}
,
{x:30.6435621296421,y: 29.361435120834}
,
{x:30.6432973771865,y: 29.3615004773135}
,
{x:30.6431063719246,y: 29.3615878870488}
,
{x:30.6428542614439,y: 29.3617548725996}
,
{x:30.6426375160407,y: 29.3619139316076}
,
{x:30.6425663440581,y: 29.3619516208397}
,
{x:30.6424736293809,y: 29.36196219266}
,
{x:30.6423406203819,y: 29.3619633816348}
,
{x:30.6421028775681,y: 29.3620010749021}
,
{x:30.6419110374271,y: 29.3620661941824}
,
{x:30.6417858173281,y: 29.3621200982254}
,
{x:30.6415364904027,y: 29.3622814776486}
,
{x:30.6410653175998,y: 29.3625846701518}
,
{x:30.6408113485307,y: 29.3626976273246}
,
{x:30.6402017941173,y: 29.3629842475667}
,
{x:30.6397177443256,y: 29.3632642301557}
,
{x:30.6395660882632,y: 29.3633476883307}
,
{x:30.6389056836704,y: 29.3635788121212}
,
{x:30.6379793036634,y: 29.3639060420305}
,
{x:30.6370761336571,y: 29.3642119608561}
,
{x:30.6362843086392,y: 29.3644803075831}
,
{x:30.6352198799535,y: 29.3649697683598}
,
{x:30.6346844678759,y: 29.3652469602986}
,
{x:30.6346007701006,y: 29.3653333143566}
,
{x:30.634532571923,y: 29.3654034767581}
,
{x:30.6344576655813,y: 29.36551221395}
,
{x:30.6344449886392,y: 29.3656013924214}
,
{x:30.6344422224557,y: 29.3656208527196}
,
{x:30.6344047152288,y: 29.3657738434628}
,
{x:30.6343735509328,y: 29.3658576422731}
,
{x:30.6342712180161,y: 29.3659737099865}
,
{x:30.6339921724356,y: 29.3662759899946}
,
{x:30.6336789047874,y: 29.3666512358695}
,
{x:30.63348312311,y: 29.366933474853}
,
{x:30.6333594791411,y: 29.3671663307764}
,
{x:30.6333184204234,y: 29.3672969543654}
,
{x:30.6332714944836,y: 29.3674781275626}
,
{x:30.6332213737093,y: 29.3676917641529}
,
{x:30.6331790700907,y: 29.3678761071473}
,
{x:30.633092495662,y: 29.3680423700106}
,
{x:30.6329367895278,y: 29.3682227793675}
,
{x:30.6323128420536,y: 29.3685644489338}
,
{x:30.6319035130934,y: 29.3687898007237}
,
{x:30.6315149545501,y: 29.369113970892}
,
{x:30.6313225957074,y: 29.3693104599042}
,
{x:30.6312197228292,y: 29.3695012186629}
,
{x:30.6311799075381,y: 29.3696258802459}
,
{x:30.6311561233977,y: 29.3697285084166}
,
{x:30.6311496954389,y: 29.3697562465196}
,
{x:30.6311011259692,y: 29.3699658190441}
,
{x:30.6308696765867,y: 29.3701607862021}
,
{x:30.6305947027685,y: 29.3704219853143}
,
{x:30.6303031124898,y: 29.3708614734442}
,
{x:30.6299009176773,y: 29.3710930861393}
,
{x:30.6298212582089,y: 29.3713041360899}
,
{x:30.6298108101932,y: 29.3714314905215}
,
{x:30.62985909781,y: 29.3718542018016}
,
{x:30.6299705081591,y: 29.3722841255726}
,
{x:30.6300281242571,y: 29.372451676931}
,
{x:30.6300072778392,y: 29.3726146557436}
,
{x:30.6300416926645,y: 29.3728450711671}
,
{x:30.6299150598829,y: 29.3731826555008}
,
{x:30.6297184456437,y: 29.3735275958816}
,
{x:30.6296973534643,y: 29.3737141858356}
,
{x:30.6296999172351,y: 29.3738044038326}
,
{x:30.6297036012744,y: 29.3739340238983}
,
{x:30.6297138963622,y: 29.3741153408329}
,
{x:30.6298130918628,y: 29.374413927253}
,
{x:30.6299298709271,y: 29.3746979898694}
,
{x:30.6301635833362,y: 29.3750320293508}
,
{x:30.6305158420098,y: 29.3753135779092}
,
{x:30.6305567905764,y: 29.3753496619893}
,
{x:30.6305789065257,y: 29.3753433415386}
,
{x:30.6308169286514,y: 29.3755293537938}
,
{x:30.6310034678386,y: 29.3756894026131}
,
{x:30.6311571055955,y: 29.3758508641394}
,
{x:30.6312655393327,y: 29.3760376267176}
,
{x:30.6313169789912,y: 29.3761602197014}
,
{x:30.6314384798714,y: 29.3764579440551}
,
{x:30.6315589218502,y: 29.3768631624071}
,
{x:30.6316972455065,y: 29.3772908361543}
,
{x:30.6317321659719,y: 29.3775162036236}
,
{x:30.6318374981979,y: 29.3777352941851}
,
{x:30.6320935061682,y: 29.3780507358212}
,
{x:30.6322159279995,y: 29.3782494001633}
,
{x:30.6323083877567,y: 29.3785773135223}
,
{x:30.6323100740557,y: 29.3787183457497}
,
{x:30.6323764288396,y: 29.3788561133987}
,
{x:30.6324866987575,y: 29.3790107631}
,
{x:30.6327547295649,y: 29.3793755989621}
,
{x:30.6331070300075,y: 29.3797392984873}
,
{x:30.6332147855641,y: 29.3799077421923}
,
{x:30.6333218920105,y: 29.3802744966207}
,
{x:30.6334419704433,y: 29.3806605223126}
,
{x:30.6335901480945,y: 29.3810426496931}
,
{x:30.6336900014651,y: 29.3812986298253}
,
{x:30.6338407446616,y: 29.3815026774931}
,
{x:30.6340721051363,y: 29.3816983699323}
,
{x:30.6342909389445,y: 29.3818455625397}
,
{x:30.6344091813392,y: 29.3819204737212}
,
{x:30.6345654249097,y: 29.3819409196871}
,
{x:30.6347873447504,y: 29.3819156482218}
,
{x:30.6350349329266,y: 29.3818486338051}
,
{x:30.6352433669451,y: 29.3818180614831}
,
{x:30.6354486499112,y: 29.3817980720634}
,
{x:30.6357539021304,y: 29.3817946243023}
,
{x:30.6360397486826,y: 29.3818291364482}
,
{x:30.6364077300521,y: 29.3820144610081}
,
{x:30.636567303245,y: 29.3821442039521}
,
{x:30.6366581251556,y: 29.3822242167902}
,
{x:30.6367538557838,y: 29.3823085546451}
,
{x:30.6368342375655,y: 29.3824852929662}
,
{x:30.6368770837697,y: 29.3826276267019}
,
{x:30.6370796598319,y: 29.3828417628081}
,
{x:30.6372933225092,y: 29.3830875382888}
,
{x:30.6373179355369,y: 29.383115850907}
,
{x:30.637409081028,y: 29.3832206944641}
,
{x:30.6375599180245,y: 29.3835716154448}
,
{x:30.6376623360753,y: 29.3837997259562}
,
{x:30.6377428299374,y: 29.3839372425114}
,
{x:30.6378138503903,y: 29.3840323805612}
,
{x:30.6379610413181,y: 29.3841606265475}
,
{x:30.6381473481245,y: 29.3842400150095}
,
{x:30.6383394916056,y: 29.3843005414494}
,
{x:30.6397028300369,y: 29.3845810071797}
,
{x:30.6404365159176,y: 29.384696277679}
,
{x:30.6406728020498,y: 29.3847098706213}
,
{x:30.6410222309286,y: 29.3847539568207}
,
{x:30.6412829146182,y: 29.3848365958878}
,
{x:30.6415187475099,y: 29.3849924549638}
,
{x:30.6419263136179,y: 29.3853341725099}
,
{x:30.642296937598,y: 29.3855834162491}
,
{x:30.6423563495762,y: 29.3856321003033}
,
{x:30.6424224808272,y: 29.3856847579798}
,
{x:30.6426927198475,y: 29.3857074415155}
,
{x:30.6428753411639,y: 29.385720503723}
,
{x:30.6430031628915,y: 29.385781214779}
,
{x:30.6431637461903,y: 29.3859294782302}
,
{x:30.6433172200196,y: 29.3861140464073}
,
{x:30.6435184595747,y: 29.3863129187921}
,
{x:30.6436313747458,y: 29.3864166991545}
,
{x:30.6443396435291,y: 29.3869739097183}
,
{x:30.6446383007898,y: 29.3871868744228}
,
{x:30.6450453357558,y: 29.3877053402216}
,
{x:30.6451236666034,y: 29.3878478253706}
,
{x:30.6452583370344,y: 29.3881525996564}
,
{x:30.6453720581591,y: 29.3883754202396}
,
{x:30.645437132076,y: 29.3886554752193}
,
{x:30.6455030652514,y: 29.3889426060955}
,
{x:30.6455609338977,y: 29.3892091402026}
,
{x:30.6455995556286,y: 29.3893870240751}
,
{x:30.645653334687,y: 29.3895565792863}
,
{x:30.6458850296933,y: 29.3899882779843}
,
{x:30.6459387319178,y: 29.390177728864}
,
{x:30.6459127191383,y: 29.3905746780104}
,
{x:30.6458130666576,y: 29.3909451680403}
,
{x:30.6457136063732,y: 29.3911491875962}
,
{x:30.6456299111749,y: 29.391319919146}
,
{x:30.6455247643738,y: 29.3915063773774}
,
{x:30.6449949783358,y: 29.3920566202378}
,
{x:30.6444736136997,y: 29.3925280005967}
,
{x:30.644170389511,y: 29.3926748285141}
,
{x:30.6441083438514,y: 29.3927515471378}
,
{x:30.6440407843459,y: 29.3928350848392}
,
{x:30.6440189601177,y: 29.393039777492}
,
{x:30.6440071072428,y: 29.3934952682072}
,
{x:30.6440510600461,y: 29.3938304726238}
,
{x:30.6441625543984,y: 29.3943292288597}
,
{x:30.6441607679973,y: 29.3948724156734}
,
{x:30.6441407555932,y: 29.3949844735595}
,
{x:30.6440666304886,y: 29.3950661812857}
,
{x:30.6438402981098,y: 29.3951602395478}
,
{x:30.6435194493503,y: 29.3952500481108}
,
{x:30.6431877050921,y: 29.3953531859648}
,
{x:30.6428787636293,y: 29.3954164076056}
,
{x:30.6425093804087,y: 29.3954369376399}
,
{x:30.6422729778818,y: 29.3954492138909}
,
{x:30.6421596663828,y: 29.3954661429498}
,
{x:30.6420265047891,y: 29.3955304402841}
,
{x:30.6418459228896,y: 29.3957131917084}
,
{x:30.6413003005346,y: 29.3962527006309}
,
{x:30.6411761004007,y: 29.3963726883795}
,
{x:30.6411704717709,y: 29.3964848311087}
,
{x:30.6411562776725,y: 29.3967675806476}
,
{x:30.6411299676056,y: 29.3970174794295}
,
{x:30.6409551745028,y: 29.3973990706}
,
{x:30.6408786613694,y: 29.3977851188958}
,
{x:30.6407613507387,y: 29.3988578041801}
,
{x:30.6407605730663,y: 29.3990953978799}
,
{x:30.6408125481317,y: 29.3992641597076}
,
{x:30.6414314828029,y: 29.400070649583}
,
{x:30.6415537459882,y: 29.4001629637475}
,
{x:30.6417720332602,y: 29.4003398539378}
,
{x:30.641929466007,y: 29.4003862793317}
,
{x:30.6423979016243,y: 29.4005098948927}
,
{x:30.6433243507097,y: 29.400630873749}
,
{x:30.6440993437707,y: 29.4007831966136}
,
{x:30.6449057381602,y: 29.4009424020241}
,
{x:30.6458752499291,y: 29.4012103873168}
,
{x:30.6459599915398,y: 29.40127906445}
,
{x:30.6462034443936,y: 29.4014268210358}
,
{x:30.6463703811858,y: 29.4015975447647}
,
{x:30.6468729288822,y: 29.402196251485}
,
{x:30.6468927798993,y: 29.4024036319763}
,
{x:30.6469705709553,y: 29.402580631272}
,
{x:30.6470870119333,y: 29.4028455706219}
,
{x:30.6473391680706,y: 29.4032474535283}
,
{x:30.6475352808287,y: 29.4035950875671}
,
{x:30.6478220706826,y: 29.4041340935966}
,
{x:30.6479275488647,y: 29.4044092434844}
,
{x:30.6480138364085,y: 29.404838590807}
,
{x:30.6481132596416,y: 29.4053332986833}
,
{x:30.6482316758917,y: 29.405868411849}
,
{x:30.6483525221498,y: 29.4065448854444}
,
{x:30.6484364499922,y: 29.4070462868388}
,
{x:30.648469551562,y: 29.407502662605}
,
{x:30.6485531343805,y: 29.4078596636128}
,
{x:30.6486135123798,y: 29.4081175497889}
,
{x:30.6487399244391,y: 29.4084184003966}
,
{x:30.6488539259942,y: 29.4086421903119}
,
{x:30.6490006814054,y: 29.4088072561922}
,
{x:30.6491974633073,y: 29.4089065928262}
,
{x:30.6494273906834,y: 29.4090418038513}
,
{x:30.6496379543002,y: 29.4091539167016}
,
{x:30.6498265627698,y: 29.4093159145321}
,
{x:30.6499397933756,y: 29.4094767905019}
,
{x:30.6500457055251,y: 29.4097190889895}
,
{x:30.6501190875178,y: 29.4099493504771}
,
{x:30.6501488267788,y: 29.4102408992547}
,
{x:30.6501760311061,y: 29.410909539045}
,
{x:30.6502480953731,y: 29.4111610824968}
,
{x:30.650409753549,y: 29.411439914198}
,
{x:30.650617344111,y: 29.411877645311}
,
{x:30.6508274194216,y: 29.4122000310729}
,
{x:30.6510246665945,y: 29.4124125900975}
,
{x:30.6511881757053,y: 29.4125105132274}
,
{x:30.6514214256446,y: 29.4125695147433}
,
{x:30.6516832041336,y: 29.4127079313092}
,
{x:30.6518265043648,y: 29.4128151891311}
,
{x:30.6519652666284,y: 29.4130080915054}
,
{x:30.6520967947901,y: 29.4132870798713}
,
{x:30.6522305920708,y: 29.4134972985928}
,
{x:30.6523968640921,y: 29.4140211702947}
,
{x:30.6524720187528,y: 29.4143744478391}
,
{x:30.6526034114279,y: 29.4145569116859}
,
{x:30.6527839072806,y: 29.4148257528932}
,
{x:30.6531934490364,y: 29.4153579068457}
,
{x:30.6533336703057,y: 29.4155496700953}
,
{x:30.6533828507683,y: 29.4157283814246}
,
{x:30.6534712549544,y: 29.4160733440959}
,
{x:30.6535731759168,y: 29.4164906989202}
,
{x:30.6536683978928,y: 29.4167315432543}
,
{x:30.6538246294773,y: 29.4170322572149}
,
{x:30.654154966267,y: 29.4176037611003}
,
{x:30.6545124370175,y: 29.4180869705696}
,
{x:30.6546741847908,y: 29.4183300870329}
,
{x:30.6547764950577,y: 29.4185331425348}
,
{x:30.6549080918527,y: 29.4188557685313}
,
{x:30.6550257506052,y: 29.419235242245}
,
{x:30.6550644609977,y: 29.4194114653088}
,
{x:30.6551479781378,y: 29.4197916554427}
,
{x:30.655181371091,y: 29.4201405489978}
,
{x:30.6551815356442,y: 29.4206314508041}
,
{x:30.6551357457189,y: 29.4209033335615}
,
{x:30.6550142155319,y: 29.4210794509756}
,
{x:30.654838984713,y: 29.4212377800486}
,
{x:30.6545362353872,y: 29.4213487195899}
,
{x:30.6542470982085,y: 29.4214067614293}
,
{x:30.6540384045563,y: 29.4215238317596}
,
{x:30.6535529342993,y: 29.4218989885596}
,
{x:30.6530300118535,y: 29.42236972682}
,
{x:30.6520839538165,y: 29.4232653545233}
,
{x:30.6514770608979,y: 29.4239047871635}
,
{x:30.6513891786869,y: 29.4240633459787}
,
{x:30.6513684525396,y: 29.4242338470558}
,
{x:30.6514014447622,y: 29.4244162564241}
,
{x:30.6514681526476,y: 29.4245634682967}
,
{x:30.6515818977825,y: 29.4247108057064}
,
{x:30.6518896737293,y: 29.4251115607391}
,
{x:30.6520901697229,y: 29.4254414516191}
,
{x:30.6521634021482,y: 29.425647493553}
,
{x:30.6522096375851,y: 29.4258887509317}
,
{x:30.6522208229794,y: 29.4265651284022}
,
{x:30.6522653699257,y: 29.4273121711249}
,
{x:30.6523437479075,y: 29.4279887287955}
,
{x:30.6524632493706,y: 29.4284242642927}
,
{x:30.6525297792776,y: 29.4286244059429}
,
{x:30.6526433881807,y: 29.4288129119944}
,
{x:30.652763520215,y: 29.4290602480147}
,
{x:30.6528834555036,y: 29.4293663960396}
,
{x:30.6532508468288,y: 29.4300260842696}
,
{x:30.6535986912562,y: 29.4305034000663}
,
{x:30.6537192766919,y: 29.4306154674526}
,
{x:30.6543226436742,y: 29.4310464173665}
,
{x:30.6555498443385,y: 29.4318201460541}
,
{x:30.6565674946053,y: 29.4324535046202}
,
{x:30.6575881644132,y: 29.433207679901}
,
{x:30.6581486272816,y: 29.4338178356625}
,
{x:30.6582517389019,y: 29.4339461059612}
,
{x:30.6585415240731,y: 29.4345518989369}
,
{x:30.6592329998714,y: 29.4358304607612}
,
{x:30.65925916614,y: 29.4358943705798}
,
{x:30.6592737400321,y: 29.4359299668026}
,
{x:30.6592978375183,y: 29.4361633020996}
,
{x:30.6593720427261,y: 29.4364962969059}
,
{x:30.6594653398154,y: 29.4366718498133}
,
{x:30.6595345298425,y: 29.4368020409152}
,
{x:30.6596587975414,y: 29.4369500828801}
,
{x:30.6598164567018,y: 29.4370502540705}
,
{x:30.6600368873449,y: 29.4371575387621}
,
{x:30.6602583082709,y: 29.437258098755}
,
{x:30.6604931693231,y: 29.4373586944807}
,
{x:30.6607273085859,y: 29.437489415964}
,
{x:30.6609424293987,y: 29.4376480467065}
,
{x:30.6610494274936,y: 29.4378012356855}
,
{x:30.6610891023902,y: 29.4379895355181}
,
{x:30.6611016138605,y: 29.4382600984369}
,
{x:30.6611833079167,y: 29.438650376287}
,
{x:30.6613149627917,y: 29.438754670305}
,
{x:30.6614894047457,y: 29.4388374625979}
,
{x:30.6618113869848,y: 29.4390088566253}
,
{x:30.662274393406,y: 29.4392100244815}
,
{x:30.6624087363526,y: 29.4392280195231}
,
{x:30.6625565808009,y: 29.4392284059043}
,
{x:30.6627447062882,y: 29.4392406587545}
,
{x:30.6628857303516,y: 29.4392704326973}
,
{x:30.6630198514177,y: 29.4393531178347}
,
{x:30.6631067904637,y: 29.4394768476997}
,
{x:30.6631734465787,y: 29.4396358112499}
,
{x:30.6632064218775,y: 29.4398182109596}
,
{x:30.6632258340302,y: 29.4400358617793}
,
{x:30.6632049447366,y: 29.4402475260048}
,
{x:30.6631506171471,y: 29.4404120541635}
,
{x:30.6629345373069,y: 29.4407114246989}
,
{x:30.6628693026543,y: 29.4408550140923}
,
{x:30.6628448358919,y: 29.4410108971565}
,
{x:30.6628656324364,y: 29.4411961183853}
,
{x:30.6629831829735,y: 29.4413960107921}
,
{x:30.6631270455734,y: 29.4415152146668}
,
{x:30.6632848959058,y: 29.4415636972129}
,
{x:30.6635395157609,y: 29.4416267344512}
,
{x:30.6637410710671,y: 29.4416789949838}
,
{x:30.663857533179,y: 29.4417276431754}
,
{x:30.6640312362697,y: 29.4418732860933}
,
{x:30.6641599263936,y: 29.4419966917991}
,
{x:30.6642064419106,y: 29.4421497202526}
,
{x:30.6642593722971,y: 29.4423909804862}
,
{x:30.664258661867,y: 29.4425968153109}
,
{x:30.6641439096995,y: 29.4427867067744}
,
{x:30.6639991219619,y: 29.4429481719677}
,
{x:30.663867302522,y: 29.4430545189097}
,
{x:30.6637126755602,y: 29.4430717594887}
,
{x:30.6630612895135,y: 29.443091976982}
,
{x:30.6629361044554,y: 29.4431366953631}
,
{x:30.6628245738799,y: 29.443198340837}
,
{x:30.6628242469752,y: 29.4432929222009}
,
{x:30.6628251897807,y: 29.443379789006}
,
{x:30.6628783213346,y: 29.4435154331023}
,
{x:30.6629446379794,y: 29.4435981038194}
,
{x:30.6630887192929,y: 29.4437057391162}
,
{x:30.6632443341989,y: 29.4437892635106}
,
{x:30.6635084038608,y: 29.4438420138157}
,
{x:30.6637567666725,y: 29.4438667137938}
,
{x:30.6639572050447,y: 29.443906540422}
,
{x:30.664127173436,y: 29.4439410265971}
,
{x:30.6642428089784,y: 29.4440251326859}
,
{x:30.6643130819946,y: 29.4441091202238}
,
{x:30.6643782391978,y: 29.4442151484306}
,
{x:30.6644080840957,y: 29.4443299059605}
,
{x:30.6643674362336,y: 29.4444943316079}
,
{x:30.6643313210683,y: 29.4446649248707}
,
{x:30.6643594754696,y: 29.4447714004739}
,
{x:30.6644042002131,y: 29.4448811587795}
,
{x:30.6644818741418,y: 29.4449782685469}
,
{x:30.664707422264,y: 29.4451071368439}
,
{x:30.6648737124957,y: 29.4452309125132}
,
{x:30.6649018309695,y: 29.4453509070136}
,
{x:30.6649011924748,y: 29.4455353266084}
,
{x:30.6648958387767,y: 29.4457486250138}
,
{x:30.6648462211144,y: 29.4458924548372}
,
{x:30.6647198178244,y: 29.4460068066327}
,
{x:30.6645942842819,y: 29.4461022815845}
,
{x:30.6645266602764,y: 29.4461908354095}
,
{x:30.6645341102049,y: 29.4462894515714}
,
{x:30.6645818990672,y: 29.4463572004838}
,
{x:30.66469805181,y: 29.4464698799382}
,
{x:30.6647530665431,y: 29.4465935238189}
,
{x:30.6648171530673,y: 29.4472021847075}
,
{x:30.6647501650678,y: 29.4476078040881}
,
{x:30.6646837246112,y: 29.4478634566318}
,
{x:30.6645693350894,y: 29.4480464881484}
,
{x:30.6644708440198,y: 29.4482025303971}
,
{x:30.664299032854,y: 29.4483344030365}
,
{x:30.6638864451609,y: 29.4486434238856}
,
{x:30.6636508332329,y: 29.4488526054237}
,
{x:30.6631864585221,y: 29.4494209443505}
,
{x:30.663085145714,y: 29.4495662342215}
,
{x:30.6630241147296,y: 29.4497204517858}
,
{x:30.6629985011747,y: 29.4498350655334}
,
{x:30.6630032342807,y: 29.4499188830978}
,
{x:30.66303313206,y: 29.4500115886628}
,
{x:30.663080781391,y: 29.4500647292645}
,
{x:30.6631893283137,y: 29.4500906474153}
,
{x:30.663390539502,y: 29.4501139794764}
,
{x:30.6635364653199,y: 29.4501717041998}
,
{x:30.6636260281518,y: 29.4502680148964}
,
{x:30.6637283947063,y: 29.4504005230657}
,
{x:30.6637744404581,y: 29.4505309771481}
,
{x:30.6638159622234,y: 29.4506486129212}
,
{x:30.6638603637798,y: 29.4507601864008}
,
{x:30.6640241084749,y: 29.4508742469913}
,
{x:30.6643256906276,y: 29.4510734797859}
,
{x:30.6644762597988,y: 29.4512326375362}
,
{x:30.6645814489278,y: 29.4514005039159}
,
{x:30.664691462878,y: 29.4516257188775}
,
{x:30.6647862642394,y: 29.4518773589424}
,
{x:30.6649508529653,y: 29.4523320600907}
,
{x:30.6651457075007,y: 29.4527780149642}
,
{x:30.6654962193786,y: 29.4533699072277}
,
{x:30.6656264680595,y: 29.4536771592674}
,
{x:30.6656812745428,y: 29.4538360870267}
,
{x:30.6657616086467,y: 29.4539068665463}
,
{x:30.6658871134155,y: 29.4540218689062}
,
{x:30.6661032292538,y: 29.4541547480397}
,
{x:30.6661783730898,y: 29.4542652102465}
,
{x:30.6662232402977,y: 29.4543888259356}
,
{x:30.6662576433491,y: 29.4546138632003}
,
{x:30.6662920311198,y: 29.454843309871}
,
{x:30.6663419531336,y: 29.4549625288234}
,
{x:30.6669039736078,y: 29.4557610890169}
,
{x:30.6672026504717,y: 29.4562239811902}
,
{x:30.6672627815751,y: 29.4563171712181}
,
{x:30.6680870949326,y: 29.4557499982054}
,
{x:30.6686312499387,y: 29.4553750041236}
,
{x:30.6689772562692,y: 29.4553572680804}
,
{x:30.6691950724861,y: 29.4554123185288}
,
{x:30.6694926403127,y: 29.4554243331104}
,
{x:30.6698594341337,y: 29.455318331562}
,
{x:30.6701799946718,y: 29.4550774442133}
,
{x:30.6704709926412,y: 29.4548433362258}
,
{x:30.670692414518,y: 29.4545522028463}
,
{x:30.6709090392155,y: 29.4541812106426}
,
{x:30.6709396347749,y: 29.453998074008}
,
{x:30.6707955670218,y: 29.4536796805759}
,
{x:30.6706076220552,y: 29.4534375042002}
,
{x:30.6705379611527,y: 29.4532333092309}
,
{x:30.6704454651598,y: 29.4529621771724}
,
{x:30.670358292102,y: 29.4525950906924}
,
{x:30.6702873988776,y: 29.4520472936876}
,
{x:30.670439596962,y: 29.4517960503422}
,
{x:30.6707343691409,y: 29.4513305207085}
,
{x:30.671558722477,y: 29.4507422248461}
,
{x:30.6732752119501,y: 29.4493140546535}
,
{x:30.675059601436,y: 29.4478075457775}
,
{x:30.6753626008703,y: 29.4476453834405}
,
{x:30.6756392988783,y: 29.447594221326}
,
{x:30.6770250070267,y: 29.4476088789136}
,
{x:30.6792599458493,y: 29.447626973039}
,
{x:30.6810840821623,y: 29.4476188408368}
,
{x:30.6844207175004,y: 29.4475285083295}
,
{x:30.6864137609874,y: 29.4474975957992}
,
{x:30.6880805102863,y: 29.4474077670462}
,
{x:30.6904199167375,y: 29.447363329535}
,
{x:30.6905119188097,y: 29.4473628828833}
,
{x:30.6904987199102,y: 29.4471396544407}
,
{x:30.6905007650512,y: 29.4469370719749}
,
{x:30.6905204376225,y: 29.4468384612132}
,
{x:30.6905857061235,y: 29.4473625253889}
,
{x:30.6924288136733,y: 29.4476969306015}
,
{x:30.6927250328776,y: 29.4439923277971}
,
{x:30.6927542494091,y: 29.4439240573917}
,
{x:30.6928151979875,y: 29.4436094923445}
,
{x:30.6928573552092,y: 29.4433919318404}
,
{x:30.6932527400592,y: 29.442673082801}
,
{x:30.6933609510233,y: 29.4425613901067}
,
{x:30.6948868110616,y: 29.4415691513366}
,
{x:30.695082459056,y: 29.441475323663}
,
{x:30.6952173611613,y: 29.4414167098526}
,
{x:30.6954463049102,y: 29.4413995300811}
,
{x:30.6957695676075,y: 29.4414370598676}
,
{x:30.6958480037069,y: 29.4414479622446}
,
{x:30.6963066483138,y: 29.4415117124245}
,
{x:30.6966298902753,y: 29.4416258926897}
,
{x:30.6973268542102,y: 29.4419653762094}
,
{x:30.6979539853737,y: 29.4425451064621}
,
{x:30.6986230248279,y: 29.4432336784674}
,
{x:30.699029488046,y: 29.4437716934718}
,
{x:30.6991327968597,y: 29.444044751111}
,
{x:30.6991562777067,y: 29.4441702915691}
,
{x:30.6992063413934,y: 29.4446171200082}
,
{x:30.699261762189,y: 29.4448667774826}
,
{x:30.6993993047003,y: 29.4450537094153}
,
{x:30.6997146759426,y: 29.4452310265755}
,
{x:30.7000274266555,y: 29.4453558406742}
,
{x:30.7003976570961,y: 29.4456469795411}
,
{x:30.7007378464052,y: 29.4458936239402}
,
{x:30.7010151350118,y: 29.4461935725518}
,
{x:30.7011907383861,y: 29.4463255375255}
,
{x:30.7013865212772,y: 29.4466037411274}
,
{x:30.7016171899811,y: 29.4467013142274}
,
{x:30.7019443508823,y: 29.4473204346187}
,
{x:30.7019912279795,y: 29.4474027798146}
,
{x:30.7023275517321,y: 29.4474033909266}
,
{x:30.7025226163238,y: 29.4474037444247}
,
{x:30.7026976487403,y: 29.4473746123697}
,
{x:30.7029134286534,y: 29.4472689891706}
,
{x:30.7032771548486,y: 29.4471695213363}
,
{x:30.703607035173,y: 29.4471112172116}
,
{x:30.7038422883151,y: 29.4470992894778}
,
{x:30.7040185465796,y: 29.4471709829918}
,
{x:30.704257055427,y: 29.4473620555418}
,
{x:30.7044845680591,y: 29.4475721708787}
,
{x:30.7046258785256,y: 29.4477725970087}
,
{x:30.7046922361991,y: 29.4479434970848}
,
{x:30.7046913761534,y: 29.4481083942214}
,
{x:30.7046822703425,y: 29.4485677428096}
,
{x:30.704666700565,y: 29.4489799728062}
,
{x:30.7046316345669,y: 29.4492626071607}
,
{x:30.7046037797473,y: 29.4494510253291}
,
{x:30.7045958926601,y: 29.4496807049769}
,
{x:30.7046421569825,y: 29.4498397995547}
,
{x:30.7046954363789,y: 29.450059779969}
,
{x:30.7047946095084,y: 29.4502758807347}
,
{x:30.7047669796233,y: 29.4504230780583}
,
{x:30.7046789879153,y: 29.4505407303844}
,
{x:30.7045975771012,y: 29.450687842374}
,
{x:30.7045564502022,y: 29.4508468008421}
,
{x:30.7045285424316,y: 29.4510529008522}
,
{x:30.7044778943947,y: 29.4517890667625}
,
{x:30.7043995227698,y: 29.452713698839}
,
{x:30.7043104930643,y: 29.4530610893518}
,
{x:30.704215029748,y: 29.4533495699624}
,
{x:30.7039843398522,y: 29.4538086698763}
,
{x:30.7038039213168,y: 29.4541078596835}
,
{x:30.7036705737055,y: 29.4543486978061}
,
{x:30.7035241848989,y: 29.4545501160526}
,
{x:30.7033327390564,y: 29.454772324649}
,
{x:30.7031335473723,y: 29.454952801118}
,
{x:30.7029818388382,y: 29.4551634863345}
,
{x:30.7028778998836,y: 29.4553394812007}
,
{x:30.7028270919166,y: 29.4554645672946}
,
{x:30.7028208901394,y: 29.4556731700231}
,
{x:30.7028329186725,y: 29.4559490227836}
,
{x:30.7028165058973,y: 29.4560741664648}
,
{x:30.7027843340206,y: 29.4561737880427}
,
{x:30.7027041624548,y: 29.4563637356516}
,
{x:30.7025867642939,y: 29.4565999858187}
,
{x:30.7024401851288,y: 29.45685705416}
,
{x:30.7023602603312,y: 29.4569913738685}
,
{x:30.7023040856631,y: 29.457139639981}
,
{x:30.7022584948775,y: 29.4572879243143}
,
{x:30.7020852956903,y: 29.4575889996506}
,
{x:30.7019522629641,y: 29.4577742367404}
,
{x:30.7017768682324,y: 29.4579686786891}
,
{x:30.7015910742911,y: 29.4581190599144}
,
{x:30.7013339399942,y: 29.4582484609605}
,
{x:30.7011960170912,y: 29.458336328345}
,
{x:30.701132469552,y: 29.4583501335995}
,
{x:30.7009771896883,y: 29.458338577479}
,
{x:30.7008202142662,y: 29.4583316092994}
,
{x:30.7007330060883,y: 29.4583471622385}
,
{x:30.7006376426888,y: 29.458377141843}
,
{x:30.7005607801293,y: 29.4584117885533}
,
{x:30.7004891408554,y: 29.458462670884}
,
{x:30.7004015074028,y: 29.4585436631463}
,
{x:30.7003325424185,y: 29.4585875947671}
,
{x:30.6987305441166,y: 29.4588159407391}
,
{x:30.6977902350101,y: 29.4591548457751}
,
{x:30.6973619702117,y: 29.4593591733583}
,
{x:30.6971199566945,y: 29.4595032906273}
,
{x:30.6969133796894,y: 29.4596473085308}
,
{x:30.6967738619845,y: 29.4597643730898}
,
{x:30.6966497234821,y: 29.4598995124416}
,
{x:30.6965565411735,y: 29.4600211714927}
,
{x:30.6962146652577,y: 29.4605213998049}
,
{x:30.6961215031339,y: 29.4606385472578}
,
{x:30.6960026059931,y: 29.4607511372002}
,
{x:30.6958838313339,y: 29.4608321427367}
,
{x:30.6957239554106,y: 29.4608860008203}
,
{x:30.6955538285585,y: 29.4609263034404}
,
{x:30.6951674242839,y: 29.460952677246}
,
{x:30.6946521513875,y: 29.461001371739}
,
{x:30.6943120681754,y: 29.4610323332727}
,
{x:30.6938636146767,y: 29.4611127247694}
,
{x:30.6935644675915,y: 29.4612114388891}
,
{x:30.6933734231119,y: 29.4613284002291}
,
{x:30.6930170536646,y: 29.4615713949275}
,
{x:30.6925056927869,y: 29.4619314164061}
,
{x:30.6923559754802,y: 29.4620168668465}
,
{x:30.6917684232762,y: 29.4626163467341}
,
{x:30.6915285260184,y: 29.4627017336672}
,
{x:30.6902981882436,y: 29.4634773466065}
,
{x:30.6900692616212,y: 29.4636273487277}
,
{x:30.6899039350838,y: 29.463673297567}
,
{x:30.6896046004061,y: 29.4636622861836}
,
{x:30.6891435874499,y: 29.4635700810493}
,
{x:30.6888497444202,y: 29.4635273117353}
,
{x:30.688713842942,y: 29.4635373862192}
,
{x:30.6885851061805,y: 29.4638502134958}
,
{x:30.6885261740178,y: 29.4640969265207}
,
{x:30.6885586509384,y: 29.4642857445103}
,
{x:30.6887145420212,y: 29.4647361622289}
,
{x:30.6887963997991,y: 29.4650267176142}
,
{x:30.6888286465683,y: 29.4652808757941}
,
{x:30.6887100832462,y: 29.4653657861386}
,
{x:30.6886293855804,y: 29.4653603374386}
,
{x:30.6883725050193,y: 29.4653235250323}
,
{x:30.6876107999569,y: 29.4650316031836}
,
{x:30.6872049379577,y: 29.4649218862035}
,
{x:30.6871218021313,y: 29.4649795431589}
,
{x:30.6871463509653,y: 29.4650742239518}
,
{x:30.6873531006344,y: 29.4652198390204}
,
{x:30.6881150488776,y: 29.4654464275371}
,
{x:30.6883055014938,y: 29.465512147896}
,
{x:30.6888353996065,y: 29.4657092221378}
,
{x:30.689390318506,y: 29.4658627810562}
,
{x:30.6898040864845,y: 29.4660741361433}
,
{x:30.6901350259614,y: 29.4662635457217}
,
{x:30.6904488428936,y: 29.4666053806306}
,
{x:30.6907047340655,y: 29.4669180613727}
,
{x:30.6909689430284,y: 29.46722349932}
,
{x:30.6915639155732,y: 29.4677691623937}
,
{x:30.691858197374,y: 29.4680543962372}
,
{x:30.6921516198208,y: 29.4683525191938}
,
{x:30.6926642184945,y: 29.4685595613048}
,
{x:30.6933056218359,y: 29.4686870003236}
,
{x:30.6935830092968,y: 29.4687073649181}
,
{x:30.6938040267257,y: 29.4686532302756}
,
{x:30.6939513818482,y: 29.4686138334648}
,
{x:30.6941892793124,y: 29.468589484742}
,
{x:30.6949028580848,y: 29.4685461870213}
,
{x:30.6954966957862,y: 29.4684558610745}
,
{x:30.6960121528949,y: 29.4683377768554}
,
{x:30.6961482772872,y: 29.468253721379}
,
{x:30.6962900760561,y: 29.4681647169341}
,
{x:30.6964261129946,y: 29.468105453613}
,
{x:30.6967321056655,y: 29.4679969041474}
,
{x:30.6979559166034,y: 29.467592430478}
,
{x:30.6989929105664,y: 29.4671826367304}
,
{x:30.6992023321583,y: 29.4671681158937}
,
{x:30.7003851981039,y: 29.4670957159988}
,
{x:30.7015507112815,y: 29.4671075412542}
,
{x:30.7017094619338,y: 29.4670086227543}
,
{x:30.7017642647044,y: 29.4670335778614}
,
{x:30.701861270975,y: 29.4674714926644}
,
{x:30.7019288653435,y: 29.4679091721559}
,
{x:30.7020233059581,y: 29.4679066765408}
,
{x:30.7020944752988,y: 29.4678838035487}
,
{x:30.7019750044868,y: 29.4671181422229}
,
{x:30.7019640715434,y: 29.4670040725924}
,
{x:30.7019983007663,y: 29.466919828739}
,
{x:30.7021005532919,y: 29.4667960227356}
,
{x:30.7021854826521,y: 29.4667763237587}
,
{x:30.7024112982914,y: 29.4668415210297}
,
{x:30.70233441587,y: 29.4670716079033}
,
{x:30.7024863351548,y: 29.467185060388}
,
{x:30.7026824238144,y: 29.4671281335198}
,
{x:30.7027571258306,y: 29.4669841211866}
,
{x:30.7026445696723,y: 29.4667768768352}
,
{x:30.7025971815319,y: 29.4666929528761}
,
{x:30.7028852320609,y: 29.4665311381069}
,
{x:30.7032947388011,y: 29.4662689579388}
,
{x:30.7038849366153,y: 29.4656515588085}
,
{x:30.7042322647596,y: 29.4653485081209}
,
{x:30.7051711977616,y: 29.4649204565736}
,
{x:30.7069970836683,y: 29.4643677367407}
,
{x:30.709836134673,y: 29.4636310188986}
,
{x:30.7108074273879,y: 29.4634248641412}
,
{x:30.7108596408836,y: 29.4637864429141}
,
{x:30.711613704273,y: 29.4637109983185}
,
{x:30.7116291456416,y: 29.4634184717708}
,
{x:30.7137528746818,y: 29.4632133248494}
,
{x:30.7168660179733,y: 29.4628309984375}
,
{x:30.717253881503,y: 29.4628164775875}
,
{x:30.7181210609199,y: 29.4632466477184}
,
{x:30.7188284425329,y: 29.4635359842708}
,
{x:30.7198997893529,y: 29.4641403280867}
,
{x:30.7213712052103,y: 29.4651748320721}
,
{x:30.7218168755432,y: 29.46564922015}
,
{x:30.7226082459001,y: 29.4665166962296}
,
{x:30.7227344741349,y: 29.4667390924294}
,
{x:30.7227933316756,y: 29.4668947519677}
,
{x:30.7231129435805,y: 29.4677546187832}
,
{x:30.7232413417392,y: 29.4679637341128}
,
{x:30.7234242745479,y: 29.4686367731042}
,
{x:30.723643215256,y: 29.4691557467159}
,
{x:30.7241990480982,y: 29.4708164454472}
,
{x:30.7245529805969,y: 29.4718470482748}
,
{x:30.7245866164139,y: 29.4720990848744}
,
{x:30.7246117765405,y: 29.4724178175175}
,
{x:30.7246116207272,y: 29.4727142862205}
,
{x:30.7246162202975,y: 29.4729802784966}
,
{x:30.7244679546098,y: 29.4732942492989}
,
{x:30.7241589120584,y: 29.4735830452777}
,
{x:30.7237752015288,y: 29.4739193846238}
,
{x:30.7235774296451,y: 29.4739935025204}
,
{x:30.7232549610094,y: 29.4741974209273}
,
{x:30.7228457371117,y: 29.4744940682179}
,
{x:30.722653223099,y: 29.4745677709662}
,
{x:30.7220693956025,y: 29.4745889724878}
,
{x:30.7213085563474,y: 29.4745258639372}
,
{x:30.7210343083402,y: 29.47445787377}
,
{x:30.7208059331211,y: 29.4744357951197}
,
{x:30.7206023700937,y: 29.4744268194984}
,
{x:30.7204087603523,y: 29.474400428601}
,
{x:30.7202450036183,y: 29.4743261533875}
,
{x:30.7202153250804,y: 29.4742389821331}
,
{x:30.7201856362231,y: 29.4741605241032}
,
{x:30.7201459895999,y: 29.4741038364935}
,
{x:30.7201314100429,y: 29.4740149434042}
,
{x:30.7202783107054,y: 29.4738992327876}
,
{x:30.7204544213395,y: 29.4737714688315}
,
{x:30.7210005966214,y: 29.4735646763424}
,
{x:30.7213035763895,y: 29.473438700611}
,
{x:30.7214823453188,y: 29.4733953511632}
,
{x:30.7216313892554,y: 29.4732909663605}
,
{x:30.7216761797939,y: 29.4731864531617}
,
{x:30.7216762586545,y: 29.4731123840579}
,
{x:30.721636643658,y: 29.4730208384288}
,
{x:30.7215473745955,y: 29.4729423049532}
,
{x:30.7214035039197,y: 29.472863707431}
,
{x:30.7212893034622,y: 29.4728897121059}
,
{x:30.721160199088,y: 29.4729244119099}
,
{x:30.7209168932654,y: 29.4729807570216}
,
{x:30.7205196779523,y: 29.4730499835835}
,
{x:30.7203210322388,y: 29.4731107352706}
,
{x:30.7199584451002,y: 29.4732584151319}
,
{x:30.719705071113,y: 29.4733975110218}
,
{x:30.7193125836727,y: 29.4736017743195}
,
{x:30.718959860324,y: 29.4737581585197}
,
{x:30.7187909194877,y: 29.473849426335}
,
{x:30.7187014397854,y: 29.4739233692366}
,
{x:30.7186218822321,y: 29.4740016807279}
,
{x:30.7184578431161,y: 29.4741278013523}
,
{x:30.7182440297019,y: 29.474327910481}
,
{x:30.7180949272189,y: 29.4744191961397}
,
{x:30.7179756770004,y: 29.4744713131355}
,
{x:30.7178763342509,y: 29.4744929631225}
,
{x:30.7177224002571,y: 29.4744971151689}
,
{x:30.717553625461,y: 29.474466397902}
,
{x:30.7174096067941,y: 29.4744792742118}
,
{x:30.7172506254362,y: 29.4745313353856}
,
{x:30.7171015342964,y: 29.4746051892273}
,
{x:30.7169524177951,y: 29.4746921097259}
,
{x:30.7167884084427,y: 29.474774652565}
,
{x:30.7165746164929,y: 29.4749268208059}
,
{x:30.7164204284749,y: 29.4750660011734}
,
{x:30.7161319671021,y: 29.4753095352138}
,
{x:30.7157241865043,y: 29.4756138778256}
,
{x:30.7153263338645,y: 29.4759051568454}
,
{x:30.7148836974384,y: 29.4762268508466}
,
{x:30.7144708224699,y: 29.4765529316554}
,
{x:30.7139086113975,y: 29.4770268733406}
,
{x:30.7134658828319,y: 29.4773441723012}
,
{x:30.7129484071379,y: 29.4777615260256}
,
{x:30.7125002781409,y: 29.4782573684415}
,
{x:30.7123507845081,y: 29.4784749130438}
,
{x:30.7123296227399,y: 29.4790514569387}
,
{x:30.7122643060392,y: 29.4793562692779}
,
{x:30.7121991381307,y: 29.4795957397335}
,
{x:30.7122187576389,y: 29.4797090304003}
,
{x:30.712288152156,y: 29.4797919124964}
,
{x:30.7124221311085,y: 29.4798879731454}
,
{x:30.7125711040624,y: 29.479949211085}
,
{x:30.7128492880198,y: 29.4800193817736}
,
{x:30.7131424345206,y: 29.4800677980586}
,
{x:30.7135747818418,y: 29.4801033812643}
,
{x:30.713863073826,y: 29.4800995133068}
,
{x:30.7143104548098,y: 29.4800784891082}
,
{x:30.7148772868486,y: 29.4799792498585}
,
{x:30.7158719130662,y: 29.4797021054946}
,
{x:30.7166910624913,y: 29.4794485644764}
,
{x:30.716855028195,y: 29.4794401027368}
,
{x:30.7170538280136,y: 29.4793968441654}
,
{x:30.7178838637626,y: 29.4791759372729}
,
{x:30.7188033318402,y: 29.4789246515021}
,
{x:30.7190269667497,y: 29.4788727083527}
,
{x:30.7197228110315,y: 29.4786341359971}
,
{x:30.7202247657874,y: 29.4784823973773}
,
{x:30.7207564608509,y: 29.4783742621098}
,
{x:30.720860790239,y: 29.4783700594543}
,
{x:30.7210148552277,y: 29.4783180045742}
,
{x:30.7211440547356,y: 29.4782876963768}
,
{x:30.7212683119749,y: 29.4782355960507}
,
{x:30.7214869441134,y: 29.4781923476562}
,
{x:30.7216906680929,y: 29.4781534340554}
,
{x:30.7220484440049,y: 29.4780668175529}
,
{x:30.7227688873709,y: 29.4779589420727}
,
{x:30.7231067551234,y: 29.4779027915831}
,
{x:30.7232657341377,y: 29.4778943088899}
,
{x:30.7234644546121,y: 29.47789024147}
,
{x:30.723901700688,y: 29.4778124478315}
,
{x:30.7245625212511,y: 29.4777175503826}
,
{x:30.7251786362965,y: 29.4776182281416}
,
{x:30.7255810801814,y: 29.4775883154997}
,
{x:30.7262518395949,y: 29.4775326535395}
,
{x:30.7264484678494,y: 29.4774631910835}
,
{x:30.727337845953,y: 29.4773755101239}
,
{x:30.7279429803921,y: 29.4773113281959}
,
{x:30.7287959964379,y: 29.4771878198608}
,
{x:30.729099133577,y: 29.4771316235934}
,
{x:30.7302670065355,y: 29.4769285759332}
,
{x:30.7306844812784,y: 29.4768507724164}
,
{x:30.7317381675594,y: 29.4766519399887}
,
{x:30.7329162383788,y: 29.476444625922}
,
{x:30.7338707516295,y: 29.4762980132633}
,
{x:30.7339277944618,y: 29.4762931084359}
,
{x:30.7339215241429,y: 29.4762704909233}
,
{x:30.7338021753613,y: 29.4756932696787}
,
{x:30.7337474032827,y: 29.475388567666}
,
{x:30.7337437360944,y: 29.4749206150606}
]}
]})
| amounir86/amounir86-2011-elections | voter-info/shapes/old_json/23_03.js | JavaScript | unlicense | 95,900 |
var
blog_previews_container = $('#blog .preview-container-shift'),
blog_previews = $('#blog-posts'),
blog_belt = $('.blog-belt'),
post_section = $('.post-section');
blog_return = $('.blog-return'),
post_poster = $('.post-poster'),
post_content = $('.post-content');
total_number = blog_previews.data('total-number'),
pager_size = blog_previews.data('pager-number'),
shown_pages = 1,
loading_offset = 200; // Loading starts px from bottom
animating_blog = blog_opened = false,
page_folders_number = Math.ceil(total_number / pager_size);
$(document).ready(function() {
// Show category posts
$(blog_previews_container).on('click', '.hashtag', function(event) {
load_tag($(this).text());
});
// Infinite scroll
$(blog_previews_container).on('scroll', function(event) {
if (!$(blog_previews_container).hasClass('prevent-scroll-load')) {
load_if_nesessary();
}
});
$(window).on('load', function () {
shown_posts = $('.post-section .post-preview');
var shown_posts_size = $(shown_posts).size();
if ( shown_posts_size < 5 ) {
load_new_posts(5 - shown_posts);
}
load_if_nesessary();
})
// If not enough posts
function load_if_nesessary() {
var top_offset = $(blog_previews_container).scrollTop(),
blog_height = $(blog_previews).outerHeight();
if ( top_offset + loading_offset + win_height > blog_height) {
load_new_posts(5, $(blog_previews).data('cat'))
}
}
// Sliding 2 post
$('#blog-posts').on('click', '.post-link, .post-name span', function(event) {
if (animating_work) return;
var that = $(this).parents('.post-preview'),
newTitle = that.data('name'),
newUrl = that.data('url'),
newPoster = that.data('poster'),
newDate = that.data('date'),
newHash = newUrl.split('/');
animating_blog = blog_opened = true;
window.location.hash = newHash[newHash.length - 1];
setTimeout(function(){
$('aside .blog-return').show();
animating_blog = false;
}, 800);
blog_belt.addClass('slided');
// Put title
$('.post-title .title-text').text(newTitle);
$('.post-title .date').text(newDate.toLowerCase());
// Load content
$('.post-content').load(newUrl, function(){
$(this).find('a').each(function(index, el) {
$(el).attr('target', '_blank');
});
post_poster.css('background-image', 'url(../../blog-posters/'+ newPoster +')');
});
});
blog_return.click(function() {
window.location.hash = '#blog';
blog_slide_back();
});
});
// Add n posts
function load_new_posts(num, category, tag_name) {
if (!category) return;
if ( shown_pages < page_folders_number ) {
shown_pages++;
var cat = '.cat-' + category;
if (category == 'all') cat = '';
var tag = '';
if (tag_name) tag = '.tag-' + tag_name;
$('#ccc').load( window.location.origin + '/pagination/page' + shown_pages +' .lang-' + lang + cat + tag, function(){
$('.post-section').append($('#ccc').html());
var loaded_size = $('#ccc .post-preview').size();
$('#ccc').empty();
if ( loaded_size < num ) {
var rest = num - loaded_size;
load_new_posts(rest, category, tag_name);
}
});
} else {
blog_previews_container.addClass('prevent-scroll-load')
}
}
function load_cat(cat) {
if (!cat) return
blog_previews_container.addClass('prevent-scroll-load');
shown_pages = 1;
$('.post-section').empty();
$(shown_posts).each(function(index, el) {
if ( $(el).hasClass('cat-' + cat) ) {
$('.post-section').append($(el));
}
});
$('.dropy__title .hsh').text('');
load_new_posts(total_number, cat);
}
function load_tag(tag) {
if (!tag) return
blog_previews_container.addClass('prevent-scroll-load');
shown_pages = 1;
$('.post-section').empty();
$(shown_posts).each(function(index, el) {
if ( $(el).hasClass('tag-' + tag) ) {
$('.post-section').append($(el));
}
});
$('.dropy__title .hsh').text('#' + tag);
load_new_posts(total_number, 'all', tag);
}
function blog_slide_back () {
if ( !animating_blog && blog_opened ) {
animating_blog = true;
blog_opened = false;
$('.blog-belt').removeClass('slided');
$('aside .blog-return').hide();
setTimeout(function(){
animating_blog = false;
post_poster.css('background-image', 'none');
$('.post-content').empty();
}, 800);
}
}
| const-int/const-int.github.io | assets/js/sections/section-blog.js | JavaScript | unlicense | 4,911 |
function refreshHzBarChart(){
console.log("entered refreshHzBarChart");
d3.json('../../data/team24/files.json', function(error, data) {
if (error) throw error;
var chartWidth = 600,
barHeight = 14,
groupHeight = barHeight * data.series.length ,
gapBetweenGroups = 125,
spaceForLabels = 400,
spaceForLegend = 200;
// Zip the series data together (first values, second values, etc.)
var zippedData = [];
for (var i=0; i<data.labels.length; i++) {
for (var j=0; j<data.series.length; j++) {
zippedData.push(data.series[j].value[i]);
}
}
var mylabels = [];
for(var i=0; i<data["series"].length; i++){
mylabels.push(data["series"][i]["name"].toUpperCase());
}
var colorbar = ['#31a354','#dd1c77', '#2c7fb8', '#F1C40F' , '#AF7AC5', '#3498DB', '#5D6D7E']
var chartHeight = barHeight * zippedData.length + gapBetweenGroups * data.labels.length;
var x = d3.scale.linear()
.domain([0, d3.max(zippedData)])
.range([0, chartWidth-100]);
var y = d3.scale.linear()
.range([chartHeight + gapBetweenGroups, 0]);
var yAxis = d3.svg.axis()
.scale(y)
.tickFormat('')
.tickSize(0)
.orient("left");
// Specify the chart area and dimensions
var chart = d3.select("#hzBarChart .panel-body").append("svg")
.attr("width", spaceForLabels + chartWidth + spaceForLegend)
.attr("height", chartHeight);
// Create bars
var bar = chart.selectAll("g")
.data(zippedData)
.enter().append("g")
.attr("transform", function(d, i) {
return "translate(" + spaceForLabels + "," + (i * barHeight + gapBetweenGroups * (0.5 + Math.floor(i/data.series.length))) + ")";
});
// Create rectangles of the correct width
bar.append("rect")
.attr("fill", function(d,i) { return colorbar[i % data.series.length]; })
.attr("class", "bar")
.attr("width", x)
.attr("height", barHeight - 1);
// console.log(barHeight - 1);
bar.append('rect')
.attr("x", function(d) {
if(x(d) < 6) return x(d) + 220; else if(x(d) < 80) return x(d) + 220; else if(x(d) < 300) return x(d) + 220 ; else return x(d) - 65; })
.attr("y", 1)
.attr('width', 65)
.attr('height', barHeight-2)
.attr('fill', 'white')
// Add text label in bar
bar.append("text")
.attr("x", function(d) { if(x(d) < 6) return x(d) + 220; else if(x(d)<80) return x(d)+220; else if(x(d) < 160) return x(d)+ i +220; else if(x(d) < 300) return x(d)+ i + 120; else return x(d) + 80;})
.attr("y", barHeight / 2)
.attr("fill", function(d,i) { return colorbar[i % data.series.length]; })
.attr("dy", ".35em")
.text(function(d, i) { return d + " " + mylabels[i % data.series.length]; });
// Draw labels
bar.append("text")
.attr("class", "label")
.attr("x", function(d) { return - 30; })
.attr("y", groupHeight /2)
.attr("dy", ".35em")
.text(function(d,i) {
if (i % data.series.length === 0)
return data.labels[Math.floor(i/data.series.length)];
else
return ""});
chart.append("g")
.attr("class", "y axis")
.attr("transform", "translate(" + spaceForLabels + ", " + -gapBetweenGroups/2 + ")")
.call(yAxis);
// Draw legend
var legendRectSize = 18,
legendSpacing = 4;
var legend = chart.selectAll('.legend')
.data(data.series)
.enter()
.append('g')
.attr('transform', function (d, i) {
var height = legendRectSize + legendSpacing;
var offset = -gapBetweenGroups/2;
var horz = spaceForLabels + chartWidth + 10 - legendRectSize;
var vert = i * height - offset;
return 'translate(' + horz + ',' + vert + ')';
});
legend.append('rect')
.attr('width', legendRectSize)
.attr('height', legendRectSize)
.style('fill', function (d, i) { return colorbar[i % data.series.length]; })
.style('stroke', function (d, i) { return colorbar[i % data.series.length]; });
legend.append('text')
.attr('class', 'legend')
.attr('x', legendRectSize + legendSpacing)
.attr('y', legendRectSize - legendSpacing)
.text(function (d,i) { return mylabels[i % data.series.length]; });
});
}
| USCDataScience/polar.usc.edu | js/team24/nerCompare.js | JavaScript | apache-2.0 | 4,520 |
var Manager;
(function ($) {
$(function () {
Manager = new AjaxSolr.Manager({
solrUrl: 'http://evolvingweb.ca/solr/reuters/'
});
Manager.addWidget(new AjaxSolr.ResultWidget({
id: 'result',
target: '#docs'
}));
Manager.addWidget(new AjaxSolr.PagerWidget({
id: 'pager',
target: '#pager',
prevLabel: '<',
nextLabel: '>',
innerWindow: 1,
renderHeader: function (perPage, offset, total) {
$('#pager-header').html($('<span></span>').text('displaying ' + Math.min(total, offset + 1) + ' to ' + Math.min(total, offset + perPage) + ' of ' + total));
}
}));
var fields = [ 'topics', 'organisations', 'exchanges' ];
for (var i = 0, l = fields.length; i < l; i++) {
Manager.addWidget(new AjaxSolr.TagcloudWidget({
id: fields[i],
target: '#' + fields[i],
field: fields[i]
}));
}
Manager.addWidget(new AjaxSolr.CurrentSearchWidget({
id: 'currentsearch',
target: '#selection'
}));
Manager.addWidget(new AjaxSolr.AutocompleteWidget({
id: 'text',
target: '#search',
fields: [ 'topics', 'organisations', 'exchanges' ]
}));
Manager.addWidget(new AjaxSolr.CountryCodeWidget({
id: 'countries',
target: '#countries',
field: 'countryCodes'
}));
Manager.init();
Manager.store.addByValue('q', '*:*');
var params = {
facet: true,
'facet.field': [ 'topics', 'organisations', 'exchanges', 'countryCodes' ],
'facet.limit': 20,
'facet.mincount': 1,
'f.topics.facet.limit': 50,
'f.countryCodes.facet.limit': -1,
'json.nl': 'map'
};
for (var name in params) {
Manager.store.addByValue(name, params[name]);
}
Manager.doRequest();
});
$.fn.showIf = function (condition) {
if (condition) {
return this.show();
}
else {
return this.hide();
}
}
})(jQuery);
| ox-it/wl-course-signup | tool/src/main/webapp/static/lib/ajax-solr-master/search/js/reuters.8.js | JavaScript | apache-2.0 | 1,954 |
// Copyright 2017 The Kubernetes Dashboard Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import {stateName as parentStateName} from 'cluster/state';
import {breadcrumbsConfig} from 'common/components/breadcrumbs/service';
import {stateName as parentState, stateUrl} from './../state';
import {NamespaceListController} from './controller';
/**
* I18n object that defines strings for translation used in this file.
*/
const i18n = {
/** @type {string} @desc Label 'Namespaces' that appears as a breadcrumbs on the action bar. */
MSG_BREADCRUMBS_NAMESPACES_LABEL: goog.getMsg('Namespaces'),
};
/**
* Config state object for the Namespace list view.
*
* @type {!ui.router.StateConfig}
*/
export const config = {
url: stateUrl,
parent: parentState,
resolve: {
'namespaceList': resolveNamespaceList,
},
data: {
[breadcrumbsConfig]: {
'label': i18n.MSG_BREADCRUMBS_NAMESPACES_LABEL,
'parent': parentStateName,
},
},
views: {
'': {
controller: NamespaceListController,
controllerAs: '$ctrl',
templateUrl: 'namespace/list/list.html',
},
},
};
/**
* @param {!angular.$resource} $resource
* @return {!angular.Resource}
* @ngInject
*/
export function namespaceListResource($resource) {
return $resource('api/v1/namespace');
}
/**
* @param {!angular.Resource} kdNamespaceListResource
* @param {!./../../common/dataselect/service.DataSelectService} kdDataSelectService
* @return {!angular.$q.Promise}
* @ngInject
*/
export function resolveNamespaceList(kdNamespaceListResource, kdDataSelectService) {
let query = kdDataSelectService.getDefaultResourceQuery('');
return kdNamespaceListResource.get(query).$promise;
}
| vlal/dashboard | src/app/frontend/namespace/list/stateconfig.js | JavaScript | apache-2.0 | 2,220 |
/* global L, leafLet, emp, armyc2, sec */
leafLet.internalPrivateClass.MilStdFeature = function() {
var publicInterface = {
initialize: function(args) {
var options = {
oMilStdModifiers: {},
sBasicSymbolCode: undefined,
i2525Version: 0,
bIsMultiPointTG: false
};
L.Util.setOptions(this, options);
leafLet.typeLibrary.Feature.prototype.initialize.call(this, args);
},
getMilStdModifiers: function() {
return this.options.oMilStdModifiers;
},
getBasicSymbolCode: function() {
return this.options.sBasicSymbolCode;
},
getAzimuthUnits: function() {
var sUnits = leafLet.utils.AngleUnits.DEGREES;
var RendererSettings = armyc2.c2sd.renderer.utilities.RendererSettings;
var oBasicSymbolCode = leafLet.utils.milstd.basicSymbolCode;
switch (this.getBasicSymbolCode()) {
case oBasicSymbolCode.RECTANGULAR_TARGET:
switch (this.get2525Version()) {
case RendererSettings.Symbology_2525Bch2_USAS_13_14:
sUnits = leafLet.utils.AngleUnits.MILS;
break;
case RendererSettings.Symbology_2525C:
sUnits = leafLet.utils.AngleUnits.DEGREES;
break;
}
break;
}
return sUnits;
},
getAltitudeUnits: function() {
var sRet = leafLet.utils.Units.FEET;
return sRet;
},
getUnits: function() {
var retValue = leafLet.utils.Units.METERS;
var RendererSettings = armyc2.c2sd.renderer.utilities.RendererSettings;
var oBasicSymbolCode = leafLet.utils.milstd.basicSymbolCode;
switch (this.getBasicSymbolCode()) {
case oBasicSymbolCode.RECTANGULAR_TARGET:
/*
switch (this.get2525Version())
{
case RendererSettings.Symbology_2525Bch2_USAS_13_14:
case RendererSettings.Symbology_2525C:
retValue = leafLet.utils.Units.METERS;
break;
}
*/
break;
}
return retValue;
},
getPopupHeading: function() {
var sText = this.getName();
if (!sText || (typeof(sText) !== 'string') || (sText === "")) {
// There is no name, check for a unique identifier.
var cMilStdModifiers = leafLet.utils.milstd.Modifiers;
var oModifiers = this.getMilStdModifiers();
if (oModifiers.hasOwnProperty(cMilStdModifiers.UNIQUE_DESIGNATOR_1)) {
sText = oModifiers[cMilStdModifiers.UNIQUE_DESIGNATOR_1];
} else {
sText = "";
}
}
return sText;
},
getPopupText: function() {
var sPopupText = "";
if (this.options.leafletObject instanceof L.Marker) {
var oCoordList = this.getCoordinateList();
sPopupText = "<b>Symbol Code</b>: " + this.options.data.symbolCode +
"<br/> <b>Lat</b>: " + oCoordList[0].lat.toFixed(5) +
"<br/> <b>Lon</b>: " + oCoordList[0].lng.toFixed(5) +
(!isNaN(oCoordList[0].alt) ? "<br/> <b>Alt</b>: " + oCoordList[0].alt + this._getAltUnitsAndModeText() : "") +
"<br/><br/>" + this._getPopupDescription();
} else {
sPopupText = "<b>Symbol Code</b>: " + this.options.data.symbolCode + "<br/><br/>" +
this._getPopupDescription();
}
return sPopupText;
},
_createMultiPointFeature: function(args, oModifier, i2525Version) {
var leafletObject;
var leafletObject2;
var leafletObjectTemp;
var sDescription = args.properties.description || "";
var oMapBounds = this.getEngineInstanceInterface().leafletInstance.getBounds();
var southWest = oMapBounds.getSouthWest();
var northEast = oMapBounds.getNorthEast();
var angularWidth = Math.abs(oMapBounds.getEast() - oMapBounds.getWest());
var oEmpMapBounds;
var center = this.getEngineInstanceInterface().leafletInstance.getCenter();
// We must make sure we don't send a bound beyond 180 deg width. The render has problems rendering
// graphics when the BBox is wider than 180.
if (angularWidth >= 180.0) {
southWest.lng = center.lng - 89;
northEast.lng = center.lng + 89;
oEmpMapBounds = new leafLet.typeLibrary.EmpBoundary(southWest, northEast);
}
else{
oEmpMapBounds = new leafLet.typeLibrary.EmpBoundary(oMapBounds.getSouthWest(), oMapBounds.getNorthEast());
}
leafLet.utils.milstd.applyRequiredModifiers(args.data.symbolCode, oModifier, i2525Version, this.getEngineInstanceInterface().getLeafletMap());
leafletObject = leafLet.utils.milstd.renderMPGraphic({
instanceInterface: this.getEngineInstanceInterface(),
isSelected: args.selected,
sID: args.coreId,
sName: args.name,
sDescription: sDescription,
sSymbolCode: args.data.symbolCode,
oCoordData: args.data,
oModifiers: oModifier,
i2525Version: i2525Version,
oFeature: this,
empMapBounds: oEmpMapBounds
});
return leafletObject;
},
_createSinglePointFeature: function(oItem, oModifiers) {
var oFeature;
var oCoordinates = leafLet.utils.geoJson.convertCoordinatesToLatLng(oItem.data)[0];
var oMilStdIcon = this._getSinglePointIcon(oItem, oModifiers);
oFeature = new L.Marker(oCoordinates, {
icon: oMilStdIcon,
oFeature: this
});
return oFeature;
},
_modifierOnList: function(sModifier) {
return ((this.getEngineInstanceInterface().oLabelList.indexOf(sModifier) === -1) ? false : true);
},
_getSinglePointIcon: function(oItem, oMainModifiers) {
var sModifier,
oModifierArray = [],
oModifiers = {},
strippedSymbolCode = '',
msa = armyc2.c2sd.renderer.utilities.MilStdAttributes,
image,
oMilStdIcon,
oOffset,
iconUrl,
iconAnchor,
iconSize,
popupAnchor,
oImageBounds,
renderingOptimization,
baseURL,
sModifiers,
svgColor;
if (!oMainModifiers.hasOwnProperty('T') ||
(oMainModifiers.hasOwnProperty('T') && (oMainModifiers.T !== oItem.name))) {
// If there is no T or its diff than name.
if (this._modifierOnList("CN"))
{
oModifiers["CN"] = oItem.name;
}
}
for (sModifier in oMainModifiers) {
if (oMainModifiers.hasOwnProperty(sModifier)) {
switch (sModifier) {
case leafLet.utils.milstd.longModifiers.FILL_COLOR:
if (L.Browser.canvas) {
oModifiers[msa.FillColor] = '#' + oMainModifiers[sModifier];
} else {
oModifiers['fillcolor'] = oMainModifiers[sModifier];
}
break;
case leafLet.utils.milstd.longModifiers.LINE_COLOR:
if (L.Browser.canvas) {
oModifiers[msa.LineColor] = '#' + oMainModifiers[sModifier];
} else {
oModifiers['linecolor'] = oMainModifiers[sModifier];
}
break;
case leafLet.utils.milstd.Modifiers.STANDARD:
oModifiers[sModifier] = oMainModifiers[sModifier];
break;
default:
if (this._modifierOnList(sModifier)) {
oModifiers[sModifier] = oMainModifiers[sModifier];
}
break;
}
}
}
oModifiers[msa.PixelSize] = this.getEngineInstanceInterface().iMilStdIconSize;
if (this.isSelected()) {}
if (L.Browser.canvas) {
renderingOptimization = this.getEngineInstanceInterface().renderingOptimization;
if (renderingOptimization.viewInZone) {
switch (renderingOptimization.viewInZone) {
case "farDistanceZone":
switch (oItem.data.symbolCode.charAt(1)) {
case "H":
case "S":
case "J":
case "K":
svgColor = renderingOptimization.farDistanceThreshold.RED;
break;
case "F":
case "D":
case "A":
case "M":
svgColor = renderingOptimization.farDistanceThreshold.BLUE;
break;
case "N":
case "L":
svgColor = renderingOptimization.farDistanceThreshold.GREEN;
break;
case "U":
case "P":
case "G":
case "W":
svgColor = renderingOptimization.farDistanceThreshold.YELLOW;
break;
default:
svgColor = renderingOptimization.farDistanceThreshold.YELLOW;
break;
}
image = renderingOptimization.farDistanceThreshold.getSVG({
x: 6,
y: 6,
radius: 5,
color: svgColor
});
iconUrl = 'data:image/svg+xml,' + image;
iconAnchor = new L.Point(4, 5);
iconSize = new L.Point(12, 12);
popupAnchor = new L.Point(4, 5);
break;
case "midDistanceZone":
image = armyc2.c2sd.renderer.MilStdIconRenderer.Render(oItem.data.symbolCode, {
SIZE: oModifiers.SIZE
});
iconUrl = image.toDataUrl();
oOffset = image.getCenterPoint();
iconAnchor = new L.Point(oOffset.x, oOffset.y);
popupAnchor = new L.Point(oOffset.x, oOffset.y);
oImageBounds = image.getImageBounds();
iconSize = new L.Point(oImageBounds.width, oImageBounds.height);
break;
default:
//below mid distance zone - show labels
// image = armyc2.c2sd.renderer.MilStdIconRenderer.Render(oItem.data.symbolCode, oModifiers);
// iconUrl = image.toDataUrl();
// oOffset = image.getCenterPoint();
// iconAnchor = new L.Point(oOffset.x, oOffset.y);
// popupAnchor = new L.Point(oOffset.x, oOffset.y);
// oImageBounds = image.getImageBounds();
// iconSize = new L.Point(oImageBounds.width, oImageBounds.height);
break;
}
}
else {
// below mid distance zone. show icon with labels
image = armyc2.c2sd.renderer.MilStdIconRenderer.Render(oItem.data.symbolCode, oModifiers);
iconUrl = image.toDataUrl();
oOffset = image.getCenterPoint();
iconAnchor = new L.Point(oOffset.x, oOffset.y);
popupAnchor = new L.Point(oOffset.x, oOffset.y);
oImageBounds = image.getImageBounds();
iconSize = new L.Point(oImageBounds.width, oImageBounds.height);
}
oMilStdIcon = new L.Icon({
iconUrl: iconUrl,
iconAnchor: iconAnchor,
iconSize: iconSize,
popupAnchor: popupAnchor
});
return oMilStdIcon;
}
sModifiers = "";
for (sModifier in oModifiers) {
if (oModifiers.hasOwnProperty(sModifier)) {
oModifierArray.push(sModifier + "=" + oModifiers[sModifier]);
}
}
if (oModifierArray.length > 0) {
sModifiers = "?" + oModifierArray.join("&");
}
if (!emp.map.engine.rendererUrl || emp.map.engine.rendererUrl === "") {
baseURL = location.protocol + "//" + location.host + "/";
} else {
baseURL = emp.map.engine.rendererUrl;
}
iconUrl = baseURL + "/mil-sym-service/renderer/image/" + oItem.data.symbolCode + sModifiers;
size = oModifiers.size || 32;
oMilStdIcon = new L.Icon({
iconUrl: iconUrl,
className: sClassName
});
return oMilStdIcon;
},
_updateSinglePointFeature: function(oItem, oModifiers, bUpdateIcon) {
var oCoordinates = leafLet.utils.geoJson.convertCoordinatesToLatLng(oItem.data)[0];
if (bUpdateIcon) {
var oIcon = this._getSinglePointIcon(oItem, oModifiers);
oItem.leafletObject.setLatLng(oCoordinates);
oItem.leafletObject.setIcon(oIcon);
} else {
oItem.leafletObject.setLatLng(oCoordinates);
}
oItem.leafletObject.update();
return oItem.leafletObject;
},
_createFeature: function(oOptions) {
var oFeature = undefined;
var sSymbolCode = oOptions.data.symbolCode;
var oModifiers = leafLet.utils.milstd.convertModifiersTo2525(oOptions);
var i2525Version = oModifiers[leafLet.utils.milstd.Modifiers.STANDARD];
var isMultiPoint = armyc2.c2sd.renderer.utilities.SymbolUtilities.isMultiPoint(sSymbolCode, i2525Version);
var sBasicSymbolCode = armyc2.c2sd.renderer.utilities.SymbolUtilities.getBasicSymbolID(sSymbolCode);
var oSymbolDef = armyc2.c2sd.renderer.utilities.SymbolDefTable.getSymbolDef(sBasicSymbolCode, i2525Version);
var oCoordList = leafLet.utils.geoJson.convertCoordinatesToLatLng(oOptions.data);
if (oSymbolDef && (oCoordList.length < oSymbolDef.minPoints)) {
// We can't draw it yet.
this.options.oMilStdModifiers = new leafLet.typeLibrary.MilStdModifiers(this, oModifiers);
this.options.properties.modifiers = this.options.oMilStdModifiers.toLongModifiers();
this.options.i2525Version = i2525Version;
this.options.sBasicSymbolCode = sBasicSymbolCode;
return undefined;
}
if (isMultiPoint) {
oFeature = this._createMultiPointFeature(oOptions, oModifiers, i2525Version);
oOptions.bIsMultiPointTG = true;
} else if (oOptions.data.coordinates.length > 0) {
oFeature = this._createSinglePointFeature(oOptions, oModifiers);
oOptions.bIsMultiPointTG = false;
}
if (oFeature) {
var oMapBoundry = this.getEngineInstanceInterface().leafletInstance.getBounds();
this._updateLeafletObject(oMapBoundry, oFeature, false);
}
this.options.oMilStdModifiers = new leafLet.typeLibrary.MilStdModifiers(this, oModifiers);
this.options.properties.modifiers = this.options.oMilStdModifiers.toLongModifiers();
this.options.i2525Version = i2525Version;
this.options.sBasicSymbolCode = sBasicSymbolCode;
return oFeature;
},
getCoordinateList: function() {
return leafLet.utils.geoJson.convertCoordinatesToLatLng(this.getData());
},
setCoordinates: function(oLatLngList) {
leafLet.utils.geoJson.convertLatLngListToGeoJson(this.getData(), oLatLngList);
},
isMultiPointTG: function() {
return this.options.bIsMultiPointTG;
},
getFeatureBounds: function() {
var oEmpBoundary = leafLet.typeLibrary.Feature.prototype.getFeatureBounds.call(this);
if (!oEmpBoundary || oEmpBoundary.isEmpty()) {
var oCoordList = leafLet.utils.geoJson.convertCoordinatesToLatLng(this.options.data);
oEmpBoundary = new leafLet.typeLibrary.EmpBoundary(oCoordList);
}
return oEmpBoundary;
},
get2525Version: function() {
return this.options.i2525Version;
},
render: function() {
if (this.isVisible()) {
var oLeafletObject = this._createFeature(this.options);
this.setLeafletObject(oLeafletObject);
}
},
_updateMilStdFeature: function(args, oModifiers, bUpdateGraphic) {
var oFeature = undefined;
var sSymbolCode = args.data.symbolCode;
var i2525Version = oModifiers[leafLet.utils.milstd.Modifiers.STANDARD];
var isMultiPoint = armyc2.c2sd.renderer.utilities.SymbolUtilities.isMultiPoint(sSymbolCode, i2525Version);
if (isMultiPoint) {
oFeature = this._createMultiPointFeature(args, oModifiers, i2525Version);
args.bIsMultiPointTG = true;
} else {
oFeature = this._updateSinglePointFeature(args, oModifiers, bUpdateGraphic);
}
if (oFeature) {
var oMapBoundry = this.getEngineInstanceInterface().leafletInstance.getBounds();
this._updateLeafletObject(oMapBoundry, oFeature, false);
}
return oFeature;
},
updateCoordinates: function(oMapBounds) {
if (this.isVisible() && !this.isMultiPointTG()) {
// We only update coordinates to the visible NON tactical graphics.
// TG will get re-rendered.
this._updateLeafletObject(oMapBounds, this.getLeafletObject(), false);
}
},
_updateFeature: function(oArgs) {
var oNewFeafure;
var sModifier;
var bUpdateGraphic = (oArgs.bUpdateGraphic === true);
var oMilStdModifiers = this.options.oMilStdModifiers;
var oMilStdUtil = leafLet.utils.milstd;
var oModifiers = oMilStdUtil.convertModifiersTo2525(oArgs);
if (!bUpdateGraphic) {
if ((oArgs.hasOwnProperty('name') && (oArgs['name'] !== this.getName()))) {
bUpdateGraphic = true;
} else if (oArgs.data.symbolCode !== this.options.data.symbolCode) {
// The symbol changed we need to regenerate the graphic.
bUpdateGraphic = true;
} else {
for (sModifier in oModifiers) {
if (!oModifiers.hasOwnProperty(sModifier)) {
continue;
}
if (oMilStdModifiers.oModifiers[sModifier] === undefined) {
// There is a new modifiers.
// We need to regenerate the graphic.
bUpdateGraphic = true;
break;
} else if (!oMilStdUtil.areModifierValuesEqual(oMilStdModifiers.oModifiers[sModifier], oModifiers[sModifier])) {
// The modifier changed.
// We need to regenerate the graphic.
bUpdateGraphic = true;
break;
}
}
if (!bUpdateGraphic) {
for (sModifier in oMilStdModifiers.oModifiers) {
if (!oMilStdModifiers.oModifiers.hasOwnProperty(sModifier)) {
continue;
}
if ((sModifier !== 'CN') && (oModifiers[sModifier] === undefined)) {
// A modifier was removed.
// We need to regenerate the graphic.
bUpdateGraphic = true;
break;
}
}
}
}
}
oNewFeafure = this._updateMilStdFeature(oArgs, oModifiers, bUpdateGraphic);
this.options.oMilStdModifiers = new leafLet.typeLibrary.MilStdModifiers(this, oModifiers);
this.options.properties.modifiers = this.options.oMilStdModifiers.toLongModifiers();
this.options.bIsMultiPointTG = oArgs.bIsMultiPointTG;
return oNewFeafure;
},
updateIconSize: function() {
var sSymbolCode = this.options.data.symbolCode;
var oModifiers = this.options.oMilStdModifiers.toModifiers();
var i2525Version = oModifiers[leafLet.utils.milstd.Modifiers.STANDARD];
var isMultiPoint = armyc2.c2sd.renderer.utilities.SymbolUtilities.isMultiPoint(sSymbolCode, i2525Version);
if (!isMultiPoint) {
this._updateSinglePointFeature(this.options, oModifiers, true);
}
},
resetEditMode: function() {
this.options.isEditMode = false;
if (this.isSelected() && this.isMultiPointTG()) {
this.render();
}
}
};
return publicInterface;
};
leafLet.typeLibrary.MilStdFeature = leafLet.typeLibrary.Feature.extend(leafLet.internalPrivateClass.MilStdFeature());
| missioncommand/emp3-web | src/mapengine/leaflet/js/typeLibrary/leaflet-eng.typeLibrary.feature.milstd.js | JavaScript | apache-2.0 | 19,728 |
let httpRequest = {
send(url, cb) {
var xhr = new XMLHttpRequest();
xhr.open("GET", url, true);
xhr.onreadystatechange = function() {
if (xhr.readyState == 4) {
cb(xhr.responseText);
}
}
xhr.send();
}
}
export default httpRequest; | juancjara/bets-extension | src/js/background/httpRequest.js | JavaScript | apache-2.0 | 276 |
//// [classWithPredefinedTypesAsNames.ts]
// classes cannot use predefined types as names
class any { }
class number { }
class boolean { }
class string { }
//// [classWithPredefinedTypesAsNames.js]
var any = (function () {
function any() {
}
return any;
})();
var number = (function () {
function number() {
}
return number;
})();
var boolean = (function () {
function boolean() {
}
return boolean;
})();
var string = (function () {
function string() {
}
return string;
})();
| DickvdBrink/TypeScript | tests/baselines/reference/classWithPredefinedTypesAsNames.js | JavaScript | apache-2.0 | 550 |
import React from 'react';
/** dkjnslknkjfndn */
const CloseButton = ({ YouCanPassAnyProps, closeToast }) => (
<button
ariaLabel="close"
className="Toastify__close-button"
onClick={closeToast}>
<span></span>
</button>
);
/** huyhuyghu */
const notificationStyle = {
position: 'bottom-right',
closeButton: <CloseButton YouCanPassAnyProps="foo" />,
};
export default notificationStyle;
| wfp/ui | src/components/Notification/Notification.legacy.js | JavaScript | apache-2.0 | 411 |
// Tests conversion from x-mac-icelandic to Unicode
load('CharsetConversionTests.js');
const inString = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff";
const expectedString = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u00c4\u00c5\u00c7\u00c9\u00d1\u00d6\u00dc\u00e1\u00e0\u00e2\u00e4\u00e3\u00e5\u00e7\u00e9\u00e8\u00ea\u00eb\u00ed\u00ec\u00ee\u00ef\u00f1\u00f3\u00f2\u00f4\u00f6\u00f5\u00fa\u00f9\u00fb\u00fc\u00dd\u00b0\u00a2\u00a3\u00a7\u2022\u00b6\u00df\u00ae\u00a9\u2122\u00b4\u00a8\u2260\u00c6\u00d8\u221e\u00b1\u2264\u2265\u00a5\u00b5\u2202\u2211\u220f\u03c0\u222b\u00aa\u00ba\u03a9\u00e6\u00f8\u00bf\u00a1\u00ac\u221a\u0192\u2248\u2206\u00ab\u00bb\u2026\u00a0\u00c0\u00c3\u00d5\u0152\u0153\u2013\u2014\u201c\u201d\u2018\u2019\u00f7\u25ca\u00ff\u0178\u2044\u20ac\u00d0\u00f0\u00de\u00fe\u00fd\u00b7\u201a\u201e\u2030\u00c2\u00ca\u00c1\u00cb\u00c8\u00cd\u00ce\u00cf\u00cc\u00d3\u00d4\uf8ff\u00d2\u00da\u00db\u00d9\u0131\u02c6\u02dc\u00af\u02d8\u02d9\u02da\u00b8\u02dd\u02db\u02c7";
const aliases = [ "x-mac-icelandic" ];
function run_test() {
testDecodeAliases();
}
| wilebeast/FireFox-OS | B2G/gecko/intl/uconv/tests/unit/test_decode_x_mac_icelandic.js | JavaScript | apache-2.0 | 1,706 |
<%#
Copyright 2013-2017 the original author or authors.
This file is part of the JHipster project, see https://jhipster.github.io/
for more information.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-%>
(function() {
'use strict';
angular
.module('<%=angularAppName%>')
.controller('<%=jhiPrefixCapitalized%>ConfigurationController', <%=jhiPrefixCapitalized%>ConfigurationController);
<%=jhiPrefixCapitalized%>ConfigurationController.$inject = ['$filter','<%=jhiPrefixCapitalized%>ConfigurationService'];
function <%=jhiPrefixCapitalized%>ConfigurationController (filter,<%=jhiPrefixCapitalized%>ConfigurationService) {
var vm = this;
vm.allConfiguration = null;
vm.configuration = null;
<%=jhiPrefixCapitalized%>ConfigurationService.get().then(function(configuration) {
vm.configuration = configuration;
});
<%=jhiPrefixCapitalized%>ConfigurationService.getEnv().then(function (configuration) {
vm.allConfiguration = configuration;
});
}
})();
| fjuriolli/scribble | node_modules/generator-jhipster/generators/client/templates/angularjs/src/main/webapp/app/admin/configuration/_configuration.controller.js | JavaScript | apache-2.0 | 1,559 |
'use strict'
const mongoose = require('mongoose')
require('dotenv').config()
let mongoDB = `mongodb://${process.env.HOST_NAME}/${process.env.DATABASE_NAME}`
mongoose.Promise = global.Promise
mongoose.connect(mongoDB)
let db = mongoose.connection
db.on('error', console.error.bind(console, 'MongoDB Connection error'))
| adamsaparudin/spaced-repetition | server/db.js | JavaScript | apache-2.0 | 322 |
import styled from 'styled-components';
import Hamburger from './Hamburger';
import {
BREAKPOINT_SHOW_HAMBURGER,
SIDENAV_SIZE,
HAMBURER_SIZE,
} from './constants';
export default styled(Hamburger)`
position: absolute;
top: 0;
left: ${SIDENAV_SIZE}px;
transform: ${(props) =>
props.active ? 'translateX(-70px)' : 'translateX(0)'};
width: ${HAMBURER_SIZE}px;
height: ${HAMBURER_SIZE}px;
z-index: 200;
@media (min-width: ${BREAKPOINT_SHOW_HAMBURGER}px) {
visibility: hidden;
}
`;
| spearwolf/blitpunk | packages/kitchen-sink/src/AppShell/SideNavHamburger.js | JavaScript | apache-2.0 | 512 |
// javascript (closure) port (c) 2013 Manuel Braun ([email protected])
/*
* Copyright 2008 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
goog.require('goog.array');
goog.require('w69b.qr.GF256');
goog.require('w69b.qr.ReedSolomonDecoder');
goog.require('w69b.qr.ReedSolomonError');
define(['chai', 'corrupt'], function(chai, corrupt) {
var assert = chai.assert;
describe('ReedSolomonDecoder tests', function() {
var ReedSolomonDecoder = w69b.qr.ReedSolomonDecoder;
/** See ISO 18004, Appendix I, from which this example is taken. */
var QR_CODE_TEST = [0x10, 0x20, 0x0C, 0x56, 0x61, 0x80, 0xEC, 0x11, 0xEC,
0x11, 0xEC, 0x11, 0xEC, 0x11, 0xEC, 0x11];
var QR_CODE_TEST_WITH_EC = [0x10, 0x20, 0x0C, 0x56, 0x61, 0x80, 0xEC,
0x11, 0xEC, 0x11, 0xEC, 0x11, 0xEC, 0x11, 0xEC, 0x11, 0xA5, 0x24,
0xD4, 0xC1, 0xED, 0x36, 0xC7, 0x87, 0x2C, 0x55];
var QR_CODE_ECC_BYTES = QR_CODE_TEST_WITH_EC.length - QR_CODE_TEST.length;
var QR_CODE_CORRECTABLE = QR_CODE_ECC_BYTES / 2;
var qrRSDecoder = new ReedSolomonDecoder(w69b.qr.GF256.QR_CODE_FIELD);
function checkQRRSDecode(received) {
qrRSDecoder.decode(received, QR_CODE_ECC_BYTES);
// expect(received).to.equal(QR_CODE_TEST);
for (var i = 0; i < QR_CODE_TEST.length; i++) {
expect(received[i]).to.equal(QR_CODE_TEST[i]);
}
}
it('decodes code with no errors', function() {
var received = goog.array.clone(QR_CODE_TEST_WITH_EC);
// no errors
checkQRRSDecode(received);
});
it('decodes code with one errors', function() {
for (var i = 0; i < QR_CODE_TEST_WITH_EC.length; i++) {
var received = goog.array.clone(QR_CODE_TEST_WITH_EC);
received[i] = 0x00; // Math.round(Math.random() * 256);
checkQRRSDecode(received);
}
});
it('decodes code with max errors', function() {
for (var i = 0; i < 10; ++i) { // # iterations is kind of arbitrary
var received = goog.array.clone(QR_CODE_TEST_WITH_EC);
corrupt(received, QR_CODE_CORRECTABLE);
checkQRRSDecode(received);
}
});
it('throws excpetion on failure', function() {
var received = goog.array.clone(QR_CODE_TEST_WITH_EC);
corrupt(received, QR_CODE_CORRECTABLE + 1);
expect(function() {
checkQRRSDecode(received);
}).to.throw(w69b.qr.ReedSolomonError);
});
});
});
| dsanders11/barcode.js | tests/reedsolomondecoder.spec.js | JavaScript | apache-2.0 | 2,927 |
var orig = {
from: 20,
to: 500
};
var board = tnt.board().from(orig.from).to(orig.to);
// reload button
var reload = d3.select(yourDiv)
.append("button")
.text("reset")
.style("margin", "10px")
.on("click", function () {
board.from(orig.from);
board.to(orig.to);
board.start();
});
var axis_track = tnt.board.track()
.height(0)
.color("white")
.display(tnt.board.track.feature.axis()
.orientation("top")
);
var pin_track = tnt.board.track()
.height(60)
.color("white")
.display(tnt.board.track.feature.pin()
.domain([0.3, 1.2])
.color("red")
.on("click", function (d) {
console.log(d);
})
.on("mouseover", function (d) {
console.log("mouseover");
})
)
.data(tnt.board.track.data.sync()
.retriever (function () {
return [
{
pos : 200,
val : 0.5,
label : "1"
},
{
pos : 355,
val : 0.8,
label : "2"
},
{
pos : 100,
val : 0.3,
label : "3"
},
{
pos : 400,
val : 1,
label : "4"
}
];
})
);
board
.add_track(axis_track)
.add_track(pin_track);
board(yourDiv);
board.start();
| tntvis/tnt.board | snippets/reload.js | JavaScript | apache-2.0 | 1,560 |
'use strict';
module.exports = {
get: 'SENSOR_MULTILEVEL_GET',
getParser: () => ({
'Sensor Type': 'Power (version 2)',
Properties1: {
Scale: 0,
},
}),
report: 'SENSOR_MULTILEVEL_REPORT',
reportParser: report => {
if (report && report.hasOwnProperty('Sensor Type') && report.hasOwnProperty('Sensor Value (Parsed)')) {
if (report['Sensor Type'] === 'Power (version 2)') return report['Sensor Value (Parsed)'];
}
return null;
},
};
| timkouters/nl.timkouters.domitech | node_modules/homey-meshdriver/lib/zwave/system/capabilities/measure_power/SENSOR_MULTILEVEL.js | JavaScript | apache-2.0 | 454 |
const eg = require('../../eg');
module.exports = class extends eg.Generator {
constructor (args, opts) {
super(args, opts);
this.configureCommand({
command: 'list [options]',
description: 'List scopes',
builder: yargs =>
yargs
.usage(`Usage: $0 ${process.argv[2]} list [options]`)
.example(`$0 ${process.argv[2]} list`)
});
}
prompting () {
return this.admin.scopes.list()
.then(res => {
if (!res.scopes || !res.scopes.length) {
return this.stdout('You have no scopes');
}
res.scopes.forEach(scope => this.stdout(scope));
})
.catch(err => {
this.log.error(err.message);
});
}
};
| ExpressGateway/express-gateway | bin/generators/scopes/list.js | JavaScript | apache-2.0 | 717 |
// This THREEx helper makes it easy to handle window resize.
// It will update renderer and camera when window is resized.
//
// # Usage
//
// **Step 1**: Start updating renderer and camera
//
// ```var windowResize = THREEx.WindowResize(aRenderer, aCamera)```
//
// **Step 2**: Start updating renderer and camera
//
// ```windowResize.stop()```
// # Code
// Source: https://github.com/jeromeetienne/threex/blob/master/THREEx.WindowResize.js
//
/** @namespace */
var THREEx = THREEx || {};
/**
* Update renderer and camera when the window is resized
*
* @param {Object} renderer the renderer to update
* @param {Object} Camera the camera to update
*/
THREEx.WindowResize = function(renderer, camera){
var callback = function(){
// notify the renderer of the size change
renderer.setSize( window.innerWidth, window.innerHeight );
// update the camera
camera.aspect = window.innerWidth / window.innerHeight;
camera.updateProjectionMatrix();
}
// bind the resize event
window.addEventListener('resize', callback, false);
// return .stop() the function to stop watching window resize
return {
/**
* Stop watching window resize
*/
stop : function(){
window.removeEventListener('resize', callback);
}
};
}
| hiroki-repo/hiroki-repo.github.com | game0001/public/lib/THREEx.WindowResize.js | JavaScript | apache-2.0 | 1,245 |
/**
* @author Swagatam Mitra
*/
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, document, console, brackets, $, Mustache */
define(function (require, exports, module) {
"use strict";
require("resizer/BottomCenterResizer");
require("resizer/BottomLeftResizer");
require("resizer/BottomRightResizer");
require("resizer/TopCenterResizer");
require("resizer/TopLeftResizer");
require("resizer/TopRightResizer");
require("resizer/MiddleLeftResizer");
require("resizer/MiddleRightResizer");
}); | HunseopJeong/WATT | libs/brackets-server/embedded-ext/swmitra.html-designer/ResizeHandler.js | JavaScript | apache-2.0 | 602 |
import { config, path, fs } from 'azk';
import h from 'spec/spec_helper';
import { Generator } from 'azk/generator';
import { Manifest } from 'azk/manifest';
var qfs = require('q-io/fs');
describe('Azk generator generation two nodes systems', function() {
var project = null;
var outputs = [];
var UI = h.mockUI(beforeEach, outputs);
var generator = new Generator(UI);
var rootFolder;
before(function() {
return h.tmp_dir().then((dir) => {
rootFolder = dir;
// `node 1` system folder
var projectFolder = path.join(dir, 'node1');
fs.mkdirSync(projectFolder);
var packageJson = path.join(projectFolder, 'package.json');
h.touchSync(packageJson);
// `node 2` system folder
projectFolder = path.join(dir, 'node2');
fs.mkdirSync(projectFolder);
packageJson = path.join(projectFolder, 'package.json');
h.touchSync(packageJson);
return qfs.write(packageJson, '');
});
});
var generateAndReturnManifest = (project) => {
var manifest = path.join(project, config('manifest'));
generator.render({
systems: generator.findSystems(project),
}, manifest);
return new Manifest(project);
};
it('should detect two node projects', function() {
var manifest = generateAndReturnManifest(rootFolder);
var allKeys = Object.keys(manifest.systems);
h.expect(allKeys).to.have.contains('node1');
h.expect(allKeys).to.have.contains('node2');
});
}); | saitodisse/azk-travis-test | spec/generator/rules/generation/two_node_gen_spec.js | JavaScript | apache-2.0 | 1,473 |
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --expose-wasm
load("test/mjsunit/wasm/wasm-constants.js");
load("test/mjsunit/wasm/wasm-module-builder.js");
function testCallFFI(func, check) {
var builder = new WasmModuleBuilder();
var sig_index = builder.addType(kSig_i_dd);
builder.addImport("func", sig_index);
builder.addFunction("main", sig_index)
.addBody([
kExprGetLocal, 0, // --
kExprGetLocal, 1, // --
kExprCallImport, kArity2, 0 // --
]) // --
.exportFunc();
var main = builder.instantiate({func: func}).exports.main;
for (var i = 0; i < 100000; i += 10003) {
var a = 22.5 + i, b = 10.5 + i;
var r = main(a, b);
check(r, a, b);
}
}
var global = (function() { return this; })();
var params = [-99, -99, -99, -99, -99];
var was_called = false;
var length = -1;
function FOREIGN_SUB(a, b) {
print("FOREIGN_SUB(" + a + ", " + b + ")");
was_called = true;
params[0] = this;
params[1] = a;
params[2] = b;
return (a - b) | 0;
}
function check_FOREIGN_SUB(r, a, b) {
assertEquals(a - b | 0, r);
assertTrue(was_called);
// assertEquals(global, params[0]); // sloppy mode
assertEquals(a, params[1]);
assertEquals(b, params[2]);
was_called = false;
}
testCallFFI(FOREIGN_SUB, check_FOREIGN_SUB);
function FOREIGN_ABCD(a, b, c, d) {
print("FOREIGN_ABCD(" + a + ", " + b + ", " + c + ", " + d + ")");
was_called = true;
params[0] = this;
params[1] = a;
params[2] = b;
params[3] = c;
params[4] = d;
return (a * b * 6) | 0;
}
function check_FOREIGN_ABCD(r, a, b) {
assertEquals((a * b * 6) | 0, r);
assertTrue(was_called);
// assertEquals(global, params[0]); // sloppy mode.
assertEquals(a, params[1]);
assertEquals(b, params[2]);
assertEquals(undefined, params[3]);
assertEquals(undefined, params[4]);
was_called = false;
}
testCallFFI(FOREIGN_ABCD, check_FOREIGN_ABCD);
function FOREIGN_ARGUMENTS0() {
print("FOREIGN_ARGUMENTS0");
was_called = true;
length = arguments.length;
for (var i = 0; i < arguments.length; i++) {
params[i] = arguments[i];
}
return (arguments[0] * arguments[1] * 7) | 0;
}
function FOREIGN_ARGUMENTS1(a) {
print("FOREIGN_ARGUMENTS1", a);
was_called = true;
length = arguments.length;
for (var i = 0; i < arguments.length; i++) {
params[i] = arguments[i];
}
return (arguments[0] * arguments[1] * 7) | 0;
}
function FOREIGN_ARGUMENTS2(a, b) {
print("FOREIGN_ARGUMENTS2", a, b);
was_called = true;
length = arguments.length;
for (var i = 0; i < arguments.length; i++) {
params[i] = arguments[i];
}
return (a * b * 7) | 0;
}
function FOREIGN_ARGUMENTS3(a, b, c) {
print("FOREIGN_ARGUMENTS3", a, b, c);
was_called = true;
length = arguments.length;
for (var i = 0; i < arguments.length; i++) {
params[i] = arguments[i];
}
return (a * b * 7) | 0;
}
function FOREIGN_ARGUMENTS4(a, b, c, d) {
print("FOREIGN_ARGUMENTS4", a, b, c, d);
was_called = true;
length = arguments.length;
for (var i = 0; i < arguments.length; i++) {
params[i] = arguments[i];
}
return (a * b * 7) | 0;
}
function check_FOREIGN_ARGUMENTS(r, a, b) {
assertEquals((a * b * 7) | 0, r);
assertTrue(was_called);
assertEquals(2, length);
assertEquals(a, params[0]);
assertEquals(b, params[1]);
was_called = false;
}
// Check a bunch of uses of the arguments object.
testCallFFI(FOREIGN_ARGUMENTS0, check_FOREIGN_ARGUMENTS);
testCallFFI(FOREIGN_ARGUMENTS1, check_FOREIGN_ARGUMENTS);
testCallFFI(FOREIGN_ARGUMENTS2, check_FOREIGN_ARGUMENTS);
testCallFFI(FOREIGN_ARGUMENTS3, check_FOREIGN_ARGUMENTS);
testCallFFI(FOREIGN_ARGUMENTS4, check_FOREIGN_ARGUMENTS);
function returnValue(val) {
return function(a, b) {
print("RETURN_VALUE ", val);
return val;
}
}
function checkReturn(expected) {
return function(r, a, b) { assertEquals(expected, r); }
}
// Check that returning weird values doesn't crash
testCallFFI(returnValue(undefined), checkReturn(0));
testCallFFI(returnValue(null), checkReturn(0));
testCallFFI(returnValue("0"), checkReturn(0));
testCallFFI(returnValue("-77"), checkReturn(-77));
var objWithValueOf = {valueOf: function() { return 198; }}
testCallFFI(returnValue(objWithValueOf), checkReturn(198));
function testCallBinopVoid(type, func, check) {
var passed_length = -1;
var passed_a = -1;
var passed_b = -1;
var args_a = -1;
var args_b = -1;
ffi = {func: function(a, b) {
passed_length = arguments.length;
passed_a = a;
passed_b = b;
args_a = arguments[0];
args_b = arguments[1];
}};
var builder = new WasmModuleBuilder();
builder.addImport("func", makeSig_v_xx(type));
builder.addFunction("main", makeSig_r_xx(kAstI32, type))
.addBody([
kExprGetLocal, 0, // --
kExprGetLocal, 1, // --
kExprCallImport, kArity2, 0, // --
kExprI8Const, 99 // --
]) // --
.exportFunc()
var main = builder.instantiate(ffi).exports.main;
print("testCallBinopVoid", type);
for (var i = 0; i < 100000; i += 10003.1) {
var a = 22.5 + i, b = 10.5 + i;
var r = main(a, b);
assertEquals(99, r);
assertEquals(2, passed_length);
var expected_a, expected_b;
switch (type) {
case kAstI32: {
expected_a = a | 0;
expected_b = b | 0;
break;
}
case kAstF32: {
expected_a = Math.fround(a);
expected_b = Math.fround(b);
break;
}
case kAstF64: {
expected_a = a;
expected_b = b;
break;
}
}
assertEquals(expected_a, args_a);
assertEquals(expected_b, args_b);
assertEquals(expected_a, passed_a);
assertEquals(expected_b, passed_b);
}
}
testCallBinopVoid(kAstI32);
// TODO testCallBinopVoid(kAstI64);
testCallBinopVoid(kAstF32);
testCallBinopVoid(kAstF64);
function testCallPrint() {
var builder = new WasmModuleBuilder();
builder.addImport("print", makeSig_v_x(kAstI32));
builder.addImport("print", makeSig_v_x(kAstF64));
builder.addFunction("main", makeSig_v_x(kAstF64))
.addBody([
kExprI8Const, 97, // --
kExprCallImport, kArity1, 0, // --
kExprGetLocal, 0, // --
kExprCallImport, kArity1, 1 // --
]) // --
.exportFunc()
var main = builder.instantiate({print: print}).exports.main;
for (var i = -9; i < 900; i += 6.125) main(i);
}
testCallPrint();
testCallPrint();
| runtimejs/runtime | deps/v8/test/mjsunit/wasm/ffi.js | JavaScript | apache-2.0 | 6,653 |
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Ext.define("Wdesktop.app.UserManager.store.UserStore", {
extend : "Ext.data.Store",
requires : [ 'Wdesktop.app.UserManager.model.UserModel',
'Ext.data.proxy.Ajax', 'Ext.data.reader.Json' ],
constructor : function(cfg) {
var me = this;
cfg = cfg || {};
me.callParent([ Ext.apply({
autoLoad : false,
model : 'Wdesktop.app.UserManager.model.UserModel',
proxy : {
type : "ajax",
url : "admin/userManager/userStore.json",
reader : {
type : "json",
root : "users"
}
},
}, cfg) ]);
}
});
| wu560130911/MultimediaDesktop | Client/src/main/webapp/resources/desktop/app/UserManager/store/UserStore.js | JavaScript | apache-2.0 | 1,100 |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*global module:false,require:false */
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
karma: {
unit: {
configFile: 'src/test/karma.conf.js',
autoWatch: true
},
continuous: {
configFile: 'src/test/karma.conf.js',
singleRun: true,
browsers: ['PhantomJS']
}
},
jshint: {
// only check BrowserMap files and Gruntfile.js
files: {
src: [
'Gruntfile.js',
'src/main/js/*.js'
]
},
options: {
browser: true,
curly: true,
forin: true,
camelcase: true,
quotmark: true,
undef: true,
unused: true,
trailing: true,
maxlen: 140,
multistr: true
}
},
copy: {
browsermap: {
files: [
{src: ['src/main/js/*.js'], dest: 'target/libs/browsermap/', expand: true, flatten: true},
{cwd: 'src/main/resources/demo/', src: ['**'], dest: 'target/demo/', expand: true},
{cwd: 'src/main/lib/', src: ['**'], dest: 'target/libs/externals/', expand: true},
{src: ['NOTICE'], dest: 'target/', expand: true}
]
},
minified: {
files: [
{src: ['target/libs/min/browsermap.min.js'], dest: 'target/demo/js/browsermap.min.js'}
]
}
},
uglify: {
options: {
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> */\n',
mangle: {
except: ['BrowserMap', 'BrowserMapUtil', 'Modernizr']
}
},
target: {
files: {
'target/libs/min/browsermap.min.js': [
'target/libs/browsermap/bmaputil.js',
'target/libs/browsermap/bmap.js',
'target/libs/externals/modernizr/modernizr.custom.js',
'target/libs/externals/matchMedia/matchMedia.js',
'target/libs/browsermap/probes.js',
'target/libs/browsermap/devicegroups.js'
]
}
}
},
jsdoc: {
dist: {
src: ['src/main/js/*.js', 'README.md'],
dest: 'target/doc'
}
},
compress: {
source: {
options: {
archive: 'target/browsermap-<%= pkg.version %>-incubating.tar.gz',
mode: 'tgz',
pretty: true
},
files: [
// the following entries provide the source files in the archive
{cwd: 'src/', src: ['**/*.js'], dest: 'browsermap-<%= pkg.version %>-incubating/src/', expand: true},
{cwd: 'src/', src: ['**/*.css'], dest: 'browsermap-<%= pkg.version %>-incubating/src/', expand: true},
{cwd: 'src/', src: ['**/*.html'], dest: 'browsermap-<%= pkg.version %>-incubating/src/', expand: true},
{cwd: 'target/', src: ['NOTICE'], dest: 'browsermap-<%= pkg.version %>-incubating/', expand: true},
{
src: [
'.gitignore', '.travis.yml', 'Gruntfile.js', 'package.json', 'README.md', 'LICENSE', 'DISCLAIMER', 'rat.exclude'
],
dest: 'browsermap-<%= pkg.version %>-incubating/'
},
{src: ['ci/**'], dest: 'browsermap-<%= pkg.version %>-incubating/'}
]
},
dist: {
options: {
archive: 'target/browsermap-<%= pkg.version %>-incubating-dist.tar.gz',
mode: 'tgz',
pretty: true
},
files: [
{src: ['LICENSE', 'README.md', 'DISCLAIMER'], dest: 'browsermap-<%= pkg.version %>-incubating-dist/'},
{cwd: 'target/demo', src: ['**'], dest: 'browsermap-<%= pkg.version %>-incubating-dist/demo/', expand: true},
{cwd: 'target/doc/', src: ['**'], dest: 'browsermap-<%= pkg.version %>-incubating-dist/doc/', expand: true},
{cwd: 'target/', src: ['NOTICE'], dest: 'browsermap-<%= pkg.version %>-incubating-dist/', expand: true},
{cwd: 'target/libs/min/', src: ['*.js'], dest: 'browsermap-<%= pkg.version %>-incubating-dist/', expand: true}
]
}
},
qunit: {
options: {
'--web-security': 'no',
coverage: {
disposeCollector: true,
src: ['src/main/js/bmap.js', 'src/main/js/bmaputil.js'],
instrumentedFiles: 'target/report/ins/',
htmlReport: 'target/report/coverage',
coberturaReport: 'target/report/',
linesThresholdPct: 50
}
},
all: ['src/test/resources/**/*.html']
},
clean: ['target/'],
demo: {
demoFolder: 'target/demo/',
templateFile: 'index.html',
selectors: [
'browser',
'highResolutionDisplay',
'oldBrowser',
'smartphone.highResolutionDisplay',
'smartphone',
'tablet.highResolutionDisplay',
'tablet'
]
},
sourcetemplates: {
files: ['target/libs/browsermap/bmap.js', 'target/NOTICE']
}
});
grunt.registerTask('demo', 'Provides the demo pages', function() {
grunt.task.requires('clean', 'test', 'copy:browsermap', 'minify', 'copy:minified');
var data = grunt.config('demo'),
evaluatedContent,
path = require('path');
if (data) {
if (!data.demoFolder) {
grunt.log.error('No demo folder has been defined (demo.demoFolder).');
return;
}
if (!data.templateFile) {
grunt.log.error('No template file has been defined (demo.templateFile).');
return;
}
if (!data.selectors || data.selectors.length < 1) {
grunt.log.error('No selectors have been defined (demo.selectors).');
return;
}
var templateFile = path.join(data.demoFolder, data.templateFile);
evaluatedContent = grunt.template.process(grunt.file.read(templateFile));
grunt.file.write(templateFile, evaluatedContent);
for (var i = 0; i < data.selectors.length; i++) {
var fileName = data.templateFile.replace('.html', '.' + data.selectors[i] + '.html');
grunt.file.write(path.join(data.demoFolder, fileName), evaluatedContent);
}
grunt.log.writeln('Generated demo site at ' + data.demoFolder);
} else {
grunt.log.error('Cannot find a configuration for the demo task!');
return;
}
});
grunt.registerTask('sourcetemplates', 'Replaces templates from source files', function() {
grunt.task.requires('clean', 'test', 'copy:browsermap');
var data = grunt.config('sourcetemplates'),
path = require('path'),
files,
file,
content;
if (data) {
files = data.files;
if (!files || !(files instanceof Array)) {
grunt.log.error('No files array defined.');
return;
}
for (var i = 0; i < files.length; i++) {
file = path.normalize(files[i]);
content = grunt.template.process(grunt.file.read(file));
grunt.file.write(file, content);
grunt.log.writeln('Replaced template variables at ' + file);
}
} else {
grunt.log.error('Cannot find a configuration for the sourcetemplates task!');
return;
}
});
grunt.loadNpmTasks('grunt-karma');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-qunit-istanbul');
grunt.registerTask('minify', ['uglify']);
grunt.registerTask('coverage', ['qunit-cov']);
grunt.registerTask('test', ['jshint', 'karma:continuous', 'qunit']);
grunt.registerTask('package', ['clean', 'test', 'copy:browsermap', 'sourcetemplates', 'minify', 'copy:minified', 'demo', 'jsdoc',
'compress:source', 'compress:dist']);
};
| apache/devicemap-browsermap | Gruntfile.js | JavaScript | apache-2.0 | 10,049 |
var contextName = getContextName(); //return page context such as ACS
var week = new Array('یك شنبه', 'دوشنبه', 'سه شنبه', 'چهار شنبه', 'پنج شنبه', 'جمعه', 'شنبه');
function getContextName() {
var i = location.href.indexOf('/', 8);
var j = location.href.indexOf('/', i + 1);
return location.href.substring(i + 1, j);
}
function errh(msg) {
try {
if (localErrh(msg))//If has local errh function and error locally handled dont continue
return;
} catch (e) { }
switch (msg) {
case 'User expired':
//window.showModalDialog('/' + contextName +'/login.jsp', null, 'dialogHeight=200px;dialogWidth=300px;dialogTop=' + (window.screen.height / 2 - 200) + ';dialogLeft=' + (window.screen.width / 2 - 100));
top.location.assign('/' + contextName + '/index.jsp');
break;
case 'Image big size':
showErrorMessage('اندازه فایل بیش از حد مجاز است', 4);
break;
case 'Image big dim':
showErrorMessage('حد اكثر اندازه عكس 1024 در 1024 است', 4);
break;
case 'File big size':
showErrorMessage('اندازه فایل بیش از حد مجاز است', 4);
break;
case 'Organ diff':
showErrorMessage('شما مجاز به تغییر اطلاعات مركز دیگر نیستید', 4);
break;
case 'The input file was not found':
showErrorMessage('فايلي براي بارگذاري انتخاب نشده است', 4);
break;
default:
if (msg.indexOf('Access denied') > -1) {
showErrorMessage('دسترسی غیر مجاز <a href="javascript:{showErrorMessage(\'' + msg + '\')}">جزئيات<a>');
} else
if (msg.indexOf('Entity does not exist for user') > -1) {
showErrorMessage('مجاز به انجام عمليات درخواست شده نيستيد <a href="javascript:{showErrorMessage(\'' + msg + '\')}">جزئيات<a>');
} else
if (msg.indexOf('integrity constraint') > -1) {
showErrorMessage('به علت ارتباط با سایر اطلاعات قابل حذف نیست', 5);
}
else if (msg.indexOf('unique constraint') > -1) {
showErrorMessage('این مورد تكراری است و قابل ذخیره نمی باشد', 5);
} else if (msg.indexOf('DatabaseException') > -1) {
showErrorMessage('خطای مرتبط با بانك داده! عملیات انجام نشد', 10);
}
else {
showErrorMessage('خطا! عمیلات انجام نشد <a href="javascript:{showErrorMessage(\'' + msg + '\')}">جزئيات<a>');
}
}
}
function useLoadingMessage(msg) {
dwr.util.useLoadingMessage(msg);
}
var tmp;
function pageLoad() {
dwr.engine.setErrorHandler(errh);
pageNo = 0;
if (window.screen.height < 800)
dwr.util.setValue('pageSize', '10');
else if (window.screen.height < 1000)
dwr.util.setValue('pageSize', '14');
else
dwr.util.setValue('pageSize', '18');
//showElements(new Array('wait'));
init();
Tabs.init('tabList', 'tabContents');
SearchTabs.init('searchTabList', 'searchTabContents');
}
function highLight(id) {
tmp = getById(id).style.backgroundColor;
getById(id).style.backgroundColor = '#ADEBAB';
}
function getById(id) {
return document.getElementById(id);
}
function backPage() {
if (window.event != null)
history.back();
else
back();
}
function normLight(id) {
getById(id).style.backgroundColor = tmp;
}
var ids = new Array('table_content', 'edit_form', 'search_form', 'wait', 'parentTitle');
function showElements(showIds) {
for (var i = 0; i < ids.length; i++) {
if (getById(ids[i]))
getById(ids[i]).style.display = 'none';
}
for (i = 0; i < showIds.length; i++) {
if (getById(showIds[i]))
getById(showIds[i]).style.display = 'block';
}
}
function dwrUploadSupport() {
return !isIE();
}
function isIE() {
return navigator.appVersion.indexOf('MSIE') != -1;
}
function addEvent(obj, evType, fn) {
if (obj.addEventListener) {
obj.addEventListener(evType, fn, false);
return true;
} else if (obj.attachEvent) {
var r = obj.attachEvent("on" + evType, fn);
return r;
} else {
return false;
}
}
function cancelEvent(e) {
if (window.event)
window.event.returnValue = false;
else
e.preventDefault();
return false;
}
function showDate(dateInputName, anchorName) {
if (getById(dateInputName.replace('@to', '@from') + 'Div').style.visibility == 'visible') {
getById(dateInputName.replace('@to', '@from') + 'Div').style.visibility = 'hidden';
return;
}
var cal = new CalendarPopup(dateInputName.replace('@to', '@from') + 'Div');
cal.setCssPrefix('TEST');
cal.showNavigationDropdowns();
cal.select(window.getById(dateInputName), anchorName, 'yyyy/MM/dd');
return false;
}
function changeDownUpArrow(id) {
var elm = getById(id);
if (elm.src.indexOf('downArrow') > -1)
elm.src = elm.src.replace('downArrow', 'upArrow');
else
elm.src = elm.src.replace('upArrow', 'downArrow');
}
function showHide(id) {
var elm = getById(id)
if (elm) {
if (elm.style.display == 'block' || elm.style.display == '')
elm.style.display = 'none';
else
elm.style.display = '';
}
}
function showElement(id) {
var elm = getById(id)
if (elm)
elm.style.display = 'block';
}
function hideElement(id) {
var elm = getById(id)
if (elm)
getById(id).style.display = 'none';
}
function nextPage() {
if (resultNum == pageSize) {
pageNo++;
init();
}
}
function prevPage() {
if (pageNo > 0) {
pageNo--;
init();
}
}
function showPage(pNo) {
pageNo = pNo;
init();
}
function createNavigation(resultNum, current, pageSize) {
var template = '<A class="noborder" href="javascript:{}" onclick="showPage(pageNo)" >num </A>';
var nav = getById('navigateNums');
nav.innerHTML = '';
var pageCount = Math.floor(resultNum / pageSize);
if (pageCount * pageSize < resultNum)
pageCount++;
if (current > pageCount)
current = pageCount;
var start = Math.max(1, current - 3);
var end = Math.min(pageCount, start + 9);
if (end - start < 10)
start = Math.max(1, end - 9);
if (current + 1 < pageCount)
showElement('nextIcon');
else
hideElement('nextIcon');
if (current == 0)
hideElement('prevIcon');
else
showElement('prevIcon');
var childs = '';
for (i = start; i <= end; i++) {
if (i == current + 1)
childs += '<font face="tahoma" size="2" color="red"><b>' + i + '</b> </font>';
else
childs += template.replace('num', ' ' + i).replace('pageNo', i - 1);
}
if (isIE()) {
try {
nav.insertAdjacentHTML('BeforeEnd', childs); //IE
} catch (e) { }
} else {
nav.innerHTML = childs;
}
dwr.util.setValue('resultNum', resultNum);
}
function refreshForm() {
if (currentId != -1)
showCurrent(currentId);
}
function dotToDolar(str) {
if (str)
return str.replace(/\./gi, "$");
return str;
}
function dolarToDot(str) {
if (str)
return str.replace(/\$/gi, ".");
return str;
}
function toFarsi(str) {
return str.replace(/ك/gi, "ک").replace(/ي/gi, "ی");
}
//return id of selected item in seaarch grid
function selectedRowId(parentId) {
var selected = null;
var inputs = getById(parentId).getElementsByTagName('input');
for (i = 0; i < inputs.length; i++) {
if (inputs[i].id && inputs[i].id.indexOf('selectedItem') == 0 && inputs[i].checked) {
selected = inputs[i].id.substring(14);
break;
}
}
return selected;
}
function showFilter() {
showElements(new Array('search_form'));
}
var filter = '';
function addFilter(template, fname, value) {
if (filter.length > 0)
filter += '@;@';
filter += template + '@@' + fname + '@@' + value;
}
var initFilter = ''; //In some entities we need initially filter list, this field use for this
//This method gets searchFields from page and makes filter string.
function getSearchFilter() {
filter = initFilter;
for (i = 0; i < searchFields.length; i++) {
var fname = 'search_' + dotToDolar(searchFields[i]);
if (getById(fname) == null) {
continue;
}
var val = dwr.util.getValue(fname);
if (val != null && val != '-1' && val != '') {
var template = dwr.util.getValue(fname + '_template');
if (template == null || template.length < 2)
template = "fname = 'value'";
addFilter(template, searchFields[i], val);
}
}
if (filter.length == 0) {
getById('filteredIcon').style.visibility = 'hidden';
if (getById('simpleSearch') != null)
getById('simpleSearch').style.display = 'block';
}
else {
getById('filteredIcon').style.visibility = 'visible';
if (getById('simpleSearch') != null)
getById('simpleSearch').style.display = 'none';
}
return toFarsi(filter);
}
var isSearchState = false;
function search() {
isSearchState = true;
resetTopFilter(false);
pageNo = 0;
init();
}
function clearFilter() {
parent.topFilter = '';
filter = '';
var inputs = getById('search_form').getElementsByTagName('input');
for (i = 0; i < inputs.length; i++) {
if (inputs[i].type == 'button' ||
(inputs[i].type == 'hidden' && inputs[i].id.indexOf('search_') == 0 && (inputs[i].id.indexOf('EntityName') > -1 || inputs[i].id.indexOf('FieldName') > -1 || inputs[i].id.indexOf('Filter') > -1))
|| inputs[i].id.indexOf('SimpleSearch') > -1)
continue;
dwr.util.setValue(inputs[i], null);
}
var selects = getById('search_form').getElementsByTagName('select');
for (i = 0; i < selects.length; i++) {
if (selects[i].getAttribute('class') != 'template' || (selects[i].outerHTML && selects[i].outerHTML.indexOf('template') == -1)) {
selects[i].selectedIndex = 0;
var autoCompletId = selects[i].id.substring(0, selects[i].id.length - 6) + '$id';
dwr.util.setValue(autoCompletId, '-1');
}
}
var inputs = getById('search_form').getElementsByTagName('textarea');
for (i = 0; i < inputs.length; i++) {
dwr.util.setValue(inputs[i], null);
}
dwr.util.setValue('parentTitle', null);
if (getById('simpleSearch') != null) {
var simpleSearchs = getById('simpleSearch').getElementsByTagName('input');
for (i = 0; i < simpleSearchs.length; i++) {
if (simpleSearchs[i].type != 'hidden') {//all filter query and order fileld in auto complete keeped in hidden inputs. For autocomplets only id must be -1 to clear
dwr.util.setValue(simpleSearchs[i], null);
}
}
simpleSearchs = getById('simpleSearch').getElementsByTagName('select');
for (i = 0; i < simpleSearchs.length; i++) {
simpleSearchs[i].selectedIndex = 0;
var autoCompletId = simpleSearchs[i].id.substring(0, simpleSearchs[i].id.length - 6) + 'Id';
dwr.util.setValue(autoCompletId, '-1');
}
}
// var inputs = getById('search_form').getElementsByTagName('select');
// for(i = 0; i < inputs.length; i++){
// inputs[i].selectedIndex = 0;
// }
}
function delFilter() {
clearFilter();
init();
}
function showMessage(msg, delay) {
if (parent != this)
parent.showMessage(msg, delay);
// else
// alert(msg);
}
function showErrorMessage(msg, delay) {
if (parent != this)
parent.showErrorMessage(msg, delay);
// else
// alert(msg);
}
function showCategory(cats, shown) {
var tags = document.getElementsByTagName('tr');
for (i = 0; i < tags.length; i++) {
if (tags[i].id == shown)
tags[i].style.display = 'block';
else
if (cats.indexOf(',' + tags[i].id + ',') > -1) {
tags[i].style.display = 'none';
}
}
}
//------------------------------------- Base ---------------------------------------------------------------------
//parent node is a filter and is parent name such as 'fldPersonCure' and childNode is field name of this entity that is equal to parent
function baseSetTopFilter(parentNodes, childNodes) {
// if(parentNodes.length ==0 || parent.topFilter.length ==0)
//return true;
var pnodes = parentNodes.split(',');
var cnodes = childNodes.split(',');
var parentNodeSetted = false;
for (i = 0; i < pnodes.length; i++) {
var parentNode = pnodes[i];
var childNode = cnodes[i];
// if(parentNodes.length ==0 || parent.topFilter.indexOf(parentNode) ==-1){
// continue;
//}
var fields = parent.topFilter.split('@@');
for (i = 0; /*parentNode.length > 0 && */i < fields.length; i += 3) {
if (fields[i].length < 2)
continue;
if (fields[i] == 'search_e$id')
dwr.util.setValue(fields[i], fields[i + 1]);
else
if (fields[i] == parentNode) {
dwr.util.setValue('search_e$' + childNode + '$id', fields[i + 1]);
dwr.util.setValue(childNode + 'SimpleSearchId', fields[i + 1]);
if (getById('search_e$' + childNode + 'Title'))
dwr.util.setValue('search_e$' + childNode + 'Title', fields[i + 2]);
if (fields[i + 2] && fields[i + 2].length > 0 && getById(childNode + 'SimpleSearchTitle'))
dwr.util.setValue(childNode + 'SimpleSearchTitle', fields[i + 2].split('-')[0]);
addToAutoComplete(childNode, fields[i + 1], fields[i + 2]);
addToAutoComplete("search_e$" + childNode, fields[i + 1], fields[i + 2]);
addToAutoComplete(childNode + 'SimpleSearch', fields[i + 1], fields[i + 2]);
dwr.util.setValue(childNode + 'Id', fields[i + 1]);
if (fields[i + 2] && fields[i + 2].length > 0)
dwr.util.setValue(childNode + 'Title', fields[i + 2].split('-')[0]);
if (fields[i + 2] && fields[i + 2].length > 4)
dwr.util.setValue('parentTitle', fields[i + 2]);
parentNodeSetted = true;
}
}
}
// if(parentNodes.length > 0 && !parentNodeSetted)
// return false;
return true;
}
// field name such as fldCureCase. this field and his value set as top filter of next page
function baseGo(fieldName, noItemSelectMsg) {
var entityId = selectedRowId('table_content');
var url = getById('selectAction').value;
if (entityId || url.indexOf("command:") > -1) {
if (url.length < 2) {
showMessage(noItemSelectMsg, 2);
}
else {
if (url.indexOf("command:") == 0) {
setTimeout(url.substring(8), 1);
} else {//go to url
var path = location.href.split('/');
var currURL = path[path.length - 2];
parent.addHistory(currURL, entityId);
parent.topFilter = fieldName + '@@' + entityId + '@@' + entitiesCache[entityId].title;
parent.setContent(url);
}
}
}
else {
showMessage('ردیفی انتخاب نشده است', 4);
}
}
function baseResetTopFilter(parentNodes, childNodes) {
}
//------------------------------------- Base -------------------------------------------------------------------- end -
function filterStaticCombo(elmId, id) {
var grps = getById(elmId).getElementsByTagName("optgroup");
for (i = 0; i < grps.length; i++) {
if (grps[i].id == id)
grps[i].style.display = 'block';
else
grps[i].style.display = 'none';
}
}
function testMandatories() {
var tags = new Array('input', 'textarea', 'select');
for (j = 0; j < tags.length; j++) {
var elm = document.getElementsByTagName(tags[j]);
for (i = 0; i < elm.length; i++) {
if (elm[i].name == "*") {
if (!testMandatory(elm[i].id))
return false;
}
}
}
return true;
}
function testMandatory(id) {
var elm = getById(id);
var val = dwr.util.getValue(id);
if (elm.tagName == 'SELECT' && elm.selectedIndex == 0) {
val = '';
}
if (getById(id + 'Caption') == null)
alert(id + 'Caption is null');
if (val == null || val.length == 0) {
var title = getById(id + 'Caption').innerHTML;
var i = title.indexOf('</font>');
title = title.substring(i == -1 ? 0 : i + 7);
showErrorMessage('<font color=\"red\">"</font><font color=\"navy\">' + title.replace(':', '</font><font color=\"red\">"</font>') + ' اجباری است', 4);
elm.focus();
return false;
}
return true;
}
function logout() {
if (!confirm('آیا مطمئنید؟ شما قصد خروج از سامانه را دارید'))
return;
exitSystem();
}
function winClosed() {
/*if(!logoutSelected){
dwr.util.useLoadingMessage();
dwr.engine.beginBatch();
SecurityCreator.logout( function(done) {
});
dwr.engine.endBatch();
alert('كاربر از سامانه خارج شد');
document.location.replace('index.jsp');
}*/
}
var logoutSelected = false;
function exitSystem() {
dwr.util.useLoadingMessage();
dwr.engine.beginBatch();
SecurityCreator.logout(function (done) {
logoutSelected = true;
showMessage('خروج با موفقیت انجام شد', 4);
window.setTimeout("document.location.replace('index.jsp')", 1500);
});
dwr.engine.endBatch();
}
function getToday() {
return parent.today;
}
function setToday(id) {
try {
var oldVal = dwr.util.getValue(id);
if (oldVal == null || oldVal.length < 5) {
dwr.util.setValue(id, getToday());
}
} catch (e) { }
}
function setSelectOptions(selectElmId, optionsHTML) {
var selElm = getById(selectElmId);
if (isIE()) {
var parentELM = selElm.parentNode;
if (selElm.innerHTML.length < 5)
selElm.innerHTML = 'aa';
var x = selElm.outerHTML.replace(selElm.innerHTML, optionsHTML);
//var id = selElm.getAttribute('id');
parentELM.removeChild(selElm);
parentELM.insertAdjacentHTML('BeforeEnd', x); //IE
} else {
selElm.innerHTML = optionsHTML;
}
}
// ---------------------------- cookie --------------------------------------------
function setCookie(name, value) {
document.cookie += '||' + name + '=' + value;
}
function getCookie(name) {
if (document.cookie.indexOf('||' + name) == -1)
return null;
var i = document.cookie.indexOf('||' + name) + name.length + 3;
var j = document.cookie.indexOf(';', i);
return document.cookie.substring(i, j);
}
// ---------------------------- cookie end------------------------------------------
function orderAsc(fieldName) {
order = fieldName + ' asc';
init();
}
function orderDesc(fieldName) {
order = fieldName + ' desc';
init();
}
function encode(str) {
if (str == null)
return null;
var ret = '';
for (i = 0; i < str.length; i++) {
ret += '$' + str.charCodeAt(i);
}
return ret;
}
function decode(str) {
if (str == null)
return null;
var ret = '';
var s = str.split('$')
for (i = 0; i < s.length; i++) {
if (s[i] != null && s[i].length > 0)
ret += String.fromCharCode(s[i]);
}
return ret;
} | azizkhani/StarterKitProject | target/starter/Scripts/Naji/base.js | JavaScript | apache-2.0 | 21,019 |
//========================================================================
// 存储器属性
//========================================================================
var p = {
//普通属性
x: 1.0,
y: 1.0,
//$符号暗示这个属性是私有属性,但仅仅是暗示
$n: 0,
//存储器属性
get r() {
return Math.sqrt(this.x * this.x + this.y * this.y);
},
set r(newValue) {
//this表示指向这个点的对象
var oldValue = Math.sqrt(this.x * this.x + this.y * this.y);
var ratio = newValue / oldValue;
this.x *= ratio;
this.y *= ratio;
}
};
//继承存储器属性
var q = Object.create(p);
q.x = 3;
q.y = 4;
console.log(q.r);//->5
| Ztiany/CodeRepository | Web/JavaScriptDefinitiveGuide-Core/06_对象/03_getter_setter.js | JavaScript | apache-2.0 | 732 |
/**
* Copyright 2013-2020 the original author or authors from the JHipster project.
*
* This file is part of the JHipster project, see https://www.jhipster.tech/
* for more information.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
module.exports = {
stringify: data => JSON.stringify(data, (key, value) => (key === 'otherEntity' && value ? `[${value.name} entity]` : value), 4),
};
| PierreBesson/generator-jhipster | utils/index.js | JavaScript | apache-2.0 | 909 |
describe('Coordinate', function () {
describe('has various constructors', function () {
it('can be created by a coordinate array', function () {
var c = new maptalks.Coordinate([0, 0]);
expect(c.x).to.be.eql(0);
expect(c.y).to.be.eql(0);
});
it('can be created by x,y', function () {
var c = new maptalks.Coordinate(0, 0);
expect(c.x).to.be.eql(0);
expect(c.y).to.be.eql(0);
});
it('can be created by a object with x,y', function () {
var c = new maptalks.Coordinate({ x:0, y:0 });
expect(c.x).to.be.eql(0);
expect(c.y).to.be.eql(0);
});
it('can be created by another coordinate', function () {
var c = new maptalks.Coordinate(new maptalks.Coordinate(0, 0));
expect(c.x).to.be.eql(0);
expect(c.y).to.be.eql(0);
});
it('throws a error with NaN', function () {
expect(function () {
new maptalks.Coordinate(NaN, 0);
}).to.throwException();
});
});
describe('has operations', function () {
it('can add', function () {
var c = new maptalks.Coordinate(new maptalks.Coordinate(0, 0));
var t = c.add(new maptalks.Coordinate(1, 1));
expect(c.x).to.be.eql(0);
expect(c.y).to.be.eql(0);
expect(t.x).to.be.eql(1);
expect(t.y).to.be.eql(1);
});
it('can _add which is destructive', function () {
var c = new maptalks.Coordinate(new maptalks.Coordinate(0, 0));
var t = c._add(new maptalks.Coordinate(1, 1));
expect(c.x).to.be.eql(1);
expect(c.y).to.be.eql(1);
expect(t.x).to.be.eql(1);
expect(t.y).to.be.eql(1);
});
it('can substract', function () {
var c = new maptalks.Coordinate(new maptalks.Coordinate(0, 0));
var t = c.substract(new maptalks.Coordinate(1, 1));
expect(c.x).to.be.eql(0);
expect(c.y).to.be.eql(0);
expect(t.x).to.be.eql(-1);
expect(t.y).to.be.eql(-1);
});
it('can _substract which is destructive', function () {
var c = new maptalks.Coordinate(new maptalks.Coordinate(0, 0));
var t = c._substract(new maptalks.Coordinate(1, 1));
expect(c.x).to.be.eql(-1);
expect(c.y).to.be.eql(-1);
expect(t.x).to.be.eql(-1);
expect(t.y).to.be.eql(-1);
});
it('can multi', function () {
var c = new maptalks.Coordinate(new maptalks.Coordinate(2, 3));
var t = c.multi(3);
expect(c.x).to.be.eql(2);
expect(c.y).to.be.eql(3);
expect(t.x).to.be.eql(6);
expect(t.y).to.be.eql(9);
});
it('can decide whether is equal', function () {
var c1 = new maptalks.Coordinate(new maptalks.Coordinate(2, 3));
var c2 = new maptalks.Coordinate(new maptalks.Coordinate(2, 3));
expect(c1.equals(c2)).to.be.ok();
expect(c1.equals([])).not.to.be.ok();
expect(c1.equals(new maptalks.Coordinate(2, 3.1))).not.to.be.ok();
});
it('can toArray', function () {
var c1 = new maptalks.Coordinate(new maptalks.Coordinate(2, 3));
expect(c1.toArray()).to.be.eql([2, 3]);
});
it('can toJSON', function () {
var c = new maptalks.Coordinate(-2, -3);
var t = c.toJSON();
expect(t).to.be.eql({
x : -2,
y : -3
});
});
});
});
| MapTalks/layertalks | test/geo/CoordinateSpec.js | JavaScript | apache-2.0 | 3,726 |
// --- ping-content -------------------------------
import $ from 'jquery'
import {debugMsg, spawnVdsm} from './helpers'
export function renderPing () {
var vdsmPingResponse = ''
spawnVdsm('ping', null,
function (data) { vdsmPingResponse += data },
function () { pingSuccessful(vdsmPingResponse) },
pingFailed)
vdsmPingResponse = ''
}
function pingSuccessful (vdsmPingResponse) {
var json = vdsmPingResponse
var resp = $.parseJSON(json)
if (resp.hasOwnProperty('status') && resp.status.hasOwnProperty('code') && resp.status.hasOwnProperty('message')) {
if (resp.status.code === 0) {
printPingContent('Ping succeeded.<br/>The cockpit-ovirt plugin is installed and VDSM connection can be established.', json)// still might be an error, but well-formatted response with its description
} else { // well-formatted error-response with description
printPingContent('Ping failed: ' + resp.status.message, json)
}
return
}
// wrong format
pingFailed(null, 'Ping failed with malformed error message returned: ' + json)
}
function pingFailed (stderr, detail) {
if (!detail) {
detail = 'Ping execution failed.'
}
detail = stderr + '\n' + detail
printPingContent(detail, '{"status": {"message": "' + detail + '", "code": 1}}')
}
function printPingContent (humanText, parserText) {
var content = "<div id='ping-content-human'>" + humanText + '</div>'
content += "<div id='ping-content-parser' hidden>" + parserText + '</div>'
var pingContent = $('#ping-content')
pingContent.html(content)
debugMsg('Ping content: ' + content)
}
| matobet/cockpit-ovirt | src/ping.js | JavaScript | apache-2.0 | 1,604 |
window.onresize=function(){
setFrame();
}
$(document).ready(function(){
setFrame()
});
function setFrame(){
var totalHeight = document.documentElement.clientHeight
|| window.innerHeight || docuemnt.body.clientHeight;
$('#container').css('height', totalHeight);
var headerHeight = $('#header').height();
var mainHeight = totalHeight - headerHeight;
$('#sidebar').css('height', mainHeight);
$('#content').css('height', mainHeight);
}
$(document).on({
click:function(){
if( $(this).parent().parent().children('li.input-row').length != 1 ){
$(this).parent().remove();
}
}
},'span.remove-input-row');
$(document).on({
click:function(){
var ulElem = $(this).prev('ul.input-table');
var liElem = $('#reaction-input-row').tmpl({});
ulElem.append( liElem );
}
},'button.new-input-row');
$(document).on({
click:function(){
var ulElem = $(this).prev('ul.input-table');
var liElem = $('#parent-input-row').tmpl({});
ulElem.append( liElem );
}
},'button.new-parent-input-row');
$(document).on({
click:function(){
var insertElems=$('#reaction-equation-area').tmpl({});
insertElems.insertBefore( $(this) );
}
},'button#add');
$(document).on({
click:function(){
if( $('div.reaction-equation-area').length != 1 ){
$(this).parent().remove();
}
}
},'div.reaction-equation-area button.remove-reaction-equation');
$(document).on({
click:function(){
window.location = '/home/project';
}
},'div#sidebar span#back');
$(document).on({
click:function(){
$('button.remove-reaction-equation').trigger('click');
$('span.remove-input-row').trigger('click');
$('input').val('');
}
},'div#sidebar span#reset');
function get_materials(){
var material_inputs = $('#parent-material-area ul').find('li.input-row');
var result_list = [];
for(var i = 0; i < material_inputs.length; i++){
var name = $(material_inputs[i]).find('input.material').val();
var amount = $(material_inputs[i]).find('input.amount').val();
result_list.push([name, amount]);
}
return result_list
}
function get_reactants(reactant_area){
var reactant_inputs = $(reactant_area).find('input.material');
result_list = [];
for (var i = 0; i < reactant_inputs.length; i++){
result_list.push($(reactant_inputs).val());
}
return result_list;
}
function get_products(reactant_area){
var reactant_inputs = $(reactant_area).find('input.material');
result_list = [];
for (var i = 0; i < reactant_inputs.length; i++){
result_list.push($(reactant_inputs).val());
}
return result_list;
}
function get_reactions(){
var reaction_inputs = $('div.reaction-equation-area'),
result_list = [];
for (var i = 0; i < reaction_inputs.length; i++){
var reactant_list = get_reactants($(reaction_inputs[i]).find('ul.reactant')),
product_list = get_products($(reaction_inputs[i]).find('ul.resultant')),
rate = $(reaction_inputs[i]).find('input#rate').val();
result_list.push({
'reactants' : reactant_list,
'products' : product_list,
'k': rate
});
}
return result_list;
}
$(document).on({
click:function(){
var matetial_list = get_materials(),
reaction_list = get_reactions();
postData = {
"reactions" : reaction_list,
'martials' : matetial_list,
'reaction_time' : 100
}
$.ajax({
url:'/home/simulate',
type:'POST',
contentType: 'application/json; charset=utf-8',
processData: false,
data:JSON.stringify(postData),
dataType:'JSON',
success:function(result){
drawResult(result);
}
});
}
},'button#run');
function getElement(tag,inner){
var element = document.createElement(tag); // create a element
element.innerHTML = inner; // set element's inner html
for(var i = 2; i<arguments.length-1; i=i+2){
element.setAttribute(arguments[i], arguments[i+1]);
}
return element;
}
function drawResult(result){
'use strict';
var list = new Array();
var path = new Array();
var svg;
var circle = new Array();
var tips;
var ddata;
var tag1;
var tag2;
var type;
var typedate = new Array();
var xAxis;
var yAxis;
var x;
var y;
var c;
var colors = new Array('Blue', 'BlueViolet', 'DeepSkyBlue', 'ForestGreen');
var data = result;
ddata = data.concat();
// 定义circle的半径
var r0 = 3,
r1 = 5;
// 定义动画持续时间
var duration = 500;
var margin = {top: 20, right: 20, bottom: 30, left: 50},
width = document.body.clientWidth - margin.left - margin.right-120-250,
height = 500 - margin.top - margin.bottom -20;
d3.select('.canvs').remove();
d3.select('.list').remove();
d3.select('div#header button').remove();
var container = d3.select('div#content')
.append('svg')
.attr('class', 'canvs')
.attr('width', width + margin.left + margin.right+120)
.attr('height', height + margin.top + margin.bottom+20);
typedate = new Array();
var ts = d3.max(data, function(d) { return d.order; });
for(var i = 0; i <= ts; i++){
typedate[i] = new Array();
list.push(1);
}
svg = container.append('g')
.attr('class', 'content')
.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
data.forEach(function(d) {
d.dayText = d.date;
d.pv = d.pv;
typedate[d.order].push(d);
});
var div = d3.select('div#header').append('div').attr('class', 'list');
for (var i = 0; i < typedate.length; i++){
d3.select('.list')
.append('input')
.attr('class', 'ckbox')
.attr('type', 'checkbox')
.attr('value', i)
.attr('name', 'ck')
.attr('checked', 'checked');
d3.select('.list')
.append('font')
.attr('class', 'ftext')
.attr('color', colors[i])
.text(typedate[i][0].name);
}
show();
function show() {
list = new Array();
ddata.forEach(function(d){
list[d.order] = 1;
});
function draw() {
d3.select('.content').remove();
svg = container.append('g')
.attr('class', 'content')
.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
x = d3.scale.linear().range([0, width]);
y = d3.scale.linear().range([height, 0]);
xAxis = d3.svg.axis()
.scale(x)
.orient('bottom')
.ticks(30);
yAxis = d3.svg.axis()
.scale(y)
.orient('left')
.ticks(10);
//x.domain(d3.extent(ddata, function(d) { return d.date;}));
x.domain([d3.min(ddata, function(d) { return d.date; }),
d3.max(ddata, function(d) { return d.date; })]);
y.domain([d3.min(ddata, function(d) { return d.pv; }),
d3.max(ddata, function(d) { return d.pv; })]);
svg.append('text')
.attr('class', 'title')
.text('Simulation Result')
.attr('x', width/2)
.attr('y', 0);
svg.append('g')
.attr('class', 'x axis')
.attr('transform', 'translate(0,' + height + ')')
.call(xAxis)
.append('text')
.text('seconds')
.attr('transform', 'translate(' + (width - 20) + ', 0)');
svg.append('g')
.attr('class', 'y axis')
.call(yAxis)
.append('text')
.text('Concentration');
var line = d3.svg.line()
.x(function(d) { return x(d.date); })
.y(function(d) { return y(d.pv); })
.interpolate('monotone');
var ps = -1;
var tag = false;
typedate = new Array();
var ts = d3.max(data, function(d) { return d.order; });
for(var i = 0; i <= ts; i++){
typedate[i] = new Array();
list.push(1);
}
ddata.forEach(function(d) {
d.dayText = d.date;
d.pv = d.pv;
typedate[d.order].push(d);
});
for (var i=0; i< typedate.length;i++){
if (list[i]==0) {
continue;
}
ps++;
path[ps] = svg.append('path')
.attr('class', 'line')
.attr('stroke', colors[ps])
.attr('fill', 'none')
.attr('stroke-width', '2px')
.attr('d', line(typedate[i]));
}
var cs = -1;
for (var i=0; i< typedate.length;i++){
if (list[i]==0){
continue;
}
cs++;
circle[cs] = new Array();
circle[cs] = svg.selectAll('cirlce')
.data(typedate[i])
.enter()
.append('g')
.append('circle')
.attr('class', 'linecircle')
.attr('cx', line.x())
.attr('cy', line.y())
.attr('r', r0)
.attr('fill', 'green')
.attr('order', function(d){return d.order;})
.attr('date', function(d){return d.date;})
.attr('py', function(d){return d.py;})
.attr('clock', false)
.on('mouseover', function() {
c = d3.select(this).attr('fill');
if (d3.select(this).attr('clock') == 'true'){
c = '#FF0000';
}
d3.select(this).transition().duration(duration).attr('r', r1*2)
.attr('fill', 'steelblue');
})
.on('mouseout', function() {
if (d3.select(this).attr('clock') == 'false'){
d3.select(this).transition().duration(duration).attr('r', r0);
d3.select(this).attr('fill', c);
}
})
.on('click', function(d, i) {
if (tag==true && d.order == type && tag1 != d.date){
d3.select(this).attr('fill', '#FF0000');
tag = false;
for(var i = 0; i < list.length; i++){
if (i != type) list[i] = 0;
}
tag2 = d.date;
if (tag2 < tag1){
var temp = tag2;
tag2 = tag1;
tag1 = temp;
}
ddata = new Array();
data.forEach(function(d){
if (d.order == type && d.date >= tag1 && d.date <= tag2){
ddata.push(d);
}
});
for (var i = 0; i < path.length; i++){
path[i].remove();
}
for (var i = 0; i < circle.length; i++){
circle[i].remove();
}
show();
}
if (tag == false){
d3.select(this).attr('fill', '#FF0000');
d3.select(this).attr('clock', true);
tag = true;
type = d3.select(this).attr('order');
tag1 = d3.select(this).attr('date');
}
});
}
var tips = svg.append('g').attr('class', 'tips');
tips.append('rect')
.attr('class', 'tips-border')
.attr('width', 200)
.attr('height', 50)
.attr('rx', 10)
.attr('ry', 10);
var wording1 = tips.append('text')
.attr('class', 'tips-text')
.attr('x', 10)
.attr('y', 20)
.text('');
var wording2 = tips.append('text')
.attr('class', 'tips-text')
.attr('x', 10)
.attr('y', 40)
.text('');
container
.on('mousemove', function() {
var m = d3.mouse(this),
cx = m[0] - margin.left,
cy = m[1] - margin.top;
showWording(cx,cy);
d3.select('.tips').style('display', 'block');
})
.on('mouseout', function() {
d3.select('.tips').style('display', 'none');
});
function showWording(cx,cy) {
var min;
var d;
var xlen = d3.extent(ddata, function(d) { return d.date;});
var ylen = d3.extent(ddata, function(d) { return d.pv;});
for (var i = 0; i < ddata.length; i++){
var xp = width / (xlen[1]-xlen[0]) * (ddata[i].date-xlen[0])-cx;
var yp = height / (ylen[1]-ylen[0]) * (ylen[1] - ddata[i].pv)-cy;
if (xp < 0) xp = -xp;
if (yp < 0) yp = -yp;
if (i == 0){
d = ddata[i];
min = xp + yp;
}else{
if (xp + yp < min){
min = xp+yp;
d = ddata[i];
}
}
}
function formatWording(d) {
return 'seconds:' + (d.date) + 's';
}
wording1.text(formatWording(d));
wording2.text('Concentration:' + d.pv);
var x1 = x(d.date),
y1 = y(d.pv);
// 处理超出边界的情况
var dx = x1 > width ? x1 - width + 2 : x1 + 2 > width ? 2 : 0;
var dy = y1 > height ? y1 - height + 2 : y1 + 2 > height ? 2 : 0;
x1 -= dx;
y1 -= dy;
d3.select('.tips')
.attr('transform', 'translate(' + x1 + ',' + y1 + ')');
}
}
draw();
}
d3.select("div#header")
.append("button")
.text("Show all")
.on('click', function(){
for(var i = 0; i < typedate.length; i++)
list[i] = 1;
ddata = new Array();
data.forEach(function(d){
ddata.push(d);
});
for (var i = 0; i < path.length; i++){
path[i].remove();
}
for (var i = 0; i < circle.length; i++){
circle[i].remove();
}
show();
});
function doit(){
var sum = 0;
var a = document.getElementsByName("ck");
ddata = new Array();
for(var i=0;i<a.length;i++){
if(!a[i].checked){
list[i]= 0;
}else{
list[i] = 1;
data.forEach(function(d){
if (d.order == i){
ddata.push(d);
}
});
}
}
for (var i = 0; i < path.length; i++){
path[i].remove();
}
for (var i = 0; i < circle.length; i++){
circle[i].remove();
}
path = new Array();
circle = new Array();
show();
}
$(document).on({
click:function(){
doit();
}
}, '.ckbox');
window.onload = function(){
var a = document.getElementsByName("ck");
for(var i=0;i<a.length;i++){
a[i].onclick = doit;
}
}
}
| igemsoftware/HFUT-China_2015 | static/js/simulation.js | JavaScript | apache-2.0 | 14,759 |
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var App = require('app');
App.MainAdminController = Em.Controller.extend({
name: 'mainAdminController',
category: 'user'
}); | telefonicaid/fiware-cosmos-ambari | ambari-web/app/controllers/main/admin.js | JavaScript | apache-2.0 | 937 |
define(function (require) {
'use strict';
// require jquery and load plugins from the server
var plugins = require('plugins');
var alien4cloud = require('alien4cloud');
return {
startup: function() {
plugins.init().then(function(files, modules) {
require(files, function() {
require(modules, function() {
alien4cloud.startup();
});
});
});
}
};
});
| xdegenne/alien4cloud | alien4cloud-ui/src/main/webapp/scripts/alien4cloud-bootstrap.js | JavaScript | apache-2.0 | 431 |
d2hStoreMenuItems("TX__2769", [["Documents/authorization.htm", "right", "Authorization"],["Documents/gloss_authorization1.htm", "d2hWnd_SecondaryPopup", "Authorization"]]); | vivantech/kc_fixes | src/main/webapp/static/help/AKLinks/TX__2769.js | JavaScript | apache-2.0 | 175 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* An on-premises file system dataset.
*
* @extends models['Dataset']
*/
class FileShareDataset extends models['Dataset'] {
/**
* Create a FileShareDataset.
* @member {object} [folderPath] The path of the on-premises file system.
* Type: string (or Expression with resultType string).
* @member {object} [fileName] The name of the on-premises file system. Type:
* string (or Expression with resultType string).
* @member {object} [format] The format of the files.
* @member {object} [format.serializer] Serializer. Type: string (or
* Expression with resultType string).
* @member {object} [format.deserializer] Deserializer. Type: string (or
* Expression with resultType string).
* @member {string} [format.type] Polymorphic Discriminator
* @member {object} [fileFilter] Specify a filter to be used to select a
* subset of files in the folderPath rather than all files. Type: string (or
* Expression with resultType string).
* @member {object} [compression] The data compression method used for the
* file system.
* @member {string} [compression.type] Polymorphic Discriminator
*/
constructor() {
super();
}
/**
* Defines the metadata of FileShareDataset
*
* @returns {object} metadata of FileShareDataset
*
*/
mapper() {
return {
required: false,
serializedName: 'FileShare',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'Dataset',
className: 'FileShareDataset',
modelProperties: {
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
structure: {
required: false,
serializedName: 'structure',
type: {
name: 'Object'
}
},
linkedServiceName: {
required: true,
serializedName: 'linkedServiceName',
defaultValue: {},
type: {
name: 'Composite',
className: 'LinkedServiceReference'
}
},
parameters: {
required: false,
serializedName: 'parameters',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ParameterSpecificationElementType',
type: {
name: 'Composite',
className: 'ParameterSpecification'
}
}
}
},
annotations: {
required: false,
serializedName: 'annotations',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
folder: {
required: false,
serializedName: 'folder',
type: {
name: 'Composite',
className: 'DatasetFolder'
}
},
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
folderPath: {
required: false,
serializedName: 'typeProperties.folderPath',
type: {
name: 'Object'
}
},
fileName: {
required: false,
serializedName: 'typeProperties.fileName',
type: {
name: 'Object'
}
},
format: {
required: false,
serializedName: 'typeProperties.format',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'DatasetStorageFormat',
className: 'DatasetStorageFormat'
}
},
fileFilter: {
required: false,
serializedName: 'typeProperties.fileFilter',
type: {
name: 'Object'
}
},
compression: {
required: false,
serializedName: 'typeProperties.compression',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'DatasetCompression',
className: 'DatasetCompression'
}
}
}
}
};
}
}
module.exports = FileShareDataset;
| xingwu1/azure-sdk-for-node | lib/services/datafactoryManagement/lib/models/fileShareDataset.js | JavaScript | apache-2.0 | 6,074 |
/**
* Define public API for Angular here.
*/
export * from './change_detection';
export * from './core';
export * from './directives';
export * from './forms';
| lgalfaso/angular | modules/angular2/angular2.js | JavaScript | apache-2.0 | 162 |
import {Component} from '@angular/core';
import {Home} from '../home/home';
import {Conferences} from '../conferences/conferences';
import {Agenda} from '../agenda/agenda';
import {Accessmap} from '../accessmap/accessmap';
@Component({
templateUrl: 'build/pages/tabs/tabs.html'
})
export class TabsPage {
constructor() {
// this tells the tabs component which Pages
// should be each tab's root Page
this.tab1Root = Home;
this.tab2Root = Conferences;
this.tab3Root = Agenda;
this.tab4Root=Accessmap;
}
}
| worldline/TechForum2016 | app/pages/tabs/tabs.js | JavaScript | apache-2.0 | 535 |
/* @flow */
import { PropTypes } from 'react';
import { Map } from 'immutable';
import isString from 'lodash/isString';
import includes from 'lodash/includes';
import isUndefined from 'lodash/isUndefined';
import isEmpty from 'lodash/isEmpty';
import map from 'lodash/map';
import mapValues from 'lodash/mapValues';
import isArrayLikeObject from 'lodash/isArrayLikeObject';
import isPlainObject from 'lodash/isPlainObject';
export const STATE = Object.freeze({
EMPTY_REFERENCE: Symbol('empty reference'),
LOADING: Symbol('loading'),
COMPLETE: Symbol('complete'),
ERROR: Symbol('error'),
NOT_FOUND: Symbol('404'),
ACCESS_DENIED: Symbol('403')
});
/* Validation */
export type AsyncReference = {
namespace :string,
id :string
};
export const AsyncReferencePropType = PropTypes.shape({
namespace: PropTypes.string.isRequired,
id: PropTypes.string.isRequired
});
export type AsyncValue = {
state :Symbol,
value :any
};
export function referenceOrValuePropType(propType) {
return PropTypes.oneOfType([
propType,
AsyncReferencePropType
]);
}
export function isReference(reference :any) :boolean {
return !!reference && isString(reference.namespace) && isString(reference.id);
}
export function isValue(value :any) :boolean {
return (!!value &&
includes(STATE, value.state) &&
!isUndefined(value.value));
}
export function isEmptyValue(value :any) :boolean {
return isValue(value) && value.state === STATE.EMPTY_REFERENCE;
}
export function isLoadingValue(value :any) :boolean {
return isValue(value) && value.state === STATE.LOADING;
}
export function isCompleteValue(value :any) :boolean {
return isValue(value) && value.state === STATE.COMPLETE;
}
export function isErrorValue(value :any) :boolean {
return isValue(value) && value.state === STATE.ERROR;
}
/*
* Async Reference
*/
export function createReference(namespace :string, id :string) {
if (!isString(namespace) && !isEmpty(namespace)) {
throw Error(`'namespace' must be non-empty string, received: "${namespace}"`);
}
if (!isString(id) && !isEmpty(id)) {
throw Error(`'id' must be non-empty string, received: "${id}"`);
}
return {
namespace,
id
};
}
/*
* Async Values
*/
export function createEmptyValue() :AsyncValue {
return {
state: STATE.EMPTY_REFERENCE,
value: null
};
}
export function createLoadingValue() :AsyncValue {
return {
state: STATE.LOADING,
value: null
};
}
export function createCompleteValue(value :any) :AsyncValue {
return {
state: STATE.COMPLETE,
value
};
}
export function createErrorValue(error :any) :AsyncValue {
return {
state: STATE.ERROR,
value: error
};
}
/*
* Referencing and dereferencing
*/
function getReferencePath(reference :AsyncReference) {
return [reference.namespace, reference.id];
}
export type AsyncContent = Map<String, Map<String, AsyncValue>>
export function resolveReference(
asyncContent :AsyncContent,
reference :AsyncReference,
value :AsyncValue) :AsyncContent {
if (!asyncContent) {
throw new Error('"asyncContent" can\'t be null');
}
if (!isReference(reference)) {
throw new Error(`"reference" must be valid AsyncReference, recieved ${reference}`);
}
if (!isValue(value)) {
throw new Error(`"value" must be valid AsyncValue, received ${value}`);
}
const path = getReferencePath(reference);
return asyncContent.setIn(path, value);
}
export function dereference(asyncContent :AsyncContent, reference :AsyncReference) :AsyncValue[] {
if (!asyncContent) {
throw new Error('"asyncContent" can\'t be null');
}
if (!isReference(reference)) {
throw new Error(`"reference" must be valid reference, recieved ${reference}`);
}
const path = getReferencePath(reference);
if (!asyncContent.hasIn(path)) {
return createEmptyValue();
}
return asyncContent.getIn(path);
}
/**
* If value is a reference, dereference.
* If value is array like object, run smartDereference on each item.
* If value is a plain object, run smartDereference on each value
* @param asyncContent
* @param valueOrReference
* @return {*}
*/
export function smartDereference(asyncContent :AsyncContent, valueOrReference :any) :any {
if (isReference(valueOrReference)) {
return dereference(asyncContent, valueOrReference);
}
else if (isArrayLikeObject(valueOrReference)) {
return map(valueOrReference, (vor) => {
return smartDereference(asyncContent, vor);
});
}
else if (isPlainObject(valueOrReference)) {
return mapValues(valueOrReference, (value) => {
return smartDereference(asyncContent, value);
});
}
return valueOrReference;
}
| kryptnostic/gallery | src/containers/async/AsyncStorage.js | JavaScript | apache-2.0 | 4,676 |
var westSideProp = {
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "PVANUM": 16548054, "PROPERTY_A": "451 ADDIE ST, LEXINGTON, KY", "PROPERTY_L": 38.056566, "PROPERTY_1": -84.494140, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "1999 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "4\/10\/2014", "SALE_PRICE": 85000, "ASSESSED_V": 19000, "PVA_ACRE": 0.024200, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "MULTIPLE PROPERTIES" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.49414, 38.056566 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 12169900, "PROPERTY_A": "452 SMITH ST, LEXINGTON, KY", "PROPERTY_L": 38.056726, "PROPERTY_1": -84.494336, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2000 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "4\/10\/2014", "SALE_PRICE": 85000, "ASSESSED_V": 28000, "PVA_ACRE": 0.051700, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "MULTIPLE PROPERTIES" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.494336, 38.056726 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 13085700, "PROPERTY_A": "459 ADDIE ST, LEXINGTON, KY", "PROPERTY_L": 38.056854, "PROPERTY_1": -84.493994, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2001 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "4\/10\/2014", "SALE_PRICE": 85000, "ASSESSED_V": 19000, "PVA_ACRE": 0.088900, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "MULTIPLE PROPERTIES" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.493994, 38.056854 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 17205200, "PROPERTY_A": "440 SMITH ST, LEXINGTON, KY", "PROPERTY_L": 38.056448, "PROPERTY_1": -84.494605, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2002 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "6\/20\/2014", "SALE_PRICE": 28700, "ASSESSED_V": 30000, "PVA_ACRE": 0.103300, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "LESS THAN 40,000 CONSIDERATION" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.494605, 38.056448 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 15697700, "PROPERTY_A": "548 W FIFTH ST, LEXINGTON, KY", "PROPERTY_L": 38.057503, "PROPERTY_1": -84.494341, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2003 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "6\/25\/2013", "SALE_PRICE": null, "ASSESSED_V": 5000, "PVA_ACRE": 0.027500, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "AFFILIATED ORGANIZATIONS" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.494341, 38.057503 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 13081700, "PROPERTY_A": "439 ADDIE ST, LEXINGTON, KY", "PROPERTY_L": 38.056469, "PROPERTY_1": -84.494273, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2004 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "4\/10\/2014", "SALE_PRICE": 85000, "ASSESSED_V": 4000, "PVA_ACRE": 0.015200, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "MULTIPLE PROPERTIES" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.494273, 38.056469 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 11131000, "PROPERTY_A": "413 SMITH ST, LEXINGTON, KY", "PROPERTY_L": 38.056291, "PROPERTY_1": -84.495641, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2005 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "1\/22\/2014", "SALE_PRICE": 13334, "ASSESSED_V": 35000, "PVA_ACRE": 0.057400, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "MASTER COMMISSIONER SALE" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.495641, 38.056291 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 11563200, "PROPERTY_A": "415 SMITH ST, LEXINGTON, KY", "PROPERTY_L": 38.056329, "PROPERTY_1": -84.495589, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "1999 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "4\/10\/2014", "SALE_PRICE": 85000, "ASSESSED_V": 35000, "PVA_ACRE": 0.050500, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "MULTIPLE PROPERTIES" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.495589, 38.056329 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 12057600, "PROPERTY_A": "427 SMITH ST, LEXINGTON, KY", "PROPERTY_L": 38.056530, "PROPERTY_1": -84.495306, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2000 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "6\/25\/2013", "SALE_PRICE": null, "ASSESSED_V": 8500, "PVA_ACRE": 0.045900, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "AFFILIATED ORGANIZATIONS" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.495306, 38.05653 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 10010120, "PROPERTY_A": "429 SMITH ST, LEXINGTON, KY", "PROPERTY_L": 38.056566, "PROPERTY_1": -84.495255, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2001 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "6\/25\/2013", "SALE_PRICE": null, "ASSESSED_V": 8500, "PVA_ACRE": 0.045900, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "AFFILIATED ORGANIZATIONS" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.495255, 38.056566 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 15507200, "PROPERTY_A": "431 SMITH ST, LEXINGTON, KY", "PROPERTY_L": 38.056603, "PROPERTY_1": -84.495205, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2002 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "6\/25\/2013", "SALE_PRICE": null, "ASSESSED_V": 8500, "PVA_ACRE": 0.045900, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "AFFILIATED ORGANIZATIONS" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.495205, 38.056603 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 14602700, "PROPERTY_A": "437 SMITH ST, LEXINGTON, KY", "PROPERTY_L": 38.056714, "PROPERTY_1": -84.495051, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2003 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "5\/2\/2014", "SALE_PRICE": 15000, "ASSESSED_V": 20000, "PVA_ACRE": 0.045900, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "LESS THAN 40,000 CONSIDERATION" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.495051, 38.056714 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 16530400, "PROPERTY_A": "441 SMITH ST, LEXINGTON, KY", "PROPERTY_L": 38.056758, "PROPERTY_1": -84.494990, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2004 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "6\/20\/2014", "SALE_PRICE": 29000, "ASSESSED_V": 16000, "PVA_ACRE": 0.057400, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "LESS THAN 40,000 CONSIDERATION" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.49499, 38.056758 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 13040115, "PROPERTY_A": "469 W FOURTH ST, LEXINGTON, KY", "PROPERTY_L": 38.055928, "PROPERTY_1": -84.495553, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2005 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "6\/7\/2013", "SALE_PRICE": 115000, "ASSESSED_V": 115000, "PVA_ACRE": 0.190000, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "ARMS LENGTH TRANSACTION" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.495553, 38.055928 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 15219900, "PROPERTY_A": "465 W FOURTH ST, LEXINGTON, KY", "PROPERTY_L": 38.055783, "PROPERTY_1": -84.495390, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2006 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "6\/25\/2013", "SALE_PRICE": 30000, "ASSESSED_V": 30000, "PVA_ACRE": 0.072300, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "LESS THAN 40,000 CONSIDERATION" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.49539, 38.055783 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 13166400, "PROPERTY_A": "416 SMITH ST, LEXINGTON, KY", "PROPERTY_L": 38.056055, "PROPERTY_1": -84.495241, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2007 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "2\/21\/2013", "SALE_PRICE": 8000, "ASSESSED_V": 8000, "PVA_ACRE": 0.126300, "YEAR_BUILT": 0, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "MASTER COMMISSIONER SALE" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.495241, 38.056055 ], [ -84.467351, 38.021305 ] ] } },
{ "type": "Feature", "properties": { "PVANUM": 14518161, "PROPERTY_A": "467 W FOURTH ST, LEXINGTON, KY", "PROPERTY_L": 38.055837, "PROPERTY_1": -84.495451, "OWNER": "WEST SIDE PROPERTIES LLC", "OWNER_ADDR": "2008 RICHMOND RD STE 2A, LEXINGTON, KY 40502", "OWNER_LAT": 38.021305, "OWNER_LONG": -84.467351, "FREQUENCY": 17, "SALE_DATE": "1\/9\/2015", "SALE_PRICE": 50000, "ASSESSED_V": 17900, "PVA_ACRE": 0.110200, "YEAR_BUILT": 1908, "ZONING": "R-4-HIGH DENSITY APARTMENT", "SALE_VALID": "ARMS LENGTH TRANSACTION" }, "geometry": { "type": "LineString", "coordinates": [ [ -84.495451, 38.055837 ], [ -84.467351, 38.021305 ] ] } }
]
}
| LexHousingStudies/LexHousingStudies.github.io | archive_spring2015/LANDLORDS/West Side Properties LLC.js | JavaScript | apache-2.0 | 10,871 |
'use strict';
var $ = require('jquery');
var $osf = require('js/osfHelpers');
var bootbox = require('bootbox');
var ko = require('knockout');
var oop = require('js/oop');
var Raven = require('raven-js');
var ChangeMessageMixin = require('js/changeMessage');
require('knockout.punches');
ko.punches.enableAll();
var UserEmail = oop.defclass({
constructor: function(params) {
params = params || {};
this.address = ko.observable(params.address);
this.isConfirmed = ko.observable(params.isConfirmed || false);
this.isPrimary = ko.observable(params.isPrimary || false);
}
});
var UserProfile = oop.defclass({
constructor: function () {
this.id = ko.observable();
this.emails = ko.observableArray();
this.primaryEmail = ko.pureComputed(function () {
var emails = this.emails();
for (var i = 0; i < this.emails().length; i++) {
if(emails[i].isPrimary()) {
return emails[i];
}
}
return new UserEmail();
}.bind(this));
this.alternateEmails = ko.pureComputed(function () {
var emails = this.emails();
var retval = [];
for (var i = 0; i < this.emails().length; i++) {
if (emails[i].isConfirmed() && !emails[i].isPrimary()) {
retval.push(emails[i]);
}
}
return retval;
}.bind(this));
this.unconfirmedEmails = ko.pureComputed(function () {
var emails = this.emails();
var retval = [];
for (var i = 0; i < this.emails().length; i++) {
if(!emails[i].isConfirmed()) {
retval.push(emails[i]);
}
}
return retval;
}.bind(this));
}
});
var UserProfileClient = oop.defclass({
constructor: function () {},
urls: {
fetch: '/api/v1/profile/',
update: '/api/v1/profile/',
resend: '/api/v1/resend/'
},
fetch: function () {
var ret = $.Deferred();
var request = $.get(this.urls.fetch);
request.done(function(data) {
ret.resolve(this.unserialize(data));
}.bind(this));
request.fail(function(xhr, status, error) {
$osf.growl('Error', 'Could not fetch user profile.', 'danger');
Raven.captureMessage('Error fetching user profile', {
url: this.urls.fetch,
status: status,
error: error
});
ret.reject(xhr, status, error);
}.bind(this));
return ret.promise();
},
update: function (profile, email) {
var url = this.urls.update;
if(email) {
url = this.urls.resend;
}
var ret = $.Deferred();
var request = $osf.putJSON(
url,
this.serialize(profile, email)
).done(function (data) {
ret.resolve(this.unserialize(data, profile));
}.bind(this)).fail(function(xhr, status, error) {
$osf.growl('Error', 'User profile not updated. Please refresh the page and try ' +
'again or contact <a href="mailto: [email protected]">[email protected]</a> ' +
'if the problem persists.', 'danger');
Raven.captureMessage('Error fetching user profile', {
url: this.urls.update,
status: status,
error: error
});
ret.reject(xhr, status, error);
}.bind(this));
return ret;
},
serialize: function (profile, email) {
if(email){
return {
id: profile.id(),
email: {
address: email.address(),
primary: email.isPrimary(),
confirmed: email.isConfirmed()
}
};
}
return {
id: profile.id(),
emails: ko.utils.arrayMap(profile.emails(), function(email) {
return {
address: email.address(),
primary: email.isPrimary(),
confirmed: email.isConfirmed()
};
})
};
},
unserialize: function (data, profile) {
if (typeof(profile) === 'undefined') {
profile = new UserProfile();
}
profile.id(data.profile.id);
profile.emails(
ko.utils.arrayMap(data.profile.emails, function (emailData){
var email = new UserEmail({
address: emailData.address,
isPrimary: emailData.primary,
isConfirmed: emailData.confirmed
});
return email;
})
);
return profile;
}
});
var UserProfileViewModel = oop.extend(ChangeMessageMixin, {
constructor: function() {
this.super.constructor.call(this);
this.client = new UserProfileClient();
this.profile = ko.observable(new UserProfile());
this.emailInput = ko.observable();
},
init: function () {
this.client.fetch().done(
function(profile) { this.profile(profile); }.bind(this)
);
},
addEmail: function () {
this.changeMessage('', 'text-info');
var newEmail = this.emailInput().toLowerCase().trim();
if(newEmail){
var email = new UserEmail({
address: newEmail
});
// ensure email isn't already in the list
for (var i=0; i<this.profile().emails().length; i++) {
if (this.profile().emails()[i].address() === email.address()) {
this.changeMessage('Duplicate Email', 'text-warning');
this.emailInput('');
return;
}
}
this.profile().emails.push(email);
this.client.update(this.profile()).done(function (profile) {
this.profile(profile);
var emails = profile.emails();
for (var i=0; i<emails.length; i++) {
if (emails[i].address() === email.address()) {
this.emailInput('');
$osf.growl('<em>' + email.address() + '<em> added to your account.','You will receive a confirmation email at <em>' + email.address() + '<em>. Please check your email and confirm.', 'success');
return;
}
}
this.changeMessage('Invalid Email.', 'text-danger');
}.bind(this));
} else {
this.changeMessage('Email cannot be empty.', 'text-danger');
}
},
resendConfirmation: function(email){
var self = this;
self.changeMessage('', 'text-info');
bootbox.confirm({
title: 'Resend Email Confirmation?',
message: 'Are you sure that you want to resend email confirmation at ' + '<em><b>' + email.address() + '</b></em>',
callback: function (confirmed) {
if (confirmed) {
self.client.update(self.profile(), email).done(function () {
$osf.growl(
'Email confirmation resent to <em>' + email.address() + '<em>',
'You will receive a new confirmation email at <em>' + email.address() + '<em>. Please check your email and confirm.',
'success');
});
}
}
});
},
removeEmail: function (email) {
var self = this;
self.changeMessage('', 'text-info');
if (self.profile().emails().indexOf(email) !== -1) {
bootbox.confirm({
title: 'Remove Email?',
message: 'Are you sure that you want to remove ' + '<em><b>' + email.address() + '</b></em>' + ' from your email list?',
callback: function (confirmed) {
if (confirmed) {
self.profile().emails.remove(email);
self.client.update(self.profile()).done(function () {
$osf.growl('Email Removed', '<em>' + email.address() + '<em>', 'success');
});
}
}
});
} else {
$osf.growl('Error', 'Please refresh the page and try again.', 'danger');
}
},
makeEmailPrimary: function (email) {
this.changeMessage('', 'text-info');
if (this.profile().emails().indexOf(email) !== -1) {
this.profile().primaryEmail().isPrimary(false);
email.isPrimary(true);
this.client.update(this.profile()).done(function () {
$osf.growl('Made Primary', '<em>' + email.address() + '<em>', 'success');
});
} else {
$osf.growl('Error', 'Please refresh the page and try again.', 'danger');
}
}
});
var DeactivateAccountViewModel = oop.defclass({
constructor: function () {
this.success = ko.observable(false);
},
urls: {
'update': '/api/v1/profile/deactivate/'
},
_requestDeactivation: function() {
var request = $osf.postJSON(this.urls.update, {});
request.done(function() {
$osf.growl('Success', 'An OSF administrator will contact you shortly to confirm your deactivation request.', 'success');
this.success(true);
}.bind(this));
request.fail(function(xhr, status, error) {
$osf.growl('Error',
'Deactivation request failed. Please contact <a href="mailto: [email protected]">[email protected]</a> if the problem persists.',
'danger'
);
Raven.captureMessage('Error requesting account deactivation', {
url: this.urls.update,
status: status,
error: error
});
}.bind(this));
return request;
},
submit: function () {
var self = this;
bootbox.confirm({
title: 'Request account deactivation?',
message: 'Are you sure you want to request account deactivation? An OSF administrator will review your request. If accepted, you ' +
'will <strong>NOT</strong> be able to reactivate your account.',
callback: function(confirmed) {
if (confirmed) {
return self._requestDeactivation();
}
}
});
}
});
var ExportAccountViewModel = oop.defclass({
constructor: function () {
this.success = ko.observable(false);
},
urls: {
'update': '/api/v1/profile/export/'
},
_requestExport: function() {
var request = $osf.postJSON(this.urls.update, {});
request.done(function() {
$osf.growl('Success', 'An OSF administrator will contact you shortly to confirm your export request.', 'success');
this.success(true);
}.bind(this));
request.fail(function(xhr, status, error) {
$osf.growl('Error',
'Export request failed. Please contact <a href="mailto: [email protected]">[email protected]</a> if the problem persists.',
'danger'
);
Raven.captureMessage('Error requesting account export', {
url: this.urls.update,
status: status,
error: error
});
}.bind(this));
return request;
},
submit: function () {
var self = this;
bootbox.confirm({
title: 'Request account export?',
message: 'Are you sure you want to request account export?',
callback: function(confirmed) {
if (confirmed) {
return self._requestExport();
}
}
});
}
});
module.exports = {
UserProfileViewModel: UserProfileViewModel,
DeactivateAccountViewModel: DeactivateAccountViewModel,
ExportAccountViewModel: ExportAccountViewModel
};
| barbour-em/osf.io | website/static/js/accountSettings.js | JavaScript | apache-2.0 | 12,254 |
var MSG = {
title: "Codi",
blocks: "Blocs",
linkTooltip: "Desa i enllaça als blocs.",
runTooltip: "Executa el programa definit pels blocs de l'àrea de treball.",
badCode: "Error de programa:\n %1",
timeout: "S'ha superat el nombre màxim d'iteracions d'execució.",
trashTooltip: "Descarta tots els blocs.",
catLogic: "Lògica",
catLoops: "Bucles",
catMath: "Matemàtiques",
catText: "Text",
catLists: "Llistes",
catColour: "Color",
catVariables: "Variables",
catFunctions: "Procediments",
listVariable: "llista",
textVariable: "text",
httpRequestError: "Hi ha hagut un problema amb la sol·licitud.",
linkAlert: "Comparteix els teus blocs amb aquest enllaç: %1",
hashError: "Ho sentim, '%1' no es correspon amb cap fitxer desat de Blockly.",
loadError: "No s'ha pogut carregar el teu fitxer desat. Potser va ser creat amb una versió diferent de Blockly?",
parseError: "Error d'anàlisi %1:\n%2\n\nSeleccioneu 'Acceptar' per abandonar els vostres canvis, o 'Cancel·lar' per continuar editant l'%1."
};
| rachel-fenichel/blockly | demos/code/msg/ca.js | JavaScript | apache-2.0 | 1,052 |
(function($) {
$.fn.extend({
'events': function() {
return this.filter('.event');
},
'highlight': function() {
return this.events()
.removeClass('dimmed')
.addClass('highlighted');
},
'dim': function() {
return this.events()
.removeClass('highlighted')
.addClass('dimmed');
},
'removeDimHighlight': function() {
return this.events()
.removeClass('dimmed highlighted')
},
'byTag': function(tag) {
return this.events()
.find('.tag:contains(' + tag + ')')
.parents('.event')
}
});
})(jQuery);
function highlight_events_by_score() {
function color(score) {
// score 1 -> rosso (l=50%)
// score 0 -> bianco (l=100%)
var x = 100 - (score * 50);
return "hsla(0, 100%, " + x + "%, 1)";
}
$('.event').each(function() {
var e = $(this);
var score = e.attr('data-score');
if(typeof(score) == "undefined") {
e.css('background', null);
}
else {
e.css('background', color(score));
}
})
}
function highlight_events_by_seats() {
function color(score) {
// score 1 -> blu (l=50%)
// score 0 -> bianco (l=100%)
var x = 100 - (score * 50);
return "hsla(240, 100%, " + x + "%, 1)";
}
$('.event').each(function() {
var e = $(this);
var score = e.attr('data-seats');
if(typeof(score) == "undefined") {
e.css('background', null);
}
else {
e.css('background', color(score));
}
})
}
function highlight_chart() {
var slices = {};
var srex = /time-(\d+)/;
$('.event').dim()
$('.track')
.each(function() {
var track = $(this);
var sch = track.parents('.schedule').attr('id');
if(!(sch in slices)) {
var sslices = {};
slices[sch] = sslices;
}
else {
var sslices = slices[sch];
}
track.children('.event[data-talk]')
.each(function() {
var start = parseInt(this.className.match(srex)[1]);
if(!(start in sslices)) {
sslices[start] = [];
}
sslices[start].push($(this));
});
})
$.each(slices, function(schedule, subslice) {
$.each(subslice, function(key, events) {
var kvotes = [];
for(var ix=0; ix<events.length; ix++) {
var tid = events[ix].attr('data-talk');
kvotes.push([ user.votes[tid] || 0, events[ix] ]);
}
kvotes.sort(function(a,b) { return a[0] - b[0]; }).reverse();
var max = kvotes[0][0];
if(max > 5) {
for(var ix=0; ix<kvotes.length; ix++) {
var vote = kvotes[ix][0];
if(vote == max) {
kvotes[ix][1].highlight();
}
}
}
});
});
}
function highlight_tag(tag) {
if(!$.isArray(tag))
tag = [ tag ];
var events = $('.event');
if(!tag.length) {
events.removeDimHighlight();
}
else {
events.dim();
for(var ix=0, ex=tag.length; ix<ex; ix++) {
events.byTag(tag[ix]).removeDimHighlight();
}
if(tag.length == 1) {
var positions = [];
events.byTag(tag[0]).each(function() {
positions.push($(this).offset().top);
});
positions.sort();
window.scroll(0, positions[0]);
}
}
}
function highlighter(mode, option) {
mode = mode || '';
option = option || '';
var hstatus = $(document).data('highlighter') || ['', []];
var remove = false;
if(hstatus[0] != mode) {
$('.event').removeDimHighlight();
hstatus[1] = [];
}
else if(hstatus[1].indexOf(option) != -1) {
remove = true;
}
switch(mode) {
case 'chart':
if(remove) {
$('.event').removeDimHighlight();
}
else {
highlight_chart();
}
break;
case 'tag':
var tags = hstatus[1];
if(remove) {
var ix = tags.indexOf(option);
tags.splice(ix, 1);
}
else {
tags = tags.concat([ option ]);
}
highlight_tag(tags);
break;
default:
mode = '';
option = null;
$('.event').removeDimHighlight();
}
hstatus[0] = mode;
if(option == null) {
hstatus[1] = [];
}
else {
var ix = hstatus[1].indexOf(option);
if(remove && ix != -1) {
hstatus[1].splice(ix, 1);
}
else if(!remove && ix == -1) {
hstatus[1].push(option);
}
}
$(document)
.data('highlighter', hstatus)
.trigger('highlighter', hstatus);
}
(function() {
var nav = $('#schedule-navigator');
var options = nav.children('div');
options
.find('.disabled')
.bind('click', function(ev) { ev.stopImmediatePropagation(); return false;})
.end()
.children('a')
.bind('click', function(ev) {
var e = $(this);
var target = e.parent().children('div');
var visible = !target.is(':hidden');
options
.removeClass('selected')
.children('div')
.hide();
if(!visible)
target
.show()
.parent()
.addClass('selected');
return false;
})
.end()
.children('div')
.prepend('' +
'<div class="close">' +
' <a href="#"><img src="' + STATIC_URL + 'p5/images/close.png" width="24" /></a>' +
'</div>')
.find('.close')
.bind('click', function(ev) {
$(this)
.parent().hide()
.parent().removeClass('selected');
return false;
})
options
.find('.track-toggle')
.bind('click', function(ev) {
var e = $(this);
var tracks = $([]);
$(e.attr('data-tracks').split(',')).each(function(ix, val) {
tracks = tracks.add($('.track[data-track=' + val + ']'));
})
var visible = tracks.is(':hidden');
/*
* nascondere/mostrare le track è semplice, il problema è
* accorciare gli eventi a sale unificate
*/
if(visible) {
tracks.show();
e.removeClass('filter-active');
}
else {
tracks.hide();
e.addClass('filter-active');
}
var sch = tracks.eq(0).parents('.schedule');
var direction = sch.parent().get(0).className.indexOf('vertical') != -1 ? 'v' : 'h';
var offset = direction == 'v' ? tracks.width() : tracks.height();
if(!visible)
offset *= -1;
/*
* devo accumulare le modifiche invece che applicarle
* subito perché c'è una transizione css e i metodi
* .width/.height non mi riportano la dimensione
* corretta fino a quando non è terminata l'animazione
*/
var sizes = {};
tracks.each(function() {
var t = $(this)
/*
* gli eventi da manipolare sono tutti quelli presenti
* nelle track precedenti che coinvolgano anche la track corrente
*/
var previous = t.prevAll('.track');
previous
.each(function(tix, val) {
/*
* mi interessano solo gli elementi di questa track
* che vanno a toccare una delle track manipolate
*/
$(this)
.children('.event')
.not('.tracks-1')
.filter(function(ix) {
var match = this.className.match(/tracks-(\d)/);
if(!match)
return false;
return parseInt(match[1]) + (previous.length - tix -1) > previous.length;
})
.each(function() {
var evt = $(this);
if(!(this.id in sizes))
sizes[this.id] = direction == 'v' ? evt.outerWidth() : evt.outerHeight();
sizes[this.id] += offset;
});
});
});
for(var key in sizes) {
if(direction == 'v')
$(document.getElementById(key)).width(sizes[key]);
else
$(document.getElementById(key)).height(sizes[key]);
}
return false;
})
.end()
.find('.highlights li > a')
.click(function(ev) {
$(this)
.parents('.highlights')
.find('li > div')
.hide()
})
.end()
.find('.highlight-chart')
.each(function(ix, val) {
if($.isEmptyObject(user.votes)) {
$(this)
.addClass('disabled')
.after(' <a href="#" title="You have not participated to the community vote">?</a>');
}
else {
$(this).bind('click', function(ev) {
highlighter('chart');
return false;
})
}
})
.end()
.find('.highlight-tag')
.click(function(ev) {
$(this).next().toggle();
return false;
})
.end()
.find('.tag-list a.tag')
.click(function(ev) {
var tag = $(this).attr('data-tag');
highlighter('tag', tag);
return false;
})
.end()
.find('.highlight-remove')
.click(function(ev) {
highlighter();
return false;
})
.end()
$(document)
.bind('highlighter', function(ev, mode, moptions) {
var h = options.find('.highlight-chart');
if(mode == "chart") {
h.addClass('highlight-active');
}
else {
h.removeClass('highlight-active');
}
h = options.find('.highlight-tag')
tags = options.find('.tag-list .tag');
tags.removeClass('selected');
if(mode == "tag") {
h.addClass('highlight-active');
for(var ix=0, ex=moptions.length; ix<ex; ix++) {
tags.filter('[data-tag=' + moptions[ix] + ']').addClass('selected');
}
}
else {
h.removeClass('highlight-active');
}
});
})();
(function() {
var user_interest_toolbar = '' +
' <div class="talk-interest">' +
' <a class="up" href="#" />' +
' </div>' +
'';
var EVENT_WIDTH_EXPOSED = 400;
function expose(e) {
var schedule = e.parents('.schedule__body');
var track = e.parent();
var offset = track.position().left + EVENT_WIDTH_EXPOSED - schedule.width();
e.addClass('exposed');
if (offset > 0) {
e.css('margin-left', -offset + 'px');
}
e.trigger('exposed');
}
function unexpose(e) {
e.removeClass('exposed');
e.css('margin-left', 0);
}
function event_url(base, evt) {
var sch = evt.parents('.schedule');
return base
.replace('0', evt.attr('data-id'))
.replace('_S_', sch.attr('id'))
.replace('_C_', sch.parent().attr('data-conference'));
}
function update_booking_status(evt) {
var be = $('<div class="book-event maximized">loading...</div>');
$('.book-event', evt).remove();
$('.tools', evt).append(be);
/* i training sono prenotabili solo da chi ha acquisitato un biglietto
* standard o daily; il server impone il vincolo ma replico la logica
* per poter dare un feedback immediato.
*/
var full = false;
var training = evt.parents('.track[data-track=training1], .track[data-track=training2]').length > 0;
for(var ix=0; ix<user.tickets.length; ix++) {
var t = user.tickets[ix];
if(t[1] == 'conference' && ((t[2].substr(2, 1) == 'S' || t[2].substr(2, 1) == 'D') || !training)) {
full = true;
break;
}
}
if(!full) {
be.html('<div class="restricted"><a href="/training">Restricted access</a></div>');
return;
}
var base = "/conference/schedule/_C_/_S_/0/booking";
$.get(event_url(base, evt), function(data) {
if(data.user) {
be.html('<div class="cancel"><a href="#">Cancel booking</a></div>');
}
else {
if(data.available) {
be.html('<div class="book"><a href="#">Book this event</a></div>');
}
else {
be.html('<div class="sold-out">Sold out</div>');
}
}
sync_event_book_status(evt, data);
}, 'json');
}
function sync_event_book_status(evt, value) {
evt.find('.info').remove();
if(value.user) {
evt.append('<div class="info booked minimized">BOOKED</div>');
}
else {
if(value.available > 0) {
var training = evt.parents('.track[data-track=training1], .track[data-track=training2]').length > 0;
if(training) {
var msg = 'BOOK IT<br /><span title="Are you still doing the math instead of booking? Only ' + value.available + ' seats are availables; book your seat now!">0<span>x</span>' + value.available.toString(16) + '</span> LEFT';
}
else {
var msg = 'BOOK IT, ' + value.available + ' LEFT';
}
evt.append(''
+ '<div class="info available minimized">'
+ msg
+ '</div>');
}
else {
evt.append('<div class="info sold-out minimized">SOLDOUT</div>');
}
}
}
// eseguo la richiesthe ajax prima della manipolazione del DOM, in questo
// modo le due operazioni dovrebbero procedere parallelamente.
(function() {
var conf = document.location.pathname.split('/')[3];
$.getJSON('/conference/schedule/' + conf + '/events/booking', function(data) {
$.each(data, function(key, value) {
sync_event_book_status($('#e' + key), value);
});
});
})();
(function() {
var conf = document.location.pathname.split('/')[3];
$.getJSON('/conference/schedule/' + conf + '/events/expected_attendance', function(data) {
$.each(data, function(eid, data) {
var e = $('#e' + eid);
e.attr('data-score', data.score_normalized);
var seats_normalized = data.expected / data.seats;
if(seats_normalized > 1)
seats_normalized = 1
e.attr('data-seats', seats_normalized);
e.attr('data-raw-seats', data.seats);
e.attr('data-raw-expected', data.expected);
if(data.overbook) {
var track = e.parents('.track').attr('data-track');
if(track != 'helpdesk1' && track != 'helpdesk2'
&& track != 'training1' && track != 'training2'
&& !e.hasClass('keynote')) {
e.addClass('overbooked');
e.append('<div class="warning overbook">'
+'<img src="' + STATIC_URL + 'p7/images/warning.png" title="our estimate of attendance exceeds the room size" />'
+'</div>');
}
}
});
});
})();
$('.event.bookable')
.bind('exposed', function(ev) {
update_booking_status($(this));
return false;
});
$('.book-event a').live('click', function(ev) {
var b = $(this).parent();
var base = "/conference/schedule/_C_/_S_/0/booking";
var evt = b.parents('.event');
var url = event_url(base, evt);
if(b.hasClass('book')) {
if(confirm('You are booking a seat in this training. You can cancel your booking at any time if you change your mind, to leave your seat available for someone else.')) {
$.ajax({
url: url,
type: 'POST',
data: {
value: 1
},
success: function() {
update_booking_status(evt);
},
error: function(xhr, status, error_) {
var msg = 'Cannot proceed';
switch(xhr.responseText) {
case 'sold out':
msg = 'Training full';
break;
case 'time conflict':
msg = 'Another training booked in this time slot';
break;
case 'ticket error':
msg = 'Restricted access';
break;
case 'already booked':
msg = 'You already have another reservation for this type of event';
break;
}
alert(msg);
}
});
}
}
else if(b.hasClass('cancel')) {
if(confirm('Are you sure to cancel your reservation?')) {
$.ajax({
url: url,
type: 'POST',
data: {},
success: function() {
update_booking_status(evt);
}
});
}
}
else {
return true;
}
return false;
});
$('.event')
.filter(function(ix) {
// escludo gli elementi "strutturali", non devo interagirci
var e = $(this);
return !e.hasClass('special') && !e.hasClass('break');
})
.filter(function() { return !!$(this).attr('data-talk') || $('.abstract', this).length; })
.prepend('' +
'<div class="maximized close-event">' +
' <a href="#"><img src="' + STATIC_URL + 'p5/images/close.png" width="24" /></a>' +
'</div>')
.bind('click', function(ev) {
var e = $(this);
if(e.hasClass('exposed'))
return;
$('.exposed')
.not(e)
.each(function() { unexpose($(this)) });
expose(e);
})
.find('a')
.bind('click', function(ev) {
/*
* non voglio seguire i link su un evento collassato
*/
var evt = $(this).parents('.event');
if(!evt.hasClass('exposed'))
ev.preventDefault();
return true;
})
.end()
.find('.close-event a')
.bind('click', function(ev) {
unexpose($(this).parents('.event'));
return false;
})
.end()
.bind('exposed', function(ev) {
var e = $(this);
/* se ho aperto un evento che non è collegato ad un talk
* significa che tutti i dati da mostrare sono già presenti
* nell'html.
*/
if(!e.attr('data-talk')) {
return;
}
if(!e.data('loaded')) {
var talk = $('h3.name a', e).attr('href');
if(talk) {
var ab = $('.abstract', e)
.text('loading...');
$.ajax({
url: talk + '.xml',
dataType: 'xml',
success: function(data, text, xhr) {
ab.html($('talk abstract', data).html());
}
});
}
e.data('loaded', 1);
}
})
.end()
.each(function(ix, val) {
var e = $(this);
var tools = e.find('.tools');
if(user.authenticated) {
var tid = e.attr('data-talk');
if(tid && tid in user.votes) {
tools.append('<div class="maximized talk-vote">' + user.votes[tid] + '/10</div>');
}
/*
* gli eventi del partner program sono "virtuali" non esistano
* nel db e hanno un id < 0
*/
if(e.attr('data-id') > 0) {
if(!e.hasClass('bookable')) {
var i = user.interest[e.attr('data-id')];
if(i == 1) {
e.addClass('interest-up');
}
else if(i == -1) {
e.addClass('interest-down');
}
tools.append(user_interest_toolbar);
if(i == 1) {
tools.find('a.up').addClass('active');
}
else if(i == -1) {
tools.find('a.down').addClass('active');
}
}
}
}
var t0 = Date.now();
/*
* aggiunta elisione
*/
var name = e.find('.name a');
if(name.length) {
// numero di linee visibili
var lh = parseFloat(name.css('line-height'));
var lines = Math.floor((e.height() - name.position().top) / lh);
// nuova altezza del tag a
var h = lines * lh;
if(h < name.height()) {
name.truncateText(h);
}
}
})
.find('.toggle-notice')
.bind('click', function(ev) {
$(this)
.parents('.event')
.children('.notice')
.css('left', 0)
return false;
})
.end()
.find('.notice')
.bind('click', function(ev) {
/* over the top! 100% non è abbastanza per chrome! */
$(this).css('left', '110%');
return false;
})
.end()
.find('.talk-interest a')
.bind('click', function(ev) {
var base = "/conference/schedule/_C_/_S_/0/interest"
var e = $(this);
var evt = e.parents('.event');
var url = event_url(base, evt);
var up = e.hasClass('up');
if(!e.hasClass('active')) {
var val = up ? 1 : -1;
}
else {
var val = 0;
}
$.ajax({
url: url,
type: 'POST',
data: {
interest: val
},
success: function() {
evt.removeClass('interest-up interest-down');
var wrap = e.parents('.talk-interest');
$('a', wrap).removeClass('active');
if(val > 0) {
$('a.up', wrap).addClass('active');
evt.addClass('interest-up');
}
else if(val < 0) {
$('a.down', wrap).addClass('active');
evt.addClass('interest-down');
}
}
});
return false;
})
.end()
.find('.tag')
.bind('click', function(ev) {
$('.event')
.removeDimHighlight()
.byTag($(this).text())
.highlight();
return false;
})
.end()
/*
* Eventi sovrapposti; non riesco a stilare in maniera oppurtuna gli eventi
* sovrapposti usando solo selettori CSS. questo pezzetto di js mi serve
* per assegnare le classi corrette agli eventi
*
* Divido gli eventi in classi di intersezione (gli eventi che si
* intersecano due alla volta, tre alla volta, etc); ad ogni evento associa
* una classe "left-intersection-X" con X che va da 0 al numero di elementi
* nella gruppo di intersezione.
*/
$('.track[data-track=partner0]').each(function() {
var events = {};
$('.event[data-intersection]', this).each(function() {
var group = $(this).attr('data-intersection');
var start = this.className.match(/time-(\d+)/)[1];
if(group in events) {
events[group].push([start, this]);
}
else {
events[group] = [[start, this]];
}
});
$.each(events, function(group, events) {
events.sort(function(a,b) {
var a = Number(a[0]);
var b = Number(b[0]);
return a == b ? 0 : (a < b ? -1 : 1);
});
group = Number(group.substr(1)) + 1;
$.each(events, function(ix, el) {
$(el).addClass('left-intersection-' + (ix % group));
});
});
var tickets = {};
for(var ix=0, ex=user.tickets.length; ix<ex; ix++) {
tickets[user.tickets[ix][2]] = 1;
}
$('.event', this).each(function() {
var e = $(this);
var fcode = e.attr('data-fare');
var sbar = e.find('.status-bar');
if(fcode in tickets) {
sbar.append('<div class="info">You have bought a ticket for this event</div>');
e.addClass('booked');
}
else {
sbar.append('<div class="info"><a href="/p3/cart/?f=' + fcode + '">Buy a ticket</a></div>');
}
});
});
$('.special > *:first-child').verticalAlign();
$('.break > *:first-child').verticalAlign();
$('.poster ul a').truncateText();
})();
| leriomaggio/pycon_site | p3/static/p7/javascripts/schedule.js | JavaScript | bsd-2-clause | 28,339 |
/**
* Close Changeset
* http://wiki.openstreetmap.org/wiki/API_v0.6#Close:_PUT_.2Fapi.2F0.6.2Fchangeset.2F.23id.2Fclose
*/
module.exports = function (req, res, api, params, next) {
var parts = params.id.split(':')
var version = parts.length === 2 ? parts[1] : null
api.closeChangeset(parts[0], version, function (err) {
if (err) {
if (err.name === 'ForkedChangesetError') {
err.message += '\n specify the version after the id using this syntax:\n' +
'PUT /api/0.6/changeset/$ID:$VERSION/close'
}
return next(err)
}
res.end()
})
}
| digidem/osm-p2p-server | routes/changeset_close.js | JavaScript | bsd-2-clause | 590 |
/*
json2.js
2013-05-26
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
This code should be minified before deployment.
See http://javascript.crockford.com/jsmin.html
USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO
NOT CONTROL.
This file creates a global JSON object containing two methods: stringify
and parse.
JSON.stringify(value, replacer, space)
value any JavaScript value, usually an object or array.
replacer an optional parameter that determines how object
values are stringified for objects. It can be a
function or an array of strings.
space an optional parameter that specifies the indentation
of nested structures. If it is omitted, the text will
be packed without extra whitespace. If it is a number,
it will specify the number of spaces to indent at each
level. If it is a string (such as '\t' or ' '),
it contains the characters used to indent at each level.
This method produces a JSON text from a JavaScript value.
When an object value is found, if the object contains a toJSON
method, its toJSON method will be called and the result will be
stringified. A toJSON method does not serialize: it returns the
value represented by the name/value pair that should be serialized,
or undefined if nothing should be serialized. The toJSON method
will be passed the key associated with the value, and this will be
bound to the value
For example, this would serialize Dates as ISO strings.
Date.prototype.toJSON = function (key) {
function f(n) {
// Format integers to have at least two digits.
return n < 10 ? '0' + n : n;
}
return this.getUTCFullYear() + '-' +
f(this.getUTCMonth() + 1) + '-' +
f(this.getUTCDate()) + 'T' +
f(this.getUTCHours()) + ':' +
f(this.getUTCMinutes()) + ':' +
f(this.getUTCSeconds()) + 'Z';
};
You can provide an optional replacer method. It will be passed the
key and value of each member, with this bound to the containing
object. The value that is returned from your method will be
serialized. If your method returns undefined, then the member will
be excluded from the serialization.
If the replacer parameter is an array of strings, then it will be
used to select the members to be serialized. It filters the results
such that only members with keys listed in the replacer array are
stringified.
Values that do not have JSON representations, such as undefined or
functions, will not be serialized. Such values in objects will be
dropped; in arrays they will be replaced with null. You can use
a replacer function to replace those with JSON values.
JSON.stringify(undefined) returns undefined.
The optional space parameter produces a stringification of the
value that is filled with line breaks and indentation to make it
easier to read.
If the space parameter is a non-empty string, then that string will
be used for indentation. If the space parameter is a number, then
the indentation will be that many spaces.
Example:
text = JSON.stringify(['e', {pluribus: 'unum'}]);
// text is '["e",{"pluribus":"unum"}]'
text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t');
// text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]'
text = JSON.stringify([new Date()], function (key, value) {
return this[key] instanceof Date ?
'Date(' + this[key] + ')' : value;
});
// text is '["Date(---current time---)"]'
JSON.parse(text, reviver)
This method parses a JSON text to produce an object or array.
It can throw a SyntaxError exception.
The optional reviver parameter is a function that can filter and
transform the results. It receives each of the keys and values,
and its return value is used instead of the original value.
If it returns what it received, then the structure is not modified.
If it returns undefined then the member is deleted.
Example:
// Parse the text. Values that look like ISO date strings will
// be converted to Date objects.
myData = JSON.parse(text, function (key, value) {
var a;
if (typeof value === 'string') {
a =
/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value);
if (a) {
return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4],
+a[5], +a[6]));
}
}
return value;
});
myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) {
var d;
if (typeof value === 'string' &&
value.slice(0, 5) === 'Date(' &&
value.slice(-1) === ')') {
d = new Date(value.slice(5, -1));
if (d) {
return d;
}
}
return value;
});
This is a reference implementation. You are free to copy, modify, or
redistribute.
*/
/*jslint evil: true, regexp: true */
/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply,
call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours,
getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join,
lastIndex, length, parse, prototype, push, replace, slice, stringify,
test, toJSON, toString, valueOf
*/
// Create a JSON object only if one does not already exist. We create the
// methods in a closure to avoid creating global variables.
define(function() {
if (typeof JSON !== 'object') {
JSON = {};
}
(function () {
'use strict';
function f(n) {
// Format integers to have at least two digits.
return n < 10 ? '0' + n : n;
}
if (typeof Date.prototype.toJSON !== 'function') {
Date.prototype.toJSON = function () {
return isFinite(this.valueOf())
? this.getUTCFullYear() + '-' +
f(this.getUTCMonth() + 1) + '-' +
f(this.getUTCDate()) + 'T' +
f(this.getUTCHours()) + ':' +
f(this.getUTCMinutes()) + ':' +
f(this.getUTCSeconds()) + 'Z'
: null;
};
String.prototype.toJSON =
Number.prototype.toJSON =
Boolean.prototype.toJSON = function () {
return this.valueOf();
};
}
var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
gap,
indent,
meta = { // table of character substitutions
'\b': '\\b',
'\t': '\\t',
'\n': '\\n',
'\f': '\\f',
'\r': '\\r',
'"' : '\\"',
'\\': '\\\\'
},
rep;
function quote(string) {
// If the string contains no control characters, no quote characters, and no
// backslash characters, then we can safely slap some quotes around it.
// Otherwise we must also replace the offending characters with safe escape
// sequences.
escapable.lastIndex = 0;
return escapable.test(string) ? '"' + string.replace(escapable, function (a) {
var c = meta[a];
return typeof c === 'string'
? c
: '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
}) + '"' : '"' + string + '"';
}
function str(key, holder) {
// Produce a string from holder[key].
var i, // The loop counter.
k, // The member key.
v, // The member value.
length,
mind = gap,
partial,
value = holder[key];
// If the value has a toJSON method, call it to obtain a replacement value.
if (value && typeof value === 'object' &&
typeof value.toJSON === 'function') {
value = value.toJSON(key);
}
// If we were called with a replacer function, then call the replacer to
// obtain a replacement value.
if (typeof rep === 'function') {
value = rep.call(holder, key, value);
}
// What happens next depends on the value's type.
switch (typeof value) {
case 'string':
return quote(value);
case 'number':
// JSON numbers must be finite. Encode non-finite numbers as null.
return isFinite(value) ? String(value) : 'null';
case 'boolean':
case 'null':
// If the value is a boolean or null, convert it to a string. Note:
// typeof null does not produce 'null'. The case is included here in
// the remote chance that this gets fixed someday.
return String(value);
// If the type is 'object', we might be dealing with an object or an array or
// null.
case 'object':
// Due to a specification blunder in ECMAScript, typeof null is 'object',
// so watch out for that case.
if (!value) {
return 'null';
}
// Make an array to hold the partial results of stringifying this object value.
gap += indent;
partial = [];
// Is the value an array?
if (Object.prototype.toString.apply(value) === '[object Array]') {
// The value is an array. Stringify every element. Use null as a placeholder
// for non-JSON values.
length = value.length;
for (i = 0; i < length; i += 1) {
partial[i] = str(i, value) || 'null';
}
// Join all of the elements together, separated with commas, and wrap them in
// brackets.
v = partial.length === 0
? '[]'
: gap
? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']'
: '[' + partial.join(',') + ']';
gap = mind;
return v;
}
// If the replacer is an array, use it to select the members to be stringified.
if (rep && typeof rep === 'object') {
length = rep.length;
for (i = 0; i < length; i += 1) {
if (typeof rep[i] === 'string') {
k = rep[i];
v = str(k, value);
if (v) {
partial.push(quote(k) + (gap ? ': ' : ':') + v);
}
}
}
} else {
// Otherwise, iterate through all of the keys in the object.
for (k in value) {
if (Object.prototype.hasOwnProperty.call(value, k)) {
v = str(k, value);
if (v) {
partial.push(quote(k) + (gap ? ': ' : ':') + v);
}
}
}
}
// Join all of the member texts together, separated with commas,
// and wrap them in braces.
v = partial.length === 0
? '{}'
: gap
? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}'
: '{' + partial.join(',') + '}';
gap = mind;
return v;
}
}
// If the JSON object does not yet have a stringify method, give it one.
if (typeof JSON.stringify !== 'function') {
JSON.stringify = function (value, replacer, space) {
// The stringify method takes a value and an optional replacer, and an optional
// space parameter, and returns a JSON text. The replacer can be a function
// that can replace values, or an array of strings that will select the keys.
// A default replacer method can be provided. Use of the space parameter can
// produce text that is more easily readable.
var i;
gap = '';
indent = '';
// If the space parameter is a number, make an indent string containing that
// many spaces.
if (typeof space === 'number') {
for (i = 0; i < space; i += 1) {
indent += ' ';
}
// If the space parameter is a string, it will be used as the indent string.
} else if (typeof space === 'string') {
indent = space;
}
// If there is a replacer, it must be a function or an array.
// Otherwise, throw an error.
rep = replacer;
if (replacer && typeof replacer !== 'function' &&
(typeof replacer !== 'object' ||
typeof replacer.length !== 'number')) {
throw new Error('JSON.stringify');
}
// Make a fake root object containing our value under the key of ''.
// Return the result of stringifying the value.
return str('', {'': value});
};
}
// If the JSON object does not yet have a parse method, give it one.
if (typeof JSON.parse !== 'function') {
JSON.parse = function (text, reviver) {
// The parse method takes a text and an optional reviver function, and returns
// a JavaScript value if the text is a valid JSON text.
var j;
function walk(holder, key) {
// The walk method is used to recursively walk the resulting structure so
// that modifications can be made.
var k, v, value = holder[key];
if (value && typeof value === 'object') {
for (k in value) {
if (Object.prototype.hasOwnProperty.call(value, k)) {
v = walk(value, k);
if (v !== undefined) {
value[k] = v;
} else {
delete value[k];
}
}
}
}
return reviver.call(holder, key, value);
}
// Parsing happens in four stages. In the first stage, we replace certain
// Unicode characters with escape sequences. JavaScript handles many characters
// incorrectly, either silently deleting them, or treating them as line endings.
text = String(text);
cx.lastIndex = 0;
if (cx.test(text)) {
text = text.replace(cx, function (a) {
return '\\u' +
('0000' + a.charCodeAt(0).toString(16)).slice(-4);
});
}
// In the second stage, we run the text against regular expressions that look
// for non-JSON patterns. We are especially concerned with '()' and 'new'
// because they can cause invocation, and '=' because it can cause mutation.
// But just to be safe, we want to reject all unexpected forms.
// We split the second stage into 4 regexp operations in order to work around
// crippling inefficiencies in IE's and Safari's regexp engines. First we
// replace the JSON backslash pairs with '@' (a non-JSON character). Second, we
// replace all simple value tokens with ']' characters. Third, we delete all
// open brackets that follow a colon or comma or that begin the text. Finally,
// we look to see that the remaining characters are only whitespace or ']' or
// ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval.
if (/^[\],:{}\s]*$/
.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@')
.replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']')
.replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) {
// In the third stage we use the eval function to compile the text into a
// JavaScript structure. The '{' operator is subject to a syntactic ambiguity
// in JavaScript: it can begin a block or an object literal. We wrap the text
// in parens to eliminate the ambiguity.
j = eval('(' + text + ')');
// In the optional fourth stage, we recursively walk the new structure, passing
// each name/value pair to a reviver function for possible transformation.
return typeof reviver === 'function'
? walk({'': j}, '')
: j;
}
// If the text is not JSON parseable, then a SyntaxError is thrown.
throw new SyntaxError('JSON.parse');
};
}
}());
});
| chop-dbhi/cilantro | src/js/json2.js | JavaScript | bsd-2-clause | 17,548 |
/*!
* OS.js - JavaScript Operating System
*
* Copyright (c) 2011-2015, Anders Evenrud <[email protected]>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
* ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* @author Anders Evenrud <[email protected]>
* @licence Simplified BSD License
*/
(function(API, Utils, _StandardDialog) {
'use strict';
/**
* Font Dialog
*
* @param Object args Options
* @param Function onClose Callback on close => fn(button, fontName, fontSize)
*
* @option args String name Default font name (optional)
* @option args int size Default font size (optional)
* @option args String background Background color (default=#ffffff)
* @option args String color Foreground color (default=#000000)
* @option args Array list List of fonts (optional)
* @option args String sizeType Font size type (default=px)
* @option args String text Text to display on preview (optional)
* @option args int minSize Minimum font size (optional)
* @option args int maxSize Maximum font size (optional)
*
* @api OSjs.Dialogs.Font
* @see OSjs.Dialogs._StandardDialog
*
* @extends _StandardDialog
* @class
*/
var FontDialog = function(args, onClose) {
args = args || {};
this.fontName = args.name || OSjs.Core.getHandler().getConfig('Fonts')['default'];
this.fontSize = args.size || 12;
this.background = args.background || '#ffffff';
this.color = args.color || '#000000';
this.fonts = args.list || OSjs.Core.getHandler().getConfig('Fonts').list;
this.sizeType = args.sizeType || 'px';
this.text = args.text || 'The quick brown fox jumps over the lazy dog';
this.minSize = typeof args.minSize === 'undefined' ? 6 : args.minSize;
this.maxSize = typeof args.maxSize === 'undefined' ? 30 : args.maxSize;
this.$selectFonts = null;
this.$selectSize = null;
_StandardDialog.apply(this, ['FontDialog', {
title: API._('DIALOG_FONT_TITLE'),
buttons: ['cancel', 'ok']
}, {width:450, height:250}, onClose]);
};
FontDialog.prototype = Object.create(_StandardDialog.prototype);
FontDialog.prototype.updateFont = function(name, size) {
var rt = this._getGUIElement('GUIRichText');
if ( name !== null && name ) {
this.fontName = name;
}
if ( size !== null && size ) {
this.fontSize = parseInt(size, 10);
}
var styles = [];
if ( this.sizeType === 'internal' ) {
styles = [
'font-family: ' + this.fontName,
'background: ' + this.background,
'color: ' + this.color
];
rt.setContent('<font size="' + this.fontSize + '" style="' + styles.join(';') + '">' + this.text + '</font>');
} else {
styles = [
'font-family: ' + this.fontName,
'font-size: ' + this.fontSize + 'px',
'background: ' + this.background,
'color: ' + this.color
];
rt.setContent('<div style="' + styles.join(';') + '">' + this.text + '</div>');
}
};
FontDialog.prototype.init = function() {
var self = this;
var root = _StandardDialog.prototype.init.apply(this, arguments);
var option;
var rt = this._addGUIElement(new OSjs.GUI.RichText('GUIRichText'), this.$element);
this.$selectFont = document.createElement('select');
this.$selectFont.className = 'SelectFont';
this.$selectFont.setAttribute('size', '7');
this.fonts.forEach(function(font, f) {
var option = document.createElement('option');
option.value = f;
option.appendChild(document.createTextNode(font));
self.$selectFont.appendChild(option);
if ( self.fontName.toLowerCase() === font.toLowerCase() ) {
self.$selectFont.selectedIndex = f;
}
});
this._addEventListener(this.$selectFont, 'change', function(ev) {
var i = this.selectedIndex;
if ( self.fonts[i] ) {
self.updateFont(self.fonts[i], null);
}
});
this.$element.appendChild(this.$selectFont);
if ( this.maxSize > 0 ) {
this.$selectSize = document.createElement('select');
this.$selectSize.className = 'SelectSize';
this.$selectSize.setAttribute('size', '7');
var i = 0;
for ( var s = this.minSize; s <= this.maxSize; s++ ) {
option = document.createElement('option');
option.value = s;
option.innerHTML = s;
this.$selectSize.appendChild(option);
if ( this.fontSize === s ) {
this.$selectSize.selectedIndex = i;
}
i++;
}
this._addEventListener(this.$selectSize, 'change', function(ev) {
var i = this.selectedIndex;
var o = this.options[i];
if ( o ) {
self.updateFont(null, o.value);
}
});
this.$element.appendChild(this.$selectSize);
} else {
this.$element.className += ' NoFontSizes';
}
return root;
};
FontDialog.prototype._inited = function() {
_StandardDialog.prototype._inited.apply(this, arguments);
this.updateFont();
};
FontDialog.prototype.onButtonClick = function(btn, ev) {
if ( btn === 'ok' ) {
if ( this.buttons[btn] ) {
this.end('ok', this.fontName, this.fontSize);
}
return;
}
_StandardDialog.prototype.onButtonClick.apply(this, arguments);
};
/////////////////////////////////////////////////////////////////////////////
// EXPORTS
/////////////////////////////////////////////////////////////////////////////
OSjs.Dialogs.Font = FontDialog;
})(OSjs.API, OSjs.Utils, OSjs.Dialogs._StandardDialog);
| nelug/OS.js-v2 | src/javascript/dialogs/font.js | JavaScript | bsd-2-clause | 7,099 |
/*
* Tangram
* Copyright 2009 Baidu Inc. All rights reserved.
*/
///import baidu.array;
///import baidu.array.indexOf;
/**
* 判断一个数组中是否包含给定元素
* @name baidu.array.contains
* @function
* @grammar baidu.array.contains(source, obj)
* @param {Array} source 需要判断的数组.
* @param {Any} obj 要查找的元素.
* @return {boolean} 判断结果.
* @author berg
*/
baidu.array.contains = function(source, obj) {
return (baidu.array.indexOf(source, obj) >= 0);
};
| BaiduFE/Tangram-base | src/baidu/array/contains.js | JavaScript | bsd-3-clause | 511 |
dw.derive.variable = function(x) {
var variable = dw.derive.expression();
variable.transform = function(values, table) {
var result = table[x].copy();
return result;
}
return variable;
}
| uwdata/profiler | wrangler/src/transform/derive/variable.js | JavaScript | bsd-3-clause | 197 |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule InspectorUtils
*/
'use strict';
var ReactNativeComponentTree = require('ReactNativeComponentTree');
function traverseOwnerTreeUp(hierarchy, instance) {
if (instance) {
hierarchy.unshift(instance);
traverseOwnerTreeUp(hierarchy, instance._currentElement._owner);
}
}
function findInstanceByNativeTag(nativeTag) {
var instance = ReactNativeComponentTree.getInstanceFromNode(nativeTag);
if (typeof instance.tag === 'number') {
// TODO(sema): We've disabled the inspector when using Fiber. Fix #15953531
return null;
}
return instance;
}
function getOwnerHierarchy(instance) {
var hierarchy = [];
traverseOwnerTreeUp(hierarchy, instance);
return hierarchy;
}
function lastNotNativeInstance(hierarchy) {
for (let i = hierarchy.length - 1; i > 1; i--) {
const instance = hierarchy[i];
if (!instance.viewConfig) {
return instance;
}
}
return hierarchy[0];
}
module.exports = {findInstanceByNativeTag, getOwnerHierarchy, lastNotNativeInstance};
| htc2u/react-native | Libraries/Inspector/InspectorUtils.js | JavaScript | bsd-3-clause | 1,329 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Checks the RunMicrotasks event is emitted and nested into RunTask.\n`);
await TestRunner.loadModule('timeline'); await TestRunner.loadTestModule('performance_test_runner');
await TestRunner.showPanel('timeline');
await TestRunner.evaluateInPagePromise(`
var scriptUrl = "timeline-network-resource.js";
function performActions()
{
function promiseResolved()
{
setTimeout(() => {}, 0);
}
return new Promise(fulfill => {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = () => xhr.readyState === 4 ? fulfill() : 0;
xhr.onerror = fulfill;
xhr.open("GET", "../resources/test.webp", true);
xhr.send();
}).then(promiseResolved);
}
`);
await PerformanceTestRunner.invokeAsyncWithTimeline('performActions');
const microTaskEvent = PerformanceTestRunner.mainTrackEvents().find(
e => e.name === TimelineModel.TimelineModel.RecordType.RunMicrotasks);
PerformanceTestRunner.printTraceEventProperties(microTaskEvent);
const nested = PerformanceTestRunner.mainTrackEvents()
.filter(e => e.name === TimelineModel.TimelineModel.RecordType.Task)
.some(e => e.startTime <= microTaskEvent.startTime && microTaskEvent.endTime <= e.endTime);
TestRunner.addResult(`Microtask event is nested into Task event: ${nested}`);
TestRunner.completeTest();
})();
| scheib/chromium | third_party/blink/web_tests/http/tests/devtools/tracing/timeline-js/timeline-microtasks.js | JavaScript | bsd-3-clause | 1,650 |
function save(e, link) {
$.ajax(link.attr("href"), {
success: function(data, textStatus, jqXHR) {
link.hide();
link.closest("tr").addClass("success");
link.closest("tr").find("div.remove").show();
},
error: ajax_error_handler
});
e.preventDefault();
}
function delete_row(e, link) {
$.ajax(link.attr("href"), {
success: function(data, textStatus, jqXHR) {
link.closest("tr").removeClass("success");
link.closest("tr").find(".actions-save").show();
link.closest("div.remove").hide();
},
error: ajax_error_handler
});
e.preventDefault();
}
$(document).ready(function() {
make_active($("#id_employee_profile_automatches_menu"));
$("#id_automatches_table tr").mouseenter(function(e) {
$(this).find(".actions").show();
})
.mouseleave(function(e) {
$(this).find(".actions").hide();
});
$("#id_automatches_table a.actions-save").click(function(e) {
save(e, $(this));
});
$("#id_automatches_table a.remove").click(function(e) {
delete_row(e, $(this));
});
});
| hellhovnd/dentexchange | dentexchange/apps/matches/static/matches/js/posting_automatches.js | JavaScript | bsd-3-clause | 1,161 |
/**
* Copyright 2020 Google Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { isNode } from '../environment.js';
/* Use the global version if we're in the browser, else load the node-fetch module. */
export const getFetch = async () => {
return isNode ? await import('node-fetch') : globalThis.fetch;
};
//# sourceMappingURL=fetch.js.map | ChromeDevTools/devtools-frontend | node_modules/puppeteer/lib/esm/puppeteer/common/fetch.js | JavaScript | bsd-3-clause | 889 |
/*!
* bootstrap 3 modal 封装
*/
(function ($) {
window.BSModal = function () {
var reg = new RegExp("\\[([^\\[\\]]*?)\\]", 'igm');
var generateId = function () {
var date = new Date();
return 'mdl' + date.valueOf();
}
var init = function (options) {
options = $.extend({}, {
title: "操作提示",
content: "提示内容",
btnOK: "确定",
btnOKDismiss: true,
btnOKClass: 'btn-primary',
btnCancel: "取消",
modalClass: '',
width: '',
height: '',
maxHeight: '',
hasFooter: true,
footerContent : '',
afterInit : false,
modalOptions : {
backdrop : 'static'
}
}, options || {});
var modalId = generateId();
var footerHtml = "";
if(options.hasFooter) {
var btnOKDismissHtml = options.btnOKDismiss ? 'data-dismiss="modal"' : '';
var btnClHtml = (typeof options.btnCancel == 'string' && options.btnCancel !="") ? '<button type="button" class="btn btn-default cancel" data-dismiss="modal">[BtnCancel]</button>' : '';
var btnOkHtml = (typeof options.btnOK == 'string' && options.btnOK != "") ? '<button type="button" class="btn ' + options.btnOKClass + ' ok" ' + btnOKDismissHtml +'>[BtnOk]</button>' : '';
var footerContentHtml = (typeof options.footerContent == 'string' && options.footerContent != "") ? options.footerContent : btnClHtml + btnOkHtml;
footerHtml= '<div class="modal-footer">' +
footerContentHtml +
'</div>';
}
var modalHtml = '<div id="[Id]" class="modal ' + options.modalClass + ' fade" role="dialog" aria-labelledby="modalLabel">' +
'<div class="modal-dialog modal-sm">' +
'<div class="modal-content">' +
'<div class="modal-header">' +
'<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>' +
'<h4 class="modal-title" id="modalLabel">[Title]</h4>' +
'</div>' +
'<div class="modal-body">' +
'[modalBodyHtml]' +
'</div>' +
footerHtml +
'</div>' +
'</div>' +
'</div>';
var content = modalHtml.replace(reg, function (node, key) {
return {
Id: modalId,
Title: options.title,
modalBodyHtml: options.content,
BtnOk: options.btnOK,
BtnCancel: options.btnCancel
}[key];
});
$('body').append(content);
var $modal = $('#' + modalId);
$modal.modal(options.modalOptions);
if(typeof options.width == 'string' && options.width != 'auto' && options.width != '') {
$modal.find('.modal-dialog').css('width', options.width);
}
if(typeof options.height == 'string' && options.height != 'auto' && options.height != '') {
$modal.find('.modal-body').css({
'height': options.height,
'overflow': 'auto'
});
}
if(typeof options.maxHeight == 'string' && options.maxHeight != 'auto' && options.maxHeight != '') {
$modal.find('.modal-body').css({
'maxHeight': options.maxHeight,
'overflow': 'auto'
});
}
//移动端统一处理弹窗的宽度高度,选项中定义的宽度、高度、最大高度不在移动端起作用
if(device.mobile()) {
$modal.find('.modal-dialog').css({
'width': 'auto',
'margin': '0.08rem'
});
$modal.find('.modal-body').css({
'height': 'auto',
'maxHeight': 'none',
'overflow': 'auto'
});
}
if (typeof options.afterInit === "function") options.afterInit.apply(this, [$modal]);
$modal.on('hide.bs.modal', function (e) {
$('body').find('#' + modalId).remove();
});
return modalId;
}
return {
alert: function (options) {
if (typeof options == 'string') {
options = {
content: options
};
}
var id = init(options);
var $modal = $('#' + id);
$modal.find('.cancel').hide();
return {
id: id,
on: function (callback) {
if (callback && callback instanceof Function) {
$modal.find('.ok').click(function () { callback(true); });
}
},
hide: function (callback) {
if (callback && callback instanceof Function) {
$modal.on('hide.bs.modal', function (e) {
callback(e);
});
}
}
};
},
confirm: function (options) {
var id = init(options);
var $modal = $('#' + id);
$modal.find('.cancel').show();
return {
id: id,
on: function (callback) {
if (callback && callback instanceof Function) {
$modal.find('.ok').click(function () { callback(true, id); });
$modal.find('.cancel').click(function () { callback(false, id); });
}
},
hide: function (callback) {
if (callback && callback instanceof Function) {
$modal.on('hide.bs.modal', function (e) {
callback(e);
});
}
}
};
}
}
}();
})(jQuery); | Mutueye/MutueyeWeb | src/apps/HaierAdmin/static/js/BSModal.js | JavaScript | mit | 7,097 |
/* eslint-disable no-undef */
import update from 'react/lib/update';
import { mapValues, pickBy } from 'lodash';
import { flow, keyBy, mapValues as mapValuesFp } from 'lodash/fp';
import * as types from '../types';
const cdn = window.location.host.startsWith('pre') || window.location.host.startsWith('localhost')
? 'precdn'
: 'cdn';
export default (state = {}, action) => {
let pkgAssets;
switch (action.type) {
case types.PACKAGE_ASSETS_LOAD_REQUESTED:
pkgAssets = mapValues(action.pkg.assets, item =>
flow(
keyBy(
key =>
action.pkg.local
? `http://localhost:4000/packages/${key}`
: `https://${cdn}.worona.io/packages/${key}`,
),
mapValuesFp(() => false),
)(item));
return update(state, { $merge: { [action.pkg.name]: pkgAssets } });
case types.PACKAGE_ASSETS_UNLOAD_REQUESTED:
return pickBy(state, (value, key) => key !== action.pkg.name);
case types.PACKAGE_ASSET_FILE_DOWNLOADED:
return update(state, {
$merge: { [action.pkgName]: { [action.assetType]: { [action.path]: true } } },
});
default:
return state;
}
};
| worona/worona | client/packages/core-dashboard-worona/src/dashboard/build-dashboard-extension-worona/reducers/assets.js | JavaScript | mit | 1,195 |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'use strict';
const models = require('./index');
/**
* Represents the health state of the stateful service replica, which contains
* the replica id and the aggregated health state.
*
* @extends models['ReplicaHealthState']
*/
class StatefulServiceReplicaHealthState extends models['ReplicaHealthState'] {
/**
* Create a StatefulServiceReplicaHealthState.
* @member {string} [replicaId]
*/
constructor() {
super();
}
/**
* Defines the metadata of StatefulServiceReplicaHealthState
*
* @returns {object} metadata of StatefulServiceReplicaHealthState
*
*/
mapper() {
return {
required: false,
serializedName: 'Stateful',
type: {
name: 'Composite',
className: 'StatefulServiceReplicaHealthState',
modelProperties: {
aggregatedHealthState: {
required: false,
serializedName: 'AggregatedHealthState',
type: {
name: 'String'
}
},
partitionId: {
required: false,
serializedName: 'PartitionId',
type: {
name: 'String'
}
},
serviceKind: {
required: true,
serializedName: 'ServiceKind',
type: {
name: 'String'
}
},
replicaId: {
required: false,
serializedName: 'ReplicaId',
type: {
name: 'String'
}
}
}
}
};
}
}
module.exports = StatefulServiceReplicaHealthState;
| lmazuel/azure-sdk-for-node | lib/services/serviceFabric/lib/models/statefulServiceReplicaHealthState.js | JavaScript | mit | 1,913 |
// Copyright: All contributers to the Umple Project
// This file is made available subject to the open source license found at:
// http://umple.org/license
//
// Models history (undo stack) in UmpleOnline
History = new Object();
// History item currently on display; -1 means nothing saved.
History.currentIndex = -1;
// Initially there is nothing saved.
History.oldestAvailableIndex = 0;
History.newestAvailableIndex = 0;
// capacity of the circular structure; we will reuse after cycling through
History.versionCount = 9999;
History.noChange = "//$?[No_Change]$?";
// Initially nothing is saved.
History.firstSave = true;
// Returns the version that had been saved; called when moving forward
// using a 'redo' operation; called from Action.redo
History.getNextVersion = function()
{
Page.enablePaletteItem("buttonUndo", true);
var result;
if (!History.FirstSave && History.newestAvailableIndex != History.currentIndex)
{
History.currentIndex = History.incrementIndex(History.currentIndex);
// Page.catFeedbackMessage("Set history for next to " + History.currentIndex); // DEBUG
result = History.getVersion(History.currentIndex);
if (result == undefined) result = History.noChange;
}
else
{
result = History.noChange;
}
if (History.newestAvailableIndex == History.currentIndex)
{
Page.enablePaletteItem("buttonRedo", false);
}
return result;
}
// Returns the previously saved version in the undo stack
// Moves the pointer back in the undo stack
// Called from Action.undo and also from save in the case of an apparent undo
History.getPreviousVersion = function()
{
var result;
if (!History.FirstSave && History.oldestAvailableIndex != History.currentIndex)
{
History.currentIndex = History.decrementIndex(History.currentIndex);
// Page.catFeedbackMessage("Set history back to " + History.currentIndex); // DEBUG
result = History.getVersion(History.currentIndex);
if (result == undefined) result = History.noChange;
else Page.enablePaletteItem("buttonRedo", true);
}
else
{
// No previously saved versions
result = History.noChange;
}
if (History.oldestAvailableIndex == History.currentIndex)
{
Page.enablePaletteItem("buttonUndo", false);
}
return result;
}
// Save a new version of the code
History.save = function(umpleCode, reason)
{
if (!History.firstSave)
{
// Whenever we save we set the highest saved index
// So we can't redo
Page.enablePaletteItem("buttonRedo", false);
Page.enablePaletteItem("buttonUndo", true);
}
var gap = History.distanceBetween(History.oldestAvailableIndex, History.currentIndex);
if (gap == History.versionCount - 1)
{
History.oldestAvailableIndex = History.incrementIndex(History.oldestAvailableIndex);
}
History.currentIndex = History.incrementIndex(History.currentIndex);
// Page.catFeedbackMessage("Set history for new to " + History.currentIndex + " " + reason);// DEBUG
History.newestAvailableIndex = History.currentIndex;
History.setVersion(History.currentIndex, umpleCode);
if(History.firstSave) {
History.firstSave = false;
}
}
// Find the previous index of a saved item, this
// is simply by decrementing, except if we hit zero, in which case we
// cycle back around from versionCount.
// The result may be 'invalid' in that nothing may have bet been stored there
History.decrementIndex = function(index)
{
var result;
if (index == 0)
{
result = History.versionCount - 1;
}
else
{
result = index - 1;
}
return result;
}
// Find the next index above the argument; loop around to zero
// if we exceed versionCount since we are using a circular structure
// The result may be 'invalid' in that nothing may have bet been stored there
History.incrementIndex = function(index)
{
var result = (index + 1) % History.versionCount;
return result;
}
// Retrieve the index with version versionNumber
History.getVersion = function(versionNumber)
{
var selector = "#" + "textEditorColumn";
var requested = "version" + versionNumber;
return jQuery(selector).data(requested);
}
// Store a new version with index versionNumber
History.setVersion = function(versionNumber, umpleCode)
{
var selector = "#" + "textEditorColumn";
var requested = "version" + versionNumber;
return jQuery(selector).data(requested, umpleCode);
}
History.distanceBetween = function(index1, index2)
{
if (History.currentIndex == -1) return 0;
var distance = 0;
var i = index1;
while (i != index2)
{
i = History.incrementIndex(i);
distance += 1;
}
return distance;
} | ahmedvc/umple | umpleonline/scripts/umple_history.js | JavaScript | mit | 4,793 |
/**
* @fileoverview 管道对象,包含过滤规则和被过滤的数据,作为数据树的节点
* @authors Tony Liang <[email protected]>
*/
define('mods/model/pipe',function(require,exports,module){
var $ = require('lib');
var $model = require('lib/mvc/model');
var $tip = require('mods/dialog/tip');
var $channel = require('mods/channel/global');
var $getDataModel = require('mods/util/getDataModel');
var $delay = require('lib/kit/func/delay');
var $contains = require('lib/kit/arr/contains');
var Pipe = $model.extend({
defaults : {
type : 'pipe',
name : '',
data : null,
source : null,
state : 'prepare',
ready : false,
filter : null
},
events : {
//数据源变更时需要计算
'change:source' : 'compute',
//过滤器变更时需要计算
'change:filter' : 'compute',
'change:ready' : 'checkReady',
},
build : function(){
this.compute = $delay(this.compute, 10);
this.executeCompute = $delay(this.executeCompute, 10);
this.checkPrepare();
this.checkUpdate();
this.checkReady();
},
setEvents : function(action){
var proxy = this.proxy();
this.delegate(action);
$channel[action]('data-prepare', proxy('checkPrepare'));
$channel[action]('data-ready', proxy('checkUpdate'));
},
setConf : function(options){
this.set(options);
},
//检查数据是否准备完毕,准备完毕后要发送广播通知关联组件更新数据
checkReady : function(){
if(this.isReady()){
$channel.trigger('data-ready', this.get('name'));
}else{
$channel.trigger('data-prepare', this.get('name'));
}
},
isReady : function(){
return !!this.get('ready');
},
//检查是否要将自己变更为数据准备中状态
checkPrepare : function(name){
if(name === this.get('name')){return;}
var requiredPath = this.getRequiredPath();
if(name){
if($contains(requiredPath, name)){
this.set('ready', false);
this.set('state', 'prepare');
}else{
//do nothing
}
}else{
this.set('ready', false);
this.set('state', 'prepare');
}
},
//检查是否要更新自己的数据
checkUpdate : function(name){
if(name === this.get('name')){return;}
var requiredPath = this.getRequiredPath();
if(name){
if($contains(requiredPath, name)){
this.checkCompute();
}else{
//do nothing
}
}else{
this.checkCompute();
}
},
//检查是否可以进行数据计算
checkCompute : function(){
var requiredPath = this.getRequiredPath();
var allReady = requiredPath.every(function(name){
var requiredModel = $getDataModel(name);
return requiredModel ? requiredModel.isReady() : false;
});
if(allReady){
this.compute();
}
},
//根据用户设置的源数据表单项,获取源数据列表
getRequiredPath : function(){
var source = this.get('source');
if(source){
return Object.keys(source).map(function(key){
return source[key];
});
}else{
return [];
}
},
//使用多线程计算
runWithWorker : function(){
var that = this;
var source = this.get('source');
var filter = this.get('filter');
var code = [];
code = code.concat([
'onmessage = function(e){',
' postMessage(',
' (function(' + Object.keys(source).join(',') + '){',
filter,
' })(' +
Object.keys(source).map(function(name){
return 'e.data["' + name + '"]';
}).join(',') + ')',
' );',
' self.close();',
'};'
]);
var blob = new Blob(code, {type: "text/javascript;charset=UTF-8"});
var url = window.URL.createObjectURL(blob);
var worker = new Worker(url);
worker.onerror = function(e){
worker.terminate();
console.error(that.get('type') + ' ' + that.get('name') + ' compute error:', e.message);
that.set('data', null);
that.set('state', 'error');
that.set('ready', true);
};
worker.onmessage = function(e){
worker.terminate();
that.set('data', e.data);
that.set('state', 'success');
that.set('ready', true);
};
var rs = {};
$.each(source, function(name, path){
var smodel = $getDataModel(path);
if(smodel){
rs[name] = smodel.get(true, 'data');
}else{
rs[name] = null;
}
});
worker.postMessage(rs);
},
//不使用多线程计算
runWithoutWorker : function(){
var that = this;
var source = this.get('source');
var filter = this.get('filter');
var code = [];
var args = [];
var data;
Object.keys(source).forEach(function(name, index){
code.push('var ' + name + ' = arguments[' + index + '];');
var smodel = $getDataModel(source[name]);
if(smodel){
args.push(smodel.get('data'));
}else{
args.push(null);
}
});
code = code.join('\n') + '\n';
code = code + filter;
setTimeout(function(){
try{
var fn = new Function(code);
data = fn.apply(that, args);
if(data){
that.set('data', data);
that.set('state', 'success');
}else{
that.set('data', null);
that.set('state', 'error');
}
}catch(e){
console.error(this.get('type') + ' ' + that.get('name') + ' compute error:', e.message);
that.set('data', null);
that.set('state', 'error');
}finally{
that.set('ready', true);
}
});
},
executeCompute : function(){
var that = this;
var source = this.get('source');
var filter = this.get('filter');
var requiredPath = this.getRequiredPath();
var data;
var sourceModel;
if($.type(source) !== 'object'){
this.set('data', null);
this.set('state', 'error');
this.set('ready', true);
}else{
if(requiredPath.length){
if(!filter){
sourceModel = $getDataModel(requiredPath[0]);
if(sourceModel){
data = sourceModel.get('data');
}
if(data){
this.set('data', data);
this.set('state', 'success');
}else{
this.set('data', null);
this.set('state', 'error');
}
this.set('ready', true);
}else{
if(window.Worker){
this.runWithWorker();
}else{
this.runWithoutWorker();
}
}
}else{
this.set('data', null);
this.set('state', 'error');
this.set('ready', true);
}
}
},
//计算经过自己的过滤器过滤的数据
compute : function(){
this.set('ready', false);
this.set('state', 'prepare');
this.checkReady();
this.executeCompute();
}
});
module.exports = Pipe;
});
| Esoul/log-analysis | src/js/mods/model/pipe.js | JavaScript | mit | 6,524 |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const path = require("path")
const jade = require("jade")
const fs = require("fs")
describe("templates", function () {
const render = function (template, options) {
const file = path.resolve(__dirname, `../${template}.jade`)
return jade.render(fs.readFileSync(file).toString(), options)
}
describe("pre-rendered template", function () {
before(function () {
const facet = { facetName: "some-parameter", displayName: "Things" }
return (this.el = render("template", { facet }))
})
it("assigns correct class", function () {
return this.el.should.containEql(
'<div class="partners-facet-dropdown filter-partners-dropdown dropdown-some-parameter">'
)
})
it("assigns initial placeholder", function () {
return this.el.should.containEql(
'<input placeholder="All Things" class="partners-facet-input no-selection"/>'
)
})
return it("renders correct search icon", function () {
return this.el.should.containEql('<span class="icon-chevron-down">')
})
})
describe("suggestion template", function () {
it("renders an item with no count specified", function () {
const item = { name: "Foo Bar", id: "some-id" }
const el = render("suggestion", { item })
return el.should.equal(
'<a class="js-partner-filter partner-search-filter-item">Foo Bar</a>'
)
})
it("renders an item with a count of zero", function () {
const item = { name: "Foo Bar", id: "some-id", count: 0 }
const el = render("suggestion", { item })
return el.should.equal(
'<a class="js-partner-filter partner-search-filter-item is-disabled">Foo Bar (0)</a>'
)
})
return it("renders an item with a results count", function () {
const item = { name: "Foo Bar", id: "some-id", count: 1 }
const el = render("suggestion", { item })
return el.should.equal(
'<a class="js-partner-filter partner-search-filter-item">Foo Bar (1)</a>'
)
})
})
return describe("search facet", function () {
before(function () {
const facet = {
facetName: "some-parameter",
displayName: "Things",
search: true,
}
return (this.el = render("template", { facet }))
})
it("assigns correct class", function () {
return this.el.should.containEql(
'<div class="partners-facet-dropdown filter-partners-dropdown dropdown-some-parameter">'
)
})
it("assigns initial placeholder", function () {
return this.el.should.containEql(
'<input placeholder="All Things" class="partners-facet-input no-selection"/>'
)
})
return it("renders correct search icon", function () {
return this.el.should.containEql('<span class="icon-search">')
})
})
})
| joeyAghion/force | src/desktop/apps/galleries_institutions/components/dropdown/test/templates.test.js | JavaScript | mit | 3,005 |
// Github: https://github.com/shdwjk/Roll20API/blob/master/DarknessClosingIn/DarknessClosingIn.js
// By: The Aaron, Arcane Scriptomancer
// Contact: https://app.roll20.net/users/104025/the-aaron
var DarknessClosingIn = DarknessClosingIn || (function() {
'use strict';
var version = 0.1,
schemaVersion = 0.1,
checkInstall = function() {
if( ! _.has(state,'DarknessClosingIn') || state.DarknessClosingIn.version !== schemaVersion) {
log('DarknessClosingIn: Resetting state');
state.DarknessClosingIn = {
version: schemaVersion,
gettingDarker: false
};
}
},
handleInput = function(msg) {
var args;
if (msg.type !== "api" || ! isGM(msg.playerid) ) {
return;
}
args = msg.content.split(/\s+/);
switch(args[0]) {
case '!DarknessClosingIn':
state.DarknessClosingIn.gettingDarker = ! state.DarknessClosingIn.gettingDarker;
sendChat('','/w gm ' + ( state.DarknessClosingIn.gettingDarker ? 'Darkness is now closing in.' : 'Darkness is no longer closing in.' ) );
break;
}
},
gettingDarker = function(obj, prev) {
if( state.DarknessClosingIn.gettingDarker
&& (
obj.get("left") !== prev.left
|| obj.get("top") !== prev.top
)
) {
obj.set({
light_radius: Math.floor(obj.get("light_radius") * 0.90)
});
}
},
registerEventHandlers = function() {
on('chat:message', handleInput);
on("change:token", gettingDarker);
};
return {
CheckInstall: checkInstall,
RegisterEventHandlers: registerEventHandlers
};
}());
on('ready',function() {
'use strict';
if("undefined" !== typeof isGM && _.isFunction(isGM)) {
DarknessClosingIn.CheckInstall();
DarknessClosingIn.RegisterEventHandlers();
} else {
log('--------------------------------------------------------------');
log('DarknessClosingIn requires the isGM module to work.');
log('isGM GIST: https://gist.github.com/shdwjk/8d5bb062abab18463625');
log('--------------------------------------------------------------');
}
});
| maekstr/roll20-api-scripts | DarknessClosingIn/DarknessClosingIn.js | JavaScript | mit | 2,062 |
/**
* Default model configuration
* (sails.config.models)
*
* Unless you override them, the following properties will be included
* in each of your models.
*
* For more info on Sails models, see:
* http://sailsjs.org/#/documentation/concepts/ORM
*/
module.exports.models = {
/***************************************************************************
* *
* Your app's default connection. i.e. the name of one of your app's *
* connections (see `config/connections.js`) *
* *
***************************************************************************/
connection: 'localMongo',
/***************************************************************************
* *
* How and whether Sails will attempt to automatically rebuild the *
* tables/collections/etc. in your schema. *
* *
* See http://sailsjs.org/#/documentation/concepts/ORM/model-settings.html *
* *
***************************************************************************/
migrate: 'safe'
};
| timkendall/vigil | config/models.js | JavaScript | mit | 1,443 |
import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationNetworkLocked = (props) => (
<SvgIcon {...props}>
<path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 14.5V16c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-4c0-.55-.45-1-1-1zm-1 0h-3v-1.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V16z"/>
</SvgIcon>
);
NotificationNetworkLocked.displayName = 'NotificationNetworkLocked';
NotificationNetworkLocked.muiName = 'SvgIcon';
export default NotificationNetworkLocked;
| alvarolobato/blueocean-plugin | jenkins-design-language/src/js/components/material-ui/svg-icons/notification/network-locked.js | JavaScript | mit | 597 |
define([
'ufojs/main'
, 'ufojs/errors'
, 'ufojs/ufoLib/filenames'
, 'ufojs/ufoLib/validators'
, 'ufojs/ufoLib/glifLib/misc'],
function(
main
, errors
, filenames
, validators
, misc
) {
"use strict";
doh.register("ufoLib.glifLib.misc", [
/**
* this wraps ufoLib/filenames.userNameToFileName which is already tested
* so here is just a short check
*/
function Test_glyphNameToFileName() {
var glyphSet = {
contents: {}
}
, glyphName = 'a'
, resultA
, resultB
, i = 10
;
for(;i>0;i--) {
resultA = filenames.userNameToFileName(glyphName,
glyphSet.contents, '', '.glif');
resultB = misc.glyphNameToFileName(glyphName, glyphSet)
doh.assertEqual(resultA, resultB);
// create new clashes each iteration
glyphSet.contents[resultA] = null;
}
}
, function Test_validateLayerInfoVersion3ValueForAttribute() {
doh.assertFalse(misc.validateLayerInfoVersion3ValueForAttribute('made-up', 1))
// this uses ufoLib.validators.genericTypeValidator
doh.assertTrue(misc.validateLayerInfoVersion3ValueForAttribute('lib', {}))
doh.assertFalse(misc.validateLayerInfoVersion3ValueForAttribute('lib', 1))
doh.assertFalse(misc.validateLayerInfoVersion3ValueForAttribute('lib', false))
// this uses ufoLib.validators.colorValidator, so just a rough check here:
//good
doh.assertTrue(misc.validateLayerInfoVersion3ValueForAttribute('color','1,1,1,1'))
doh.assertTrue(misc.validateLayerInfoVersion3ValueForAttribute('color','1,0,0,0'))
// may not be > 1
doh.assertFalse(misc.validateLayerInfoVersion3ValueForAttribute('color', '1,0,0,2'))
// missing comma
doh.assertFalse(misc.validateLayerInfoVersion3ValueForAttribute('color', '1,1,1 1'))
// something else
doh.assertFalse(misc.validateLayerInfoVersion3ValueForAttribute('color', [1,2,3,4]))
}
, function Test_validateLayerInfoVersion3Data() {
var infoData, result;
infoData = {
'made-up': 1000
}
doh.assertError(
errors.GlifLib,
misc, 'validateLayerInfoVersion3Data',
[infoData],
'unknown attribute'
);
infoData = {};
doh.assertEqual(infoData, misc.validateLayerInfoVersion3Data(infoData))
infoData = {
'color': '1 1 1 1',
};
doh.assertError(
errors.GlifLib,
misc, 'validateLayerInfoVersion3Data',
[infoData],
'invalid value for attribute'
);
infoData.color = '0,.7,.1,1';
doh.assertEqual(infoData, misc.validateLayerInfoVersion3Data(infoData))
infoData.lib = undefined;
doh.assertError(
errors.GlifLib,
misc, 'validateLayerInfoVersion3Data',
[infoData],
'invalid value for attribute'
);
infoData.lib = {answer: 42};
doh.assertEqual(infoData, misc.validateLayerInfoVersion3Data(infoData))
delete infoData.color;
doh.assertEqual(infoData, misc.validateLayerInfoVersion3Data(infoData))
// validateLayerInfoVersion3Data copies the values to a new object
result = misc.validateLayerInfoVersion3Data(infoData);
doh.assertFalse(result === infoData)
}
])
});
| moyogo/ufoJS | tests/ufoLib/glifLib/misc.js | JavaScript | mit | 3,610 |
/* jshint maxlen: false */
var ca = require('../client_action');
var api = module.exports = {};
api._namespaces = ['cat', 'cluster', 'indices', 'nodes', 'snapshot'];
/**
* Perform a [abortBenchmark](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.name - A benchmark name
*/
api.abortBenchmark = ca({
url: {
fmt: '/_bench/abort/<%=name%>',
req: {
name: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [bulk](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {Boolean} params.refresh - Refresh the index after performing the operation
* @param {String} [params.replication=sync] - Explicitely set the replication type
* @param {String} params.routing - Specific routing value
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {String} params.type - Default document type for items which don't provide one
* @param {String} params.index - Default index for items which don't provide one
*/
api.bulk = ca({
params: {
consistency: {
type: 'enum',
options: [
'one',
'quorum',
'all'
]
},
refresh: {
type: 'boolean'
},
replication: {
type: 'enum',
'default': 'sync',
options: [
'sync',
'async'
]
},
routing: {
type: 'string'
},
timeout: {
type: 'time'
},
type: {
type: 'string'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_bulk',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
}
}
},
{
fmt: '/<%=index%>/_bulk',
req: {
index: {
type: 'string'
}
}
},
{
fmt: '/_bulk'
}
],
needBody: true,
bulkBody: true,
method: 'POST'
});
api.cat = function CatNS(transport) {
this.transport = transport;
};
/**
* Perform a [cat.aliases](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
* @param {String, String[], Boolean} params.name - A comma-separated list of alias names to return
*/
api.cat.prototype.aliases = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
urls: [
{
fmt: '/_cat/aliases/<%=name%>',
req: {
name: {
type: 'list'
}
}
},
{
fmt: '/_cat/aliases'
}
]
});
/**
* Perform a [cat.allocation](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.bytes - The unit in which to display byte values
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
* @param {String, String[], Boolean} params.nodeId - A comma-separated list of node IDs or names to limit the returned information
*/
api.cat.prototype.allocation = ca({
params: {
bytes: {
type: 'enum',
options: [
'b',
'k',
'm',
'g'
]
},
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
urls: [
{
fmt: '/_cat/allocation/<%=nodeId%>',
req: {
nodeId: {
type: 'list'
}
}
},
{
fmt: '/_cat/allocation'
}
]
});
/**
* Perform a [cat.count](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to limit the returned information
*/
api.cat.prototype.count = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
urls: [
{
fmt: '/_cat/count/<%=index%>',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_cat/count'
}
]
});
/**
* Perform a [cat.fielddata](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-fielddata.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.bytes - The unit in which to display byte values
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields to return the fielddata size
*/
api.cat.prototype.fielddata = ca({
params: {
bytes: {
type: 'enum',
options: [
'b',
'k',
'm',
'g'
]
},
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
},
fields: {
type: 'list'
}
},
urls: [
{
fmt: '/_cat/fielddata/<%=fields%>',
req: {
fields: {
type: 'list'
}
}
},
{
fmt: '/_cat/fielddata'
}
]
});
/**
* Perform a [cat.health](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} [params.ts=true] - Set to false to disable timestamping
* @param {Boolean} params.v - Verbose mode. Display column headers
*/
api.cat.prototype.health = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
ts: {
type: 'boolean',
'default': true
},
v: {
type: 'boolean',
'default': false
}
},
url: {
fmt: '/_cat/health'
}
});
/**
* Perform a [cat.help](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.help - Return help information
*/
api.cat.prototype.help = ca({
params: {
help: {
type: 'boolean',
'default': false
}
},
url: {
fmt: '/_cat'
}
});
/**
* Perform a [cat.indices](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.bytes - The unit in which to display byte values
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.pri - Set to true to return stats only for primary shards
* @param {Boolean} params.v - Verbose mode. Display column headers
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to limit the returned information
*/
api.cat.prototype.indices = ca({
params: {
bytes: {
type: 'enum',
options: [
'b',
'k',
'm',
'g'
]
},
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
pri: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
urls: [
{
fmt: '/_cat/indices/<%=index%>',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_cat/indices'
}
]
});
/**
* Perform a [cat.master](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
*/
api.cat.prototype.master = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
url: {
fmt: '/_cat/master'
}
});
/**
* Perform a [cat.nodes](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
*/
api.cat.prototype.nodes = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
url: {
fmt: '/_cat/nodes'
}
});
/**
* Perform a [cat.pendingTasks](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
*/
api.cat.prototype.pendingTasks = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
url: {
fmt: '/_cat/pending_tasks'
}
});
/**
* Perform a [cat.plugins](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-plugins.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
*/
api.cat.prototype.plugins = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
url: {
fmt: '/_cat/plugins'
}
});
/**
* Perform a [cat.recovery](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.bytes - The unit in which to display byte values
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to limit the returned information
*/
api.cat.prototype.recovery = ca({
params: {
bytes: {
type: 'enum',
options: [
'b',
'k',
'm',
'g'
]
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
urls: [
{
fmt: '/_cat/recovery/<%=index%>',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_cat/recovery'
}
]
});
/**
* Perform a [cat.shards](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to limit the returned information
*/
api.cat.prototype.shards = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
}
},
urls: [
{
fmt: '/_cat/shards/<%=index%>',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_cat/shards'
}
]
});
/**
* Perform a [cat.threadPool](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String, String[], Boolean} params.h - Comma-separated list of column names to display
* @param {Boolean} params.help - Return help information
* @param {Boolean} params.v - Verbose mode. Display column headers
* @param {Boolean} params.fullId - Enables displaying the complete node ids
*/
api.cat.prototype.threadPool = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
h: {
type: 'list'
},
help: {
type: 'boolean',
'default': false
},
v: {
type: 'boolean',
'default': false
},
fullId: {
type: 'boolean',
'default': false,
name: 'full_id'
}
},
url: {
fmt: '/_cat/thread_pool'
}
});
/**
* Perform a [clearScroll](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String, String[], Boolean} params.scrollId - A comma-separated list of scroll IDs to clear
*/
api.clearScroll = ca({
urls: [
{
fmt: '/_search/scroll/<%=scrollId%>',
req: {
scrollId: {
type: 'list'
}
}
},
{
fmt: '/_search/scroll'
}
],
method: 'DELETE'
});
api.cluster = function ClusterNS(transport) {
this.transport = transport;
};
/**
* Perform a [cluster.getSettings](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.flatSettings - Return settings in flat format (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {Date, Number} params.timeout - Explicit operation timeout
*/
api.cluster.prototype.getSettings = ca({
params: {
flatSettings: {
type: 'boolean',
name: 'flat_settings'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
timeout: {
type: 'time'
}
},
url: {
fmt: '/_cluster/settings'
}
});
/**
* Perform a [cluster.health](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} [params.level=cluster] - Specify the level of detail for returned information
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Number} params.waitForActiveShards - Wait until the specified number of shards is active
* @param {String} params.waitForNodes - Wait until the specified number of nodes is available
* @param {Number} params.waitForRelocatingShards - Wait until the specified number of relocating shards is finished
* @param {String} params.waitForStatus - Wait until cluster is in a specific state
* @param {String} params.index - Limit the information returned to a specific index
*/
api.cluster.prototype.health = ca({
params: {
level: {
type: 'enum',
'default': 'cluster',
options: [
'cluster',
'indices',
'shards'
]
},
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
timeout: {
type: 'time'
},
waitForActiveShards: {
type: 'number',
name: 'wait_for_active_shards'
},
waitForNodes: {
type: 'string',
name: 'wait_for_nodes'
},
waitForRelocatingShards: {
type: 'number',
name: 'wait_for_relocating_shards'
},
waitForStatus: {
type: 'enum',
'default': null,
options: [
'green',
'yellow',
'red'
],
name: 'wait_for_status'
}
},
urls: [
{
fmt: '/_cluster/health/<%=index%>',
req: {
index: {
type: 'string'
}
}
},
{
fmt: '/_cluster/health'
}
]
});
/**
* Perform a [cluster.pendingTasks](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
*/
api.cluster.prototype.pendingTasks = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
url: {
fmt: '/_cluster/pending_tasks'
}
});
/**
* Perform a [cluster.putSettings](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.flatSettings - Return settings in flat format (default: false)
*/
api.cluster.prototype.putSettings = ca({
params: {
flatSettings: {
type: 'boolean',
name: 'flat_settings'
}
},
url: {
fmt: '/_cluster/settings'
},
method: 'PUT'
});
/**
* Perform a [cluster.reroute](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.dryRun - Simulate the operation only and return the resulting state
* @param {Boolean} params.explain - Return an explanation of why the commands can or cannot be executed
* @param {Boolean} params.filterMetadata - Don't return cluster state metadata (default: false)
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {Date, Number} params.timeout - Explicit operation timeout
*/
api.cluster.prototype.reroute = ca({
params: {
dryRun: {
type: 'boolean',
name: 'dry_run'
},
explain: {
type: 'boolean'
},
filterMetadata: {
type: 'boolean',
name: 'filter_metadata'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
timeout: {
type: 'time'
}
},
url: {
fmt: '/_cluster/reroute'
},
method: 'POST'
});
/**
* Perform a [cluster.state](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {Boolean} params.flatSettings - Return settings in flat format (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
* @param {String, String[], Boolean} params.metric - Limit the information returned to the specified metrics
*/
api.cluster.prototype.state = ca({
params: {
local: {
type: 'boolean'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
flatSettings: {
type: 'boolean',
name: 'flat_settings'
}
},
urls: [
{
fmt: '/_cluster/state/<%=metric%>/<%=index%>',
req: {
metric: {
type: 'list',
options: [
'_all',
'blocks',
'metadata',
'nodes',
'routing_table',
'master_node',
'version'
]
},
index: {
type: 'list'
}
}
},
{
fmt: '/_cluster/state/<%=metric%>',
req: {
metric: {
type: 'list',
options: [
'_all',
'blocks',
'metadata',
'nodes',
'routing_table',
'master_node',
'version'
]
}
}
},
{
fmt: '/_cluster/state'
}
]
});
/**
* Perform a [cluster.stats](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.flatSettings - Return settings in flat format (default: false)
* @param {Boolean} params.human - Whether to return time and byte values in human-readable format.
* @param {String, String[], Boolean} params.nodeId - A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
*/
api.cluster.prototype.stats = ca({
params: {
flatSettings: {
type: 'boolean',
name: 'flat_settings'
},
human: {
type: 'boolean',
'default': false
}
},
urls: [
{
fmt: '/_cluster/stats/nodes/<%=nodeId%>',
req: {
nodeId: {
type: 'list'
}
}
},
{
fmt: '/_cluster/stats'
}
]
});
/**
* Perform a [count](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Number} params.minScore - Include only documents with a specific `_score` value in the result
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String} params.routing - Specific routing value
* @param {String} params.source - The URL-encoded query definition (instead of using the request body)
* @param {String, String[], Boolean} params.index - A comma-separated list of indices to restrict the results
* @param {String, String[], Boolean} params.type - A comma-separated list of types to restrict the results
*/
api.count = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
minScore: {
type: 'number',
name: 'min_score'
},
preference: {
type: 'string'
},
routing: {
type: 'string'
},
source: {
type: 'string'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_count',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_count',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_count'
}
],
method: 'POST'
});
/**
* Perform a [countPercolate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String, String[], Boolean} params.routing - A comma-separated list of specific routing values
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} params.percolateIndex - The index to count percolate the document into. Defaults to index.
* @param {String} params.percolateType - The type to count percolate document into. Defaults to type.
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {String} params.index - The index of the document being count percolated.
* @param {String} params.type - The type of the document being count percolated.
* @param {String} params.id - Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster.
*/
api.countPercolate = ca({
params: {
routing: {
type: 'list'
},
preference: {
type: 'string'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
percolateIndex: {
type: 'string',
name: 'percolate_index'
},
percolateType: {
type: 'string',
name: 'percolate_type'
},
version: {
type: 'number'
},
versionType: {
type: 'enum',
options: [
'internal',
'external',
'external_gte',
'force'
],
name: 'version_type'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/<%=id%>/_percolate/count',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
},
{
fmt: '/<%=index%>/<%=type%>/_percolate/count',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
}
}
}
],
method: 'POST'
});
/**
* Perform a [delete](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Specific write consistency setting for the operation
* @param {String} params.parent - ID of parent document
* @param {Boolean} params.refresh - Refresh the index after performing the operation
* @param {String} [params.replication=sync] - Specific replication type
* @param {String} params.routing - Specific routing value
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {String} params.id - The document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
*/
api['delete'] = ca({
params: {
consistency: {
type: 'enum',
options: [
'one',
'quorum',
'all'
]
},
parent: {
type: 'string'
},
refresh: {
type: 'boolean'
},
replication: {
type: 'enum',
'default': 'sync',
options: [
'sync',
'async'
]
},
routing: {
type: 'string'
},
timeout: {
type: 'time'
},
version: {
type: 'number'
},
versionType: {
type: 'enum',
options: [
'internal',
'external',
'external_gte',
'force'
],
name: 'version_type'
}
},
url: {
fmt: '/<%=index%>/<%=type%>/<%=id%>',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
},
method: 'DELETE'
});
/**
* Perform a [deleteByQuery](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.analyzer - The analyzer to use for the query string
* @param {String} params.consistency - Specific write consistency setting for the operation
* @param {String} [params.defaultOperator=OR] - The default operator for query string query (AND or OR)
* @param {String} params.df - The field to use as default where no field prefix is given in the query string
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} [params.replication=sync] - Specific replication type
* @param {String} params.q - Query in the Lucene query string syntax
* @param {String} params.routing - Specific routing value
* @param {String} params.source - The URL-encoded query definition (instead of using the request body)
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {String, String[], Boolean} params.index - A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices
* @param {String, String[], Boolean} params.type - A comma-separated list of types to restrict the operation
*/
api.deleteByQuery = ca({
params: {
analyzer: {
type: 'string'
},
consistency: {
type: 'enum',
options: [
'one',
'quorum',
'all'
]
},
defaultOperator: {
type: 'enum',
'default': 'OR',
options: [
'AND',
'OR'
],
name: 'default_operator'
},
df: {
type: 'string'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
replication: {
type: 'enum',
'default': 'sync',
options: [
'sync',
'async'
]
},
q: {
type: 'string'
},
routing: {
type: 'string'
},
source: {
type: 'string'
},
timeout: {
type: 'time'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_query',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_query',
req: {
index: {
type: 'list'
}
}
}
],
method: 'DELETE'
});
/**
* Perform a [deleteScript](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-scripting.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.id - Script ID
* @param {String} params.lang - Script language
*/
api.deleteScript = ca({
url: {
fmt: '/_scripts/<%=lang%>/<%=id%>',
req: {
lang: {
type: 'string'
},
id: {
type: 'string'
}
}
},
method: 'DELETE'
});
/**
* Perform a [deleteTemplate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.id - Template ID
*/
api.deleteTemplate = ca({
url: {
fmt: '/_search/template/<%=id%>',
req: {
id: {
type: 'string'
}
}
},
method: 'DELETE'
});
/**
* Perform a [exists](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.parent - The ID of the parent document
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {Boolean} params.realtime - Specify whether to perform the operation in realtime or search mode
* @param {Boolean} params.refresh - Refresh the shard containing the document before performing the operation
* @param {String} params.routing - Specific routing value
* @param {String} params.id - The document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document (use `_all` to fetch the first document matching the ID across all types)
*/
api.exists = ca({
params: {
parent: {
type: 'string'
},
preference: {
type: 'string'
},
realtime: {
type: 'boolean'
},
refresh: {
type: 'boolean'
},
routing: {
type: 'string'
}
},
url: {
fmt: '/<%=index%>/<%=type%>/<%=id%>',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
},
method: 'HEAD'
});
/**
* Perform a [explain](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.analyzeWildcard - Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false)
* @param {String} params.analyzer - The analyzer for the query string query
* @param {String} [params.defaultOperator=OR] - The default operator for query string query (AND or OR)
* @param {String} params.df - The default field for query string query (default: _all)
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields to return in the response
* @param {Boolean} params.lenient - Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
* @param {Boolean} params.lowercaseExpandedTerms - Specify whether query terms should be lowercased
* @param {String} params.parent - The ID of the parent document
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String} params.q - Query in the Lucene query string syntax
* @param {String} params.routing - Specific routing value
* @param {String} params.source - The URL-encoded query definition (instead of using the request body)
* @param {String, String[], Boolean} params._source - True or false to return the _source field or not, or a list of fields to return
* @param {String, String[], Boolean} params._sourceExclude - A list of fields to exclude from the returned _source field
* @param {String, String[], Boolean} params._sourceInclude - A list of fields to extract and return from the _source field
* @param {String} params.id - The document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
*/
api.explain = ca({
params: {
analyzeWildcard: {
type: 'boolean',
name: 'analyze_wildcard'
},
analyzer: {
type: 'string'
},
defaultOperator: {
type: 'enum',
'default': 'OR',
options: [
'AND',
'OR'
],
name: 'default_operator'
},
df: {
type: 'string'
},
fields: {
type: 'list'
},
lenient: {
type: 'boolean'
},
lowercaseExpandedTerms: {
type: 'boolean',
name: 'lowercase_expanded_terms'
},
parent: {
type: 'string'
},
preference: {
type: 'string'
},
q: {
type: 'string'
},
routing: {
type: 'string'
},
source: {
type: 'string'
},
_source: {
type: 'list'
},
_sourceExclude: {
type: 'list',
name: '_source_exclude'
},
_sourceInclude: {
type: 'list',
name: '_source_include'
}
},
url: {
fmt: '/<%=index%>/<%=type%>/<%=id%>/_explain',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [get](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields to return in the response
* @param {String} params.parent - The ID of the parent document
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {Boolean} params.realtime - Specify whether to perform the operation in realtime or search mode
* @param {Boolean} params.refresh - Refresh the shard containing the document before performing the operation
* @param {String} params.routing - Specific routing value
* @param {String, String[], Boolean} params._source - True or false to return the _source field or not, or a list of fields to return
* @param {String, String[], Boolean} params._sourceExclude - A list of fields to exclude from the returned _source field
* @param {String, String[], Boolean} params._sourceInclude - A list of fields to extract and return from the _source field
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {String} params.id - The document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document (use `_all` to fetch the first document matching the ID across all types)
*/
api.get = ca({
params: {
fields: {
type: 'list'
},
parent: {
type: 'string'
},
preference: {
type: 'string'
},
realtime: {
type: 'boolean'
},
refresh: {
type: 'boolean'
},
routing: {
type: 'string'
},
_source: {
type: 'list'
},
_sourceExclude: {
type: 'list',
name: '_source_exclude'
},
_sourceInclude: {
type: 'list',
name: '_source_include'
},
version: {
type: 'number'
},
versionType: {
type: 'enum',
options: [
'internal',
'external',
'external_gte',
'force'
],
name: 'version_type'
}
},
url: {
fmt: '/<%=index%>/<%=type%>/<%=id%>',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
}
});
/**
* Perform a [getScript](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-scripting.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.id - Script ID
* @param {String} params.lang - Script language
*/
api.getScript = ca({
url: {
fmt: '/_scripts/<%=lang%>/<%=id%>',
req: {
lang: {
type: 'string'
},
id: {
type: 'string'
}
}
}
});
/**
* Perform a [getSource](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.parent - The ID of the parent document
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {Boolean} params.realtime - Specify whether to perform the operation in realtime or search mode
* @param {Boolean} params.refresh - Refresh the shard containing the document before performing the operation
* @param {String} params.routing - Specific routing value
* @param {String, String[], Boolean} params._source - True or false to return the _source field or not, or a list of fields to return
* @param {String, String[], Boolean} params._sourceExclude - A list of fields to exclude from the returned _source field
* @param {String, String[], Boolean} params._sourceInclude - A list of fields to extract and return from the _source field
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {String} params.id - The document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document; use `_all` to fetch the first document matching the ID across all types
*/
api.getSource = ca({
params: {
parent: {
type: 'string'
},
preference: {
type: 'string'
},
realtime: {
type: 'boolean'
},
refresh: {
type: 'boolean'
},
routing: {
type: 'string'
},
_source: {
type: 'list'
},
_sourceExclude: {
type: 'list',
name: '_source_exclude'
},
_sourceInclude: {
type: 'list',
name: '_source_include'
},
version: {
type: 'number'
},
versionType: {
type: 'enum',
options: [
'internal',
'external',
'external_gte',
'force'
],
name: 'version_type'
}
},
url: {
fmt: '/<%=index%>/<%=type%>/<%=id%>/_source',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
}
});
/**
* Perform a [getTemplate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.id - Template ID
*/
api.getTemplate = ca({
url: {
fmt: '/_search/template/<%=id%>',
req: {
id: {
type: 'string'
}
}
}
});
/**
* Perform a [index](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {String} params.parent - ID of the parent document
* @param {Boolean} params.refresh - Refresh the index after performing the operation
* @param {String} [params.replication=sync] - Specific replication type
* @param {String} params.routing - Specific routing value
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {String} params.id - Document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
*/
api.index = ca({
params: {
consistency: {
type: 'enum',
options: [
'one',
'quorum',
'all'
]
},
opType: {
type: 'enum',
'default': 'index',
options: [
'index',
'create'
],
name: 'op_type'
},
parent: {
type: 'string'
},
refresh: {
type: 'boolean'
},
replication: {
type: 'enum',
'default': 'sync',
options: [
'sync',
'async'
]
},
routing: {
type: 'string'
},
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'duration'
},
version: {
type: 'number'
},
versionType: {
type: 'enum',
options: [
'internal',
'external',
'external_gte',
'force'
],
name: 'version_type'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/<%=id%>',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
},
{
fmt: '/<%=index%>/<%=type%>',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
}
}
}
],
needBody: true,
method: 'POST'
});
api.indices = function IndicesNS(transport) {
this.transport = transport;
};
/**
* Perform a [indices.analyze](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.analyzer - The name of the analyzer to use
* @param {String, String[], Boolean} params.charFilters - A comma-separated list of character filters to use for the analysis
* @param {String} params.field - Use the analyzer configured for this field (instead of passing the analyzer name)
* @param {String, String[], Boolean} params.filters - A comma-separated list of filters to use for the analysis
* @param {String} params.index - The name of the index to scope the operation
* @param {Boolean} params.preferLocal - With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true)
* @param {String} params.text - The text on which the analysis should be performed (when request body is not used)
* @param {String} params.tokenizer - The name of the tokenizer to use for the analysis
* @param {String} [params.format=detailed] - Format of the output
*/
api.indices.prototype.analyze = ca({
params: {
analyzer: {
type: 'string'
},
charFilters: {
type: 'list',
name: 'char_filters'
},
field: {
type: 'string'
},
filters: {
type: 'list'
},
index: {
type: 'string'
},
preferLocal: {
type: 'boolean',
name: 'prefer_local'
},
text: {
type: 'string'
},
tokenizer: {
type: 'string'
},
format: {
type: 'enum',
'default': 'detailed',
options: [
'detailed',
'text'
]
}
},
urls: [
{
fmt: '/<%=index%>/_analyze',
req: {
index: {
type: 'string'
}
}
},
{
fmt: '/_analyze'
}
],
method: 'POST'
});
/**
* Perform a [indices.clearCache](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.fieldData - Clear field data
* @param {Boolean} params.fielddata - Clear field data
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields to clear when using the `field_data` parameter (default: all)
* @param {Boolean} params.filter - Clear filter caches
* @param {Boolean} params.filterCache - Clear filter caches
* @param {Boolean} params.filterKeys - A comma-separated list of keys to clear when using the `filter_cache` parameter (default: all)
* @param {Boolean} params.id - Clear ID caches for parent/child
* @param {Boolean} params.idCache - Clear ID caches for parent/child
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String, String[], Boolean} params.index - A comma-separated list of index name to limit the operation
* @param {Boolean} params.recycler - Clear the recycler cache
*/
api.indices.prototype.clearCache = ca({
params: {
fieldData: {
type: 'boolean',
name: 'field_data'
},
fielddata: {
type: 'boolean'
},
fields: {
type: 'list'
},
filter: {
type: 'boolean'
},
filterCache: {
type: 'boolean',
name: 'filter_cache'
},
filterKeys: {
type: 'boolean',
name: 'filter_keys'
},
id: {
type: 'boolean'
},
idCache: {
type: 'boolean',
name: 'id_cache'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
index: {
type: 'list'
},
recycler: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/_cache/clear',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_cache/clear'
}
],
method: 'POST'
});
/**
* Perform a [indices.close](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} params.index - The name of the index
*/
api.indices.prototype.close = ca({
params: {
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
}
},
url: {
fmt: '/<%=index%>/_close',
req: {
index: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [indices.create](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {String} params.index - The name of the index
*/
api.indices.prototype.create = ca({
params: {
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
url: {
fmt: '/<%=index%>',
req: {
index: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [indices.delete](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {String, String[], Boolean} params.index - A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices
*/
api.indices.prototype['delete'] = ca({
params: {
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
url: {
fmt: '/<%=index%>',
req: {
index: {
type: 'list'
}
}
},
method: 'DELETE'
});
/**
* Perform a [indices.deleteAlias](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.timeout - Explicit timestamp for the document
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {String, String[], Boolean} params.index - A comma-separated list of index names (supports wildcards); use `_all` for all indices
* @param {String, String[], Boolean} params.name - A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices.
*/
api.indices.prototype.deleteAlias = ca({
params: {
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
url: {
fmt: '/<%=index%>/_alias/<%=name%>',
req: {
index: {
type: 'list'
},
name: {
type: 'list'
}
}
},
method: 'DELETE'
});
/**
* Perform a [indices.deleteMapping](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {String, String[], Boolean} params.index - A comma-separated list of index names (supports wildcards); use `_all` for all indices
* @param {String, String[], Boolean} params.type - A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices.
*/
api.indices.prototype.deleteMapping = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
url: {
fmt: '/<%=index%>/<%=type%>/_mapping',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
method: 'DELETE'
});
/**
* Perform a [indices.deleteTemplate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {String} params.name - The name of the template
*/
api.indices.prototype.deleteTemplate = ca({
params: {
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
url: {
fmt: '/_template/<%=name%>',
req: {
name: {
type: 'string'
}
}
},
method: 'DELETE'
});
/**
* Perform a [indices.deleteWarmer](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {String, String[], Boolean} params.name - A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters.
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices.
*/
api.indices.prototype.deleteWarmer = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
name: {
type: 'list'
}
},
url: {
fmt: '/<%=index%>/_warmer/<%=name%>',
req: {
index: {
type: 'list'
},
name: {
type: 'list'
}
}
},
method: 'DELETE'
});
/**
* Perform a [indices.exists](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of indices to check
*/
api.indices.prototype.exists = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
local: {
type: 'boolean'
}
},
url: {
fmt: '/<%=index%>',
req: {
index: {
type: 'list'
}
}
},
method: 'HEAD'
});
/**
* Perform a [indices.existsAlias](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open,closed] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to filter aliases
* @param {String, String[], Boolean} params.name - A comma-separated list of alias names to return
*/
api.indices.prototype.existsAlias = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': [
'open',
'closed'
],
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
local: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/_alias/<%=name%>',
req: {
index: {
type: 'list'
},
name: {
type: 'list'
}
}
},
{
fmt: '/_alias/<%=name%>',
req: {
name: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_alias',
req: {
index: {
type: 'list'
}
}
}
],
method: 'HEAD'
});
/**
* Perform a [indices.existsTemplate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String} params.name - The name of the template
*/
api.indices.prototype.existsTemplate = ca({
params: {
local: {
type: 'boolean'
}
},
url: {
fmt: '/_template/<%=name%>',
req: {
name: {
type: 'string'
}
}
},
method: 'HEAD'
});
/**
* Perform a [indices.existsType](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` to check the types across all indices
* @param {String, String[], Boolean} params.type - A comma-separated list of document types to check
*/
api.indices.prototype.existsType = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
local: {
type: 'boolean'
}
},
url: {
fmt: '/<%=index%>/<%=type%>',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
method: 'HEAD'
});
/**
* Perform a [indices.flush](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.force - Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal)
* @param {Boolean} params.full - If set to true a new index writer is created and settings that have been changed related to the index writer will be refreshed. Note: if a full flush is required for a setting to take effect this will be part of the settings update process and it not required to be executed by the user. (This setting can be considered as internal)
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string for all indices
*/
api.indices.prototype.flush = ca({
params: {
force: {
type: 'boolean'
},
full: {
type: 'boolean'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
}
},
urls: [
{
fmt: '/<%=index%>/_flush',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_flush'
}
],
method: 'POST'
});
/**
* Perform a [indices.getAlias](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to filter aliases
* @param {String, String[], Boolean} params.name - A comma-separated list of alias names to return
*/
api.indices.prototype.getAlias = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
local: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/_alias/<%=name%>',
req: {
index: {
type: 'list'
},
name: {
type: 'list'
}
}
},
{
fmt: '/_alias/<%=name%>',
req: {
name: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_alias',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_alias'
}
]
});
/**
* Perform a [indices.getAliases](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to filter aliases
* @param {String, String[], Boolean} params.name - A comma-separated list of alias names to filter
*/
api.indices.prototype.getAliases = ca({
params: {
timeout: {
type: 'time'
},
local: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/_aliases/<%=name%>',
req: {
index: {
type: 'list'
},
name: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_aliases',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_aliases/<%=name%>',
req: {
name: {
type: 'list'
}
}
},
{
fmt: '/_aliases'
}
]
});
/**
* Perform a [indices.getFieldMapping](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.includeDefaults - Whether the default mapping values should be returned as well
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names
* @param {String, String[], Boolean} params.type - A comma-separated list of document types
* @param {String, String[], Boolean} params.field - A comma-separated list of fields
*/
api.indices.prototype.getFieldMapping = ca({
params: {
includeDefaults: {
type: 'boolean',
name: 'include_defaults'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
local: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/_mapping/<%=type%>/field/<%=field%>',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
},
field: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_mapping/field/<%=field%>',
req: {
index: {
type: 'list'
},
field: {
type: 'list'
}
}
},
{
fmt: '/_mapping/<%=type%>/field/<%=field%>',
req: {
type: {
type: 'list'
},
field: {
type: 'list'
}
}
},
{
fmt: '/_mapping/field/<%=field%>',
req: {
field: {
type: 'list'
}
}
}
]
});
/**
* Perform a [indices.getMapping](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names
* @param {String, String[], Boolean} params.type - A comma-separated list of document types
*/
api.indices.prototype.getMapping = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
local: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/_mapping/<%=type%>',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_mapping',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_mapping/<%=type%>',
req: {
type: {
type: 'list'
}
}
},
{
fmt: '/_mapping'
}
]
});
/**
* Perform a [indices.getSettings](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open,closed] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.flatSettings - Return settings in flat format (default: false)
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
* @param {String, String[], Boolean} params.name - The name of the settings that should be included
*/
api.indices.prototype.getSettings = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': [
'open',
'closed'
],
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
flatSettings: {
type: 'boolean',
name: 'flat_settings'
},
local: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/_settings/<%=name%>',
req: {
index: {
type: 'list'
},
name: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_settings',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_settings/<%=name%>',
req: {
name: {
type: 'list'
}
}
},
{
fmt: '/_settings'
}
]
});
/**
* Perform a [indices.getTemplate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.flatSettings - Return settings in flat format (default: false)
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String} params.name - The name of the template
*/
api.indices.prototype.getTemplate = ca({
params: {
flatSettings: {
type: 'boolean',
name: 'flat_settings'
},
local: {
type: 'boolean'
}
},
urls: [
{
fmt: '/_template/<%=name%>',
req: {
name: {
type: 'string'
}
}
},
{
fmt: '/_template'
}
]
});
/**
* Perform a [indices.getWarmer](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices
* @param {String, String[], Boolean} params.name - The name of the warmer (supports wildcards); leave empty to get all warmers
* @param {String, String[], Boolean} params.type - A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types
*/
api.indices.prototype.getWarmer = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
local: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_warmer/<%=name%>',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
},
name: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_warmer/<%=name%>',
req: {
index: {
type: 'list'
},
name: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_warmer',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_warmer/<%=name%>',
req: {
name: {
type: 'list'
}
}
},
{
fmt: '/_warmer'
}
]
});
/**
* Perform a [indices.open](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=closed] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} params.index - The name of the index
*/
api.indices.prototype.open = ca({
params: {
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'closed',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
}
},
url: {
fmt: '/<%=index%>/_open',
req: {
index: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [indices.optimize](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.flush - Specify whether the index should be flushed after performing the operation (default: true)
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Number} params.maxNumSegments - The number of segments the index should be merged into (default: dynamic)
* @param {Boolean} params.onlyExpungeDeletes - Specify whether the operation should only expunge deleted documents
* @param {Anything} params.operationThreading - TODO: ?
* @param {Boolean} params.waitForMerge - Specify whether the request should block until the merge process is finished (default: true)
* @param {Boolean} params.force - Force a merge operation to run, even if there is a single segment in the index (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
api.indices.prototype.optimize = ca({
params: {
flush: {
type: 'boolean'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
maxNumSegments: {
type: 'number',
name: 'max_num_segments'
},
onlyExpungeDeletes: {
type: 'boolean',
name: 'only_expunge_deletes'
},
operationThreading: {
name: 'operation_threading'
},
waitForMerge: {
type: 'boolean',
name: 'wait_for_merge'
},
force: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/_optimize',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_optimize'
}
],
method: 'POST'
});
/**
* Perform a [indices.putAlias](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.timeout - Explicit timestamp for the document
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {String, String[], Boolean} params.index - A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices.
* @param {String} params.name - The name of the alias to be created or updated
*/
api.indices.prototype.putAlias = ca({
params: {
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
urls: [
{
fmt: '/<%=index%>/_alias/<%=name%>',
req: {
index: {
type: 'list'
},
name: {
type: 'string'
}
}
},
{
fmt: '/_alias/<%=name%>',
req: {
name: {
type: 'string'
}
}
}
],
method: 'PUT'
});
/**
* Perform a [indices.putMapping](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreConflicts - Specify whether to ignore conflicts while updating the mapping (default: false)
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String, String[], Boolean} params.index - A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices.
* @param {String} params.type - The name of the document type
*/
api.indices.prototype.putMapping = ca({
params: {
ignoreConflicts: {
type: 'boolean',
name: 'ignore_conflicts'
},
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
}
},
urls: [
{
fmt: '/<%=index%>/_mapping/<%=type%>',
req: {
index: {
type: 'list'
},
type: {
type: 'string'
}
}
},
{
fmt: '/_mapping/<%=type%>',
req: {
type: {
type: 'string'
}
}
}
],
needBody: true,
method: 'PUT'
});
/**
* Perform a [indices.putSettings](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.flatSettings - Return settings in flat format (default: false)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
api.indices.prototype.putSettings = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
flatSettings: {
type: 'boolean',
name: 'flat_settings'
}
},
urls: [
{
fmt: '/<%=index%>/_settings',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_settings'
}
],
needBody: true,
method: 'PUT'
});
/**
* Perform a [indices.putTemplate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Number} params.order - The order for this template when merging multiple matching ones (higher numbers are merged later, overriding the lower numbers)
* @param {Boolean} params.create - Whether the index template should only be added if new or can also replace an existing one
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {Boolean} params.flatSettings - Return settings in flat format (default: false)
* @param {String} params.name - The name of the template
*/
api.indices.prototype.putTemplate = ca({
params: {
order: {
type: 'number'
},
create: {
type: 'boolean',
'default': false
},
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
flatSettings: {
type: 'boolean',
name: 'flat_settings'
}
},
url: {
fmt: '/_template/<%=name%>',
req: {
name: {
type: 'string'
}
}
},
needBody: true,
method: 'PUT'
});
/**
* Perform a [indices.putWarmer](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed) in the search request to warm
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices in the search request to warm. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both, in the search request to warm.
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices
* @param {String} params.name - The name of the warmer
* @param {String, String[], Boolean} params.type - A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types
*/
api.indices.prototype.putWarmer = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_warmer/<%=name%>',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
},
name: {
type: 'string'
}
}
},
{
fmt: '/<%=index%>/_warmer/<%=name%>',
req: {
index: {
type: 'list'
},
name: {
type: 'string'
}
}
},
{
fmt: '/_warmer/<%=name%>',
req: {
name: {
type: 'string'
}
}
}
],
needBody: true,
method: 'PUT'
});
/**
* Perform a [indices.recovery](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/indices-recovery.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.detailed - Whether to display detailed information about shard recovery
* @param {Boolean} params.activeOnly - Display only those recoveries that are currently on-going
* @param {Boolean} params.human - Whether to return time and byte values in human-readable format.
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
api.indices.prototype.recovery = ca({
params: {
detailed: {
type: 'boolean',
'default': false
},
activeOnly: {
type: 'boolean',
'default': false,
name: 'active_only'
},
human: {
type: 'boolean',
'default': false
}
},
urls: [
{
fmt: '/<%=index%>/_recovery',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_recovery'
}
]
});
/**
* Perform a [indices.refresh](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.force - Force a refresh even if not required
* @param {Anything} params.operationThreading - TODO: ?
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
api.indices.prototype.refresh = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
force: {
type: 'boolean',
'default': false
},
operationThreading: {
name: 'operation_threading'
}
},
urls: [
{
fmt: '/<%=index%>/_refresh',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_refresh'
}
],
method: 'POST'
});
/**
* Perform a [indices.segments](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.human - Whether to return time and byte values in human-readable format.
* @param {Anything} params.operationThreading - TODO: ?
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
api.indices.prototype.segments = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
human: {
type: 'boolean',
'default': false
},
operationThreading: {
name: 'operation_threading'
}
},
urls: [
{
fmt: '/<%=index%>/_segments',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_segments'
}
]
});
/**
* Perform a [indices.stats](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String, String[], Boolean} params.completionFields - A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)
* @param {String, String[], Boolean} params.fielddataFields - A comma-separated list of fields for `fielddata` index metric (supports wildcards)
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards)
* @param {String, String[], Boolean} params.groups - A comma-separated list of search groups for `search` index metric
* @param {Boolean} params.human - Whether to return time and byte values in human-readable format.
* @param {String} [params.level=indices] - Return stats aggregated at cluster, index or shard level
* @param {String, String[], Boolean} params.types - A comma-separated list of document types for the `indexing` index metric
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
* @param {String, String[], Boolean} params.metric - Limit the information returned the specific metrics.
*/
api.indices.prototype.stats = ca({
params: {
completionFields: {
type: 'list',
name: 'completion_fields'
},
fielddataFields: {
type: 'list',
name: 'fielddata_fields'
},
fields: {
type: 'list'
},
groups: {
type: 'list'
},
human: {
type: 'boolean',
'default': false
},
level: {
type: 'enum',
'default': 'indices',
options: [
'cluster',
'indices',
'shards'
]
},
types: {
type: 'list'
}
},
urls: [
{
fmt: '/<%=index%>/_stats/<%=metric%>',
req: {
index: {
type: 'list'
},
metric: {
type: 'list',
options: [
'_all',
'completion',
'docs',
'fielddata',
'filter_cache',
'flush',
'get',
'id_cache',
'indexing',
'merge',
'percolate',
'refresh',
'search',
'segments',
'store',
'warmer',
'suggest'
]
}
}
},
{
fmt: '/_stats/<%=metric%>',
req: {
metric: {
type: 'list',
options: [
'_all',
'completion',
'docs',
'fielddata',
'filter_cache',
'flush',
'get',
'id_cache',
'indexing',
'merge',
'percolate',
'refresh',
'search',
'segments',
'store',
'warmer',
'suggest'
]
}
}
},
{
fmt: '/<%=index%>/_stats',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_stats'
}
]
});
/**
* Perform a [indices.status](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Boolean} params.human - Whether to return time and byte values in human-readable format.
* @param {Anything} params.operationThreading - TODO: ?
* @param {Boolean} params.recovery - Return information about shard recovery
* @param {Boolean} params.snapshot - TODO: ?
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
*/
api.indices.prototype.status = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
human: {
type: 'boolean',
'default': false
},
operationThreading: {
name: 'operation_threading'
},
recovery: {
type: 'boolean'
},
snapshot: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/_status',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_status'
}
]
});
/**
* Perform a [indices.updateAliases](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.timeout - Request timeout
* @param {Date, Number} params.masterTimeout - Specify timeout for connection to master
*/
api.indices.prototype.updateAliases = ca({
params: {
timeout: {
type: 'time'
},
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
url: {
fmt: '/_aliases'
},
needBody: true,
method: 'POST'
});
/**
* Perform a [indices.validateQuery](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.explain - Return detailed information about the error
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {Anything} params.operationThreading - TODO: ?
* @param {String} params.source - The URL-encoded query definition (instead of using the request body)
* @param {String} params.q - Query in the Lucene query string syntax
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices
* @param {String, String[], Boolean} params.type - A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types
*/
api.indices.prototype.validateQuery = ca({
params: {
explain: {
type: 'boolean'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
operationThreading: {
name: 'operation_threading'
},
source: {
type: 'string'
},
q: {
type: 'string'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_validate/query',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_validate/query',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_validate/query'
}
],
method: 'POST'
});
/**
* Perform a [info](http://www.elasticsearch.org/guide/) request
*
* @param {Object} params - An object with parameters used to carry out this action
*/
api.info = ca({
url: {
fmt: '/'
}
});
/**
* Perform a [listBenchmarks](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-benchmark.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String, String[], Boolean} params.index - A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices
* @param {String} params.type - The name of the document type
*/
api.listBenchmarks = ca({
urls: [
{
fmt: '/<%=index%>/<%=type%>/_bench',
req: {
index: {
type: 'list'
},
type: {
type: 'string'
}
}
},
{
fmt: '/<%=index%>/_bench',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_bench'
}
]
});
/**
* Perform a [mget](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields to return in the response
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {Boolean} params.realtime - Specify whether to perform the operation in realtime or search mode
* @param {Boolean} params.refresh - Refresh the shard containing the document before performing the operation
* @param {String, String[], Boolean} params._source - True or false to return the _source field or not, or a list of fields to return
* @param {String, String[], Boolean} params._sourceExclude - A list of fields to exclude from the returned _source field
* @param {String, String[], Boolean} params._sourceInclude - A list of fields to extract and return from the _source field
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
*/
api.mget = ca({
params: {
fields: {
type: 'list'
},
preference: {
type: 'string'
},
realtime: {
type: 'boolean'
},
refresh: {
type: 'boolean'
},
_source: {
type: 'list'
},
_sourceExclude: {
type: 'list',
name: '_source_exclude'
},
_sourceInclude: {
type: 'list',
name: '_source_include'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_mget',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
}
}
},
{
fmt: '/<%=index%>/_mget',
req: {
index: {
type: 'string'
}
}
},
{
fmt: '/_mget'
}
],
needBody: true,
method: 'POST'
});
/**
* Perform a [mlt](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Number} params.boostTerms - The boost factor
* @param {Number} params.maxDocFreq - The word occurrence frequency as count: words with higher occurrence in the corpus will be ignored
* @param {Number} params.maxQueryTerms - The maximum query terms to be included in the generated query
* @param {Number} params.maxWordLength - The minimum length of the word: longer words will be ignored
* @param {Number} params.minDocFreq - The word occurrence frequency as count: words with lower occurrence in the corpus will be ignored
* @param {Number} params.minTermFreq - The term frequency as percent: terms with lower occurence in the source document will be ignored
* @param {Number} params.minWordLength - The minimum length of the word: shorter words will be ignored
* @param {String, String[], Boolean} params.mltFields - Specific fields to perform the query against
* @param {Number} params.percentTermsToMatch - How many terms have to match in order to consider the document a match (default: 0.3)
* @param {String} params.routing - Specific routing value
* @param {Number} params.searchFrom - The offset from which to return results
* @param {String, String[], Boolean} params.searchIndices - A comma-separated list of indices to perform the query against (default: the index containing the document)
* @param {String} params.searchQueryHint - The search query hint
* @param {String} params.searchScroll - A scroll search request definition
* @param {Number} params.searchSize - The number of documents to return (default: 10)
* @param {String} params.searchSource - A specific search request definition (instead of using the request body)
* @param {String} params.searchType - Specific search type (eg. `dfs_then_fetch`, `count`, etc)
* @param {String, String[], Boolean} params.searchTypes - A comma-separated list of types to perform the query against (default: the same type as the document)
* @param {String, String[], Boolean} params.stopWords - A list of stop words to be ignored
* @param {String} params.id - The document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document (use `_all` to fetch the first document matching the ID across all types)
*/
api.mlt = ca({
params: {
boostTerms: {
type: 'number',
name: 'boost_terms'
},
maxDocFreq: {
type: 'number',
name: 'max_doc_freq'
},
maxQueryTerms: {
type: 'number',
name: 'max_query_terms'
},
maxWordLength: {
type: 'number',
name: 'max_word_length'
},
minDocFreq: {
type: 'number',
name: 'min_doc_freq'
},
minTermFreq: {
type: 'number',
name: 'min_term_freq'
},
minWordLength: {
type: 'number',
name: 'min_word_length'
},
mltFields: {
type: 'list',
name: 'mlt_fields'
},
percentTermsToMatch: {
type: 'number',
name: 'percent_terms_to_match'
},
routing: {
type: 'string'
},
searchFrom: {
type: 'number',
name: 'search_from'
},
searchIndices: {
type: 'list',
name: 'search_indices'
},
searchQueryHint: {
type: 'string',
name: 'search_query_hint'
},
searchScroll: {
type: 'string',
name: 'search_scroll'
},
searchSize: {
type: 'number',
name: 'search_size'
},
searchSource: {
type: 'string',
name: 'search_source'
},
searchType: {
type: 'string',
name: 'search_type'
},
searchTypes: {
type: 'list',
name: 'search_types'
},
stopWords: {
type: 'list',
name: 'stop_words'
}
},
url: {
fmt: '/<%=index%>/<%=type%>/<%=id%>/_mlt',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [mpercolate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} params.index - The index of the document being count percolated to use as default
* @param {String} params.type - The type of the document being percolated to use as default.
*/
api.mpercolate = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_mpercolate',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
}
}
},
{
fmt: '/<%=index%>/_mpercolate',
req: {
index: {
type: 'string'
}
}
},
{
fmt: '/_mpercolate'
}
],
needBody: true,
bulkBody: true,
method: 'POST'
});
/**
* Perform a [msearch](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.searchType - Search operation type
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to use as default
* @param {String, String[], Boolean} params.type - A comma-separated list of document types to use as default
*/
api.msearch = ca({
params: {
searchType: {
type: 'enum',
options: [
'query_then_fetch',
'query_and_fetch',
'dfs_query_then_fetch',
'dfs_query_and_fetch',
'count',
'scan'
],
name: 'search_type'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_msearch',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_msearch',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_msearch'
}
],
needBody: true,
bulkBody: true,
method: 'POST'
});
/**
* Perform a [mtermvectors](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String, String[], Boolean} params.ids - A comma-separated list of documents ids. You must define ids as parameter or set "ids" or "docs" in the request body
* @param {Boolean} params.termStatistics - Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
* @param {Boolean} [params.fieldStatistics=true] - Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs".
* @param {Boolean} [params.offsets=true] - Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
* @param {Boolean} [params.positions=true] - Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
* @param {Boolean} [params.payloads=true] - Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs".
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs".
* @param {String} params.routing - Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs".
* @param {String} params.parent - Parent id of documents. Applies to all returned documents unless otherwise specified in body "params" or "docs".
* @param {String} params.index - The index in which the document resides.
* @param {String} params.type - The type of the document.
* @param {String} params.id - The id of the document.
*/
api.mtermvectors = ca({
params: {
ids: {
type: 'list',
required: false
},
termStatistics: {
type: 'boolean',
'default': false,
required: false,
name: 'term_statistics'
},
fieldStatistics: {
type: 'boolean',
'default': true,
required: false,
name: 'field_statistics'
},
fields: {
type: 'list',
required: false
},
offsets: {
type: 'boolean',
'default': true,
required: false
},
positions: {
type: 'boolean',
'default': true,
required: false
},
payloads: {
type: 'boolean',
'default': true,
required: false
},
preference: {
type: 'string',
required: false
},
routing: {
type: 'string',
required: false
},
parent: {
type: 'string',
required: false
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_mtermvectors',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
}
}
},
{
fmt: '/<%=index%>/_mtermvectors',
req: {
index: {
type: 'string'
}
}
},
{
fmt: '/_mtermvectors'
}
],
method: 'POST'
});
api.nodes = function NodesNS(transport) {
this.transport = transport;
};
/**
* Perform a [nodes.hotThreads](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.interval - The interval for the second sampling of threads
* @param {Number} params.snapshots - Number of samples of thread stacktrace (default: 10)
* @param {Number} params.threads - Specify the number of threads to provide information for (default: 3)
* @param {String} params.type - The type to sample (default: cpu)
* @param {String, String[], Boolean} params.nodeId - A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
*/
api.nodes.prototype.hotThreads = ca({
params: {
interval: {
type: 'time'
},
snapshots: {
type: 'number'
},
threads: {
type: 'number'
},
type: {
type: 'enum',
options: [
'cpu',
'wait',
'block'
]
}
},
urls: [
{
fmt: '/_nodes/<%=nodeId%>/hotthreads',
req: {
nodeId: {
type: 'list'
}
}
},
{
fmt: '/_nodes/hotthreads'
}
]
});
/**
* Perform a [nodes.info](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.flatSettings - Return settings in flat format (default: false)
* @param {Boolean} params.human - Whether to return time and byte values in human-readable format.
* @param {String, String[], Boolean} params.nodeId - A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
* @param {String, String[], Boolean} params.metric - A comma-separated list of metrics you wish returned. Leave empty to return all.
*/
api.nodes.prototype.info = ca({
params: {
flatSettings: {
type: 'boolean',
name: 'flat_settings'
},
human: {
type: 'boolean',
'default': false
}
},
urls: [
{
fmt: '/_nodes/<%=nodeId%>/<%=metric%>',
req: {
nodeId: {
type: 'list'
},
metric: {
type: 'list',
options: [
'settings',
'os',
'process',
'jvm',
'thread_pool',
'network',
'transport',
'http',
'plugins'
]
}
}
},
{
fmt: '/_nodes/<%=nodeId%>',
req: {
nodeId: {
type: 'list'
}
}
},
{
fmt: '/_nodes/<%=metric%>',
req: {
metric: {
type: 'list',
options: [
'settings',
'os',
'process',
'jvm',
'thread_pool',
'network',
'transport',
'http',
'plugins'
]
}
}
},
{
fmt: '/_nodes'
}
]
});
/**
* Perform a [nodes.shutdown](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.delay - Set the delay for the operation (default: 1s)
* @param {Boolean} params.exit - Exit the JVM as well (default: true)
* @param {String, String[], Boolean} params.nodeId - A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes
*/
api.nodes.prototype.shutdown = ca({
params: {
delay: {
type: 'time'
},
exit: {
type: 'boolean'
}
},
urls: [
{
fmt: '/_cluster/nodes/<%=nodeId%>/_shutdown',
req: {
nodeId: {
type: 'list'
}
}
},
{
fmt: '/_shutdown'
}
],
method: 'POST'
});
/**
* Perform a [nodes.stats](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String, String[], Boolean} params.completionFields - A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards)
* @param {String, String[], Boolean} params.fielddataFields - A comma-separated list of fields for `fielddata` index metric (supports wildcards)
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards)
* @param {Boolean} params.groups - A comma-separated list of search groups for `search` index metric
* @param {Boolean} params.human - Whether to return time and byte values in human-readable format.
* @param {String} [params.level=node] - Return indices stats aggregated at node, index or shard level
* @param {String, String[], Boolean} params.types - A comma-separated list of document types for the `indexing` index metric
* @param {String, String[], Boolean} params.metric - Limit the information returned to the specified metrics
* @param {String, String[], Boolean} params.indexMetric - Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified.
* @param {String, String[], Boolean} params.nodeId - A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes
*/
api.nodes.prototype.stats = ca({
params: {
completionFields: {
type: 'list',
name: 'completion_fields'
},
fielddataFields: {
type: 'list',
name: 'fielddata_fields'
},
fields: {
type: 'list'
},
groups: {
type: 'boolean'
},
human: {
type: 'boolean',
'default': false
},
level: {
type: 'enum',
'default': 'node',
options: [
'node',
'indices',
'shards'
]
},
types: {
type: 'list'
}
},
urls: [
{
fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>/<%=indexMetric%>',
req: {
nodeId: {
type: 'list'
},
metric: {
type: 'list',
options: [
'_all',
'breaker',
'fs',
'http',
'indices',
'jvm',
'network',
'os',
'process',
'thread_pool',
'transport'
]
},
indexMetric: {
type: 'list',
options: [
'_all',
'completion',
'docs',
'fielddata',
'filter_cache',
'flush',
'get',
'id_cache',
'indexing',
'merge',
'percolate',
'refresh',
'search',
'segments',
'store',
'warmer',
'suggest'
]
}
}
},
{
fmt: '/_nodes/<%=nodeId%>/stats/<%=metric%>',
req: {
nodeId: {
type: 'list'
},
metric: {
type: 'list',
options: [
'_all',
'breaker',
'fs',
'http',
'indices',
'jvm',
'network',
'os',
'process',
'thread_pool',
'transport'
]
}
}
},
{
fmt: '/_nodes/stats/<%=metric%>/<%=indexMetric%>',
req: {
metric: {
type: 'list',
options: [
'_all',
'breaker',
'fs',
'http',
'indices',
'jvm',
'network',
'os',
'process',
'thread_pool',
'transport'
]
},
indexMetric: {
type: 'list',
options: [
'_all',
'completion',
'docs',
'fielddata',
'filter_cache',
'flush',
'get',
'id_cache',
'indexing',
'merge',
'percolate',
'refresh',
'search',
'segments',
'store',
'warmer',
'suggest'
]
}
}
},
{
fmt: '/_nodes/<%=nodeId%>/stats',
req: {
nodeId: {
type: 'list'
}
}
},
{
fmt: '/_nodes/stats/<%=metric%>',
req: {
metric: {
type: 'list',
options: [
'_all',
'breaker',
'fs',
'http',
'indices',
'jvm',
'network',
'os',
'process',
'thread_pool',
'transport'
]
}
}
},
{
fmt: '/_nodes/stats'
}
]
});
/**
* Perform a [percolate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String, String[], Boolean} params.routing - A comma-separated list of specific routing values
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} params.percolateIndex - The index to percolate the document into. Defaults to index.
* @param {String} params.percolateType - The type to percolate document into. Defaults to type.
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {String} params.index - The index of the document being percolated.
* @param {String} params.type - The type of the document being percolated.
* @param {String} params.id - Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster.
*/
api.percolate = ca({
params: {
routing: {
type: 'list'
},
preference: {
type: 'string'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
percolateIndex: {
type: 'string',
name: 'percolate_index'
},
percolateType: {
type: 'string',
name: 'percolate_type'
},
version: {
type: 'number'
},
versionType: {
type: 'enum',
options: [
'internal',
'external',
'external_gte',
'force'
],
name: 'version_type'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/<%=id%>/_percolate',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
},
{
fmt: '/<%=index%>/<%=type%>/_percolate',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
}
}
}
],
method: 'POST'
});
/**
* Perform a [ping](http://www.elasticsearch.org/guide/) request
*
* @param {Object} params - An object with parameters used to carry out this action
*/
api.ping = ca({
url: {
fmt: '/'
},
requestTimeout: 100,
method: 'HEAD'
});
/**
* Perform a [putScript](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-scripting.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.id - Script ID
* @param {String} params.lang - Script language
*/
api.putScript = ca({
url: {
fmt: '/_scripts/<%=lang%>/<%=id%>',
req: {
lang: {
type: 'string'
},
id: {
type: 'string'
}
}
},
needBody: true,
method: 'PUT'
});
/**
* Perform a [putTemplate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-template.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.id - Template ID
*/
api.putTemplate = ca({
url: {
fmt: '/_search/template/<%=id%>',
req: {
id: {
type: 'string'
}
}
},
needBody: true,
method: 'PUT'
});
/**
* Perform a [scroll](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.scrollId - The scroll ID
*/
api.scroll = ca({
params: {
scroll: {
type: 'duration'
},
scrollId: {
type: 'string',
name: 'scroll_id'
}
},
urls: [
{
fmt: '/_search/scroll/<%=scrollId%>',
req: {
scrollId: {
type: 'string'
}
}
},
{
fmt: '/_search/scroll'
}
],
method: 'POST'
});
/**
* Perform a [search](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.analyzer - The analyzer to use for the query string
* @param {Boolean} params.analyzeWildcard - Specify whether wildcard and prefix queries should be analyzed (default: false)
* @param {String} [params.defaultOperator=OR] - The default operator for query string query (AND or OR)
* @param {String} params.df - The field to use as default where no field prefix is given in the query string
* @param {Boolean} params.explain - Specify whether to return detailed information about score computation as part of a hit
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields to return as part of a hit
* @param {Number} params.from - Starting offset (default: 0)
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String, String[], Boolean} params.indicesBoost - Comma-separated list of index boosts
* @param {Boolean} params.lenient - Specify whether format-based query failures (such as providing text to a numeric field) should be ignored
* @param {Boolean} params.lowercaseExpandedTerms - Specify whether query terms should be lowercased
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String} params.q - Query in the Lucene query string syntax
* @param {String, String[], Boolean} params.routing - A comma-separated list of specific routing values
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.searchType - Search operation type
* @param {Number} params.size - Number of hits to return (default: 10)
* @param {String, String[], Boolean} params.sort - A comma-separated list of <field>:<direction> pairs
* @param {String} params.source - The URL-encoded request definition using the Query DSL (instead of using request body)
* @param {String, String[], Boolean} params._source - True or false to return the _source field or not, or a list of fields to return
* @param {String, String[], Boolean} params._sourceExclude - A list of fields to exclude from the returned _source field
* @param {String, String[], Boolean} params._sourceInclude - A list of fields to extract and return from the _source field
* @param {String, String[], Boolean} params.stats - Specific 'tag' of the request for logging and statistical purposes
* @param {String} params.suggestField - Specify which field to use for suggestions
* @param {String} [params.suggestMode=missing] - Specify suggest mode
* @param {Number} params.suggestSize - How many suggestions to return in response
* @param {Text} params.suggestText - The source text for which the suggestions should be returned
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Boolean} params.trackScores - Whether to calculate and return scores even if they are not used for sorting
* @param {Boolean} params.version - Specify whether to return document version as part of a hit
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
* @param {String, String[], Boolean} params.type - A comma-separated list of document types to search; leave empty to perform the operation on all types
*/
api.search = ca({
params: {
analyzer: {
type: 'string'
},
analyzeWildcard: {
type: 'boolean',
name: 'analyze_wildcard'
},
defaultOperator: {
type: 'enum',
'default': 'OR',
options: [
'AND',
'OR'
],
name: 'default_operator'
},
df: {
type: 'string'
},
explain: {
type: 'boolean'
},
fields: {
type: 'list'
},
from: {
type: 'number'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
indicesBoost: {
type: 'list',
name: 'indices_boost'
},
lenient: {
type: 'boolean'
},
lowercaseExpandedTerms: {
type: 'boolean',
name: 'lowercase_expanded_terms'
},
preference: {
type: 'string'
},
q: {
type: 'string'
},
routing: {
type: 'list'
},
scroll: {
type: 'duration'
},
searchType: {
type: 'enum',
options: [
'query_then_fetch',
'query_and_fetch',
'dfs_query_then_fetch',
'dfs_query_and_fetch',
'count',
'scan'
],
name: 'search_type'
},
size: {
type: 'number'
},
sort: {
type: 'list'
},
source: {
type: 'string'
},
_source: {
type: 'list'
},
_sourceExclude: {
type: 'list',
name: '_source_exclude'
},
_sourceInclude: {
type: 'list',
name: '_source_include'
},
stats: {
type: 'list'
},
suggestField: {
type: 'string',
name: 'suggest_field'
},
suggestMode: {
type: 'enum',
'default': 'missing',
options: [
'missing',
'popular',
'always'
],
name: 'suggest_mode'
},
suggestSize: {
type: 'number',
name: 'suggest_size'
},
suggestText: {
type: 'text',
name: 'suggest_text'
},
timeout: {
type: 'time'
},
trackScores: {
type: 'boolean',
name: 'track_scores'
},
version: {
type: 'boolean'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_search',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_search',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_search'
}
],
method: 'POST'
});
/**
* Perform a [searchShards](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/search-shards.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String} params.routing - Specific routing value
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
*/
api.searchShards = ca({
params: {
preference: {
type: 'string'
},
routing: {
type: 'string'
},
local: {
type: 'boolean'
},
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_search_shards',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
}
}
},
{
fmt: '/<%=index%>/_search_shards',
req: {
index: {
type: 'string'
}
}
},
{
fmt: '/_search_shards'
}
],
method: 'POST'
});
/**
* Perform a [searchTemplate](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-template.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String, String[], Boolean} params.routing - A comma-separated list of specific routing values
* @param {Duration} params.scroll - Specify how long a consistent view of the index should be maintained for scrolled search
* @param {String} params.searchType - Search operation type
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices
* @param {String, String[], Boolean} params.type - A comma-separated list of document types to search; leave empty to perform the operation on all types
*/
api.searchTemplate = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
preference: {
type: 'string'
},
routing: {
type: 'list'
},
scroll: {
type: 'duration'
},
searchType: {
type: 'enum',
options: [
'query_then_fetch',
'query_and_fetch',
'dfs_query_then_fetch',
'dfs_query_and_fetch',
'count',
'scan'
],
name: 'search_type'
}
},
urls: [
{
fmt: '/<%=index%>/<%=type%>/_search/template',
req: {
index: {
type: 'list'
},
type: {
type: 'list'
}
}
},
{
fmt: '/<%=index%>/_search/template',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_search/template'
}
],
method: 'POST'
});
api.snapshot = function SnapshotNS(transport) {
this.transport = transport;
};
/**
* Perform a [snapshot.create](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {Boolean} params.waitForCompletion - Should this request wait until the operation has completed before returning
* @param {String} params.repository - A repository name
* @param {String} params.snapshot - A snapshot name
*/
api.snapshot.prototype.create = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
waitForCompletion: {
type: 'boolean',
'default': false,
name: 'wait_for_completion'
}
},
url: {
fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
req: {
repository: {
type: 'string'
},
snapshot: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [snapshot.createRepository](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {String} params.repository - A repository name
*/
api.snapshot.prototype.createRepository = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
timeout: {
type: 'time'
}
},
url: {
fmt: '/_snapshot/<%=repository%>',
req: {
repository: {
type: 'string'
}
}
},
needBody: true,
method: 'POST'
});
/**
* Perform a [snapshot.delete](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String} params.repository - A repository name
* @param {String} params.snapshot - A snapshot name
*/
api.snapshot.prototype['delete'] = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
url: {
fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
req: {
repository: {
type: 'string'
},
snapshot: {
type: 'string'
}
}
},
method: 'DELETE'
});
/**
* Perform a [snapshot.deleteRepository](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {String, String[], Boolean} params.repository - A comma-separated list of repository names
*/
api.snapshot.prototype.deleteRepository = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
timeout: {
type: 'time'
}
},
url: {
fmt: '/_snapshot/<%=repository%>',
req: {
repository: {
type: 'list'
}
}
},
method: 'DELETE'
});
/**
* Perform a [snapshot.get](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String} params.repository - A repository name
* @param {String, String[], Boolean} params.snapshot - A comma-separated list of snapshot names
*/
api.snapshot.prototype.get = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
url: {
fmt: '/_snapshot/<%=repository%>/<%=snapshot%>',
req: {
repository: {
type: 'string'
},
snapshot: {
type: 'list'
}
}
}
});
/**
* Perform a [snapshot.getRepository](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {Boolean} params.local - Return local information, do not retrieve the state from master node (default: false)
* @param {String, String[], Boolean} params.repository - A comma-separated list of repository names
*/
api.snapshot.prototype.getRepository = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
local: {
type: 'boolean'
}
},
urls: [
{
fmt: '/_snapshot/<%=repository%>',
req: {
repository: {
type: 'list'
}
}
},
{
fmt: '/_snapshot'
}
]
});
/**
* Perform a [snapshot.restore](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {Boolean} params.waitForCompletion - Should this request wait until the operation has completed before returning
* @param {String} params.repository - A repository name
* @param {String} params.snapshot - A snapshot name
*/
api.snapshot.prototype.restore = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
},
waitForCompletion: {
type: 'boolean',
'default': false,
name: 'wait_for_completion'
}
},
url: {
fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_restore',
req: {
repository: {
type: 'string'
},
snapshot: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [snapshot.status](http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/modules-snapshots.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Date, Number} params.masterTimeout - Explicit operation timeout for connection to master node
* @param {String} params.repository - A repository name
* @param {String, String[], Boolean} params.snapshot - A comma-separated list of snapshot names
*/
api.snapshot.prototype.status = ca({
params: {
masterTimeout: {
type: 'time',
name: 'master_timeout'
}
},
urls: [
{
fmt: '/_snapshot/<%=repository%>/<%=snapshot%>/_status',
req: {
repository: {
type: 'string'
},
snapshot: {
type: 'list'
}
}
},
{
fmt: '/_snapshot/<%=repository%>/_status',
req: {
repository: {
type: 'string'
}
}
},
{
fmt: '/_snapshot/_status'
}
]
});
/**
* Perform a [suggest](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.ignoreUnavailable - Whether specified concrete indices should be ignored when unavailable (missing or closed)
* @param {Boolean} params.allowNoIndices - Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)
* @param {String} [params.expandWildcards=open] - Whether to expand wildcard expression to concrete indices that are open, closed or both.
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random)
* @param {String} params.routing - Specific routing value
* @param {String} params.source - The URL-encoded request definition (instead of using request body)
* @param {String, String[], Boolean} params.index - A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices
*/
api.suggest = ca({
params: {
ignoreUnavailable: {
type: 'boolean',
name: 'ignore_unavailable'
},
allowNoIndices: {
type: 'boolean',
name: 'allow_no_indices'
},
expandWildcards: {
type: 'enum',
'default': 'open',
options: [
'open',
'closed'
],
name: 'expand_wildcards'
},
preference: {
type: 'string'
},
routing: {
type: 'string'
},
source: {
type: 'string'
}
},
urls: [
{
fmt: '/<%=index%>/_suggest',
req: {
index: {
type: 'list'
}
}
},
{
fmt: '/_suggest'
}
],
needBody: true,
method: 'POST'
});
/**
* Perform a [termvector](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {Boolean} params.termStatistics - Specifies if total term frequency and document frequency should be returned.
* @param {Boolean} [params.fieldStatistics=true] - Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned.
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields to return.
* @param {Boolean} [params.offsets=true] - Specifies if term offsets should be returned.
* @param {Boolean} [params.positions=true] - Specifies if term positions should be returned.
* @param {Boolean} [params.payloads=true] - Specifies if term payloads should be returned.
* @param {String} params.preference - Specify the node or shard the operation should be performed on (default: random).
* @param {String} params.routing - Specific routing value.
* @param {String} params.parent - Parent id of documents.
* @param {String} params.index - The index in which the document resides.
* @param {String} params.type - The type of the document.
* @param {String} params.id - The id of the document.
*/
api.termvector = ca({
params: {
termStatistics: {
type: 'boolean',
'default': false,
required: false,
name: 'term_statistics'
},
fieldStatistics: {
type: 'boolean',
'default': true,
required: false,
name: 'field_statistics'
},
fields: {
type: 'list',
required: false
},
offsets: {
type: 'boolean',
'default': true,
required: false
},
positions: {
type: 'boolean',
'default': true,
required: false
},
payloads: {
type: 'boolean',
'default': true,
required: false
},
preference: {
type: 'string',
required: false
},
routing: {
type: 'string',
required: false
},
parent: {
type: 'string',
required: false
}
},
url: {
fmt: '/<%=index%>/<%=type%>/<%=id%>/_termvector',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [update](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {String, String[], Boolean} params.fields - A comma-separated list of fields to return in the response
* @param {String} params.lang - The script language (default: mvel)
* @param {String} params.parent - ID of the parent document
* @param {Boolean} params.refresh - Refresh the index after performing the operation
* @param {String} [params.replication=sync] - Specific replication type
* @param {Number} params.retryOnConflict - Specify how many times should the operation be retried when a conflict occurs (default: 0)
* @param {String} params.routing - Specific routing value
* @param {Anything} params.script - The URL-encoded script definition (instead of using request body)
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {String} params.id - Document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
*/
api.update = ca({
params: {
consistency: {
type: 'enum',
options: [
'one',
'quorum',
'all'
]
},
fields: {
type: 'list'
},
lang: {
type: 'string'
},
parent: {
type: 'string'
},
refresh: {
type: 'boolean'
},
replication: {
type: 'enum',
'default': 'sync',
options: [
'sync',
'async'
]
},
retryOnConflict: {
type: 'number',
name: 'retry_on_conflict'
},
routing: {
type: 'string'
},
script: {},
timeout: {
type: 'time'
},
timestamp: {
type: 'time'
},
ttl: {
type: 'duration'
},
version: {
type: 'number'
},
versionType: {
type: 'enum',
options: [
'internal',
'force'
],
name: 'version_type'
}
},
url: {
fmt: '/<%=index%>/<%=type%>/<%=id%>/_update',
req: {
index: {
type: 'string'
},
type: {
type: 'string'
},
id: {
type: 'string'
}
}
},
method: 'POST'
});
/**
* Perform a [create](http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html) request
*
* @param {Object} params - An object with parameters used to carry out this action
* @param {String} params.consistency - Explicit write consistency setting for the operation
* @param {String} params.parent - ID of the parent document
* @param {Boolean} params.refresh - Refresh the index after performing the operation
* @param {String} [params.replication=sync] - Specific replication type
* @param {String} params.routing - Specific routing value
* @param {Date, Number} params.timeout - Explicit operation timeout
* @param {Date, Number} params.timestamp - Explicit timestamp for the document
* @param {Duration} params.ttl - Expiration time for the document
* @param {Number} params.version - Explicit version number for concurrency control
* @param {String} params.versionType - Specific version type
* @param {String} params.id - Document ID
* @param {String} params.index - The name of the index
* @param {String} params.type - The type of the document
*/
api.create = ca.proxy(api.index, {
transform: function (params) {
params.op_type = 'create';
}
}); | Christopheraburns/projecttelemetry | node_modules/elasticsearch/src/lib/apis/1_3.js | JavaScript | mit | 164,513 |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
function XLFuzzTest() {
try {
do {
function apInitTest() {
do {
function apEndTest() {
do {
apInitTest:
if (false) {
return;
}
return;
} while (false);
}
} while (false);
}
} while (false);
} catch (e) {}
}
for (var i = 0; i < 1; i++) {
XLFuzzTest();
}
print("PASSED");
| Microsoft/ChakraCore | test/Closures/bug_OS_9008744.js | JavaScript | mit | 802 |
module.exports = {
'name': 'mad',
'category': 'Statistics',
'syntax': [
'mad(a, b, c, ...)',
'mad(A)'
],
'description': 'Compute the median absolute deviation of a matrix or a list with values. The median absolute deviation is defined as the median of the absolute deviations from the median.',
'examples': [
'mad(10, 20, 30)',
'mad([1, 2, 3])'
],
'seealso': [
'mean',
'median',
'std',
'abs'
]
};
| ocadni/citychrone | node_modules/mathjs/lib/expression/embeddedDocs/function/statistics/mad.js | JavaScript | mit | 447 |
var HtmlWebpackPlugin = require('html-webpack-plugin')
var HTMLWebpackPluginConfig = new HtmlWebpackPlugin({
template: __dirname + '/app/index.html',
filename: 'index.html',
inject: 'body'
});
module.exports = {
entry: [
'./app/index.js'
],
output: {
filename: "index_bundle.js",
path: __dirname + '/dist'
},
module: {
loaders: [
{test: /\.js$/, include: __dirname + '/app', loader: "babel-loader"},
{test: /\.css$/, loader: "style-loader!css-loader"}
]
},
plugins: [HTMLWebpackPluginConfig]
}
| absurdSquid/thumbroll | client/desktop/webpack.config.js | JavaScript | mit | 548 |
define({
"selectAnalysisTools": "Selecione ferramentas de análise para utilizar no widget.",
"graphicalDisplay": "Visualização gráfica",
"toolSetting": "Configurar detalhes da ferramenta",
"toolLabel": "O nome de visualização da ferramenta",
"showHelpTip": "Mostrar links de ajuda no widget",
"showCurrentMapExtent": "Mostrar opção para utilizar a extensão de mapa atual",
"showCredits": "Exibir a opção <b>Mostrar créditos</b>",
"saveAsFeatureService": "Salva o resultado na conta de usuário",
"showReadyToUseLayers": "Mostrar camadas prontas para uso de Altas do Mundo em Tempo Real do ArcGIS Online",
"toolNotAvailable": "Esta ferramenta não está disponível, pois o mapa não contém as camadas de feição exigidas.",
"aggregatePoints": "Agregar Pontos",
"aggregatePointsUsage": "Agrega os pontos em polígonos onde os pontos são localizados.",
"calculateDensity": "Calcular Densidade",
"calculateDensityUsage": "Cria um mapa de densidade a partir das feições de ponto ou linha ao espalhar quantidades conhecidas de algum fenômeno (representados como atributos de pontos ou linhas) ao longo do mapa.",
"connectOriginsToDestinations": "Conectar Origens aos Destinos",
"connectOriginsToDestinationsUsage": "Mede a distância ou tempo de percurso entre os pares de pontos.",
"createBuffers": "Criar Buffers",
"createBuffersUsage": "Cria polígonos de buffer a partir das feições de entrada.",
"createDriveTimeAreas": "Criar Áreas de Tempo do Percurso",
"createDriveTimeAreasUsage": "Cria polígonos de tempo do percurso (ou distância do percurso) ao redor dos pontos de entrada para os valores de tempo do percurso fornecidos.",
"createViewshed": "Criar Panorama",
"createViewshedUsage": "Cria áreas que são visíveis baseadas em locais que você especifica.",
"createWatersheds": "Criar Vertentes",
"createWatershedsUsage": "Cria áreas de captação baseadas em locais que você especifica.",
"deriveNewLocations": "Derivar Novos Locais",
"deriveNewLocationsUsage": "Deriva novas feições a partir das camadas de entrada que atenderem uma consulta que você especificar",
"dissolveBoundaries": "Dissolver Limites",
"dissolveBoundariesUsage": "Dissolve polígonos que sobrepõem ou compartilham um limite em comum.",
"enrichLayer": "Enriquecer Camada",
"enrichLayerUsage": "Enriquece feições de entrada com pessoas, lugares e fatos de negócios sobre áreas de proximidade.",
"extractData": "Extrair Dados",
"extractDataDesc": "Extrai dados de uma ou mais camadas dentro de uma extensão fornecida",
"findExistingLocations": "Encontrar Locais Existentes",
"findExistingLocationsUsage": "Seleciona feições na camada de entrada que atendem uma consulta de atributo e/ou espacial que você especificou",
"findHotSpots": "Localizar Valor Alto de Incidência",
"findHotSpotsUsage": "Localiza agrupamentos da feição de entrada estatísticamente significativos ou valores altos/baixos.",
"findNearest": "Localizar Mais Próximo",
"findNearestUsage": "Para cada feição em uma camada de entrada, localize sua feição mais próxima em outra camada",
"findSimilarLocations": "Encontrar Locais Semelhantes",
"findSimilarLocationsUsage": "Mede a semelhança de locais de candidatos para um ou mais locais de referência.",
"interpolatePoints": "Interpolar Pontos",
"interpolatePointsUsage": "Prevê valores em novos locais baseado em medidas de uma coleta de pontos.",
"mergeLayers": "Juntar Camadas",
"mergeLayersUsage": "Junta as feições de múltiplas camadas em uma nova camada",
"overlayLayers": "Sobrepor Camadas",
"overlayLayersUsage": "Combina múltiplas camadas em uma única camada com informações de camadas originais preservadas.",
"planRoutes": "Planejar Rotas",
"planRoutesUsage": "Determina como dividir eficazmente tarefas entre uma mão-de-obra móvel.",
"summarizeNearby": "Resumir Mais Próximo",
"summarizeNearbyUsage": "Para cada feição em uma camada de entrada, resuma os dados dentro de uma distância das feições em outra camada.",
"summarizeWithin": "Resumir Dentro",
"summarizeWithinUsage": "Para cada polígono em uma camada de polígono de entrada, resuma os dados localizados dentro dela a partir das feições em outra camada.",
"traceDownstream": "Traçar Jusante",
"traceDownstreamUsage": "Determina os caminhos de fluxo em uma direção da jusante a partir de locais que você especifica.",
"allowToExport": "Permitir exportar os resultados"
}); | cmccullough2/cmv-wab-widgets | wab/2.3/widgets/Analysis/setting/nls/pt-br/strings.js | JavaScript | mit | 4,520 |
module.exports = {
'baseURL': process.env.BASEURL ? process.env.BASEURL.replace(/\/$/, '') : 'http://localhost:4000',
'waitTime': isNaN(parseInt(process.env.TIMEOUT, 10)) ? 5000 : parseInt(process.env.TIMEOUT, 10),
'before': function() {
/* eslint-disable no-console */
console.log('WaitTime set to', this.waitTime);
console.log('BaseURL set to', this.baseURL);
/* eslint-enable no-console */
},
'API Reference: AvaTax: REST v1 (verify number of endpoints)': function(browser) {
const expectedNumberOfApiEndpoints = 4;
browser
.maximizeWindow()
.url(this.baseURL + '/avatax/api-reference/tax/v1/')
.waitForElementVisible('[data-reactroot]', this.waitTime)
.elements('css selector', '.endpoint-summary', function(result) {
/* eslint-disable no-invalid-this */
this.assert.equal(result.value.length, expectedNumberOfApiEndpoints, 'expected ' + expectedNumberOfApiEndpoints + ' endpoints, received ' + result.value.length);
/* eslint-enable no-invalid-this */
})
.end();
},
'API Reference: AvaTax: REST v1 (getTax fill sample data)': function(browser) {
/* eslint-disable quotes */
/* eslint-disable quote-props */
const expectedRequest = {"Commit": "false", "Client": "AvaTaxSample", "CompanyCode": "CINC", "CustomerCode": "ABC4335", "DocCode": "INV001", "DocType": "SalesOrder", "DocDate": "2014-01-01", "Addresses": [{"AddressCode": "01", "Line1": "45 Fremont Street", "Line2": "Suite 100", "Line3": "ATTN Accounts Payable", "City": "Chicago", "Region": "IL", "Country": "US", "PostalCode": "60602"}], "Lines": [{"LineNo": "1", "DestinationCode": "01", "OriginCode": "02", "ItemCode": "N543", "TaxCode": "NT", "Description": "Red Size 7 Widget", "Qty": "1", "Amount": "10"}]};
const expectedResponse = {"DocCode": "INV001", "DocDate": "2014-01-01", "TotalAmount": "10", "TotalDiscount": "0", "TotalExemption": "10", "TotalTaxable": "0", "TotalTax": "0", "TotalTaxCalculated": "0", "TaxDate": "2014-01-01", "TaxLines": [{"LineNo": "1", "TaxCode": "NT", "Taxability": "true", "BoundaryLevel": "Zip5", "Taxable": "0", "Rate": "0", "Tax": "0", "Discount": "0", "TaxCalculated": "0", "Exemption": "10", "TaxDetails": [{"Taxable": "0", "Rate": "0", "Tax": "0", "Region": "IL", "Country": "US", "JurisType": "State", "JurisName": "ILLINOIS", "JurisCode": "17", "TaxName": "IL STATE TAX"}]}], "TaxAddresses": [{"Address": "45 Fremont Street", "AddressCode": "01", "City": "Chicago", "Country": "US", "PostalCode": "60602", "Region": "IL", "TaxRegionId": "2062953", "JurisCode": "1703114000", "Latitude": "41.882906", "Longitude": "-87.629373"}], "ResultCode": "Success"};
/* eslint-enable quotes */
/* eslint-enable quote-props */
browser
.maximizeWindow()
.url(this.baseURL + '/avatax/api-reference/tax/v1/')
.waitForElementVisible('[data-reactroot]', this.waitTime)
.waitForElementVisible('#getTax-console', this.waitTime)
.click('#getTax-console')
.waitForElementVisible('#getTax-console-body', this.waitTime)
.click('#getTax-console-body .fill-sample-data')
.waitForElementVisible('#getTax-console-body .console-req-container .code-snippet span:first-of-type', this.waitTime)
.getText('#getTax-console-body .console-req-container .code-snippet', function(req) {
/* eslint-disable no-invalid-this */
const request = JSON.parse(req.value);
this.verify.equal(JSON.stringify(request), JSON.stringify(expectedRequest));
/* eslint-enable no-invalid-this */
})
.click('#getTax-console-body .submit')
.waitForElementVisible('#getTax-console-body .console-res-container .code-snippet span:first-of-type', this.waitTime)
.getText('#getTax-console-body .console-res-container .code-snippet', function(res) {
/* eslint-disable no-invalid-this */
const response = JSON.parse(res.value);
response.Timestamp = undefined;
this.verify.equal(JSON.stringify(response), JSON.stringify(expectedResponse));
/* eslint-enable no-invalid-this */
})
.end();
},
'API Reference: AvaTax: REST v2 (verify number of endpoints)': function(browser) {
// NOTE: THESE NOW ALL EXIST ON SUB 'TAG' PAGES
const expectedNumberOfApiEndpoints = 0;
browser
.maximizeWindow()
.url(this.baseURL + '/avatax/api-reference/tax/v2/')
.waitForElementVisible('[data-reactroot]', this.waitTime)
.elements('css selector', '.endpoint-summary', function(result) {
/* eslint-disable no-invalid-this */
this.verify.equal(result.value.length, expectedNumberOfApiEndpoints, 'expected ' + expectedNumberOfApiEndpoints + ' endpoints, received ' + result.value.length);
/* eslint-enable no-invalid-this */
})
.end();
},
'API Reference: AvaTax: SOAP (verify number of endpoints)': function(browser) {
const expectedNumberOfApiEndpoints = 11;
browser
.maximizeWindow()
.url(this.baseURL + '/avatax/api-reference/tax/soap/')
.waitForElementVisible('[data-reactroot]', this.waitTime)
.elements('css selector', '.endpoint-summary', function(result) {
/* eslint-disable no-invalid-this */
this.verify.equal(result.value.length, expectedNumberOfApiEndpoints, 'expected ' + expectedNumberOfApiEndpoints + ' endpoints, received ' + result.value.length);
/* eslint-enable no-invalid-this */
})
.end();
},
'API Reference: AvaTax: BatchSvc SOAP (verify number of endpoints)': function(browser) {
const expectedNumberOfApiEndpoints = 9;
browser
.maximizeWindow()
.url(this.baseURL + '/avatax/api-reference/batch/soap/')
.waitForElementVisible('[data-reactroot]', this.waitTime)
.elements('css selector', '.endpoint-summary', function(result) {
/* eslint-disable no-invalid-this */
this.verify.equal(result.value.length, expectedNumberOfApiEndpoints, 'expected ' + expectedNumberOfApiEndpoints + ' endpoints, received ' + result.value.length);
/* eslint-enable no-invalid-this */
})
.end();
},
'API Reference: AvaTax: AccountSvc SOAP (verify number of endpoints)': function(browser) {
const expectedNumberOfApiEndpoints = 2;
browser
.maximizeWindow()
.url(this.baseURL + '/avatax/api-reference/account/soap/')
.waitForElementVisible('[data-reactroot]', this.waitTime)
.elements('css selector', '.endpoint-summary', function(result) {
/* eslint-disable no-invalid-this */
this.verify.equal(result.value.length, expectedNumberOfApiEndpoints, 'expected ' + expectedNumberOfApiEndpoints + ' endpoints, received ' + result.value.length);
/* eslint-enable no-invalid-this */
})
.end();
},
'API Reference: AvaTax: Onboarding (verify number of endpoints)': function(browser) {
const expectedNumberOfApiEndpoints = 8;
browser
.maximizeWindow()
.url(this.baseURL + '/avatax/api-reference/onboarding/v1/')
.waitForElementVisible('[data-reactroot]', this.waitTime)
.elements('css selector', '.endpoint-summary', function(result) {
/* eslint-disable no-invalid-this */
this.verify.equal(result.value.length, expectedNumberOfApiEndpoints, 'expected ' + expectedNumberOfApiEndpoints + ' endpoints, received ' + result.value.length);
/* eslint-enable no-invalid-this */
})
.end();
}
};
| JoeSava/developer-dot | _test/browser/api-reference/avatax.js | JavaScript | mit | 8,117 |
#!/usr/bin/env node
/*
The MIT License (MIT)
Copyright (c) 2007-2013 Einar Lielmanis and contributors.
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 above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Js-Beautify Command-line for node.js
-------------------------------------
Written by Daniel Stockman ([email protected])
*/
var debug = process.env.DEBUG_JSBEAUTIFY || process.env.JSBEAUTIFY_DEBUG ? function() {
console.error.apply(console, arguments);
} : function() {};
var fs = require('fs'),
cc = require('config-chain'),
beautify = require('../index'),
mkdirp = require('mkdirp'),
nopt = require('nopt'),
path = require('path'),
knownOpts = {
// Beautifier
"indent_size": Number,
"indent_char": String,
"indent_level": Number,
"indent_with_tabs": Boolean,
"preserve_newlines": Boolean,
"max_preserve_newlines": Number,
"space_in_paren": Boolean,
"space_in_empty_paren": Boolean,
"jslint_happy": Boolean,
"space_after_anon_function": Boolean,
// TODO: expand-strict is obsolete, now identical to expand. Remove in future version
"brace_style": ["collapse", "expand", "end-expand", "expand-strict", "none"],
"break_chained_methods": Boolean,
"keep_array_indentation": Boolean,
"unescape_strings": Boolean,
"wrap_line_length": Number,
"e4x": Boolean,
"end_with_newline": Boolean,
// CSS-only
"selector_separator_newline": Boolean,
"newline_between_rules": Boolean,
// HTML-only
"max_char": Number, // obsolete since 1.3.5
"unformatted": [String, Array],
"indent_inner_html": [Boolean],
"indent_scripts": ["keep", "separate", "normal"],
// CLI
"version": Boolean,
"help": Boolean,
"files": [path, Array],
"outfile": path,
"replace": Boolean,
"quiet": Boolean,
"type": ["js", "css", "html"],
"config": path
},
// dasherizeShorthands provides { "indent-size": ["--indent_size"] }
// translation, allowing more convenient dashes in CLI arguments
shortHands = dasherizeShorthands({
// Beautifier
"s": ["--indent_size"],
"c": ["--indent_char"],
"l": ["--indent_level"],
"t": ["--indent_with_tabs"],
"p": ["--preserve_newlines"],
"m": ["--max_preserve_newlines"],
"P": ["--space_in_paren"],
"E": ["--space_in_empty_paren"],
"j": ["--jslint_happy"],
"a": ["--space_after_anon_function"],
"b": ["--brace_style"],
"B": ["--break_chained_methods"],
"k": ["--keep_array_indentation"],
"x": ["--unescape_strings"],
"w": ["--wrap_line_length"],
"X": ["--e4x"],
"n": ["--end_with_newline"],
// CSS-only
"L": ["--selector_separator_newline"],
"N": ["--newline_between_rules"],
// HTML-only
"W": ["--max_char"], // obsolete since 1.3.5
"U": ["--unformatted"],
"I": ["--indent_inner_html"],
"S": ["--indent_scripts"],
// non-dasherized hybrid shortcuts
"good-stuff": [
"--keep_array_indentation",
"--keep_function_indentation",
"--jslint_happy"
],
"js": ["--type", "js"],
"css": ["--type", "css"],
"html": ["--type", "html"],
// CLI
"v": ["--version"],
"h": ["--help"],
"f": ["--files"],
"o": ["--outfile"],
"r": ["--replace"],
"q": ["--quiet"]
// no shorthand for "config"
});
function verifyExists(fullPath) {
return fs.existsSync(fullPath) ? fullPath : null;
}
function findRecursive(dir, fileName) {
var fullPath = path.join(dir, fileName);
var nextDir = path.dirname(dir);
var result = verifyExists(fullPath);
if (!result && (nextDir !== dir)) {
result = findRecursive(nextDir, fileName);
}
return result;
}
function getUserHome() {
return process.env.HOME || process.env.USERPROFILE;
}
// var cli = require('js-beautify/cli'); cli.interpret();
var interpret = exports.interpret = function(argv, slice) {
var parsed = nopt(knownOpts, shortHands, argv, slice);
if (parsed.version) {
console.log(require('../../package.json').version);
process.exit(0);
} else if (parsed.help) {
usage();
process.exit(0);
}
var cfg = cc(
parsed,
cleanOptions(cc.env('jsbeautify_'), knownOpts),
parsed.config,
findRecursive(process.cwd(), '.jsbeautifyrc'),
verifyExists(path.join(getUserHome() || "", ".jsbeautifyrc")),
__dirname + '/../config/defaults.json'
).snapshot;
try {
// Verify arguments
checkType(cfg);
checkFiles(cfg);
debug(cfg);
// Process files synchronously to avoid EMFILE error
cfg.files.forEach(processInputSync, {
cfg: cfg
});
} catch (ex) {
debug(cfg);
// usage(ex);
console.error(ex);
console.error('Run `' + getScriptName() + ' -h` for help.');
process.exit(1);
}
};
// interpret args immediately when called as executable
if (require.main === module) {
interpret();
}
function usage(err) {
var scriptName = getScriptName();
var msg = [
scriptName + '@' + require('../../package.json').version,
'',
'CLI Options:',
' -f, --file Input file(s) (Pass \'-\' for stdin)',
' -r, --replace Write output in-place, replacing input',
' -o, --outfile Write output to file (default stdout)',
' --config Path to config file',
' --type [js|css|html] ["js"]',
' -q, --quiet Suppress logging to stdout',
' -h, --help Show this help',
' -v, --version Show the version',
'',
'Beautifier Options:',
' -s, --indent-size Indentation size [4]',
' -c, --indent-char Indentation character [" "]'
];
switch (scriptName.split('-').shift()) {
case "js":
msg.push(' -l, --indent-level Initial indentation level [0]');
msg.push(' -t, --indent-with-tabs Indent with tabs, overrides -s and -c');
msg.push(' -p, --preserve-newlines Preserve line-breaks (--no-preserve-newlines disables)');
msg.push(' -m, --max-preserve-newlines Number of line-breaks to be preserved in one chunk [10]');
msg.push(' -P, --space-in-paren Add padding spaces within paren, ie. f( a, b )');
msg.push(' -E, --space-in-empty-paren Add a single space inside empty paren, ie. f( )');
msg.push(' -j, --jslint-happy Enable jslint-stricter mode');
msg.push(' -a, --space-after-anon-function Add a space before an anonymous function\'s parens, ie. function ()');
msg.push(' -b, --brace-style [collapse|expand|end-expand|none] ["collapse"]');
msg.push(' -B, --break-chained-methods Break chained method calls across subsequent lines');
msg.push(' -k, --keep-array-indentation Preserve array indentation');
msg.push(' -x, --unescape-strings Decode printable characters encoded in xNN notation');
msg.push(' -w, --wrap-line-length Wrap lines at next opportunity after N characters [0]');
msg.push(' -X, --e4x Pass E4X xml literals through untouched');
msg.push(' --good-stuff Warm the cockles of Crockford\'s heart');
msg.push(' -n, --end_with_newline End output with newline');
break;
case "html":
msg.push(' -b, --brace-style [collapse|expand|end-expand] ["collapse"]');
msg.push(' -I, --indent-inner-html Indent body and head sections. Default is false.');
msg.push(' -S, --indent-scripts [keep|separate|normal] ["normal"]');
msg.push(' -w, --wrap-line-length Wrap lines at next opportunity after N characters [0]');
msg.push(' -p, --preserve-newlines Preserve line-breaks (--no-preserve-newlines disables)');
msg.push(' -m, --max-preserve-newlines Number of line-breaks to be preserved in one chunk [10]');
msg.push(' -U, --unformatted List of tags (defaults to inline) that should not be reformatted');
break;
case "css":
msg.push(' -L, --selector-separator-newline Add a newline between multiple selectors.')
msg.push(' -N, --newline-between-rules Add a newline between CSS rules.')
}
if (err) {
msg.push(err);
msg.push('');
console.error(msg.join('\n'));
} else {
console.log(msg.join('\n'));
}
}
// main iterator, {cfg} passed as thisArg of forEach call
function processInputSync(filepath) {
var data = '',
config = this.cfg,
outfile = config.outfile,
input;
// -o passed with no value overwrites
if (outfile === true || config.replace) {
outfile = filepath;
}
if (filepath === '-') {
input = process.stdin;
input.resume();
input.setEncoding('utf8');
input.on('data', function(chunk) {
data += chunk;
});
input.on('end', function() {
makePretty(data, config, outfile, writePretty);
});
} else {
var dir = path.dirname(outfile);
mkdirp.sync(dir);
data = fs.readFileSync(filepath, 'utf8');
makePretty(data, config, outfile, writePretty);
}
}
function makePretty(code, config, outfile, callback) {
try {
var fileType = getOutputType(outfile, config.type);
var pretty = beautify[fileType](code, config);
callback(null, pretty, outfile, config);
} catch (ex) {
callback(ex);
}
}
function writePretty(err, pretty, outfile, config) {
if (err) {
console.error(err);
process.exit(1);
}
if (outfile) {
try {
fs.writeFileSync(outfile, pretty, 'utf8');
logToStdout('beautified ' + path.relative(process.cwd(), outfile), config);
} catch (ex) {
onOutputError(ex);
}
} else {
process.stdout.write(pretty);
}
}
// workaround the fact that nopt.clean doesn't return the object passed in :P
function cleanOptions(data, types) {
nopt.clean(data, types);
return data;
}
// error handler for output stream that swallows errors silently,
// allowing the loop to continue over unwritable files.
function onOutputError(err) {
if (err.code === 'EACCES') {
console.error(err.path + " is not writable. Skipping!");
} else {
console.error(err);
process.exit(0);
}
}
// turn "--foo_bar" into "foo-bar"
function dasherizeFlag(str) {
return str.replace(/^\-+/, '').replace(/_/g, '-');
}
// translate weird python underscored keys into dashed argv,
// avoiding single character aliases.
function dasherizeShorthands(hash) {
// operate in-place
Object.keys(hash).forEach(function(key) {
// each key value is an array
var val = hash[key][0];
// only dasherize one-character shorthands
if (key.length === 1 && val.indexOf('_') > -1) {
hash[dasherizeFlag(val)] = val;
}
});
return hash;
}
function getOutputType(outfile, configType) {
if (outfile && /\.(js|css|html)$/.test(outfile)) {
return outfile.split('.').pop();
}
return configType;
}
function getScriptName() {
return path.basename(process.argv[1]);
}
function checkType(parsed) {
var scriptType = getScriptName().split('-').shift();
debug("executable type:", scriptType);
var parsedType = parsed.type;
debug("parsed type:", parsedType);
if (!parsedType) {
debug("type defaulted:", scriptType);
parsed.type = scriptType;
}
}
function checkFiles(parsed) {
var argv = parsed.argv;
if (!parsed.files) {
parsed.files = [];
} else {
if (argv.cooked.indexOf('-') > -1) {
// strip stdin path eagerly added by nopt in '-f -' case
parsed.files.some(removeDashedPath);
}
}
if (argv.remain.length) {
// assume any remaining args are files
argv.remain.forEach(function(f) {
parsed.files.push(path.resolve(f));
});
}
if ('string' === typeof parsed.outfile && !parsed.files.length) {
// use outfile as input when no other files passed in args
parsed.files.push(parsed.outfile);
// operation is now an implicit overwrite
parsed.replace = true;
}
if (argv.original.indexOf('-') > -1) {
// ensure '-' without '-f' still consumes stdin
parsed.files.push('-');
}
if (!parsed.files.length) {
throw 'Must define at least one file.';
}
debug('files.length ' + parsed.files.length);
parsed.files.forEach(testFilePath);
return parsed;
}
function removeDashedPath(filepath, i, arr) {
var found = filepath.lastIndexOf('-') === (filepath.length - 1);
if (found) {
arr.splice(i, 1);
}
return found;
}
function testFilePath(filepath) {
try {
if (filepath !== "-") {
fs.statSync(filepath);
}
} catch (err) {
throw 'Unable to open path "' + filepath + '"';
}
}
function logToStdout(str, config) {
if (typeof config.quiet === "undefined" || !config.quiet) {
console.log(str);
}
}
| J2TeaM/js-beautify | js/lib/cli.js | JavaScript | mit | 14,890 |
var util = require('util');
/**
* @param options {Object} A data blob parsed from a query string or JSON
* response from the Asana API
* @option {String} error The string code identifying the error.
* @option {String} [error_uri] A link to help and information about the error.
* @option {String} [error_description] A description of the error.
* @constructor
*/
function OauthError(options) {
/* jshint camelcase:false */
Error.call(this);
if (typeof(options) !== 'object' || !options.error) {
throw new Error('Invalid Oauth error: ' + options);
}
this.code = options.error;
this.description = options.error_description || null;
this.uri = options.error_uri || null;
}
util.inherits(OauthError, Error);
module.exports = OauthError; | Asana/node-asana | lib/auth/oauth_error.js | JavaScript | mit | 761 |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
* Please make sure to make edits in the .ts file at https://github.com/microsoft/vscode-loader/
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*---------------------------------------------------------------------------------------------
*--------------------------------------------------------------------------------------------*/
'use strict';
var _cssPluginGlobal = this;
var CSSBuildLoaderPlugin;
(function (CSSBuildLoaderPlugin) {
var global = (_cssPluginGlobal || {});
/**
* Known issue:
* - In IE there is no way to know if the CSS file loaded successfully or not.
*/
var BrowserCSSLoader = /** @class */ (function () {
function BrowserCSSLoader() {
this._pendingLoads = 0;
}
BrowserCSSLoader.prototype.attachListeners = function (name, linkNode, callback, errorback) {
var unbind = function () {
linkNode.removeEventListener('load', loadEventListener);
linkNode.removeEventListener('error', errorEventListener);
};
var loadEventListener = function (e) {
unbind();
callback();
};
var errorEventListener = function (e) {
unbind();
errorback(e);
};
linkNode.addEventListener('load', loadEventListener);
linkNode.addEventListener('error', errorEventListener);
};
BrowserCSSLoader.prototype._onLoad = function (name, callback) {
this._pendingLoads--;
callback();
};
BrowserCSSLoader.prototype._onLoadError = function (name, errorback, err) {
this._pendingLoads--;
errorback(err);
};
BrowserCSSLoader.prototype._insertLinkNode = function (linkNode) {
this._pendingLoads++;
var head = document.head || document.getElementsByTagName('head')[0];
var other = head.getElementsByTagName('link') || head.getElementsByTagName('script');
if (other.length > 0) {
head.insertBefore(linkNode, other[other.length - 1]);
}
else {
head.appendChild(linkNode);
}
};
BrowserCSSLoader.prototype.createLinkTag = function (name, cssUrl, externalCallback, externalErrorback) {
var _this = this;
var linkNode = document.createElement('link');
linkNode.setAttribute('rel', 'stylesheet');
linkNode.setAttribute('type', 'text/css');
linkNode.setAttribute('data-name', name);
var callback = function () { return _this._onLoad(name, externalCallback); };
var errorback = function (err) { return _this._onLoadError(name, externalErrorback, err); };
this.attachListeners(name, linkNode, callback, errorback);
linkNode.setAttribute('href', cssUrl);
return linkNode;
};
BrowserCSSLoader.prototype._linkTagExists = function (name, cssUrl) {
var i, len, nameAttr, hrefAttr, links = document.getElementsByTagName('link');
for (i = 0, len = links.length; i < len; i++) {
nameAttr = links[i].getAttribute('data-name');
hrefAttr = links[i].getAttribute('href');
if (nameAttr === name || hrefAttr === cssUrl) {
return true;
}
}
return false;
};
BrowserCSSLoader.prototype.load = function (name, cssUrl, externalCallback, externalErrorback) {
if (this._linkTagExists(name, cssUrl)) {
externalCallback();
return;
}
var linkNode = this.createLinkTag(name, cssUrl, externalCallback, externalErrorback);
this._insertLinkNode(linkNode);
};
return BrowserCSSLoader;
}());
var NodeCSSLoader = /** @class */ (function () {
function NodeCSSLoader() {
this.fs = require.nodeRequire('fs');
}
NodeCSSLoader.prototype.load = function (name, cssUrl, externalCallback, externalErrorback) {
var contents = this.fs.readFileSync(cssUrl, 'utf8');
// Remove BOM
if (contents.charCodeAt(0) === NodeCSSLoader.BOM_CHAR_CODE) {
contents = contents.substring(1);
}
externalCallback(contents);
};
NodeCSSLoader.BOM_CHAR_CODE = 65279;
return NodeCSSLoader;
}());
// ------------------------------ Finally, the plugin
var CSSPlugin = /** @class */ (function () {
function CSSPlugin(cssLoader) {
this.cssLoader = cssLoader;
}
CSSPlugin.prototype.load = function (name, req, load, config) {
config = config || {};
var myConfig = config['vs/css'] || {};
global.inlineResources = myConfig.inlineResources;
global.inlineResourcesLimit = myConfig.inlineResourcesLimit || 5000;
var cssUrl = req.toUrl(name + '.css');
this.cssLoader.load(name, cssUrl, function (contents) {
// Contents has the CSS file contents if we are in a build
if (config.isBuild) {
CSSPlugin.BUILD_MAP[name] = contents;
CSSPlugin.BUILD_PATH_MAP[name] = cssUrl;
}
load({});
}, function (err) {
if (typeof load.error === 'function') {
load.error('Could not find ' + cssUrl + ' or it was empty');
}
});
};
CSSPlugin.prototype.write = function (pluginName, moduleName, write) {
// getEntryPoint is a Monaco extension to r.js
var entryPoint = write.getEntryPoint();
// r.js destroys the context of this plugin between calling 'write' and 'writeFile'
// so the only option at this point is to leak the data to a global
global.cssPluginEntryPoints = global.cssPluginEntryPoints || {};
global.cssPluginEntryPoints[entryPoint] = global.cssPluginEntryPoints[entryPoint] || [];
global.cssPluginEntryPoints[entryPoint].push({
moduleName: moduleName,
contents: CSSPlugin.BUILD_MAP[moduleName],
fsPath: CSSPlugin.BUILD_PATH_MAP[moduleName],
});
write.asModule(pluginName + '!' + moduleName, 'define([\'vs/css!' + entryPoint + '\'], {});');
};
CSSPlugin.prototype.writeFile = function (pluginName, moduleName, req, write, config) {
if (global.cssPluginEntryPoints && global.cssPluginEntryPoints.hasOwnProperty(moduleName)) {
var fileName = req.toUrl(moduleName + '.css');
var contents = [
'/*---------------------------------------------------------',
' * Copyright (c) Microsoft Corporation. All rights reserved.',
' *--------------------------------------------------------*/'
], entries = global.cssPluginEntryPoints[moduleName];
for (var i = 0; i < entries.length; i++) {
if (global.inlineResources) {
contents.push(Utilities.rewriteOrInlineUrls(entries[i].fsPath, entries[i].moduleName, moduleName, entries[i].contents, global.inlineResources === 'base64', global.inlineResourcesLimit));
}
else {
contents.push(Utilities.rewriteUrls(entries[i].moduleName, moduleName, entries[i].contents));
}
}
write(fileName, contents.join('\r\n'));
}
};
CSSPlugin.prototype.getInlinedResources = function () {
return global.cssInlinedResources || [];
};
CSSPlugin.BUILD_MAP = {};
CSSPlugin.BUILD_PATH_MAP = {};
return CSSPlugin;
}());
CSSBuildLoaderPlugin.CSSPlugin = CSSPlugin;
var Utilities = /** @class */ (function () {
function Utilities() {
}
Utilities.startsWith = function (haystack, needle) {
return haystack.length >= needle.length && haystack.substr(0, needle.length) === needle;
};
/**
* Find the path of a file.
*/
Utilities.pathOf = function (filename) {
var lastSlash = filename.lastIndexOf('/');
if (lastSlash !== -1) {
return filename.substr(0, lastSlash + 1);
}
else {
return '';
}
};
/**
* A conceptual a + b for paths.
* Takes into account if `a` contains a protocol.
* Also normalizes the result: e.g.: a/b/ + ../c => a/c
*/
Utilities.joinPaths = function (a, b) {
function findSlashIndexAfterPrefix(haystack, prefix) {
if (Utilities.startsWith(haystack, prefix)) {
return Math.max(prefix.length, haystack.indexOf('/', prefix.length));
}
return 0;
}
var aPathStartIndex = 0;
aPathStartIndex = aPathStartIndex || findSlashIndexAfterPrefix(a, '//');
aPathStartIndex = aPathStartIndex || findSlashIndexAfterPrefix(a, 'http://');
aPathStartIndex = aPathStartIndex || findSlashIndexAfterPrefix(a, 'https://');
function pushPiece(pieces, piece) {
if (piece === './') {
// Ignore
return;
}
if (piece === '../') {
var prevPiece = (pieces.length > 0 ? pieces[pieces.length - 1] : null);
if (prevPiece && prevPiece === '/') {
// Ignore
return;
}
if (prevPiece && prevPiece !== '../') {
// Pop
pieces.pop();
return;
}
}
// Push
pieces.push(piece);
}
function push(pieces, path) {
while (path.length > 0) {
var slashIndex = path.indexOf('/');
var piece = (slashIndex >= 0 ? path.substring(0, slashIndex + 1) : path);
path = (slashIndex >= 0 ? path.substring(slashIndex + 1) : '');
pushPiece(pieces, piece);
}
}
var pieces = [];
push(pieces, a.substr(aPathStartIndex));
if (b.length > 0 && b.charAt(0) === '/') {
pieces = [];
}
push(pieces, b);
return a.substring(0, aPathStartIndex) + pieces.join('');
};
Utilities.commonPrefix = function (str1, str2) {
var len = Math.min(str1.length, str2.length);
for (var i = 0; i < len; i++) {
if (str1.charCodeAt(i) !== str2.charCodeAt(i)) {
break;
}
}
return str1.substring(0, i);
};
Utilities.commonFolderPrefix = function (fromPath, toPath) {
var prefix = Utilities.commonPrefix(fromPath, toPath);
var slashIndex = prefix.lastIndexOf('/');
if (slashIndex === -1) {
return '';
}
return prefix.substring(0, slashIndex + 1);
};
Utilities.relativePath = function (fromPath, toPath) {
if (Utilities.startsWith(toPath, '/') || Utilities.startsWith(toPath, 'http://') || Utilities.startsWith(toPath, 'https://')) {
return toPath;
}
// Ignore common folder prefix
var prefix = Utilities.commonFolderPrefix(fromPath, toPath);
fromPath = fromPath.substr(prefix.length);
toPath = toPath.substr(prefix.length);
var upCount = fromPath.split('/').length;
var result = '';
for (var i = 1; i < upCount; i++) {
result += '../';
}
return result + toPath;
};
Utilities._replaceURL = function (contents, replacer) {
// Use ")" as the terminator as quotes are oftentimes not used at all
return contents.replace(/url\(\s*([^\)]+)\s*\)?/g, function (_) {
var matches = [];
for (var _i = 1; _i < arguments.length; _i++) {
matches[_i - 1] = arguments[_i];
}
var url = matches[0];
// Eliminate starting quotes (the initial whitespace is not captured)
if (url.charAt(0) === '"' || url.charAt(0) === '\'') {
url = url.substring(1);
}
// The ending whitespace is captured
while (url.length > 0 && (url.charAt(url.length - 1) === ' ' || url.charAt(url.length - 1) === '\t')) {
url = url.substring(0, url.length - 1);
}
// Eliminate ending quotes
if (url.charAt(url.length - 1) === '"' || url.charAt(url.length - 1) === '\'') {
url = url.substring(0, url.length - 1);
}
if (!Utilities.startsWith(url, 'data:') && !Utilities.startsWith(url, 'http://') && !Utilities.startsWith(url, 'https://')) {
url = replacer(url);
}
return 'url(' + url + ')';
});
};
Utilities.rewriteUrls = function (originalFile, newFile, contents) {
return this._replaceURL(contents, function (url) {
var absoluteUrl = Utilities.joinPaths(Utilities.pathOf(originalFile), url);
return Utilities.relativePath(newFile, absoluteUrl);
});
};
Utilities.rewriteOrInlineUrls = function (originalFileFSPath, originalFile, newFile, contents, forceBase64, inlineByteLimit) {
var fs = require.nodeRequire('fs');
var path = require.nodeRequire('path');
return this._replaceURL(contents, function (url) {
if (/\.(svg|png)$/.test(url)) {
var fsPath = path.join(path.dirname(originalFileFSPath), url);
var fileContents = fs.readFileSync(fsPath);
if (fileContents.length < inlineByteLimit) {
global.cssInlinedResources = global.cssInlinedResources || [];
var normalizedFSPath = fsPath.replace(/\\/g, '/');
if (global.cssInlinedResources.indexOf(normalizedFSPath) >= 0) {
// console.warn('CSS INLINING IMAGE AT ' + fsPath + ' MORE THAN ONCE. CONSIDER CONSOLIDATING CSS RULES');
}
global.cssInlinedResources.push(normalizedFSPath);
var MIME = /\.svg$/.test(url) ? 'image/svg+xml' : 'image/png';
var DATA = ';base64,' + fileContents.toString('base64');
if (!forceBase64 && /\.svg$/.test(url)) {
// .svg => url encode as explained at https://codepen.io/tigt/post/optimizing-svgs-in-data-uris
var newText = fileContents.toString()
.replace(/"/g, '\'')
.replace(/</g, '%3C')
.replace(/>/g, '%3E')
.replace(/&/g, '%26')
.replace(/#/g, '%23')
.replace(/\s+/g, ' ');
var encodedData = ',' + newText;
if (encodedData.length < DATA.length) {
DATA = encodedData;
}
}
return '"data:' + MIME + DATA + '"';
}
}
var absoluteUrl = Utilities.joinPaths(Utilities.pathOf(originalFile), url);
return Utilities.relativePath(newFile, absoluteUrl);
});
};
return Utilities;
}());
CSSBuildLoaderPlugin.Utilities = Utilities;
(function () {
var cssLoader = null;
var isElectron = (typeof process !== 'undefined' && typeof process.versions !== 'undefined' && typeof process.versions['electron'] !== 'undefined');
if (typeof process !== 'undefined' && process.versions && !!process.versions.node && !isElectron) {
cssLoader = new NodeCSSLoader();
}
else {
cssLoader = new BrowserCSSLoader();
}
define('vs/css', new CSSPlugin(cssLoader));
})();
})(CSSBuildLoaderPlugin || (CSSBuildLoaderPlugin = {}));
| Krzysztof-Cieslak/vscode | src/vs/css.build.js | JavaScript | mit | 17,970 |
DEMO.App.factory("utilitiesService", ["$http", function ($http) {
"use strict";
var getQueryStringValue = function (name) {
try {
var args = window.location.search.substring(1).split("&");
var r = "";
for (var i = 0; i < args.length; i++) {
var n = args[i].split("=");
if (n[0] == name)
r = decodeURIComponent(n[1]);
}
return r;
}
catch (err) {
return 'undefined';
}
};
return {
getQueryStringValue: getQueryStringValue
};
}]); | dafunkphenomenon/dev | JSLinkModule/JSLinkModule/Scripts/app/services/utilities.js | JavaScript | mit | 618 |
'use strict';
var grunt = require('grunt');
var fs = require('fs');
var rimraf = require('rimraf');
var mkdirp = require('mkdirp');
var flow = require('nue').flow;
var as = require('nue').as;
var _h = require('./testHelpers');
var throwOrDone = _h.throwOrDone;
var output = _h.fixtures('output');
var istanbul = require('istanbul');
var helper = require('../tasks/helpers').init(grunt);
var isparta = require('isparta');
/*
* ======== A Handy Little Nodeunit Reference ========
* https://github.com/caolan/nodeunit
*/
exports['istanbul'] = {
setUp : function(done) {
flow(function() {
mkdirp(output(), this.async(as(1)));
}, throwOrDone(done))();
},
tearDown : function(done) {
rimraf(output(), done);
},
'instrument' : function(test) {
test.expect(3);
var fixtures = _h.fixtures('instrument');
helper.instrument([ fixtures('hello.js') ], {
basePath : output(),
flatten : true
}, flow(function read() {
fs.stat(fixtures('hello.js'), this.async(as(1)));
fs.stat(output('hello.js'), this.async(as(1)));
}, function(src, dest) {
test.equal(true, src.isFile());
test.equal(src.isFile(), dest.isFile());
test.equal(true, src.size < dest.size);
this.next();
}, throwOrDone(test.done.bind(test))));
},
'customInstrument': function(test) {
test.expect(3);
var fixtures = _h.fixtures('instrument');
helper.instrument([ fixtures('hello.es6') ], {
basePath : output(),
flatten : true,
instrumenter: isparta.Instrumenter
}, flow(function read() {
fs.stat(fixtures('hello.es6'), this.async(as(1)));
fs.stat(output('hello.es6'), this.async(as(1)));
}, function(src, dest) {
test.equal(true, src.isFile());
test.equal(src.isFile(), dest.isFile());
test.equal(true, src.size < dest.size);
this.next();
}, throwOrDone(test.done.bind(test))));
},
'storeCoverage' : function(test) {
test.expect(1);
var fixtures = _h.fixtures('storeCoverage');
var cov = JSON.parse('{ "aaa":1, "bbb":2, "ccc":3 }');
helper.storeCoverage(cov, {
dir : output(),
json : 'coverage.json'
}, flow(function read() {
fs.readFile(output('coverage.json'), 'utf8', this.async(as(1)));
}, function assert(txt) {
test.deepEqual(cov, JSON.parse(txt));
this.next();
}, throwOrDone(test.done.bind(test))));
},
'makeReport' : function(test) {
test.expect(2);
var fixtures = _h.fixtures('makeReport');
helper.makeReport([ fixtures('coverage.json') ], {
type : 'lcov',
dir : output(),
print : 'none'
}, flow(function read() {
fs.readFile(output('lcov.info'), 'utf8', this.async(as(1)));
fs.readFile(output('lcov-report/index.html'), 'utf8', this.async(as(1)));
}, function assert(lcov, html) {
test.ok(lcov);
test.ok(html);
this.next();
}, throwOrDone(test.done.bind(test))));
},
'makeReport.reporters' : function(test) {
test.expect(4);
var fixtures = _h.fixtures('makeReport');
var textNotWritten = true;
var TextReport = istanbul.Report.create('text').constructor;
var writeTextReport = TextReport.prototype.writeReport;
TextReport.prototype.writeReport = function() {
textNotWritten = false;
};
var textSummaryWritten = false;
var TextSummaryReport = istanbul.Report.create('text-summary').constructor;
var writeTextSummaryReport = TextSummaryReport.prototype.writeReport;
TextSummaryReport.prototype.writeReport = function() {
textSummaryWritten = true;
};
helper.makeReport([ fixtures('coverage.json') ], {
reporters : {
lcov : {dir : output()},
text : false,
'text-summary' : true
},
print : 'none'
}, flow(function read() {
fs.readFile(output('lcov.info'), 'utf8', this.async(as(1)));
fs.readFile(output('lcov-report/index.html'), 'utf8', this.async(as(1)));
}, function assert(lcov, html) {
TextReport.prototype.writeReport = writeTextReport;
TextSummaryReport.prototype.writeReport = writeTextSummaryReport;
test.ok(lcov);
test.ok(html);
test.ok(textNotWritten);
test.ok(textSummaryWritten);
this.next();
}, throwOrDone(test.done.bind(test))));
}
};
| acvetkov/grunt-istanbul | test/istanbul_test.js | JavaScript | mit | 4,311 |
// flow-typed signature: 5dc7d0ac7123cc9ec9614b8a8edda194
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.2.0/flow_v0.48.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-plugin-import'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'eslint-plugin-import' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'eslint-plugin-import/config/electron' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/config/errors' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/config/react-native' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/config/react' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/config/recommended' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/config/stage-0' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/config/warnings' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/core/importType' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/core/staticRequire' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/ExportMap' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/importDeclaration' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/index' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/default' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/export' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/extensions' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/first' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/imports-first' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/max-dependencies' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/named' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/namespace' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/newline-after-import' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-absolute-path' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-amd' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-anonymous-default-export' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-commonjs' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-deprecated' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-duplicates' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-dynamic-require' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-extraneous-dependencies' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-internal-modules' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-mutable-exports' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-named-as-default-member' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-named-as-default' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-named-default' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-namespace' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-nodejs-modules' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-restricted-paths' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-unassigned-import' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-unresolved' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/no-webpack-loader-syntax' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/order' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/prefer-default-export' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/lib/rules/unambiguous' {
declare module.exports: any;
}
declare module 'eslint-plugin-import/memo-parser/index' {
declare module.exports: any;
}
// Filename aliases
declare module 'eslint-plugin-import/config/electron.js' {
declare module.exports: $Exports<'eslint-plugin-import/config/electron'>;
}
declare module 'eslint-plugin-import/config/errors.js' {
declare module.exports: $Exports<'eslint-plugin-import/config/errors'>;
}
declare module 'eslint-plugin-import/config/react-native.js' {
declare module.exports: $Exports<'eslint-plugin-import/config/react-native'>;
}
declare module 'eslint-plugin-import/config/react.js' {
declare module.exports: $Exports<'eslint-plugin-import/config/react'>;
}
declare module 'eslint-plugin-import/config/recommended.js' {
declare module.exports: $Exports<'eslint-plugin-import/config/recommended'>;
}
declare module 'eslint-plugin-import/config/stage-0.js' {
declare module.exports: $Exports<'eslint-plugin-import/config/stage-0'>;
}
declare module 'eslint-plugin-import/config/warnings.js' {
declare module.exports: $Exports<'eslint-plugin-import/config/warnings'>;
}
declare module 'eslint-plugin-import/lib/core/importType.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/core/importType'>;
}
declare module 'eslint-plugin-import/lib/core/staticRequire.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/core/staticRequire'>;
}
declare module 'eslint-plugin-import/lib/ExportMap.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/ExportMap'>;
}
declare module 'eslint-plugin-import/lib/importDeclaration.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/importDeclaration'>;
}
declare module 'eslint-plugin-import/lib/index.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/index'>;
}
declare module 'eslint-plugin-import/lib/rules/default.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/default'>;
}
declare module 'eslint-plugin-import/lib/rules/export.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/export'>;
}
declare module 'eslint-plugin-import/lib/rules/extensions.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/extensions'>;
}
declare module 'eslint-plugin-import/lib/rules/first.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/first'>;
}
declare module 'eslint-plugin-import/lib/rules/imports-first.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/imports-first'>;
}
declare module 'eslint-plugin-import/lib/rules/max-dependencies.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/max-dependencies'>;
}
declare module 'eslint-plugin-import/lib/rules/named.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/named'>;
}
declare module 'eslint-plugin-import/lib/rules/namespace.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/namespace'>;
}
declare module 'eslint-plugin-import/lib/rules/newline-after-import.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/newline-after-import'>;
}
declare module 'eslint-plugin-import/lib/rules/no-absolute-path.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-absolute-path'>;
}
declare module 'eslint-plugin-import/lib/rules/no-amd.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-amd'>;
}
declare module 'eslint-plugin-import/lib/rules/no-anonymous-default-export.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-anonymous-default-export'>;
}
declare module 'eslint-plugin-import/lib/rules/no-commonjs.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-commonjs'>;
}
declare module 'eslint-plugin-import/lib/rules/no-deprecated.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-deprecated'>;
}
declare module 'eslint-plugin-import/lib/rules/no-duplicates.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-duplicates'>;
}
declare module 'eslint-plugin-import/lib/rules/no-dynamic-require.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-dynamic-require'>;
}
declare module 'eslint-plugin-import/lib/rules/no-extraneous-dependencies.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-extraneous-dependencies'>;
}
declare module 'eslint-plugin-import/lib/rules/no-internal-modules.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-internal-modules'>;
}
declare module 'eslint-plugin-import/lib/rules/no-mutable-exports.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-mutable-exports'>;
}
declare module 'eslint-plugin-import/lib/rules/no-named-as-default-member.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-named-as-default-member'>;
}
declare module 'eslint-plugin-import/lib/rules/no-named-as-default.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-named-as-default'>;
}
declare module 'eslint-plugin-import/lib/rules/no-named-default.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-named-default'>;
}
declare module 'eslint-plugin-import/lib/rules/no-namespace.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-namespace'>;
}
declare module 'eslint-plugin-import/lib/rules/no-nodejs-modules.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-nodejs-modules'>;
}
declare module 'eslint-plugin-import/lib/rules/no-restricted-paths.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-restricted-paths'>;
}
declare module 'eslint-plugin-import/lib/rules/no-unassigned-import.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-unassigned-import'>;
}
declare module 'eslint-plugin-import/lib/rules/no-unresolved.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-unresolved'>;
}
declare module 'eslint-plugin-import/lib/rules/no-webpack-loader-syntax.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/no-webpack-loader-syntax'>;
}
declare module 'eslint-plugin-import/lib/rules/order.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/order'>;
}
declare module 'eslint-plugin-import/lib/rules/prefer-default-export.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/prefer-default-export'>;
}
declare module 'eslint-plugin-import/lib/rules/unambiguous.js' {
declare module.exports: $Exports<'eslint-plugin-import/lib/rules/unambiguous'>;
}
declare module 'eslint-plugin-import/memo-parser/index.js' {
declare module.exports: $Exports<'eslint-plugin-import/memo-parser/index'>;
}
| michalkvasnicak/spust | packages/spust/flow-typed/npm/eslint-plugin-import_vx.x.x.js | JavaScript | mit | 11,638 |
/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.SoftwareRenderer = function () {
console.log( 'THREE.SoftwareRenderer', THREE.REVISION );
var canvas = document.createElement( 'canvas' );
var context = canvas.getContext( '2d' );
var imagedata = context.getImageData( 0, 0, canvas.width, canvas.height );
var data = imagedata.data;
var canvasWidth = canvas.width;
var canvasHeight = canvas.height;
var canvasWidthHalf = canvasWidth / 2;
var canvasHeightHalf = canvasHeight / 2;
var edges = [ new Edge(), new Edge(), new Edge() ];
var span = new Span();
var projector = new THREE.Projector();
this.domElement = canvas;
this.autoClear = true;
this.setSize = function ( width, height ) {
canvas.width = width;
canvas.height = height;
canvasWidth = canvas.width;
canvasHeight = canvas.height;
canvasWidthHalf = width / 2;
canvasHeightHalf = height / 2;
imagedata = context.getImageData( 0, 0, width, height );
data = imagedata.data;
};
this.clear = function () {
for ( var i = 3, l = data.length; i < l; i += 4 ) {
data[ i ] = 0;
}
};
this.render = function ( scene, camera ) {
var m, ml, element, material, dom, v1x, v1y;
if ( this.autoClear ) this.clear();
var renderData = projector.projectScene( scene, camera );
var elements = renderData.elements;
elements.sort( function painterSort( a, b ) { return a.z - b.z; } );
for ( var e = 0, el = elements.length; e < el; e ++ ) {
var element = elements[ e ];
if ( element instanceof THREE.RenderableFace3 ) {
var v1 = element.v1.positionScreen;
var v2 = element.v2.positionScreen;
var v3 = element.v3.positionScreen;
drawTriangle(
v1.x * canvasWidthHalf + canvasWidthHalf,
- v1.y * canvasHeightHalf + canvasHeightHalf,
0xff0000,
v2.x * canvasWidthHalf + canvasWidthHalf,
- v2.y * canvasHeightHalf + canvasHeightHalf,
0x00ff00,
v3.x * canvasWidthHalf + canvasWidthHalf,
- v3.y * canvasHeightHalf + canvasHeightHalf,
0x0000ff
)
} else if ( element instanceof THREE.RenderableFace4 ) {
var v1 = element.v1.positionScreen;
var v2 = element.v2.positionScreen;
var v3 = element.v3.positionScreen;
var v4 = element.v4.positionScreen;
drawTriangle(
v1.x * canvasWidthHalf + canvasWidthHalf,
- v1.y * canvasHeightHalf + canvasHeightHalf,
0xff0000,
v2.x * canvasWidthHalf + canvasWidthHalf,
- v2.y * canvasHeightHalf + canvasHeightHalf,
0x00ff00,
v3.x * canvasWidthHalf + canvasWidthHalf,
- v3.y * canvasHeightHalf + canvasHeightHalf,
0x0000ff
);
drawTriangle(
v3.x * canvasWidthHalf + canvasWidthHalf,
- v3.y * canvasHeightHalf + canvasHeightHalf,
0x0000ff,
v4.x * canvasWidthHalf + canvasWidthHalf,
- v4.y * canvasHeightHalf + canvasHeightHalf,
0xff00ff,
v1.x * canvasWidthHalf + canvasWidthHalf,
- v1.y * canvasHeightHalf + canvasHeightHalf,
0xff0000
);
}
}
context.putImageData( imagedata, 0, 0 );
};
function drawPixel( x, y, r, g, b ) {
var offset = ( x + y * canvasWidth ) * 4;
if ( x < 0 || y < 0 ) return;
if ( x > canvasWidth || y > canvasHeight ) return;
if ( data[ offset + 3 ] ) return;
data[ offset ] = r;
data[ offset + 1 ] = g;
data[ offset + 2 ] = b;
data[ offset + 3 ] = 255;
}
/*
function drawRectangle( x1, y1, x2, y2, color ) {
var r = color >> 16 & 255;
var g = color >> 8 & 255;
var b = color & 255;
var xmin = Math.min( x1, x2 ) >> 0;
var xmax = Math.max( x1, x2 ) >> 0;
var ymin = Math.min( y1, y2 ) >> 0;
var ymax = Math.max( y1, y2 ) >> 0;
for ( var y = ymin; y < ymax; y ++ ) {
for ( var x = xmin; x < xmax; x ++ ) {
drawPixel( x, y, r, g, b );
}
}
}
*/
function drawTriangle( x1, y1, color1, x2, y2, color2, x3, y3, color3 ) {
// http://joshbeam.com/articles/triangle_rasterization/
edges[ 0 ].set( x1, y1, color1, x2, y2, color2 );
edges[ 1 ].set( x2, y2, color2, x3, y3, color3 );
edges[ 2 ].set( x3, y3, color3, x1, y1, color1 );
var maxLength = 0;
var longEdge = 0;
// find edge with the greatest length in the y axis
for ( var i = 0; i < 3; i ++ ) {
var length = ( edges[ i ].y2 - edges[ i ].y1 );
if ( length > maxLength ) {
maxLength = length;
longEdge = i;
}
}
var shortEdge1 = ( longEdge + 1 ) % 3;
var shortEdge2 = ( longEdge + 2 ) % 3;
drawSpans( edges[ longEdge ], edges[ shortEdge1 ] );
drawSpans( edges[ longEdge ], edges[ shortEdge2 ] );
}
function drawSpans( e1, e2 ) {
var e1ydiff = e1.y2 - e1.y1;
if ( e1ydiff === 0 ) return;
var e2ydiff = e2.y2 - e2.y1;
if ( e2ydiff === 0 ) return;
var e1xdiff = e1.x2 - e1.x1;
var e2xdiff = e2.x2 - e2.x1;
var e1colordiffr = e1.r2 - e1.r1;
var e1colordiffg = e1.g2 - e1.g1;
var e1colordiffb = e1.b2 - e1.b1;
var e2colordiffr = e2.r2 - e2.r1;
var e2colordiffg = e2.g2 - e2.g1;
var e2colordiffb = e2.b2 - e2.b1;
var factor1 = ( e2.y1 - e1.y1 ) / e1ydiff;
var factorStep1 = 1 / e1ydiff;
var factor2 = 0;
var factorStep2 = 1 / e2ydiff;
for ( var y = e2.y1; y < e2.y2; y ++ ) {
span.set(
e1.x1 + ( e1xdiff * factor1 ),
e1.r1 + e1colordiffr * factor1,
e1.g1 + e1colordiffg * factor1,
e1.b1 + e1colordiffb * factor1,
e2.x1 + ( e2xdiff * factor2 ),
e2.r1 + e2colordiffr * factor2,
e2.g1 + e2colordiffg * factor2,
e2.b1 + e2colordiffb * factor2
);
var xdiff = span.x2 - span.x1;
if ( xdiff > 0 ) {
var colordiffr = span.r2 - span.r1;
var colordiffg = span.g2 - span.g1;
var colordiffb = span.b2 - span.b1;
var factor = 0;
var factorStep = 1 / xdiff;
for ( var x = span.x1; x < span.x2; x ++ ) {
var r = span.r1 + colordiffr * factor;
var g = span.g1 + colordiffg * factor;
var b = span.b1 + colordiffb * factor;
drawPixel( x, y, r, g, b );
factor += factorStep;
}
}
factor1 += factorStep1;
factor2 += factorStep2;
}
}
function Edge() {
this.x1 = 0;
this.y1 = 0;
this.x2 = 0;
this.y2 = 0;
this.r1 = 0;
this.g1 = 0;
this.b1 = 0;
this.r2 = 0;
this.g2 = 0;
this.b2 = 0;
this.set = function ( x1, y1, color1, x2, y2, color2 ) {
if ( y1 < y2 ) {
this.x1 = x1 >> 0;
this.y1 = y1 >> 0;
this.x2 = x2 >> 0;
this.y2 = y2 >> 0;
this.r1 = color1 >> 16 & 255;
this.g1 = color1 >> 8 & 255;
this.b1 = color1 & 255;
this.r2 = color2 >> 16 & 255;
this.g2 = color2 >> 8 & 255;
this.b2 = color2 & 255;
} else {
this.x1 = x2 >> 0;
this.y1 = y2 >> 0;
this.x2 = x1 >> 0;
this.y2 = y1 >> 0;
this.r1 = color2 >> 16 & 255;
this.g1 = color2 >> 8 & 255;
this.b1 = color2 & 255;
this.r2 = color1 >> 16 & 255;
this.g2 = color1 >> 8 & 255;
this.b2 = color1 & 255;
}
}
}
function Span() {
this.x1 = 0;
this.x2 = 0;
this.r1 = 0;
this.g1 = 0;
this.b1 = 0;
this.r2 = 0;
this.g2 = 0;
this.b2 = 0;
this.set = function ( x1, r1, g1, b1, x2, r2, g2, b2 ) {
if ( x1 < x2 ) {
this.x1 = x1 >> 0;
this.x2 = x2 >> 0;
this.r1 = r1;
this.g1 = g1;
this.b1 = b1;
this.r2 = r2;
this.g2 = g2;
this.b2 = b2;
} else {
this.x1 = x2 >> 0;
this.x2 = x1 >> 0;
this.r1 = r2;
this.g1 = g2;
this.b1 = b2;
this.r2 = r1;
this.g2 = g1;
this.b2 = b1;
}
}
}
};
| juhnowski/J_and_K_Softlabs | httpdocs/js/renderers/SoftwareRenderer.js | JavaScript | mit | 7,441 |
Subsets and Splits