Skip to content

Commit f5cef6f

Browse files
committed
chore: adjust dist files for the demo
1 parent 381ba9f commit f5cef6f

File tree

6 files changed

+5
-120
lines changed

6 files changed

+5
-120
lines changed

.github/generate-dist-files-size-diff.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function formatBytes(bytes, digits = 2) {
4141
* @returns {number}
4242
*/
4343
function computeDiffPercent(from, to) {
44-
return from === to ? 0 : Number(((from - to) / to * 100 * (from < to ? -1 : 1)).toFixed(2));
44+
return from === to ? 0 : Number(((from - to) / to * 100 * (from < to ? 1 : -1)).toFixed(2));
4545
}
4646

4747
/**

src/Autocomplete/assets/dist/foo.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Dropzone/assets/dist/controller.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Map/assets/dist/abstract_map_controller.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/Map/src/Bridge/Google/assets/dist/map_controller.js

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -122,42 +122,7 @@ class default_1 extends default_1$1 {
122122
return polygon;
123123
}
124124
doCreateInfoWindow({ definition, element, }) {
125-
const { headerContent, content, extra, rawOptions = {}, ...otherOptions } = definition;
126-
const infoWindow = new _google.maps.InfoWindow({
127-
headerContent: this.createTextOrElement(headerContent),
128-
content: this.createTextOrElement(content),
129-
...otherOptions,
130-
...rawOptions,
131-
});
132-
if (element instanceof google.maps.marker.AdvancedMarkerElement) {
133-
element.addListener('click', () => {
134-
if (definition.autoClose) {
135-
this.closeInfoWindowsExcept(infoWindow);
136-
}
137-
infoWindow.open({ map: this.map, anchor: element });
138-
});
139-
if (definition.opened) {
140-
infoWindow.open({ map: this.map, anchor: element });
141-
}
142-
}
143-
else if (element instanceof google.maps.Polygon) {
144-
element.addListener('click', (event) => {
145-
if (definition.autoClose) {
146-
this.closeInfoWindowsExcept(infoWindow);
147-
}
148-
infoWindow.setPosition(event.latLng);
149-
infoWindow.open(this.map);
150-
});
151-
if (definition.opened) {
152-
const bounds = new google.maps.LatLngBounds();
153-
element.getPath().forEach((point) => {
154-
bounds.extend(point);
155-
});
156-
infoWindow.setPosition(bounds.getCenter());
157-
infoWindow.open({ map: this.map, anchor: element });
158-
}
159-
}
160-
return infoWindow;
125+
// :)
161126
}
162127
createTextOrElement(content) {
163128
if (!content) {

0 commit comments

Comments
 (0)