chrome-devtools-frontend 1.0.950850 → 1.0.950971
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.
|
@@ -137,12 +137,13 @@ fieldset {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
#experiments-tab-content .settings-container {
|
|
140
|
-
column-width:
|
|
140
|
+
column-width: auto;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
#experiments-tab-content .settings-block {
|
|
144
|
-
width:
|
|
144
|
+
width: auto;
|
|
145
145
|
margin-left: 0;
|
|
146
|
+
margin-right: 10px;
|
|
146
147
|
}
|
|
147
148
|
|
|
148
149
|
.settings-tab-container header > h1 {
|
|
@@ -172,7 +173,11 @@ fieldset {
|
|
|
172
173
|
|
|
173
174
|
.settings-experiment {
|
|
174
175
|
display: grid;
|
|
175
|
-
grid-template-columns: auto 1fr;
|
|
176
|
+
grid-template-columns: auto min-content 1fr;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.settings-experiment [is="dt-checkbox"] {
|
|
180
|
+
padding-right: 10px;
|
|
176
181
|
}
|
|
177
182
|
|
|
178
183
|
.settings-experiment .devtools-link {
|
|
@@ -80,10 +80,17 @@ type MessageLookup = {
|
|
|
80
80
|
drawingFinished: '',
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
+
let queue: unknown[][] = [];
|
|
84
|
+
let prevQueue: string = '';
|
|
85
|
+
|
|
83
86
|
const dispatch = <K extends keyof MessageLookup>(message: [a: K, b: MessageLookup[K]]) => {
|
|
84
87
|
const functionName = message[0];
|
|
85
88
|
if (functionName === 'setOverlay') {
|
|
86
89
|
const overlayName = message[1] as keyof Overlays;
|
|
90
|
+
// No need to swap overlays if it's the same overlay.
|
|
91
|
+
if (overlays[overlayName] === currentOverlay) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
87
94
|
if (currentOverlay) {
|
|
88
95
|
currentOverlay.uninstall();
|
|
89
96
|
}
|
|
@@ -97,9 +104,16 @@ const dispatch = <K extends keyof MessageLookup>(message: [a: K, b: MessageLooku
|
|
|
97
104
|
} else if (functionName === 'setPlatform') {
|
|
98
105
|
platformName = message[1];
|
|
99
106
|
} else if (functionName === 'drawingFinished') {
|
|
100
|
-
|
|
107
|
+
const currentQueue = JSON.stringify(queue);
|
|
108
|
+
if (currentQueue !== prevQueue) {
|
|
109
|
+
for (const message of queue) {
|
|
110
|
+
currentOverlay.dispatch(message);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
prevQueue = currentQueue;
|
|
114
|
+
queue = [];
|
|
101
115
|
} else {
|
|
102
|
-
|
|
116
|
+
queue.push(message);
|
|
103
117
|
}
|
|
104
118
|
};
|
|
105
119
|
|
package/package.json
CHANGED