Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
bc23ac7d9e | |||
e89a166354 |
@ -4,7 +4,9 @@
|
||||
"displayNameKey": "roles-urls-displayName",
|
||||
"name": "urls",
|
||||
"kind": "Grouping",
|
||||
"requiredTypes": [{ "text": true }],
|
||||
"requiredTypes": [{
|
||||
"text": true
|
||||
}],
|
||||
"description": "Urls of pictures, example: 'http://www.example.com/xx.png'",
|
||||
"descriptionKey": "roles-urls-description"
|
||||
},
|
||||
@ -13,7 +15,9 @@
|
||||
"displayNameKey": "roles-tags-displayName",
|
||||
"name": "tags",
|
||||
"kind": "Grouping",
|
||||
"requiredTypes": [{ "text": true }],
|
||||
"requiredTypes": [{
|
||||
"text": true
|
||||
}],
|
||||
"description": "text to be displayed with pictures",
|
||||
"descriptionKey": "roles-tags-description"
|
||||
}
|
||||
@ -105,11 +109,13 @@
|
||||
"displayName": "above",
|
||||
"displayNameKey": "objects-tag-position-enumeration-above-displayName",
|
||||
"value": "above"
|
||||
}, {
|
||||
},
|
||||
{
|
||||
"displayName": "bottom",
|
||||
"displayNameKey": "objects-tag-position-enumeration-bottom-displayName",
|
||||
"value": "bottom"
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"fontColor": {
|
||||
@ -140,8 +146,7 @@
|
||||
"max": 1,
|
||||
"kind": "Grouping"
|
||||
},
|
||||
"tag": {
|
||||
"min": 0,
|
||||
"tags": {
|
||||
"max": 1,
|
||||
"kind": "Grouping"
|
||||
}
|
||||
|
@ -57,14 +57,14 @@ export class Visual implements IVisual {
|
||||
this.container = options.element;
|
||||
this.host=options.host;
|
||||
this.selectionManager=this.host.createSelectionManager();
|
||||
// d3.select(this.container).on("contextmenu", () => {
|
||||
// const mouseEvent: MouseEvent = <MouseEvent>d3.event;
|
||||
// this.selectionManager.showContextMenu({}, {
|
||||
// x: mouseEvent.clientX,
|
||||
// y: mouseEvent.clientY
|
||||
// });
|
||||
// mouseEvent.preventDefault();
|
||||
// });
|
||||
d3.select(this.container).on("contextmenu", () => {
|
||||
const mouseEvent: MouseEvent = <MouseEvent>d3.event;
|
||||
this.selectionManager.showContextMenu({}, {
|
||||
x: mouseEvent.clientX,
|
||||
y: mouseEvent.clientY
|
||||
});
|
||||
mouseEvent.preventDefault();
|
||||
});
|
||||
}
|
||||
private initial() {
|
||||
if (this.innerContainer) {
|
||||
|
Loading…
Reference in New Issue
Block a user