Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Jan 26, 2018
1 parent 6ce8cd2 commit a0b46ca
Show file tree
Hide file tree
Showing 19 changed files with 3,165 additions and 0 deletions.
1,406 changes: 1,406 additions & 0 deletions .api/v1.10.0/PowerBI-visuals.d.ts

Large diffs are not rendered by default.

1,143 changes: 1,143 additions & 0 deletions .api/v1.10.0/schema.capabilities.json

Large diffs are not rendered by default.

38 changes: 38 additions & 0 deletions .api/v1.10.0/schema.dependencies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"PBI_API_VERSION": "v1.10.0",
"type": "object",
"properties": {
"cranPackages": {
"type": "array",
"description": "An array of the Cran packages required for the custom R visual script to operate",
"items": {
"$ref": "#/definitions/cranPackage"
}
}
},
"definitions": {
"cranPackage": {
"type": "object",
"description": "cranPackage - Defines the name and displayName of a required Cran package",
"properties": {
"name": {
"type": "string",
"description": "The name for this Cran package"
},
"displayName": {
"type": "string",
"description": "The name for this Cran package that is shown to the user"
},
"url": {
"type": "string",
"description": "A url for package documentation in Cran website"
}
},
"required": [
"name",
"url"
],
"additionalProperties": false
}
}
}
103 changes: 103 additions & 0 deletions .api/v1.10.0/schema.pbiviz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"PBI_API_VERSION": "v1.10.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"
}
},
"stringResources": {
"type": "array",
"description": "An array of relative paths to string resources to load",
"items": {
"type": "string"
},
"uniqueItems": true
},
"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"
}
}
}
}
}
67 changes: 67 additions & 0 deletions .api/v1.10.0/schema.stringResources.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"PBI_API_VERSION": "v1.10.0",
"type": "object",
"properties": {
"locale": {
"$ref": "#/definitions/localeOptions"
},
"values": {
"type": "object",
"description": "translations for the display name keys in the capabilities",
"additionalProperties": { "type": "string" }
}
},
"required": [ "locale" ],
"definitions": {
"localeOptions": {
"description": "Specifies the locale key from a list of supported locales",
"type": "string",
"enum": [
"ar-SA",
"bg-BG",
"ca-ES",
"cs-CZ",
"da-DK",
"de-DE",
"el-GR",
"en-US",
"es-ES",
"et-EE",
"eu-ES",
"fi-FI",
"fr-FR",
"gl-ES",
"he-IL",
"hi-IN",
"hr-HR",
"hu-HU",
"id-ID",
"it-IT",
"ja-JP",
"kk-KZ",
"ko-KR",
"lt-LT",
"lv-LV",
"ms-MY",
"nb-NO",
"nl-NL",
"pl-PL",
"pt-BR",
"pt-PT",
"ro-RO",
"ru-RU",
"sk-SK",
"sl-SI",
"sr-Cyrl-RS",
"sr-Latn-RS",
"sv-SE",
"th-TH",
"tr-TR",
"uk-UA",
"vi-VN",
"zh-CN",
"zh-TW"
]
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
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}/"
}
]
}
37 changes: 37 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"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.10.0/schema.pbiviz.json"
},
{
"fileMatch": [
"/capabilities.json"
],
"url": "./.api/v1.10.0/schema.capabilities.json"
},
{
"fileMatch": [
"/dependencies.json"
],
"url": "./.api/v1.10.0/schema.dependencies.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.
84 changes: 84 additions & 0 deletions capabilities.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"dataRoles": [
{
"displayName": "Category Data",
"name": "category",
"kind": "Grouping"
},
{
"displayName": "Measure Data",
"name": "measure",
"kind": "Measure"
}
],
"objects": {
"dataPoint": {
"displayName": "Data colors",
"properties": {
"defaultColor": {
"displayName": "Default color",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"showAllDataPoints": {
"displayName": "Show all",
"type": {
"bool": true
}
},
"fill": {
"displayName": "Fill",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
},
"fillRule": {
"displayName": "Color saturation",
"type": {
"fill": {}
}
},
"fontSize": {
"displayName": "Text Size",
"type": {
"formatting": {
"fontSize": true
}
}
}
}
}
},
"dataViewMappings": [
{
"categorical": {
"categories": {
"for": {
"in": "category"
},
"dataReductionAlgorithm": {
"top": {}
}
},
"values": {
"select": [
{
"bind": {
"to": "measure"
}
}
]
}
}
}
]
}
12 changes: 12 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "visual",
"dependencies": {
"powerbi-visuals-utils-dataviewutils": "1.2.0"
}
}
Loading

0 comments on commit a0b46ca

Please sign in to comment.