diff --git a/docs/.vuepress/components/Playground.vue b/docs/.vuepress/components/Playground.vue index 0e6bb537c..ae14e945e 100644 --- a/docs/.vuepress/components/Playground.vue +++ b/docs/.vuepress/components/Playground.vue @@ -297,16 +297,24 @@
- + - + + +
@@ -342,14 +350,14 @@
-
+
-
+
-
+
+ + + + front + horizontal + vertical-left + vertical-tight + + +
+ +
@@ -376,14 +396,14 @@
-
+
-
+
@@ -547,6 +567,7 @@ polylineRad: null, width : null, height : null, + orientation: null, anchor : null, listContent: null, content : null, @@ -575,6 +596,7 @@ this.CLIPBOARD_AVAILABLE = false; // SSR rendering dissallow "window" usage here this.PIN_RED_URL = 'https://photo-sphere-viewer.js.org/assets/pin-red.png'; this.PIN_BLUE_URL = 'https://photo-sphere-viewer.js.org/assets/pin-blue.png'; + this.TARGET_URL = 'https://photo-sphere-viewer.js.org/assets/target.png'; this.FONT_SIZES = range(10, 31).map(i => `${i}px`); this.FONT_SIZES_2 = range(10, 31, 5).map(i => `${i}px`); }, @@ -734,6 +756,7 @@ this.cancelMarker(); this.markerForm.id = 'marker-' + Math.random().toString(36).slice(2); this.markerForm.type = type; + this.markerForm.orientation = 'front'; this.markerForm.anchor = 'center center'; this.markerForm.tooltip.position = 'top center'; @@ -745,10 +768,9 @@ this.markerForm.anchor = 'bottom center'; break; case 'imageLayer': - this.markerForm.imageLayer = this.PIN_RED_URL; - this.markerForm.width = 48; - this.markerForm.height = 48; - this.markerForm.anchor = 'bottom center'; + this.markerForm.imageLayer = this.TARGET_URL; + this.markerForm.width = 120; + this.markerForm.height = 120; break; case 'html': this.markerForm.html = 'Test content'; @@ -958,6 +980,12 @@ if (marker.config.height) { m.height = marker.config.height; } + if (marker.config.anchor !== 'center center') { + m.anchor = marker.config.anchor; + } + if (marker.config.orientation !== 'front') { + m.orientation = marker.config.orientation; + } if (marker.config.tooltip.content) { m.tooltip = marker.config.tooltip; }