mudlet-map-renderer 0.34.2-konva → 0.36.0-konva
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CullingManager.d.ts +2 -0
- package/dist/backend/CanvasBackend.d.ts +1 -0
- package/dist/backend/DrawingBackend.d.ts +10 -0
- package/dist/backend/KonvaBackend.d.ts +1 -0
- package/dist/backend/SvgBackend.d.ts +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +146 -105
- package/dist/index.mjs.map +1 -1
- package/dist/style/IsometricStyle.d.ts +1 -0
- package/dist/style/NeonStyle.d.ts +1 -0
- package/dist/style/ParchmentStyle.d.ts +1 -0
- package/package.json +1 -1
package/dist/CullingManager.d.ts
CHANGED
|
@@ -53,8 +53,10 @@ export declare class CullingManager {
|
|
|
53
53
|
private cullingScheduled;
|
|
54
54
|
private perfMonitor;
|
|
55
55
|
private coordinateTransform;
|
|
56
|
+
private lastGridMs;
|
|
56
57
|
constructor(stageInfo: StageInfo, roomLayer: LayerNode, linkLayer: LayerNode, settings: Settings);
|
|
57
58
|
setCoordinateTransform(fn: CoordinateTransform): void;
|
|
59
|
+
recordGridMs(ms: number): void;
|
|
58
60
|
private transformPoint;
|
|
59
61
|
private transformBounds;
|
|
60
62
|
computeBucketSize(): void;
|
|
@@ -115,6 +115,7 @@ export declare class CanvasBackend implements DrawingBackend {
|
|
|
115
115
|
addRect(parent: GroupNode, config: RectConfig): void;
|
|
116
116
|
addCircle(parent: GroupNode, config: CircleConfig): void;
|
|
117
117
|
addLine(parent: GroupNode, config: LineConfig): void;
|
|
118
|
+
addGridLine(parent: GroupNode, config: LineConfig): void;
|
|
118
119
|
addPolygon(parent: GroupNode, config: PolygonConfig): void;
|
|
119
120
|
addText(parent: GroupNode, config: TextConfig): void;
|
|
120
121
|
addImage(parent: GroupNode, config: ImageConfig): void;
|
|
@@ -103,6 +103,15 @@ export interface DrawingBackend {
|
|
|
103
103
|
addRect(parent: GroupNode, config: RectConfig): void;
|
|
104
104
|
addCircle(parent: GroupNode, config: CircleConfig): void;
|
|
105
105
|
addLine(parent: GroupNode, config: LineConfig): void;
|
|
106
|
+
/**
|
|
107
|
+
* Draw an infrastructure line (grid). Base backends render this identically
|
|
108
|
+
* to {@link addLine}. Style decorators only override it when their effect
|
|
109
|
+
* is meaningful for grid (e.g. IsometricStyle projects coordinates). Purely
|
|
110
|
+
* decorative decorators (SketchyStyle, ParchmentStyle) do not override and
|
|
111
|
+
* fall through to {@link BaseStyle}'s passthrough default, keeping grid
|
|
112
|
+
* rendering cheap.
|
|
113
|
+
*/
|
|
114
|
+
addGridLine(parent: GroupNode, config: LineConfig): void;
|
|
106
115
|
addPolygon(parent: GroupNode, config: PolygonConfig): void;
|
|
107
116
|
addText(parent: GroupNode, config: TextConfig): void;
|
|
108
117
|
addImage(parent: GroupNode, config: ImageConfig): void;
|
|
@@ -142,6 +151,7 @@ export declare abstract class BaseStyle<Inner extends DrawingBackend = DrawingBa
|
|
|
142
151
|
addRect(parent: GroupNode, config: RectConfig): void;
|
|
143
152
|
addCircle(parent: GroupNode, config: CircleConfig): void;
|
|
144
153
|
addLine(parent: GroupNode, config: LineConfig): void;
|
|
154
|
+
addGridLine(parent: GroupNode, config: LineConfig): void;
|
|
145
155
|
addPolygon(parent: GroupNode, config: PolygonConfig): void;
|
|
146
156
|
addText(parent: GroupNode, config: TextConfig): void;
|
|
147
157
|
addImage(parent: GroupNode, config: ImageConfig): void;
|
|
@@ -31,6 +31,7 @@ export declare class KonvaBackend implements DrawingBackend {
|
|
|
31
31
|
addRect(parent: GroupNode, config: RectConfig): void;
|
|
32
32
|
addCircle(parent: GroupNode, config: CircleConfig): void;
|
|
33
33
|
addLine(parent: GroupNode, config: LineConfig): void;
|
|
34
|
+
addGridLine(parent: GroupNode, config: LineConfig): void;
|
|
34
35
|
addPolygon(parent: GroupNode, config: PolygonConfig): void;
|
|
35
36
|
addText(parent: GroupNode, config: TextConfig): void;
|
|
36
37
|
addImage(parent: GroupNode, config: ImageConfig): void;
|
|
@@ -40,6 +40,7 @@ export declare class SvgBackend implements DrawingBackend {
|
|
|
40
40
|
addRect(parent: GroupNode, config: RectConfig): void;
|
|
41
41
|
addCircle(parent: GroupNode, config: CircleConfig): void;
|
|
42
42
|
addLine(parent: GroupNode, config: LineConfig): void;
|
|
43
|
+
addGridLine(parent: GroupNode, config: LineConfig): void;
|
|
43
44
|
addPolygon(parent: GroupNode, config: PolygonConfig): void;
|
|
44
45
|
addText(parent: GroupNode, config: TextConfig): void;
|
|
45
46
|
addImage(parent: GroupNode, config: ImageConfig): void;
|