diff --git a/LICENSE b/LICENSE index 21071075c2..6cd42a30a2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,8 @@ - MIT License + charticulator + Copyright (c) Microsoft Corporation. + All rights reserved. - Copyright (c) Microsoft Corporation. All rights reserved. + MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +20,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE + SOFTWARE. \ No newline at end of file diff --git a/header.txt b/header.txt new file mode 100644 index 0000000000..5e8fb52b99 --- /dev/null +++ b/header.txt @@ -0,0 +1,2 @@ +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. \ No newline at end of file diff --git a/package.json b/package.json index 25960183b2..eb0b77d703 100644 --- a/package.json +++ b/package.json @@ -21,13 +21,16 @@ "lint": "tslint 'src/**/*.{ts,tsx}'", "prettify": "prettier 'src/**/*.{ts,tsx}'", "unit_test": "NODE_PATH=. mocha dist/scripts/tests", - "test": "run-s lint dev unit_test" + "test": "run-s lint dev unit_test", + "add_licenses": "license-check-and-add" }, "lint-staged": { "*.{ts,tsx}": [ "tslint --fix", - "prettier --write" - ] + "prettier --write", + "license-check-and-add" + ], + "*.{js,jsx}": "license-check-and-add" }, "dependencies": { "d3-dsv": "^1.0.8", @@ -40,6 +43,15 @@ "react": "16.3.2", "react-dom": "16.3.2" }, + "license-check-and-add-config": { + "folder": ".", + "license": "header.txt", + "exact_paths_method": "INCLUDE", + "exact_paths": ["src"], + "file_type_method": "INCLUDE", + "file_types": [".js", ".tsx", ".ts"], + "insert_license": true + }, "devDependencies": { "@types/chai": "4.0.1", "@types/d3": "4.9.0", @@ -56,6 +68,7 @@ "http-server": "0.11.1", "husky": "^0.14.3", "js-yaml": "3.11.0", + "license-check-and-add": "^2.3.6", "lint-staged": "^7.1.0", "mocha": "5.0.5", "multirun": "2.0.0", diff --git a/src/app/actions/actions.ts b/src/app/actions/actions.ts index 11c33f95f9..e910a98e14 100644 --- a/src/app/actions/actions.ts +++ b/src/app/actions/actions.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Dataset, Point, diff --git a/src/app/actions/drag_data.ts b/src/app/actions/drag_data.ts index 312f169567..c2e4600677 100644 --- a/src/app/actions/drag_data.ts +++ b/src/app/actions/drag_data.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Dataset } from "../../core"; import { Value } from "../../core/expression/classes"; diff --git a/src/app/actions/index.ts b/src/app/actions/index.ts index 7cf5100008..2c79ec9fd0 100644 --- a/src/app/actions/index.ts +++ b/src/app/actions/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Actions from "./actions"; import * as DragData from "./drag_data"; diff --git a/src/app/application.tsx b/src/app/application.tsx index 5faadec9ad..797b50fa61 100644 --- a/src/app/application.tsx +++ b/src/app/application.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as ReactDOM from "react-dom"; diff --git a/src/app/backend/abstract.ts b/src/app/backend/abstract.ts index 1b472bef7b..6bccfd4dd9 100644 --- a/src/app/backend/abstract.ts +++ b/src/app/backend/abstract.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export interface ItemMetadata { [name: string]: string | number | boolean; name?: string; diff --git a/src/app/backend/indexedDB.ts b/src/app/backend/indexedDB.ts index 1768299803..0e319bf02c 100644 --- a/src/app/backend/indexedDB.ts +++ b/src/app/backend/indexedDB.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { AbstractBackend, ItemData, diff --git a/src/app/components/buttons.tsx b/src/app/components/buttons.tsx index d386d5319d..ddbbb21739 100644 --- a/src/app/components/buttons.tsx +++ b/src/app/components/buttons.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { classNames } from "../utils"; diff --git a/src/app/components/color_picker.tsx b/src/app/components/color_picker.tsx index 0d4794e593..b69d26472e 100644 --- a/src/app/components/color_picker.tsx +++ b/src/app/components/color_picker.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Color, diff --git a/src/app/components/draggable.tsx b/src/app/components/draggable.tsx index ab8ec5f2ab..a30d434302 100644 --- a/src/app/components/draggable.tsx +++ b/src/app/components/draggable.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as globals from "../globals"; diff --git a/src/app/components/dropdown.tsx b/src/app/components/dropdown.tsx index 9a13c0558b..7e1cdb77c5 100644 --- a/src/app/components/dropdown.tsx +++ b/src/app/components/dropdown.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { SVGImageIcon } from "./icons"; diff --git a/src/app/components/editable_text_view.tsx b/src/app/components/editable_text_view.tsx index 28edd63f02..77fe05f28d 100644 --- a/src/app/components/editable_text_view.tsx +++ b/src/app/components/editable_text_view.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { ButtonFlat } from "./buttons"; import * as R from "../resources"; diff --git a/src/app/components/error_boundary.tsx b/src/app/components/error_boundary.tsx index 0ee6b967c5..379af36a3e 100644 --- a/src/app/components/error_boundary.tsx +++ b/src/app/components/error_boundary.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { ButtonRaised } from "./index"; diff --git a/src/app/components/hcl_color_picker.tsx b/src/app/components/hcl_color_picker.tsx index 98a7ae5ead..8f5c0a0a98 100644 --- a/src/app/components/hcl_color_picker.tsx +++ b/src/app/components/hcl_color_picker.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Color, diff --git a/src/app/components/icons.tsx b/src/app/components/icons.tsx index 6329a3dc00..18fccf3aff 100644 --- a/src/app/components/icons.tsx +++ b/src/app/components/icons.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { classNames } from "../utils"; diff --git a/src/app/components/index.ts b/src/app/components/index.ts index ebad902a31..7fd33bc170 100644 --- a/src/app/components/index.ts +++ b/src/app/components/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export * from "./icons"; export * from "./buttons"; export * from "./draggable"; diff --git a/src/app/components/minimizable_panel.tsx b/src/app/components/minimizable_panel.tsx index cb235a2299..cfe3133e5b 100644 --- a/src/app/components/minimizable_panel.tsx +++ b/src/app/components/minimizable_panel.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { getSVGIcon } from "../resources"; import { SVGImageIcon } from "./icons"; diff --git a/src/app/components/scroll_view.tsx b/src/app/components/scroll_view.tsx index b3580349c9..0d9724a327 100644 --- a/src/app/components/scroll_view.tsx +++ b/src/app/components/scroll_view.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as Hammer from "hammerjs"; diff --git a/src/app/components/selecting.tsx b/src/app/components/selecting.tsx index 57d9cad03c..d7762d02c4 100644 --- a/src/app/components/selecting.tsx +++ b/src/app/components/selecting.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as Hammer from "hammerjs"; diff --git a/src/app/components/split_panes.tsx b/src/app/components/split_panes.tsx index 04f90c3305..c162a19f3a 100644 --- a/src/app/components/split_panes.tsx +++ b/src/app/components/split_panes.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; export interface SplitPaneViewProps {} diff --git a/src/app/components/zoomable.tsx b/src/app/components/zoomable.tsx index d4f8b4b82f..35b06ef360 100644 --- a/src/app/components/zoomable.tsx +++ b/src/app/components/zoomable.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as Hammer from "hammerjs"; diff --git a/src/app/config.ts b/src/app/config.ts index 8df36f68b6..ca4a2934b3 100644 --- a/src/app/config.ts +++ b/src/app/config.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { CharticulatorCoreConfig, getConfig as coreGetConfig } from "../core"; export interface CharticulatorAppConfig extends CharticulatorCoreConfig { diff --git a/src/app/context_component.tsx b/src/app/context_component.tsx index f9dae2563c..2374e05392 100644 --- a/src/app/context_component.tsx +++ b/src/app/context_component.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { MainStore } from "./stores/main_store"; import { Action } from "./actions/actions"; diff --git a/src/app/controllers/drag_controller.tsx b/src/app/controllers/drag_controller.tsx index e14f39f01a..39e976ed15 100644 --- a/src/app/controllers/drag_controller.tsx +++ b/src/app/controllers/drag_controller.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as Hammer from "hammerjs"; diff --git a/src/app/controllers/index.ts b/src/app/controllers/index.ts index 1ca574e9d2..863b491130 100644 --- a/src/app/controllers/index.ts +++ b/src/app/controllers/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export * from "./drag_controller"; export * from "./popup_controller"; export * from "./resize_observer"; diff --git a/src/app/controllers/popup_controller.tsx b/src/app/controllers/popup_controller.tsx index 522ffbfb5e..65924302cf 100644 --- a/src/app/controllers/popup_controller.tsx +++ b/src/app/controllers/popup_controller.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { EventEmitter, EventSubscription } from "../../core"; import { classNames } from "../utils"; diff --git a/src/app/controllers/resize_observer.tsx b/src/app/controllers/resize_observer.tsx index d5bed24c85..b9dad99ea6 100644 --- a/src/app/controllers/resize_observer.tsx +++ b/src/app/controllers/resize_observer.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ class ElementInfo { public element: Element; public previousWidth: number; diff --git a/src/app/extension/abstract.ts b/src/app/extension/abstract.ts index f4756c4097..e358584c4d 100644 --- a/src/app/extension/abstract.ts +++ b/src/app/extension/abstract.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Dispatcher } from "../../core"; import { Action } from "../actions/actions"; import { MainStore } from "../stores/main_store"; diff --git a/src/app/extension/index.ts b/src/app/extension/index.ts index a49056fcbf..2a68a05453 100644 --- a/src/app/extension/index.ts +++ b/src/app/extension/index.ts @@ -1 +1,5 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export { ExtensionContext, Extension } from "./abstract"; diff --git a/src/app/globals.ts b/src/app/globals.ts index 0d776fac79..55dda9c2e8 100644 --- a/src/app/globals.ts +++ b/src/app/globals.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Actions } from "./actions"; import { DragController, diff --git a/src/app/index.tsx b/src/app/index.tsx index 2431e12b71..1b05752843 100644 --- a/src/app/index.tsx +++ b/src/app/index.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ // The entry JavaScript file for the web app. import * as React from "react"; diff --git a/src/app/main_view.tsx b/src/app/main_view.tsx index 04bbdb607b..6ca387a93a 100644 --- a/src/app/main_view.tsx +++ b/src/app/main_view.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as ReactDOM from "react-dom"; diff --git a/src/app/renderer/index.tsx b/src/app/renderer/index.tsx index 8d70299932..60148f2ad0 100644 --- a/src/app/renderer/index.tsx +++ b/src/app/renderer/index.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Graphics, Color, shallowClone } from "../../core"; diff --git a/src/app/resources/icons.ts b/src/app/resources/icons.ts index 0bc529a90f..365783ce00 100644 --- a/src/app/resources/icons.ts +++ b/src/app/resources/icons.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ const iconRegistry = new Map(); export function addSVGIcon(path: string | string[], svgDataURL: string) { diff --git a/src/app/resources/index.ts b/src/app/resources/index.ts index b3c8790732..8a35d91d3b 100644 --- a/src/app/resources/index.ts +++ b/src/app/resources/index.ts @@ -1,2 +1,6 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export * from "./icons"; export * from "./palettes"; diff --git a/src/app/resources/palettes.ts b/src/app/resources/palettes.ts index b1eac04ad9..eb5c6f5179 100644 --- a/src/app/resources/palettes.ts +++ b/src/app/resources/palettes.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color, colorFromHTMLColor, getColorConverter } from "../../core"; /** A color scheme is a source of colors for categorical/ordinal/numerical scales */ diff --git a/src/app/stores/chart.ts b/src/app/stores/chart.ts index fd039a05a8..d9c7af9e73 100644 --- a/src/app/stores/chart.ts +++ b/src/app/stores/chart.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { deepClone, EventEmitter, Expression, setField } from "../../core"; import { diff --git a/src/app/stores/dataset.ts b/src/app/stores/dataset.ts index 6c9eb67384..ff47c37f11 100644 --- a/src/app/stores/dataset.ts +++ b/src/app/stores/dataset.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { EventEmitter } from "../../core"; import { Dataset, Expression } from "../../core"; diff --git a/src/app/stores/index.ts b/src/app/stores/index.ts index 952ba7525b..3985b168ed 100644 --- a/src/app/stores/index.ts +++ b/src/app/stores/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export { BaseStore } from "../../core/store/base"; export { MainStore } from "./main_store"; diff --git a/src/app/stores/main_store.ts b/src/app/stores/main_store.ts index ffad65563b..14241e61ea 100644 --- a/src/app/stores/main_store.ts +++ b/src/app/stores/main_store.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { deepClone, EventEmitter, Specification } from "../../core"; import { Dispatcher } from "../../core"; diff --git a/src/app/stores/mark.ts b/src/app/stores/mark.ts index 0a5bd08521..0362f9f208 100644 --- a/src/app/stores/mark.ts +++ b/src/app/stores/mark.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { EventEmitter } from "../../core"; import { diff --git a/src/app/template/index.ts b/src/app/template/index.ts index 7445d30bfd..356a61d2a8 100644 --- a/src/app/template/index.ts +++ b/src/app/template/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Dataset, deepClone, Prototypes, Specification } from "../../core"; export interface ExportTemplateTargetProperty { diff --git a/src/app/test.tsx b/src/app/test.tsx index a0073ad023..faee29f49a 100644 --- a/src/app/test.tsx +++ b/src/app/test.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as ReactDOM from "react-dom"; diff --git a/src/app/utils/index.ts b/src/app/utils/index.ts index 171296830c..8e8212629d 100644 --- a/src/app/utils/index.ts +++ b/src/app/utils/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { prettyNumber, ZoomInfo } from "../../core"; export function classNames(...args: Array) { diff --git a/src/app/views/canvas/bounding_box.tsx b/src/app/views/canvas/bounding_box.tsx index 17534752df..04c379bf8d 100644 --- a/src/app/views/canvas/bounding_box.tsx +++ b/src/app/views/canvas/bounding_box.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Prototypes, Geometry, ZoomInfo, Graphics, Point } from "../../../core"; diff --git a/src/app/views/canvas/canvas_bar.tsx b/src/app/views/canvas/canvas_bar.tsx index 99bbe4cf68..4085d42a45 100644 --- a/src/app/views/canvas/canvas_bar.tsx +++ b/src/app/views/canvas/canvas_bar.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; export interface CanvasBarProps { diff --git a/src/app/views/canvas/chart_display.tsx b/src/app/views/canvas/chart_display.tsx index b48b7d87be..d5eb805d84 100644 --- a/src/app/views/canvas/chart_display.tsx +++ b/src/app/views/canvas/chart_display.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as ReactDOMServer from "react-dom/server"; diff --git a/src/app/views/canvas/chart_editor.tsx b/src/app/views/canvas/chart_editor.tsx index 3ffb5d9b89..e6daada9af 100644 --- a/src/app/views/canvas/chart_editor.tsx +++ b/src/app/views/canvas/chart_editor.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { EventSubscription, stableSortBy } from "../../../core"; diff --git a/src/app/views/canvas/creating_component.tsx b/src/app/views/canvas/creating_component.tsx index 021edfb1bf..5b13a72069 100644 --- a/src/app/views/canvas/creating_component.tsx +++ b/src/app/views/canvas/creating_component.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as Hammer from "hammerjs"; diff --git a/src/app/views/canvas/dropzone.tsx b/src/app/views/canvas/dropzone.tsx index 9c0451ffaa..7c362d7040 100644 --- a/src/app/views/canvas/dropzone.tsx +++ b/src/app/views/canvas/dropzone.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { EventEmitter, EventSubscription } from "../../../core"; diff --git a/src/app/views/canvas/editing_link.tsx b/src/app/views/canvas/editing_link.tsx index 7f2aa1a359..6a22ffe89a 100644 --- a/src/app/views/canvas/editing_link.tsx +++ b/src/app/views/canvas/editing_link.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Hammer from "hammerjs"; import * as React from "react"; diff --git a/src/app/views/canvas/handles.tsx b/src/app/views/canvas/handles.tsx index fcfaf6f79c..658cde1e19 100644 --- a/src/app/views/canvas/handles.tsx +++ b/src/app/views/canvas/handles.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as Hammer from "hammerjs"; import { EventEmitter, EventSubscription, Graphics } from "../../../core"; diff --git a/src/app/views/canvas/mark_editor.tsx b/src/app/views/canvas/mark_editor.tsx index ed517d3e39..0d4cf07d90 100644 --- a/src/app/views/canvas/mark_editor.tsx +++ b/src/app/views/canvas/mark_editor.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { EventEmitter, EventSubscription, Graphics } from "../../../core"; diff --git a/src/app/views/canvas/snapping.tsx b/src/app/views/canvas/snapping.tsx index 838f962d4a..1a7a446663 100644 --- a/src/app/views/canvas/snapping.tsx +++ b/src/app/views/canvas/snapping.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Specification, Prototypes, diff --git a/src/app/views/dataset/data_field_selector.tsx b/src/app/views/dataset/data_field_selector.tsx index 61bd246f34..8cf4ef355f 100644 --- a/src/app/views/dataset/data_field_selector.tsx +++ b/src/app/views/dataset/data_field_selector.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Dataset, Expression } from "../../../core"; import { SVGImageIcon } from "../../components"; diff --git a/src/app/views/dataset/dataset_view.tsx b/src/app/views/dataset/dataset_view.tsx index 316b3a01ff..941154eb4f 100644 --- a/src/app/views/dataset/dataset_view.tsx +++ b/src/app/views/dataset/dataset_view.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Dataset, Expression } from "../../../core"; import { DragData } from "../../actions"; diff --git a/src/app/views/dataset/table_view.tsx b/src/app/views/dataset/table_view.tsx index bb4d7914fb..c49703d42a 100644 --- a/src/app/views/dataset/table_view.tsx +++ b/src/app/views/dataset/table_view.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Dataset } from "../../../core"; diff --git a/src/app/views/file_view/export_view.tsx b/src/app/views/file_view/export_view.tsx index 301e5392a9..c75c58c180 100644 --- a/src/app/views/file_view/export_view.tsx +++ b/src/app/views/file_view/export_view.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as FileSaver from "file-saver"; diff --git a/src/app/views/file_view/import_data_view.tsx b/src/app/views/file_view/import_data_view.tsx index 3a1ec44a51..9430ab8336 100644 --- a/src/app/views/file_view/import_data_view.tsx +++ b/src/app/views/file_view/import_data_view.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as R from "../../resources"; import * as globals from "../../globals"; diff --git a/src/app/views/file_view/index.tsx b/src/app/views/file_view/index.tsx index f1f7569a0b..47d7950467 100644 --- a/src/app/views/file_view/index.tsx +++ b/src/app/views/file_view/index.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { MainStore } from "../../stores"; import { diff --git a/src/app/views/file_view/new_view.tsx b/src/app/views/file_view/new_view.tsx index d405470993..9f691c2caf 100644 --- a/src/app/views/file_view/new_view.tsx +++ b/src/app/views/file_view/new_view.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Actions } from "../../actions"; import { ContextedComponent } from "../../context_component"; diff --git a/src/app/views/file_view/open_view.tsx b/src/app/views/file_view/open_view.tsx index 07c8b86f4f..8e6668a9de 100644 --- a/src/app/views/file_view/open_view.tsx +++ b/src/app/views/file_view/open_view.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as FileSaver from "file-saver"; diff --git a/src/app/views/file_view/save_view.tsx b/src/app/views/file_view/save_view.tsx index ae4b5ee9f8..f0bdd2eb36 100644 --- a/src/app/views/file_view/save_view.tsx +++ b/src/app/views/file_view/save_view.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as R from "../../resources"; diff --git a/src/app/views/index.ts b/src/app/views/index.ts index 14a84d3966..df7821d8ad 100644 --- a/src/app/views/index.ts +++ b/src/app/views/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ // export * from "./canvas/canvas_view"; export { DatasetView } from "./dataset/dataset_view"; // export * from "./canvas/marks"; diff --git a/src/app/views/panels/attribute_panel.tsx b/src/app/views/panels/attribute_panel.tsx index f99a1c9500..3be1776a0d 100644 --- a/src/app/views/panels/attribute_panel.tsx +++ b/src/app/views/panels/attribute_panel.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as R from "../../resources"; diff --git a/src/app/views/panels/index.tsx b/src/app/views/panels/index.tsx index ad132e8f37..a1c494707d 100644 --- a/src/app/views/panels/index.tsx +++ b/src/app/views/panels/index.tsx @@ -1 +1,5 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export * from "./attribute_panel"; diff --git a/src/app/views/panels/link_creator.tsx b/src/app/views/panels/link_creator.tsx index 0a4f15a5d7..70f694b171 100644 --- a/src/app/views/panels/link_creator.tsx +++ b/src/app/views/panels/link_creator.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as R from "../../resources"; diff --git a/src/app/views/panels/object_list_editor.tsx b/src/app/views/panels/object_list_editor.tsx index fb6323fa78..607819712f 100644 --- a/src/app/views/panels/object_list_editor.tsx +++ b/src/app/views/panels/object_list_editor.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as R from "../../resources"; diff --git a/src/app/views/panels/scale_editor.tsx b/src/app/views/panels/scale_editor.tsx index d96ac10a95..e33021e412 100644 --- a/src/app/views/panels/scale_editor.tsx +++ b/src/app/views/panels/scale_editor.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as R from "../../resources"; diff --git a/src/app/views/panels/widgets/controls/button.tsx b/src/app/views/panels/widgets/controls/button.tsx index bead4a5f6e..a2c55753ab 100644 --- a/src/app/views/panels/widgets/controls/button.tsx +++ b/src/app/views/panels/widgets/controls/button.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as R from "../../../../resources"; import { SVGImageIcon } from "../../../../components"; diff --git a/src/app/views/panels/widgets/controls/combo_box.tsx b/src/app/views/panels/widgets/controls/combo_box.tsx index 3c3abc6e32..5fc60d5ca1 100644 --- a/src/app/views/panels/widgets/controls/combo_box.tsx +++ b/src/app/views/panels/widgets/controls/combo_box.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as R from "../../../../resources"; import * as globals from "../../../../globals"; diff --git a/src/app/views/panels/widgets/controls/image.tsx b/src/app/views/panels/widgets/controls/image.tsx index 8e6beb28cc..1afb9c7aee 100644 --- a/src/app/views/panels/widgets/controls/image.tsx +++ b/src/app/views/panels/widgets/controls/image.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as R from "../../../../resources"; import * as globals from "../../../../globals"; diff --git a/src/app/views/panels/widgets/controls/index.tsx b/src/app/views/panels/widgets/controls/index.tsx index a7dc928cae..b7a1d88602 100644 --- a/src/app/views/panels/widgets/controls/index.tsx +++ b/src/app/views/panels/widgets/controls/index.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export * from "./button"; export * from "./combo_box"; export * from "./image"; diff --git a/src/app/views/panels/widgets/controls/input_color.tsx b/src/app/views/panels/widgets/controls/input_color.tsx index 79ac3bf6b0..2ae6cb9160 100644 --- a/src/app/views/panels/widgets/controls/input_color.tsx +++ b/src/app/views/panels/widgets/controls/input_color.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as globals from "../../../../globals"; diff --git a/src/app/views/panels/widgets/controls/input_expression.tsx b/src/app/views/panels/widgets/controls/input_expression.tsx index 933eacb3a8..4b0b53636f 100644 --- a/src/app/views/panels/widgets/controls/input_expression.tsx +++ b/src/app/views/panels/widgets/controls/input_expression.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Expression } from "../../../../../core"; import { classNames } from "../../../../utils"; diff --git a/src/app/views/panels/widgets/controls/input_file.tsx b/src/app/views/panels/widgets/controls/input_file.tsx index 921c449a4b..6927fc6e91 100644 --- a/src/app/views/panels/widgets/controls/input_file.tsx +++ b/src/app/views/panels/widgets/controls/input_file.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Button } from "./button"; diff --git a/src/app/views/panels/widgets/controls/input_number.tsx b/src/app/views/panels/widgets/controls/input_number.tsx index e57913e001..7736a6bc33 100644 --- a/src/app/views/panels/widgets/controls/input_number.tsx +++ b/src/app/views/panels/widgets/controls/input_number.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { prettyNumber } from "../../../../../core"; import { Button, UpdownButton } from "./button"; diff --git a/src/app/views/panels/widgets/controls/input_text.tsx b/src/app/views/panels/widgets/controls/input_text.tsx index 151cef33f0..20edd384a7 100644 --- a/src/app/views/panels/widgets/controls/input_text.tsx +++ b/src/app/views/panels/widgets/controls/input_text.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; export interface InputTextProps { diff --git a/src/app/views/panels/widgets/controls/select.tsx b/src/app/views/panels/widgets/controls/select.tsx index 0ed5dd9c2c..6927b75253 100644 --- a/src/app/views/panels/widgets/controls/select.tsx +++ b/src/app/views/panels/widgets/controls/select.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as R from "../../../../resources"; import * as globals from "../../../../globals"; diff --git a/src/app/views/panels/widgets/controls/slider.tsx b/src/app/views/panels/widgets/controls/slider.tsx index 77df3caebb..7015ce15ec 100644 --- a/src/app/views/panels/widgets/controls/slider.tsx +++ b/src/app/views/panels/widgets/controls/slider.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Hammer from "hammerjs"; import * as React from "react"; import { classNames } from "../../../../utils"; diff --git a/src/app/views/panels/widgets/filter_editor.tsx b/src/app/views/panels/widgets/filter_editor.tsx index 25fd13a7bc..4ad048cf70 100644 --- a/src/app/views/panels/widgets/filter_editor.tsx +++ b/src/app/views/panels/widgets/filter_editor.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { Expression, Prototypes, Specification } from "../../../../core"; import { Actions } from "../../../actions"; diff --git a/src/app/views/panels/widgets/manager.tsx b/src/app/views/panels/widgets/manager.tsx index d76149136c..8df45d74ad 100644 --- a/src/app/views/panels/widgets/manager.tsx +++ b/src/app/views/panels/widgets/manager.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as ReactDOM from "react-dom"; diff --git a/src/app/views/panels/widgets/mapping_editor.tsx b/src/app/views/panels/widgets/mapping_editor.tsx index f516ae5eb2..3334c3be1a 100644 --- a/src/app/views/panels/widgets/mapping_editor.tsx +++ b/src/app/views/panels/widgets/mapping_editor.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as ReactDOM from "react-dom"; import * as globals from "../../../globals"; diff --git a/src/app/views/status_bar.tsx b/src/app/views/status_bar.tsx index b621ab93c3..e26b33946d 100644 --- a/src/app/views/status_bar.tsx +++ b/src/app/views/status_bar.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import { timeFormat } from "d3-time-format"; import { MainStore } from "../stores"; diff --git a/src/app/views/tool_bar.tsx b/src/app/views/tool_bar.tsx index 3213a512c9..75404d0b17 100644 --- a/src/app/views/tool_bar.tsx +++ b/src/app/views/tool_bar.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as React from "react"; import * as ReactDOM from "react-dom"; import * as globals from "../globals"; diff --git a/src/container/chartStore.ts b/src/container/chartStore.ts index 17d492b82f..2778a51b91 100644 --- a/src/container/chartStore.ts +++ b/src/container/chartStore.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { BaseStore } from "../core/store/base"; import { Specification, Dataset, Prototypes } from "../core"; import { SelectMark, ClearSelection, Action } from "../core/actions"; diff --git a/src/container/container.tsx b/src/container/container.tsx index 3846820ddb..9965e40a32 100644 --- a/src/container/container.tsx +++ b/src/container/container.tsx @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { renderGraphicalElementSVG } from "../app/renderer"; import { Color, diff --git a/src/core/actions/actions.ts b/src/core/actions/actions.ts index 7e436b8800..823db20efc 100644 --- a/src/core/actions/actions.ts +++ b/src/core/actions/actions.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Dispatcher } from "../common"; import { Glyph, Element } from "../specification"; diff --git a/src/core/actions/index.ts b/src/core/actions/index.ts index 8ff5a89aff..993ce38279 100644 --- a/src/core/actions/index.ts +++ b/src/core/actions/index.ts @@ -1 +1,5 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export * from "./actions"; diff --git a/src/core/common/color.ts b/src/core/common/color.ts index 26e15fe5d9..fc23eabe93 100644 --- a/src/core/common/color.ts +++ b/src/core/common/color.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ /** Color in RGB */ export interface Color { r: number; diff --git a/src/core/common/events.ts b/src/core/common/events.ts index 0fd4169e2c..96da436d91 100644 --- a/src/core/common/events.ts +++ b/src/core/common/events.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export class EventSubscription { public emitter: EventEmitter; public event: string; diff --git a/src/core/common/fetch.ts b/src/core/common/fetch.ts index d318eb1705..157e3982cd 100644 --- a/src/core/common/fetch.ts +++ b/src/core/common/fetch.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export function loadDataFromURL( url: string, contentType: "text", diff --git a/src/core/common/index.ts b/src/core/common/index.ts index 3fc88dae97..dc0199782f 100644 --- a/src/core/common/index.ts +++ b/src/core/common/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export * from "./math"; export * from "./color"; export * from "./unique_id"; diff --git a/src/core/common/math.ts b/src/core/common/math.ts index 296d119f3b..3c8abac24c 100644 --- a/src/core/common/math.ts +++ b/src/core/common/math.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ /** 2D point */ export interface Point { x: number; diff --git a/src/core/common/scales.ts b/src/core/common/scales.ts index fc87785117..5d894d2664 100644 --- a/src/core/common/scales.ts +++ b/src/core/common/scales.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ const e10 = Math.sqrt(50); const e5 = Math.sqrt(10); const e2 = Math.sqrt(2); diff --git a/src/core/common/unique_id.ts b/src/core/common/unique_id.ts index 9dc677c606..e7717a242c 100644 --- a/src/core/common/unique_id.ts +++ b/src/core/common/unique_id.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ function s4() { return Math.floor((1 + Math.random()) * 0x10000) .toString(16) diff --git a/src/core/common/utils.ts b/src/core/common/utils.ts index 07e6568f6d..7f87639a59 100644 --- a/src/core/common/utils.ts +++ b/src/core/common/utils.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ /** zip two arrays, return an iterator */ export function* zip(a: T1[], b: T2[]): IterableIterator<[T1, T2]> { for (let i = 0; i < a.length; i++) { diff --git a/src/core/config.ts b/src/core/config.ts index ad49774fff..15fb831517 100644 --- a/src/core/config.ts +++ b/src/core/config.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export interface CharticulatorCoreConfig { MapService?: { provider: string; diff --git a/src/core/dataset/context.ts b/src/core/dataset/context.ts index 0e3980957c..041fa05caa 100644 --- a/src/core/dataset/context.ts +++ b/src/core/dataset/context.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { getByName } from "../common"; import { Context } from "../expression"; import { Column, Dataset, Row, Table } from "./dataset"; diff --git a/src/core/dataset/data_types.ts b/src/core/dataset/data_types.ts index 794036c3ea..f2ac0571dd 100644 --- a/src/core/dataset/data_types.ts +++ b/src/core/dataset/data_types.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { ValueType } from "./dataset"; import { ColumnMetadata } from "./index"; diff --git a/src/core/dataset/dataset.ts b/src/core/dataset/dataset.ts index 3cc5eb1cd1..a75f9977a2 100644 --- a/src/core/dataset/dataset.ts +++ b/src/core/dataset/dataset.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export type ValueType = string | number | Date | boolean; // ValueTypes: diff --git a/src/core/dataset/dsv_parser.ts b/src/core/dataset/dsv_parser.ts index 2543d759c9..11dcdbbf27 100644 --- a/src/core/dataset/dsv_parser.ts +++ b/src/core/dataset/dsv_parser.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { csvParseRows, tsvParseRows } from "d3-dsv"; import { diff --git a/src/core/dataset/index.ts b/src/core/dataset/index.ts index b07830cd47..ace495dc80 100644 --- a/src/core/dataset/index.ts +++ b/src/core/dataset/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export * from "./dataset"; export { DatasetLoader } from "./loader"; diff --git a/src/core/dataset/loader.ts b/src/core/dataset/loader.ts index 038aff7001..8d7e9eef04 100644 --- a/src/core/dataset/loader.ts +++ b/src/core/dataset/loader.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Table, Dataset } from "./dataset"; import { parseDataset } from "./dsv_parser"; diff --git a/src/core/expression/classes.ts b/src/core/expression/classes.ts index f79475c100..787349ace7 100644 --- a/src/core/expression/classes.ts +++ b/src/core/expression/classes.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export type ValueType = number | boolean | string | Date | Object; export interface Context { diff --git a/src/core/expression/helpers.ts b/src/core/expression/helpers.ts index 296eeb64a1..b1239d5636 100644 --- a/src/core/expression/helpers.ts +++ b/src/core/expression/helpers.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { BooleanValue, DateValue, diff --git a/src/core/expression/index.ts b/src/core/expression/index.ts index d0694a3f9b..071084a928 100644 --- a/src/core/expression/index.ts +++ b/src/core/expression/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Expression, TextExpression } from "./classes"; export { diff --git a/src/core/expression/intrinsics.ts b/src/core/expression/intrinsics.ts index 6153c4fc1d..44fc4b8580 100644 --- a/src/core/expression/intrinsics.ts +++ b/src/core/expression/intrinsics.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { timeFormat } from "d3-time-format"; import { format } from "d3-format"; import { ValueType } from "./classes"; diff --git a/src/core/expression/parser.d.ts b/src/core/expression/parser.d.ts index cbcf3e5a9d..b7ecc708ff 100644 --- a/src/core/expression/parser.d.ts +++ b/src/core/expression/parser.d.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ // Declaration of the generated parser code import { Expression, TextExpression } from "./classes"; diff --git a/src/core/graphics/bezier_curve.ts b/src/core/graphics/bezier_curve.ts index 9453f8f46b..04f7c0e40b 100644 --- a/src/core/graphics/bezier_curve.ts +++ b/src/core/graphics/bezier_curve.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Point } from "../common"; /** diff --git a/src/core/graphics/coordinate_system.ts b/src/core/graphics/coordinate_system.ts index 07b82f0824..6408a673c9 100644 --- a/src/core/graphics/coordinate_system.ts +++ b/src/core/graphics/coordinate_system.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Element, makeLine, diff --git a/src/core/graphics/elements.ts b/src/core/graphics/elements.ts index 4a5b4bca11..828044550c 100644 --- a/src/core/graphics/elements.ts +++ b/src/core/graphics/elements.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color, Point } from "../common"; import * as Specification from "../specification"; diff --git a/src/core/graphics/index.ts b/src/core/graphics/index.ts index 81ca78b12e..42ff66acc4 100644 --- a/src/core/graphics/index.ts +++ b/src/core/graphics/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export * from "./elements"; export * from "./renderer"; diff --git a/src/core/graphics/renderer/index.ts b/src/core/graphics/renderer/index.ts index 544bfb94a1..6451de82c4 100644 --- a/src/core/graphics/renderer/index.ts +++ b/src/core/graphics/renderer/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color, getById, diff --git a/src/core/graphics/renderer/textMeasurer.ts b/src/core/graphics/renderer/textMeasurer.ts index 64ae8e2926..13ae2b7a8e 100644 --- a/src/core/graphics/renderer/textMeasurer.ts +++ b/src/core/graphics/renderer/textMeasurer.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export interface TextMeasurement { width: number; fontSize: number; diff --git a/src/core/index.ts b/src/core/index.ts index 0a40809d90..18d570115a 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export * from "./common"; export { CharticulatorCoreConfig, getConfig } from "./config"; diff --git a/src/core/optimizers/index.ts b/src/core/optimizers/index.ts index 1d81dcbfa6..d0260363fd 100644 --- a/src/core/optimizers/index.ts +++ b/src/core/optimizers/index.ts @@ -1 +1,5 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ // export * from "./optimizers"; diff --git a/src/core/optimizers/optimizers.ts b/src/core/optimizers/optimizers.ts index 06bd30f962..ba0829c31b 100644 --- a/src/core/optimizers/optimizers.ts +++ b/src/core/optimizers/optimizers.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ // import { fillDefaults } from "../common"; // import { BLAS, BLASFloat64Array } from "../blas"; diff --git a/src/core/prototypes/cache.ts b/src/core/prototypes/cache.ts index 189169e18e..ce2ae2664a 100644 --- a/src/core/prototypes/cache.ts +++ b/src/core/prototypes/cache.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Specification from "../specification"; import { ChartElementClass } from "./chart_element"; import { ObjectClass, ObjectClasses } from "./object"; diff --git a/src/core/prototypes/chart_element.ts b/src/core/prototypes/chart_element.ts index 9e6153d515..6ed1af41f0 100644 --- a/src/core/prototypes/chart_element.ts +++ b/src/core/prototypes/chart_element.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Expression from "../expression"; import * as Graphics from "../graphics"; import { ConstraintSolver } from "../solver"; diff --git a/src/core/prototypes/charts/index.ts b/src/core/prototypes/charts/index.ts index 9f63cb28a1..e781eee919 100644 --- a/src/core/prototypes/charts/index.ts +++ b/src/core/prototypes/charts/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { indexOf, Point, uniqueID } from "../../common"; import { ConstraintSolver, diff --git a/src/core/prototypes/common.ts b/src/core/prototypes/common.ts index 02088eda15..021ef304e8 100644 --- a/src/core/prototypes/common.ts +++ b/src/core/prototypes/common.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Point } from "../common"; import * as Graphics from "../graphics"; import * as Specification from "../specification"; diff --git a/src/core/prototypes/constraints/index.ts b/src/core/prototypes/constraints/index.ts index 7a117317b8..9472a84458 100644 --- a/src/core/prototypes/constraints/index.ts +++ b/src/core/prototypes/constraints/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { getIndexById } from "../../common"; import { ConstraintSolver, ConstraintStrength } from "../../solver"; import * as Specification from "../../specification"; diff --git a/src/core/prototypes/controls.ts b/src/core/prototypes/controls.ts index db608d3085..da15cd0c4b 100644 --- a/src/core/prototypes/controls.ts +++ b/src/core/prototypes/controls.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { DataMappingHints } from "."; import { Point } from "../common"; import * as Specification from "../specification"; diff --git a/src/core/prototypes/dataflow/index.ts b/src/core/prototypes/dataflow/index.ts index 13ff9a2281..3509a5c25a 100644 --- a/src/core/prototypes/dataflow/index.ts +++ b/src/core/prototypes/dataflow/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Dataset from "../../dataset"; import * as Expression from "../../expression"; import * as Specification from "../../specification"; diff --git a/src/core/prototypes/filter.ts b/src/core/prototypes/filter.ts index 93908e542e..7268c0abb2 100644 --- a/src/core/prototypes/filter.ts +++ b/src/core/prototypes/filter.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Specification from "../specification"; import { ExpressionCache, Context } from "../expression"; diff --git a/src/core/prototypes/glyphs/index.ts b/src/core/prototypes/glyphs/index.ts index c5159dad68..d6f288b40c 100644 --- a/src/core/prototypes/glyphs/index.ts +++ b/src/core/prototypes/glyphs/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Point, uniqueID } from "../../common"; import { ConstraintSolver, diff --git a/src/core/prototypes/guides/index.ts b/src/core/prototypes/guides/index.ts index 735fb62af7..8f1027ecab 100644 --- a/src/core/prototypes/guides/index.ts +++ b/src/core/prototypes/guides/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Graphics from "../../graphics"; import { ConstraintPlugins, diff --git a/src/core/prototypes/index.ts b/src/core/prototypes/index.ts index 68d1ebd42e..1ee5127064 100644 --- a/src/core/prototypes/index.ts +++ b/src/core/prototypes/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Charts from "./charts"; import * as Constraints from "./constraints"; import * as Dataflow from "./dataflow"; diff --git a/src/core/prototypes/legends/index.ts b/src/core/prototypes/legends/index.ts index e1cdd0272b..64f7aa2f7d 100644 --- a/src/core/prototypes/legends/index.ts +++ b/src/core/prototypes/legends/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Expression from "../../expression"; import * as Graphics from "../../graphics"; import * as Specification from "../../specification"; diff --git a/src/core/prototypes/links/index.ts b/src/core/prototypes/links/index.ts index 4dd4a1c5ff..655f50e713 100644 --- a/src/core/prototypes/links/index.ts +++ b/src/core/prototypes/links/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color, Geometry, diff --git a/src/core/prototypes/marks/anchor.ts b/src/core/prototypes/marks/anchor.ts index f05c31c642..0ec1bd125c 100644 --- a/src/core/prototypes/marks/anchor.ts +++ b/src/core/prototypes/marks/anchor.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ // Special element: Anchor import { Point, uniqueID } from "../../common"; diff --git a/src/core/prototypes/marks/attrs.ts b/src/core/prototypes/marks/attrs.ts index 9022bf7a1f..f2005d1511 100644 --- a/src/core/prototypes/marks/attrs.ts +++ b/src/core/prototypes/marks/attrs.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { VariableStrength } from "../../solver"; export function lineAttrs() { diff --git a/src/core/prototypes/marks/dataAxis.ts b/src/core/prototypes/marks/dataAxis.ts index 48f29e1446..7c9f30fe32 100644 --- a/src/core/prototypes/marks/dataAxis.ts +++ b/src/core/prototypes/marks/dataAxis.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ // This implements Data-Driven Guides (straight line guide) import { Point } from "../../common"; diff --git a/src/core/prototypes/marks/emphasis.ts b/src/core/prototypes/marks/emphasis.ts index 99a3ab0545..57e5c89019 100644 --- a/src/core/prototypes/marks/emphasis.ts +++ b/src/core/prototypes/marks/emphasis.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Style } from "../../graphics"; import { MarkClass } from "./index"; import { ObjectClass } from "../object"; diff --git a/src/core/prototypes/marks/image.ts b/src/core/prototypes/marks/image.ts index 8808df850e..a56c3d8de8 100644 --- a/src/core/prototypes/marks/image.ts +++ b/src/core/prototypes/marks/image.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color, Point, Geometry } from "../../common"; import { ConstraintSolver, diff --git a/src/core/prototypes/marks/index.ts b/src/core/prototypes/marks/index.ts index 03406627e6..8485d1935a 100644 --- a/src/core/prototypes/marks/index.ts +++ b/src/core/prototypes/marks/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Expression from "../../expression"; import * as Graphics from "../../graphics"; import * as Specification from "../../specification"; diff --git a/src/core/prototypes/marks/line.attrs.ts b/src/core/prototypes/marks/line.attrs.ts index 30c49a1251..5a720524da 100644 --- a/src/core/prototypes/marks/line.attrs.ts +++ b/src/core/prototypes/marks/line.attrs.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { VariableStrength } from "../../solver"; import { AttributeDescription } from "../object"; import { lineAttrs, styleAttrs, centerAttrs } from "./attrs"; diff --git a/src/core/prototypes/marks/line.ts b/src/core/prototypes/marks/line.ts index 84c02809b1..27b5ed0f60 100644 --- a/src/core/prototypes/marks/line.ts +++ b/src/core/prototypes/marks/line.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Point } from "../../common"; import { ConstraintSolver, ConstraintStrength } from "../../solver"; import * as Specification from "../../specification"; diff --git a/src/core/prototypes/marks/rect.attrs.ts b/src/core/prototypes/marks/rect.attrs.ts index 1488632fb6..cd6631e039 100644 --- a/src/core/prototypes/marks/rect.attrs.ts +++ b/src/core/prototypes/marks/rect.attrs.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { AttributeDescription } from "../object"; import { lineAttrs, styleAttrs, sizeAttrs, centerAttrs } from "./attrs"; import { Color } from "../../common"; diff --git a/src/core/prototypes/marks/rect.ts b/src/core/prototypes/marks/rect.ts index 1b282424a0..6eb58d523b 100644 --- a/src/core/prototypes/marks/rect.ts +++ b/src/core/prototypes/marks/rect.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color, Point } from "../../common"; import { ConstraintSolver, ConstraintStrength } from "../../solver"; import * as Specification from "../../specification"; diff --git a/src/core/prototypes/marks/symbol.attrs.ts b/src/core/prototypes/marks/symbol.attrs.ts index d8707dcbd8..500b51f781 100644 --- a/src/core/prototypes/marks/symbol.attrs.ts +++ b/src/core/prototypes/marks/symbol.attrs.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { VariableStrength } from "../../solver"; import { AttributeDescription } from "../object"; import { styleAttrs } from "./attrs"; diff --git a/src/core/prototypes/marks/symbol.ts b/src/core/prototypes/marks/symbol.ts index 44c7af334c..7873c192cf 100644 --- a/src/core/prototypes/marks/symbol.ts +++ b/src/core/prototypes/marks/symbol.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Point } from "../../common"; import * as Graphics from "../../graphics"; import * as Specification from "../../specification"; diff --git a/src/core/prototypes/marks/text.ts b/src/core/prototypes/marks/text.ts index 2c082f2838..77831b74d2 100644 --- a/src/core/prototypes/marks/text.ts +++ b/src/core/prototypes/marks/text.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color, Point } from "../../common"; import * as Graphics from "../../graphics"; import { ConstraintSolver } from "../../solver"; diff --git a/src/core/prototypes/marks/textbox.ts b/src/core/prototypes/marks/textbox.ts index a1a3503617..ef807913c0 100644 --- a/src/core/prototypes/marks/textbox.ts +++ b/src/core/prototypes/marks/textbox.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ // import * as Specification from "../../specification"; // import { ConstraintSolver, ConstraintStrength, VariableStrength } from "../../solver"; // import { Point, uniqueID, Color } from "../../common"; diff --git a/src/core/prototypes/object.ts b/src/core/prototypes/object.ts index 97e641fbbc..f3fc69bec1 100644 --- a/src/core/prototypes/object.ts +++ b/src/core/prototypes/object.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { deepClone, uniqueID } from "../common"; import { VariableStrength } from "../solver"; import * as Specification from "../specification"; diff --git a/src/core/prototypes/plot_segments/axis.ts b/src/core/prototypes/plot_segments/axis.ts index 146b91c1f3..8aa50a0621 100644 --- a/src/core/prototypes/plot_segments/axis.ts +++ b/src/core/prototypes/plot_segments/axis.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { deepClone, fillDefaults, Scale } from "../../common"; import { CoordinateSystem, diff --git a/src/core/prototypes/plot_segments/index.ts b/src/core/prototypes/plot_segments/index.ts index e718170a35..e54ad7aba8 100644 --- a/src/core/prototypes/plot_segments/index.ts +++ b/src/core/prototypes/plot_segments/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { ChartStateManager } from ".."; import * as Graphics from "../../graphics"; import { ConstraintSolver } from "../../solver"; diff --git a/src/core/prototypes/plot_segments/line.ts b/src/core/prototypes/plot_segments/line.ts index 58e4a5ffad..5067cf3fff 100644 --- a/src/core/prototypes/plot_segments/line.ts +++ b/src/core/prototypes/plot_segments/line.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Graphics from "../../graphics"; import { ConstraintSolver, diff --git a/src/core/prototypes/plot_segments/map/index.ts b/src/core/prototypes/plot_segments/map/index.ts index 987f9c1033..9b1673d1bc 100644 --- a/src/core/prototypes/plot_segments/map/index.ts +++ b/src/core/prototypes/plot_segments/map/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export { StaticMapService } from "./map_service"; export { MapPlotSegment } from "./map"; diff --git a/src/core/prototypes/plot_segments/map/map.ts b/src/core/prototypes/plot_segments/map/map.ts index ef886e9e48..386f8ea095 100644 --- a/src/core/prototypes/plot_segments/map/map.ts +++ b/src/core/prototypes/plot_segments/map/map.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Graphics from "../../../graphics"; import { ConstraintSolver, diff --git a/src/core/prototypes/plot_segments/map/map_service.ts b/src/core/prototypes/plot_segments/map/map_service.ts index 1a59ae774f..e3c0cb32a0 100644 --- a/src/core/prototypes/plot_segments/map/map_service.ts +++ b/src/core/prototypes/plot_segments/map/map_service.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { getConfig } from "../../../config"; export interface Location { diff --git a/src/core/prototypes/plot_segments/region_2d/base.ts b/src/core/prototypes/plot_segments/region_2d/base.ts index 5f1c6462cd..cbba0256e0 100644 --- a/src/core/prototypes/plot_segments/region_2d/base.ts +++ b/src/core/prototypes/plot_segments/region_2d/base.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Expression from "../../../expression"; import { ConstraintPlugins, diff --git a/src/core/prototypes/plot_segments/region_2d/cartesian.ts b/src/core/prototypes/plot_segments/region_2d/cartesian.ts index b81b79bb1c..0076d11a44 100644 --- a/src/core/prototypes/plot_segments/region_2d/cartesian.ts +++ b/src/core/prototypes/plot_segments/region_2d/cartesian.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { ChartStateManager } from "../.."; import * as Graphics from "../../../graphics"; import { ConstraintSolver, VariableStrength } from "../../../solver"; diff --git a/src/core/prototypes/plot_segments/region_2d/curve.ts b/src/core/prototypes/plot_segments/region_2d/curve.ts index bbd63d0876..c782e2dd5c 100644 --- a/src/core/prototypes/plot_segments/region_2d/curve.ts +++ b/src/core/prototypes/plot_segments/region_2d/curve.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Point } from "../../../common"; import * as Graphics from "../../../graphics"; import { diff --git a/src/core/prototypes/plot_segments/region_2d/index.ts b/src/core/prototypes/plot_segments/region_2d/index.ts index 4cb9f958f3..e99f3b28cf 100644 --- a/src/core/prototypes/plot_segments/region_2d/index.ts +++ b/src/core/prototypes/plot_segments/region_2d/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import "./cartesian"; import "./curve"; import "./polar"; diff --git a/src/core/prototypes/plot_segments/region_2d/polar.ts b/src/core/prototypes/plot_segments/region_2d/polar.ts index 340cc56a50..65526b6812 100644 --- a/src/core/prototypes/plot_segments/region_2d/polar.ts +++ b/src/core/prototypes/plot_segments/region_2d/polar.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Graphics from "../../../graphics"; import { ConstraintSolver, diff --git a/src/core/prototypes/scales/categorical.ts b/src/core/prototypes/scales/categorical.ts index cd0618be81..72bc73a433 100644 --- a/src/core/prototypes/scales/categorical.ts +++ b/src/core/prototypes/scales/categorical.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color, Scale } from "../../common"; import { ConstraintSolver, diff --git a/src/core/prototypes/scales/format.ts b/src/core/prototypes/scales/format.ts index 96b4fe815c..69738552e4 100644 --- a/src/core/prototypes/scales/format.ts +++ b/src/core/prototypes/scales/format.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { format } from "d3-format"; import { Scale } from "../../common"; diff --git a/src/core/prototypes/scales/index.ts b/src/core/prototypes/scales/index.ts index f9e062dded..5a6be5d0af 100644 --- a/src/core/prototypes/scales/index.ts +++ b/src/core/prototypes/scales/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { ConstraintSolver, Variable } from "../../solver"; import * as Specification from "../../specification"; import { DataMappingHints, ObjectClass } from "../common"; diff --git a/src/core/prototypes/scales/linear.ts b/src/core/prototypes/scales/linear.ts index b315fd2f54..2b5476b967 100644 --- a/src/core/prototypes/scales/linear.ts +++ b/src/core/prototypes/scales/linear.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color, interpolateColor, diff --git a/src/core/prototypes/state.ts b/src/core/prototypes/state.ts index 02c92867d5..c56d2dd940 100644 --- a/src/core/prototypes/state.ts +++ b/src/core/prototypes/state.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { gather, getById, uniqueID, zip, zipArray, makeRange } from "../common"; import * as Dataset from "../dataset"; import * as Expression from "../expression"; diff --git a/src/core/solver/abstract.ts b/src/core/solver/abstract.ts index 203610737c..3c0d8ae5bb 100644 --- a/src/core/solver/abstract.ts +++ b/src/core/solver/abstract.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { AttributeMap } from "../specification"; export enum ConstraintStrength { diff --git a/src/core/solver/index.ts b/src/core/solver/index.ts index b0c7d9f9b7..459d76c167 100644 --- a/src/core/solver/index.ts +++ b/src/core/solver/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { AttributeOptions, ConstraintPlugin, diff --git a/src/core/solver/plugins/index.ts b/src/core/solver/plugins/index.ts index 6b23bc04a3..f197d0b22f 100644 --- a/src/core/solver/plugins/index.ts +++ b/src/core/solver/plugins/index.ts @@ -1 +1,5 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ export { PackingPlugin } from "./packing"; diff --git a/src/core/solver/plugins/packing.ts b/src/core/solver/plugins/packing.ts index bec18d0cc0..dc8a7dbc74 100644 --- a/src/core/solver/plugins/packing.ts +++ b/src/core/solver/plugins/packing.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { forceSimulation, forceCollide, forceX, forceY } from "d3-force"; import { ConstraintPlugin, ConstraintSolver, Variable } from "../abstract"; diff --git a/src/core/solver/solver.ts b/src/core/solver/solver.ts index 3bef36c0df..7c24afb8c7 100644 --- a/src/core/solver/solver.ts +++ b/src/core/solver/solver.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Dataset from "../dataset"; // import * as Optimizers from "../optimizers"; import * as Expression from "../expression"; diff --git a/src/core/solver/wasm_solver.ts b/src/core/solver/wasm_solver.ts index a80c643a97..93a13b1bfd 100644 --- a/src/core/solver/wasm_solver.ts +++ b/src/core/solver/wasm_solver.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as LSCGSolver from "lscg-solver"; import { KeyNameMap } from "../common"; import { AttributeMap } from "../specification"; diff --git a/src/core/specification/index.ts b/src/core/specification/index.ts index ec9799e429..39d2c40859 100644 --- a/src/core/specification/index.ts +++ b/src/core/specification/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color, Point } from "../common"; import * as Template from "./template"; diff --git a/src/core/specification/template.ts b/src/core/specification/template.ts index 9c303cbed2..ee9eb7d280 100644 --- a/src/core/specification/template.ts +++ b/src/core/specification/template.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Chart } from "./index"; export interface ChartTemplate { diff --git a/src/core/specification/types.ts b/src/core/specification/types.ts index 4a379acd2a..ae9a88dc0c 100644 --- a/src/core/specification/types.ts +++ b/src/core/specification/types.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { Color } from "../common"; import { AttributeMap, Expression } from "./index"; diff --git a/src/core/store/base.ts b/src/core/store/base.ts index e6d7e4efc9..5c01ac1067 100644 --- a/src/core/store/base.ts +++ b/src/core/store/base.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { EventEmitter, Dispatcher, uniqueID } from "../common"; import { Actions } from "../../app/actions"; diff --git a/src/package.d.ts b/src/package.d.ts index 28b5e631ee..7b99663c01 100644 --- a/src/package.d.ts +++ b/src/package.d.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ declare let CHARTICULATOR_PACKAGE: { version: string; buildTimestamp: number; diff --git a/src/tests/expression.ts b/src/tests/expression.ts index ef4bd93691..2fd8fb651c 100644 --- a/src/tests/expression.ts +++ b/src/tests/expression.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { expect } from "chai"; import * as Expression from "../core/expression"; diff --git a/src/worker/communication.ts b/src/worker/communication.ts index aa433fbac6..542b37e1b5 100644 --- a/src/worker/communication.ts +++ b/src/worker/communication.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ /** The page side of the work instance, handles RPC and Tasks */ export class WorkerRPC { private worker: Worker; diff --git a/src/worker/index.ts b/src/worker/index.ts index 83b006796c..16d8cc8d50 100644 --- a/src/worker/index.ts +++ b/src/worker/index.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import { CharticulatorCoreConfig, Dataset, diff --git a/src/worker/worker_main.ts b/src/worker/worker_main.ts index 136d6f37c1..b1ff8b0fbb 100644 --- a/src/worker/worker_main.ts +++ b/src/worker/worker_main.ts @@ -1,3 +1,7 @@ +/* +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the MIT license. +*/ import * as Core from "../core"; import { WorkerHostProcess } from "./communication"; diff --git a/yarn.lock b/yarn.lock index 5c0820a059..bbba0a0b7a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2861,6 +2861,12 @@ levn@~0.3.0: prelude-ls "~1.1.2" type-check "~0.3.2" +license-check-and-add@^2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/license-check-and-add/-/license-check-and-add-2.3.6.tgz#a44e2aa1ceb0eb05dd2c2909a1490198bce65016" + dependencies: + pkg-conf "^1.1.2" + lint-staged@^7.1.0: version "7.1.0" resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-7.1.0.tgz#1514a5b71b8d9492ca0c3d2a44769cbcbc8bcc79" @@ -2937,7 +2943,7 @@ listr@^0.13.0: stream-to-observable "^0.2.0" strip-ansi "^3.0.1" -load-json-file@^1.0.0: +load-json-file@^1.0.0, load-json-file@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" dependencies: @@ -3803,6 +3809,15 @@ pinkie@^2.0.0: version "2.0.4" resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" +pkg-conf@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/pkg-conf/-/pkg-conf-1.1.3.tgz#378e56d6fd13e88bfb6f4a25df7a83faabddba5b" + dependencies: + find-up "^1.0.0" + load-json-file "^1.1.0" + object-assign "^4.0.1" + symbol "^0.2.1" + pkg-dir@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" @@ -4721,6 +4736,10 @@ symbol-tree@^3.2.2: version "3.2.2" resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" +symbol@^0.2.1: + version "0.2.3" + resolved "https://registry.yarnpkg.com/symbol/-/symbol-0.2.3.tgz#3b9873b8a901e47c6efe21526a3ac372ef28bbc7" + tapable@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.0.0.tgz#cbb639d9002eed9c6b5975eb20598d7936f1f9f2"