@panoramax/web-viewer 5.1.1-develop-ea8c3e3e → 5.1.1-develop-c975d647

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.
@@ -9,7 +9,7 @@ import BasicStyles from "./Basic.css" with { type: "css" };
9
9
  document.adoptedStyleSheets.push(AtkinsonStyles);
10
10
  document.adoptedStyleSheets.push(BasicStyles);
11
11
 
12
- const __COMMIT_HASH__ = "ea8c3e3";
12
+ const __COMMIT_HASH__ = "c975d64";
13
13
  const __PACKAGE_VERSION__ = "5.1.1";
14
14
  const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
15
15
 
@@ -142,7 +142,7 @@ export default class SemanticsMetadata extends LitElement {
142
142
  this._blockPicChange(true);
143
143
  this._addTag = true;
144
144
  this._editTag = false;
145
- this._addTagGeom = ADD_TAG_GEOM_DOING;
145
+ this._addTagGeom = null;
146
146
  this._editTagSem = null;
147
147
 
148
148
  this._addTagGeomListener = e => {
@@ -150,6 +150,7 @@ export default class SemanticsMetadata extends LitElement {
150
150
  this._addTagGeom = e.detail.shape;
151
151
  };
152
152
  this._parent.psv.addEventListener("annotation-drawn", this._addTagGeomListener);
153
+ this._parent.psv.addEventListener("annotation-drawing", () => this._addTagGeom = ADD_TAG_GEOM_DOING);
153
154
  this._parent.psv.startDrawAnnotation();
154
155
  }
155
156
 
@@ -105,6 +105,8 @@ const keepOnlyPSVOptions = opts => Object.fromEntries(
105
105
  * @fires Panoramax.components.ui.Photo#annotations-toggled
106
106
  * @fires Panoramax.components.ui.Photo#annotation-click
107
107
  * @fires Panoramax.components.ui.Photo#annotation-focused
108
+ * @fires Panoramax.components.ui.Photo#annotation-drawn
109
+ * @fires Panoramax.components.ui.Photo#annotation-drawing
108
110
  * @fires Panoramax.components.ui.Photo#annotations-unfocused
109
111
  * @example
110
112
  * const psv = new Panoramax.components.ui.Photo(viewer, psvNode, {transitionDuration: 500})
@@ -1317,6 +1319,14 @@ export default class Photo extends PSViewer {
1317
1319
  if(this._drawingMoves !== 2 && e.marker.id === DRAW_ANNOT_1ST) {
1318
1320
  // First time ? Start moving second vertex
1319
1321
  if(this._drawingAnnotation.length === 0) {
1322
+ /**
1323
+ * Event for annotation drawing started
1324
+ *
1325
+ * @event Panoramax.components.ui.Photo#annotation-drawing
1326
+ * @type {Event}
1327
+ */
1328
+ this.dispatchEvent(new Event("annotation-drawing"));
1329
+
1320
1330
  this._drawingAnnotation.push({ yaw: e.marker.config.position.yaw, pitch: e.marker.config.position.pitch });
1321
1331
  this.parent.removeEventListener("mousemove", firstMove);
1322
1332
  this._myMarkers.updateMarker({
@@ -283,7 +283,8 @@
283
283
  "map_background_more": "Diğer arka planlar...",
284
284
  "semantics_draw_invalid_annotation": "Çizilen alan, resmin sınırlarını aşıyor. Lütfen görünür resim alanı içinde çizim yapmaya özen gösterin.",
285
285
  "semantics_draw_unfinished_annotation": "Çizilen alan henüz tamamlanmadı. Kaydetmeden önce alanın doğru konumlandırıldığından emin olun.",
286
- "error_pic_load": "Resim şu an yüklenemiyor.\nLütfen internet bağlantınızı kontrol edin. Bağlantınız varsa, resimdeki kimliğin geçerli olduğundan emin olun."
286
+ "error_pic_load": "Resim şu an yüklenemiyor.\nLütfen internet bağlantınızı kontrol edin. Bağlantınız varsa, resimdeki kimliğin geçerli olduğundan emin olun.",
287
+ "semantics_empty": "Hiçbir etiket tanımlanmadı"
287
288
  },
288
289
  "maplibre": {
289
290
  "GeolocateControl.FindMyLocation": "Konumu bul",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "5.1.1-develop-ea8c3e3e",
3
+ "version": "5.1.1-develop-c975d647",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",