mirror of
https://github.com/Doodle3D/Doodle3D-Core.git
synced 2024-12-22 02:53:50 +01:00
move potrace options
This commit is contained in:
parent
bb1b2b73c0
commit
80c08d7b2c
@ -21,13 +21,6 @@ export const SNAPPING_DISTANCE = 7.0;
|
|||||||
export const MAX_TRACE_TOLERANCE = 256;
|
export const MAX_TRACE_TOLERANCE = 256;
|
||||||
export const SELECTION_VIEW_MIN_SCALE = 50;
|
export const SELECTION_VIEW_MIN_SCALE = 50;
|
||||||
export const SELECTION_VIEW_MIN_AXIS_SCALE = 80;
|
export const SELECTION_VIEW_MIN_AXIS_SCALE = 80;
|
||||||
export const POTRACE_OPTIONS = {
|
|
||||||
turnpolicy: 'black',
|
|
||||||
turdsize: 5.0,
|
|
||||||
optcurve: false,
|
|
||||||
alphamax: 0.5,
|
|
||||||
opttolerance: 0.2
|
|
||||||
};
|
|
||||||
export const ERASER_SIZES = {
|
export const ERASER_SIZES = {
|
||||||
[contextTools.ERASER_SIZE_SMALL]: 10,
|
[contextTools.ERASER_SIZE_SMALL]: 10,
|
||||||
[contextTools.ERASER_SIZE_MEDIUM]: 30,
|
[contextTools.ERASER_SIZE_MEDIUM]: 30,
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
import 'babel-polyfill';
|
import 'babel-polyfill';
|
||||||
import * as POTRACE from '@doodle3d/potrace-js';
|
import * as POTRACE from '@doodle3d/potrace-js';
|
||||||
import { POTRACE_OPTIONS } from '../src/constants/d2Constants.js';
|
|
||||||
|
const POTRACE_OPTIONS = {
|
||||||
|
turnpolicy: 'black',
|
||||||
|
turdsize: 5.0,
|
||||||
|
optcurve: false,
|
||||||
|
alphamax: 0.5,
|
||||||
|
opttolerance: 0.2
|
||||||
|
};
|
||||||
|
|
||||||
self.addEventListener('message', (event) => {
|
self.addEventListener('message', (event) => {
|
||||||
switch (event.data.msg) {
|
switch (event.data.msg) {
|
||||||
|
Loading…
Reference in New Issue
Block a user