mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
plottable: Provides its own types (#22384)
This commit is contained in:
@@ -588,6 +588,12 @@
|
||||
"sourceRepoURL": "https://github.com/PeculiarVentures/pkcs11js",
|
||||
"asOfVersion": "1.0.4"
|
||||
},
|
||||
{
|
||||
"libraryName": "plottable",
|
||||
"typingsPackageName": "plottable",
|
||||
"sourceRepoURL": "http://plottablejs.org/",
|
||||
"asOfVersion": "3.7.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "poly2tri.js",
|
||||
"typingsPackageName": "poly2tri",
|
||||
|
||||
Vendored
-4121
File diff suppressed because it is too large
Load Diff
@@ -1,51 +0,0 @@
|
||||
|
||||
|
||||
var data = [
|
||||
{ x: 1, y: 1, x2: 2, y2: 2 },
|
||||
{ x: 4, y: 4, x2: 3, y2: 3 },
|
||||
{ x: 2, y: 2, x2: 3, y2: 3 }
|
||||
];
|
||||
|
||||
// Create a dataset
|
||||
var dataset = new Plottable.Dataset(data);
|
||||
|
||||
// Generate a bunch of scales
|
||||
var linearScale = new Plottable.Scales.Linear();
|
||||
var modifiedLogScale = new Plottable.Scales.ModifiedLog();
|
||||
var categoryScale = new Plottable.Scales.Category();
|
||||
var categorySecondaryScale = new Plottable.Scales.Category();
|
||||
|
||||
// Generate a bunch of axes
|
||||
var numericAxis = new Plottable.Axes.Numeric(linearScale, "bottom");
|
||||
var numericSecondaryAxis = new Plottable.Axes.Numeric(modifiedLogScale, "left");
|
||||
var categoryAxis = new Plottable.Axes.Category(categoryScale, "bottom");
|
||||
var categorySecondaryAxis = new Plottable.Axes.Category(categorySecondaryScale, "left");
|
||||
|
||||
// Scatter plot
|
||||
var scatter = new Plottable.Plots.Scatter()
|
||||
.x((d) => d.x, linearScale)
|
||||
.y((d) => d.y, categoryScale)
|
||||
.addDataset(dataset);
|
||||
|
||||
// Line plot
|
||||
var line = new Plottable.Plots.Line()
|
||||
.x((d) => d.x, linearScale)
|
||||
.y((d) => d.y, modifiedLogScale)
|
||||
.addDataset(dataset);
|
||||
|
||||
// Rectangle plot
|
||||
var rectangle = new Plottable.Plots.Rectangle()
|
||||
.x((d) => d.x, linearScale)
|
||||
.y((d) => d.y, modifiedLogScale)
|
||||
.x2((d) => d.x2)
|
||||
.y2((d) => d.y2)
|
||||
.addDataset(dataset);
|
||||
|
||||
// Create a group of plots
|
||||
var group = new Plottable.Components.Group([line, scatter]);
|
||||
|
||||
// Make a chart
|
||||
new Plottable.Components.Table([
|
||||
[numericSecondaryAxis, group],
|
||||
[null, numericAxis]
|
||||
]);
|
||||
@@ -1,29 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": false,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"paths": {
|
||||
"d3": [
|
||||
"d3/v3"
|
||||
]
|
||||
},
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"plottable-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,79 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"adjacent-overload-signatures": false,
|
||||
"array-type": false,
|
||||
"arrow-return-shorthand": false,
|
||||
"ban-types": false,
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
"interface-name": false,
|
||||
"interface-over-type-literal": false,
|
||||
"jsdoc-format": false,
|
||||
"max-line-length": false,
|
||||
"member-access": false,
|
||||
"new-parens": false,
|
||||
"no-any-union": false,
|
||||
"no-boolean-literal-compare": false,
|
||||
"no-conditional-assignment": false,
|
||||
"no-consecutive-blank-lines": false,
|
||||
"no-construct": false,
|
||||
"no-declare-current-package": false,
|
||||
"no-duplicate-imports": false,
|
||||
"no-duplicate-variable": false,
|
||||
"no-empty-interface": false,
|
||||
"no-for-in-array": false,
|
||||
"no-inferrable-types": false,
|
||||
"no-internal-module": false,
|
||||
"no-irregular-whitespace": false,
|
||||
"no-mergeable-namespace": false,
|
||||
"no-misused-new": false,
|
||||
"no-namespace": false,
|
||||
"no-object-literal-type-assertion": false,
|
||||
"no-padding": false,
|
||||
"no-redundant-jsdoc": false,
|
||||
"no-redundant-jsdoc-2": false,
|
||||
"no-redundant-undefined": false,
|
||||
"no-reference-import": false,
|
||||
"no-relative-import-in-test": false,
|
||||
"no-self-import": false,
|
||||
"no-single-declare-module": false,
|
||||
"no-string-throw": false,
|
||||
"no-unnecessary-callback-wrapper": false,
|
||||
"no-unnecessary-class": false,
|
||||
"no-unnecessary-generics": false,
|
||||
"no-unnecessary-qualifier": false,
|
||||
"no-unnecessary-type-assertion": false,
|
||||
"no-useless-files": false,
|
||||
"no-var-keyword": false,
|
||||
"no-var-requires": false,
|
||||
"no-void-expression": false,
|
||||
"no-trailing-whitespace": false,
|
||||
"object-literal-key-quotes": false,
|
||||
"object-literal-shorthand": false,
|
||||
"one-line": false,
|
||||
"one-variable-per-declaration": false,
|
||||
"only-arrow-functions": false,
|
||||
"prefer-conditional-expression": false,
|
||||
"prefer-const": false,
|
||||
"prefer-declare-function": false,
|
||||
"prefer-for-of": false,
|
||||
"prefer-method-signature": false,
|
||||
"prefer-template": false,
|
||||
"radix": false,
|
||||
"semicolon": false,
|
||||
"space-before-function-paren": false,
|
||||
"space-within-parens": false,
|
||||
"strict-export-declare-modifiers": false,
|
||||
"trim-file": false,
|
||||
"triple-equals": false,
|
||||
"typedef-whitespace": false,
|
||||
"unified-signatures": false,
|
||||
"void-return": false,
|
||||
"whitespace": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user