mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
37 lines
1.1 KiB
JavaScript
37 lines
1.1 KiB
JavaScript
/*
|
|
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
|
* http://paperjs.org/
|
|
*
|
|
* 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.
|
|
// NOTE: Adjust value here before calling `gulp publish`, which then updates and
|
|
// publishes the various JSON package files automatically.
|
|
var version = '0.12.3';
|
|
|
|
// 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,
|
|
parser: 'acorn',
|
|
svg: true,
|
|
booleanOperations: true,
|
|
nativeContains: false,
|
|
paperScript: true
|
|
};
|
|
|
|
// Export for use in Gulp.js
|
|
if (typeof module !== 'undefined')
|
|
module.exports = __options;
|