mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 02:56:41 +07:00
distance marks and rounded rects
This commit is contained in:
parent
3f2e2ba856
commit
e532a43f2e
2 changed files with 102 additions and 12 deletions
|
@ -41,7 +41,7 @@ import { MODES } from '$constants/modes';
|
|||
import { DEFAULT_USER } from '$constants/auth';
|
||||
import { TIPS } from '$constants/tips';
|
||||
import {
|
||||
composeArrows,
|
||||
composeArrows, composeDistMark,
|
||||
composeImages,
|
||||
composePoly, composeStickers, downloadCanvas,
|
||||
fetchImages,
|
||||
|
@ -355,6 +355,8 @@ function* getRenderData() {
|
|||
const geometry = getTilePlacement();
|
||||
const points = getPolyPlacement();
|
||||
const stickers = getStickersPlacement();
|
||||
const distance = editor.poly.poly.distance;
|
||||
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
const images = yield fetchImages(ctx, geometry);
|
||||
|
@ -362,6 +364,7 @@ function* getRenderData() {
|
|||
yield put(setRenderer({ info: 'Отрисовка', progress: 0.5 }));
|
||||
|
||||
yield composeImages({ geometry, images, ctx });
|
||||
yield composeDistMark({ ctx, points, distance });
|
||||
yield composePoly({ points, ctx });
|
||||
yield composeArrows({ points, ctx });
|
||||
yield composeStickers({ stickers, ctx });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue