paper.js/src/options.js

38 lines
1.1 KiB
JavaScript
Raw Normal View History

/*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
2018-12-27 02:13:01 -05:00
* Copyright (c) 2011 - 2019, Juerg Lehni & Jonathan Puckey
* http://scratchdisk.com/ & https://puckey.studio/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
// Define __options for code preprocessing when building the library, as well as
// browser based compile-time preprocessing when loading the separate source
// files directly through load.js / Prepro.js during development.
// The paper.js version.
2016-01-31 08:30:14 -05:00
// NOTE: Adjust value here before calling `gulp publish`, which then updates and
// publishes the various JSON package files automatically.
2019-06-22 08:40:54 -04:00
var version = '0.12.3';
2017-03-08 04:44:43 -05:00
// If this file is loaded in the browser, we're in load.js mode.
var load = typeof window === 'object';
var __options = {
version: version + (load ? '-load' : ''),
load: load,
2014-08-16 13:24:54 -04:00
parser: 'acorn',
svg: true,
booleanOperations: true,
nativeContains: false,
2015-08-21 10:38:17 -04:00
paperScript: true
};
// Export for use in Gulp.js
if (typeof module !== 'undefined')
module.exports = __options;