Explorar el Código

Clarify ID requirement for removing hot spots (fixes #1229).

pull/1238/head
Matthew Petroff hace 3 meses
padre
commit
bbf97c88dc
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. +3
    -1
      src/js/pannellum.js

+ 3
- 1
src/js/pannellum.js Ver fichero

@@ -3221,7 +3221,9 @@ this.addHotSpot = function(hs, sceneId) {
};

/**
* Remove a hot spot.
* Remove a hot spot. To use this method, the user must create each hot spot
* with a unique ID within a given scene. Behavior for duplicate IDs is
* considered undefined, and hot spots created without an ID cannot be removed.
* @memberof Viewer
* @instance
* @param {string} hotSpotId - The ID of the hot spot


Cargando…
Cancelar
Guardar