mesurer 0.1.1 → 0.1.2
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/CHANGELOG.md +10 -0
- package/README.md +3 -2
- package/dist/index.cjs +2387 -1446
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +2267 -1327
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -134,6 +134,7 @@ type MesurerStoredSettings = {
|
|
|
134
134
|
selectNewGuideEnabled?: boolean;
|
|
135
135
|
multiMeasureEnabled?: boolean;
|
|
136
136
|
persistOnReload?: boolean;
|
|
137
|
+
shortcutsEnabled?: boolean;
|
|
137
138
|
guideStyle?: Partial<GuideStyle>;
|
|
138
139
|
rulerSettings?: Partial<RulerSettings>;
|
|
139
140
|
screenshotSettings?: Partial<ScreenshotSettings>;
|
|
@@ -186,6 +187,7 @@ type MesurerProps = {
|
|
|
186
187
|
hoverHighlightEnabled?: boolean;
|
|
187
188
|
layoutDetailsEnabled?: boolean;
|
|
188
189
|
persistOnReload?: boolean;
|
|
190
|
+
shortcutsEnabled?: boolean;
|
|
189
191
|
portalTarget?: HTMLElement | ShadowRoot;
|
|
190
192
|
persistKey?: string;
|
|
191
193
|
colorPickerFormats?: ColorPickerFormat[];
|
|
@@ -204,7 +206,7 @@ type MesurerProps = {
|
|
|
204
206
|
captureVisibleTab?: () => Promise<Blob>;
|
|
205
207
|
};
|
|
206
208
|
|
|
207
|
-
declare function Mesurer({ highlightColor, guideColor, arrowColor, guideHighlightEnabled, hoverHighlightEnabled, layoutDetailsEnabled, persistOnReload, portalTarget, persistKey, colorPickerFormats, colorPickerClickFormat, snapEnabled, snapGuidesEnabled, snapArrowsEnabled, arrowClickToPlace, selectNewGuideEnabled, multiMeasureEnabled, guideStyle, rulerSettings, textStyle, persistence, onPersistenceError, captureVisibleTab, }: MesurerProps): react_jsx_runtime.JSX.Element | null;
|
|
209
|
+
declare function Mesurer({ highlightColor, guideColor, arrowColor, guideHighlightEnabled, hoverHighlightEnabled, layoutDetailsEnabled, persistOnReload, shortcutsEnabled, portalTarget, persistKey, colorPickerFormats, colorPickerClickFormat, snapEnabled, snapGuidesEnabled, snapArrowsEnabled, arrowClickToPlace, selectNewGuideEnabled, multiMeasureEnabled, guideStyle, rulerSettings, textStyle, persistence, onPersistenceError, captureVisibleTab, }: MesurerProps): react_jsx_runtime.JSX.Element | null;
|
|
208
210
|
|
|
209
211
|
type TypographyRow = {
|
|
210
212
|
label: string;
|
|
@@ -225,7 +227,7 @@ type TextInspectorAPI = {
|
|
|
225
227
|
isEnabled: () => boolean;
|
|
226
228
|
cleanup: () => void;
|
|
227
229
|
destroy: () => void;
|
|
228
|
-
clear: () =>
|
|
230
|
+
clear: () => boolean;
|
|
229
231
|
inspect: (element: HTMLElement) => boolean;
|
|
230
232
|
canUndo: () => boolean;
|
|
231
233
|
canRedo: () => boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -134,6 +134,7 @@ type MesurerStoredSettings = {
|
|
|
134
134
|
selectNewGuideEnabled?: boolean;
|
|
135
135
|
multiMeasureEnabled?: boolean;
|
|
136
136
|
persistOnReload?: boolean;
|
|
137
|
+
shortcutsEnabled?: boolean;
|
|
137
138
|
guideStyle?: Partial<GuideStyle>;
|
|
138
139
|
rulerSettings?: Partial<RulerSettings>;
|
|
139
140
|
screenshotSettings?: Partial<ScreenshotSettings>;
|
|
@@ -186,6 +187,7 @@ type MesurerProps = {
|
|
|
186
187
|
hoverHighlightEnabled?: boolean;
|
|
187
188
|
layoutDetailsEnabled?: boolean;
|
|
188
189
|
persistOnReload?: boolean;
|
|
190
|
+
shortcutsEnabled?: boolean;
|
|
189
191
|
portalTarget?: HTMLElement | ShadowRoot;
|
|
190
192
|
persistKey?: string;
|
|
191
193
|
colorPickerFormats?: ColorPickerFormat[];
|
|
@@ -204,7 +206,7 @@ type MesurerProps = {
|
|
|
204
206
|
captureVisibleTab?: () => Promise<Blob>;
|
|
205
207
|
};
|
|
206
208
|
|
|
207
|
-
declare function Mesurer({ highlightColor, guideColor, arrowColor, guideHighlightEnabled, hoverHighlightEnabled, layoutDetailsEnabled, persistOnReload, portalTarget, persistKey, colorPickerFormats, colorPickerClickFormat, snapEnabled, snapGuidesEnabled, snapArrowsEnabled, arrowClickToPlace, selectNewGuideEnabled, multiMeasureEnabled, guideStyle, rulerSettings, textStyle, persistence, onPersistenceError, captureVisibleTab, }: MesurerProps): react_jsx_runtime.JSX.Element | null;
|
|
209
|
+
declare function Mesurer({ highlightColor, guideColor, arrowColor, guideHighlightEnabled, hoverHighlightEnabled, layoutDetailsEnabled, persistOnReload, shortcutsEnabled, portalTarget, persistKey, colorPickerFormats, colorPickerClickFormat, snapEnabled, snapGuidesEnabled, snapArrowsEnabled, arrowClickToPlace, selectNewGuideEnabled, multiMeasureEnabled, guideStyle, rulerSettings, textStyle, persistence, onPersistenceError, captureVisibleTab, }: MesurerProps): react_jsx_runtime.JSX.Element | null;
|
|
208
210
|
|
|
209
211
|
type TypographyRow = {
|
|
210
212
|
label: string;
|
|
@@ -225,7 +227,7 @@ type TextInspectorAPI = {
|
|
|
225
227
|
isEnabled: () => boolean;
|
|
226
228
|
cleanup: () => void;
|
|
227
229
|
destroy: () => void;
|
|
228
|
-
clear: () =>
|
|
230
|
+
clear: () => boolean;
|
|
229
231
|
inspect: (element: HTMLElement) => boolean;
|
|
230
232
|
canUndo: () => boolean;
|
|
231
233
|
canRedo: () => boolean;
|