mirror of
https://github.com/igorski/bitmappery.git
synced 2026-07-05 14:59:15 +02:00
Move render operations to separate sub folders
This commit is contained in:
@@ -24,7 +24,7 @@ import { sprite } from "zcanvas";
|
||||
import type { Rectangle, Viewport } from "zcanvas";
|
||||
import { fastRound } from "@/math/unit-math";
|
||||
import type ZoomableCanvas from "@/rendering/actors/zoomable-canvas";
|
||||
import { getClosestSnappingPoints } from "@/rendering/snapping";
|
||||
import { getClosestSnappingPoints } from "@/rendering/operations/snapping";
|
||||
|
||||
const AMOUNT_OF_PIXELS = 1; // currently only 1 pixel grid supported
|
||||
|
||||
|
||||
@@ -34,14 +34,14 @@ import { scaleRectangle, rotateRectangle } from "@/math/rectangle-math";
|
||||
import { translatePointerRotation, rotatePointer } from "@/math/point-math";
|
||||
import { fastRound } from "@/math/unit-math";
|
||||
import { renderEffectsForLayer } from "@/services/render-service";
|
||||
import { getBlendContext, blendLayer } from "@/rendering/blending";
|
||||
import { clipContextToSelection } from "@/rendering/clipping";
|
||||
import { renderClonedStroke, setCloneSource } from "@/rendering/cloning";
|
||||
import { renderBrushStroke } from "@/rendering/drawing";
|
||||
import { floodFill } from "@/rendering/fill";
|
||||
import { getMaskComposite, disposeMaskComposite } from "@/rendering/masking";
|
||||
import { snapToGuide } from "@/rendering/snapping";
|
||||
import { applyTransformation } from "@/rendering/transforming";
|
||||
import { getBlendContext, blendLayer } from "@/rendering/operations/blending";
|
||||
import { clipContextToSelection } from "@/rendering/operations/clipping";
|
||||
import { renderClonedStroke, setCloneSource } from "@/rendering/operations/cloning";
|
||||
import { renderBrushStroke } from "@/rendering/operations/drawing";
|
||||
import { floodFill } from "@/rendering/operations/fill";
|
||||
import { getMaskComposite, disposeMaskComposite } from "@/rendering/operations/masking";
|
||||
import { snapToGuide } from "@/rendering/operations/snapping";
|
||||
import { applyTransformation } from "@/rendering/operations/transforming";
|
||||
import { flushLayerCache, clearCacheProperty } from "@/rendering/cache/bitmap-cache";
|
||||
import { cacheBlendedLayer, flushBlendedLayerCache, getBlendCache, getBlendableLayers, isBlendCached, pauseBlendCaching, useBlendCaching } from "@/rendering/cache/blended-layer-cache";
|
||||
import { renderBrushOutline } from "@/rendering/cursors/brush";
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
import type { Point, Size } from "zcanvas";
|
||||
import type { Layer } from "@/definitions/document";
|
||||
import type { CanvasContextPairing, Brush } from "@/definitions/editor";
|
||||
import { reverseTransformation } from "@/rendering/transforming";
|
||||
import { reverseTransformation } from "@/rendering/operations/transforming";
|
||||
import type ZoomableCanvas from "@/rendering/actors/zoomable-canvas";
|
||||
import { createCanvas, setCanvasDimensions } from "@/utils/canvas-util";
|
||||
import { clone } from "@/utils/object-util";
|
||||
|
||||
@@ -29,7 +29,7 @@ import DocumentFactory from "@/factories/document-factory";
|
||||
import FiltersFactory from "@/factories/filters-factory";
|
||||
import LayerFactory from "@/factories/layer-factory";
|
||||
import type { LayerProps } from "@/factories/layer-factory";
|
||||
import { inverseMask } from "@/rendering/compositing";
|
||||
import { inverseMask } from "@/rendering/operations/compositing";
|
||||
import { createCanvas, base64toCanvas } from "@/utils/canvas-util";
|
||||
import { unblockedWait } from "@/utils/debounce-util";
|
||||
|
||||
|
||||
@@ -31,8 +31,8 @@ import { replaceLayerSource } from "@/utils/layer-util";
|
||||
import { clone } from "@/utils/object-util";
|
||||
import { getLayerCache, setLayerCache } from "@/rendering/cache/bitmap-cache";
|
||||
import type { RenderCache } from "@/rendering/cache/bitmap-cache";
|
||||
import { maskImage } from "@/rendering/masking";
|
||||
import { renderMultiLineText } from "@/rendering/text";
|
||||
import { maskImage } from "@/rendering/operations/masking";
|
||||
import { renderMultiLineText } from "@/rendering/operations/text";
|
||||
import { loadGoogleFont } from "@/services/font-service";
|
||||
import FilterWorker from "@/workers/filter.worker?worker";
|
||||
import wasmUrl from "@/wasm/bin/filters.wasm?url";
|
||||
|
||||
@@ -27,7 +27,7 @@ import { renderEffectsForLayer } from "@/services/render-service";
|
||||
import { createRendererForLayer, getRendererForLayer } from "@/factories/renderer-factory";
|
||||
import { rotateRectangle, areEqual } from "@/math/rectangle-math";
|
||||
import { fastRound } from "@/math/unit-math";
|
||||
import { reverseTransformation } from "@/rendering/transforming";
|
||||
import { reverseTransformation } from "@/rendering/operations/transforming";
|
||||
import type ZoomableCanvas from "@/rendering/actors/zoomable-canvas";
|
||||
import { createCanvas, getPixelRatio } from "@/utils/canvas-util";
|
||||
import { SmartExecutor } from "@/utils/debounce-util";
|
||||
|
||||
Reference in New Issue
Block a user