mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 19:16:41 +07:00
fixed config paths
This commit is contained in:
parent
9c0038f0a3
commit
bf1b92fdf1
18 changed files with 92 additions and 124 deletions
|
@ -1,7 +1,7 @@
|
|||
import { editor } from '$modules/Editor';
|
||||
import { COLORS, CONFIG } from '$config';
|
||||
import { COLORS, CLIENT } from '$config/frontend';
|
||||
import saveAs from 'file-saver';
|
||||
import { DEFAULT_PROVIDER, PROVIDERS, replaceProviderUrl } from '$constants/providers';
|
||||
import { replaceProviderUrl } from '$constants/providers';
|
||||
|
||||
const latLngToTile = latlng => {
|
||||
const { map } = editor.map;
|
||||
|
@ -119,7 +119,7 @@ export const composePoly = ({ points, ctx }) => {
|
|||
ctx.strokeStyle = 'red';
|
||||
ctx.lineCap = 'round';
|
||||
ctx.lineJoin = 'round';
|
||||
ctx.lineWidth = CONFIG.STROKE_WIDTH + 0.5;
|
||||
ctx.lineWidth = CLIENT.STROKE_WIDTH + 0.5;
|
||||
|
||||
ctx.beginPath();
|
||||
ctx.moveTo(points[0].x, points[0].y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue