inspector-ng 0.0.13 → 0.0.14
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/README.md +1 -4
- package/esm2022/lib/checkpoints.mjs +26 -6
- package/esm2022/lib/constants.mjs +1 -3
- package/esm2022/lib/inspector.component.mjs +17 -86
- package/esm2022/lib/types.mjs +1 -1
- package/fesm2022/inspector-ng.mjs +41 -92
- package/fesm2022/inspector-ng.mjs.map +1 -1
- package/lib/constants.d.ts +0 -2
- package/lib/inspector.component.d.ts +2 -11
- package/lib/types.d.ts +0 -11
- package/package.json +1 -1
package/lib/constants.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export declare class inspectorComponent implements OnDestroy {
|
|
|
22
22
|
highlightColor: string;
|
|
23
23
|
guideColor: string;
|
|
24
24
|
hoverHighlightEnabled: boolean;
|
|
25
|
-
persistOnReload: boolean;
|
|
26
25
|
readonly checkpointService: InspectorCheckpointService | null;
|
|
27
26
|
readonly commandBarOpen: import("@angular/core").WritableSignal<boolean>;
|
|
28
27
|
readonly checkpointQuery: import("@angular/core").WritableSignal<string>;
|
|
@@ -50,16 +49,11 @@ export declare class inspectorComponent implements OnDestroy {
|
|
|
50
49
|
readonly guidePreview: import("@angular/core").WritableSignal<Guide | null>;
|
|
51
50
|
readonly selectedMetaLine: import("@angular/core").Signal<string>;
|
|
52
51
|
private readonly isBrowser;
|
|
53
|
-
private readonly hydrated;
|
|
54
|
-
private readonly history;
|
|
55
|
-
private readonly historyIndex;
|
|
56
52
|
private readonly handleCapturedClick;
|
|
57
53
|
private draggingGuideId;
|
|
58
54
|
private selectedElement;
|
|
59
55
|
private hoverElement;
|
|
60
56
|
private toastTimer;
|
|
61
|
-
readonly canUndo: import("@angular/core").Signal<boolean>;
|
|
62
|
-
readonly canRedo: import("@angular/core").Signal<boolean>;
|
|
63
57
|
constructor(platformId: object);
|
|
64
58
|
ngOnInit(): void;
|
|
65
59
|
ngOnDestroy(): void;
|
|
@@ -93,6 +87,7 @@ export declare class inspectorComponent implements OnDestroy {
|
|
|
93
87
|
formatEdges(edges: InspectMeasurement['padding']): string;
|
|
94
88
|
formatGap(selected: InspectMeasurement): string;
|
|
95
89
|
handleKeydown(event: KeyboardEvent): void;
|
|
90
|
+
private hasInspectorCanvasState;
|
|
96
91
|
private clearInspectorCanvas;
|
|
97
92
|
private normalizeCheckpointLabel;
|
|
98
93
|
handlePointerMove(event: PointerEvent): void;
|
|
@@ -112,12 +107,8 @@ export declare class inspectorComponent implements OnDestroy {
|
|
|
112
107
|
private getGuidePreview;
|
|
113
108
|
private snapGuide;
|
|
114
109
|
private findGuideAtPoint;
|
|
115
|
-
private undo;
|
|
116
|
-
private redo;
|
|
117
|
-
private recordHistory;
|
|
118
|
-
private cloneGuides;
|
|
119
110
|
private findMinimumCommonParent;
|
|
120
111
|
static ɵfac: i0.ɵɵFactoryDeclaration<inspectorComponent, never>;
|
|
121
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<inspectorComponent, "inspector-overlay", never, { "highlightColor": { "alias": "highlightColor"; "required": false; }; "guideColor": { "alias": "guideColor"; "required": false; }; "hoverHighlightEnabled": { "alias": "hoverHighlightEnabled"; "required": false; };
|
|
112
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<inspectorComponent, "inspector-overlay", never, { "highlightColor": { "alias": "highlightColor"; "required": false; }; "guideColor": { "alias": "guideColor"; "required": false; }; "hoverHighlightEnabled": { "alias": "hoverHighlightEnabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
122
113
|
}
|
|
123
114
|
export {};
|
package/lib/types.d.ts
CHANGED
|
@@ -78,14 +78,3 @@ export type DistanceOverlay = {
|
|
|
78
78
|
y2: number;
|
|
79
79
|
}>;
|
|
80
80
|
};
|
|
81
|
-
export type inspectorPersistedState = {
|
|
82
|
-
version: 2;
|
|
83
|
-
enabled: boolean;
|
|
84
|
-
toolMode: ToolMode;
|
|
85
|
-
guideOrientation: GuideOrientation;
|
|
86
|
-
guides: Guide[];
|
|
87
|
-
showTypography: boolean;
|
|
88
|
-
};
|
|
89
|
-
export type inspectorLegacyPersistedState = Omit<inspectorPersistedState, "version"> & {
|
|
90
|
-
version: 1;
|
|
91
|
-
};
|