All files / lib options.ts

100% Statements 11/11
0% Branches 0/1
100% Functions 0/0
100% Lines 11/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40                                        1x     1x     1x 1x 1x 1x 1x 1x 1x 1x 1x          
/*
 * Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
 * http://paperjs.org/
 *
 * Copyright (c) 2011 - 2020, Jürg Lehni & Jonathan Puckey
 * http://juerglehni.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.18';
const version = process.env.PACKAGE_VERSION;
 
// If this file is loaded in the browser, we're in load.js mode.
export const load = typeof window === 'object';
 
// eslint-disable-next-line no-underscore-dangle
export const __options = {
  version: version + (load ? '-load' : ''),
  load,
  parser: 'acorn',
  svg: true,
  booleanOperations: true,
  nativeContains: false,
  paperScript: process.env.PAPER2_FULL,
};
 
// // Export for use in Gulp.js
// if (typeof module !== 'undefined')
//     module.exports = __options;