A library of Angular components for data visualization produced by Mathematica, Inc.
npm install @mathstack/old-vizng generate component component-name --project viz-components to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project viz-components.
--project viz-components or else it will be added to the default project in your angular.json file.
./build.sh to build the project. The build artifacts will be stored in the dist/ directory.
npm run prepare from the viz-components folder
cd dist/viz-components and run npm publish.
npm install @mathstack/old-viz. If it can't be found, it's probably because the preinstall script didn't actually run (it's supposed to but doesn't always, at least not for me, and haven't successfully debugged yet). Manually run the preinstall script, npm run preinstall, then run npm install @mathstack/old-viz again.
ng g viz-components:extend and follow the instructions from there.
export class MyProjectLinesComponent extends LinesComponent {
myLines = true;
}
@Directive()
export class MyProjectLinesHoverMoveDirective extends LinesHoverMoveDirective {
@Input('vicLinesHoverMoveEffects')
override effects: HoverMoveEventEffect<
LinesHoverMoveDirective
>[];
constructor(@Inject(LINES) public override lines: MyProjectLinesComponent) {
super(lines);
}
}
`
Running unit tests
Run ng test viz-components to execute the unit tests via Karma.
Further help
To get more help on the Angular CLI use ng help` or go check out the Angular CLI Overview and Command Reference page.