Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Pedersen authored and Simon Pedersen committed Aug 22, 2016
0 parents commit 9167f7e
Show file tree
Hide file tree
Showing 14 changed files with 3,476 additions and 0 deletions.
1,977 changes: 1,977 additions & 0 deletions .api/v1.1.0/PowerBI-visuals.d.ts

Large diffs are not rendered by default.

721 changes: 721 additions & 0 deletions .api/v1.1.0/schema.capabilities.json

Large diffs are not rendered by default.

95 changes: 95 additions & 0 deletions .api/v1.1.0/schema.pbiviz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"PBI_API_VERSION": "v1.1.0",
"type": "object",
"properties": {
"apiVersion": {
"type": "string",
"description": "Version of the IVisual API"
},
"author": {
"type": "object",
"description": "Information about the author of the visual",
"properties": {
"name": {
"type": "string",
"description": "Name of the visual author. This is displayed to users."
},
"email": {
"type": "string",
"description": "E-mail of the visual author. This is displayed to users for support."
}
}
},
"assets": {
"type": "object",
"description": "Assets used by the visual",
"properties": {
"icon": {
"type": "string",
"description": "A 20x20 png icon used to represent the visual"
}
}
},
"externalJS": {
"type": "array",
"description": "An array of relative paths to 3rd party javascript libraries to load",
"items": {
"type": "string"
}
},
"style" : {
"type": "string",
"description": "Relative path to the stylesheet (less) for the visual"
},
"capabilities": {
"type": "string",
"description": "Relative path to the visual capabilities json file"
},
"visual": {
"type": "object",
"description": "Details about this visual",
"properties": {
"description": {
"type": "string",
"description": "What does this visual do?"
},
"name": {
"type": "string",
"description": "Internal visual name"
},
"displayName": {
"type": "string",
"description": "A friendly name"
},
"externals": {
"type": "array",
"description": "External files (such as JavaScript) that you would like to include"
},
"guid": {
"type": "string",
"description": "Unique identifier for the visual"
},
"visualClassName": {
"type": "string",
"description": "Class of your IVisual"
},
"icon": {
"type": "string",
"description": "Icon path"
},
"version": {
"type": "string",
"description": "Visual version"
},
"gitHubUrl": {
"type": "string",
"description": "Url to the github repository for this visual"
},
"supportUrl": {
"type": "string",
"description": "Url to the support page for this visual"
}
}
}
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.tmp
dist/
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
typings
node_modules
.DS_Store
.tmp
dist
13 changes: 13 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "0.1.0",
"configurations": [
{
"name": "Debugger",
"type": "chrome",
"request": "attach",
"port": 9222,
"sourceMaps": true,
"webRoot": "${cwd}/"
}
]
}
31 changes: 31 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"editor.tabSize": 4,
"editor.insertSpaces": true,
"files.eol": "\n",
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/node_modules/**": true,
".tmp": true
},
"files.exclude": {
".tmp": true
},
"search.exclude": {
".tmp": true,
"typings": true
},
"json.schemas": [
{
"fileMatch": [
"/pbiviz.json"
],
"url": "./.api/v1.1.0/schema.pbiviz.json"
},
{
"fileMatch": [
"/capabilities.json"
],
"url": "./.api/v1.1.0/schema.capabilities.json"
}
]
}
Binary file added assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
106 changes: 106 additions & 0 deletions capabilities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"dataRoles": [
{
"name": "Category",
"kind": 0,
"displayName": "Category"
},
{
"name": "X",
"kind": 1,
"displayName": "X values"
},
{
"name": "Y",
"kind": 1,
"displayName": "Y values"
},
{
"name": "I",
"kind": 1,
"displayName": "Intensity"
}
],
"dataViewMappings": [
{
"categorical": {
"categories": {
"for": {
"in": "Category"
}
},
"values": {
"group": {
"by": "Series",
"select": [
{
"bind": {
"to": "X"
}
},
{
"bind": {
"to": "Y"
}
},
{
"bind": {
"to": "I"
}
}
]
}
}
}
}
],
"objects": {
"settings": {
"displayName": "Heatmap Settings",
"properties": {
"backgroundUrl": {
"displayName": "Background Url",
"type": {
"text": true
}
},
"toggle": {
"displayName": "Enable",
"type": {
"bool": true
}
},
"radius": {
"displayName": "Radius",
"type": {
"numeric": true
}
},
"blur": {
"displayName": "Blur",
"type": {
"numeric": true
}
},
"maxValue": {
"displayName": "Max Intensity",
"type": {
"numeric": true
}
},
"maxWidth": {
"displayName": "Canvas Width",
"type": {
"numeric": true
}
},
"maxHeight": {
"displayName": "Canvas Height",
"type": {
"numeric": true
}
}
}
}
}
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "visual"
}
23 changes: 23 additions & 0 deletions pbiviz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"visual": {
"name": "heatmap",
"displayName": "Heatmap",
"guid": "PBI_CV_FCF70EF9_270E_4A52_913E_345CC4A8BFBA",
"visualClassName": "Visual",
"version": "2.0.0",
"description": "The Heatmap Visual enables users to draw a heatmap overlay from a X, Y coordinate set on to an existing image. The user specify the image, and provide a data set of X, Y coordinates and optionally an intensity for each data point. The radius and the bluriness of the heatmap bubbles can be customized as well as the max value for the intensity.",
"supportUrl": "http://powerbi.sjkp.dk/support",
"gitHubUrl": "https://github.com/sjkp/heatmap"
},
"apiVersion": "1.1.0",
"author": {
"name": "SJKP",
"email": "[email protected]"
},
"assets": {
"icon": "assets/icon.png"
},
"externalJS": [],
"style": "style/visual.less",
"capabilities": "capabilities.json"
}
Loading

0 comments on commit 9167f7e

Please sign in to comment.