Skip to content

Commit

Permalink
feat: push keyboard-instructions, animationConfig, label-collision an…
Browse files Browse the repository at this point in the history
…d fixes across lib

Co-authored-by: Jaime Tanner <74265591+jaime-tanner@users.noreply.github.com>
Co-authored-by: Frank Elavsky <74265507+frank-elavsky@users.noreply.github.com>
  • Loading branch information
3 people committed Jul 22, 2021
1 parent 205ac78 commit ea1b1a4
Show file tree
Hide file tree
Showing 68 changed files with 5,681 additions and 2,512 deletions.
2 changes: 2 additions & 0 deletions packages/alluvial-diagram/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@
},
"dependencies": {
"@visa/charts-types": "^0.3.2",
"@visa/keyboard-instructions": "^1.0.0",
"@visa/visa-charts-data-table": "^2.0.8",
"@visa/visa-charts-utils": "^4.4.1",
"d3-array": "^2.0.3",
"d3-scale": "^2.2.2",
"d3-selection": "^1.4.0",
"d3-shape": "1.3.7",
"d3-transition": "1.1.3",
"uuid": "7.0.0"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export class AlluvialDiagramDefaultValues {
};

static readonly accessibility = propDefaultValues.accessibility;
static readonly animationConfig = propDefaultValues.animationConfig;
static readonly colorPalette = propDefaultValues.colorPaletteCategorical;
static readonly dataLabel = propDefaultValues.dataLabel;
static readonly annotations = propDefaultValues.annotations;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ export interface IAlluvialDiagramProps {
* @groupName Accessibility */
accessibility: IAccessibilityType;

/**
* @shortDescription Manages settings for chart animation, property 'disabled' defaults to false or undefined
* @controlName TextArea
* @groupName Accessibility */
animationConfig: IAnimationConfig;

/**
* @shortDescription Padding between plot area and axes lines
* @controlName TextArea
Expand Down Expand Up @@ -216,6 +222,8 @@ interface IDataLabelType {
placement: string;
labelAccessor: string;
format: any;
collisionHideOnly?: boolean;
collisionPlacement?: string;
}
interface IBoxModelType {
top: number;
Expand All @@ -238,20 +246,31 @@ interface ITooltipLabel {
format: any;
}

interface IAccessibilityType {
longDescription: string;
executiveSummary: string;
purpose: string;
contextExplanation: string;
title: string;
elementDescriptionAccessor: string;
statisticalNotes: string;
structureNotes: string;
includeDataKeyNames: boolean;
hideDataTableButton: boolean;
disableValidation: boolean;
elementsAreInterface: any;
onChangeFunc: any;
export interface IAccessibilityType {
longDescription?: string;
executiveSummary?: string;
purpose?: string;
contextExplanation?: string;
title?: string;
elementDescriptionAccessor?: string;
statisticalNotes?: string;
structureNotes?: string;
includeDataKeyNames?: boolean;
hideDataTableButton?: boolean;
disableValidation?: boolean;
elementsAreInterface?: any;
onChangeFunc?: any;
hideTextures?: boolean;
hideStrokes?: boolean;
showSmallLabels?: boolean;
showExperimentalTextures?: boolean;
keyboardNavConfig?: IKeyConfig;
}
export interface IAnimationConfig {
disabled?: boolean;
}
export interface IKeyConfig {
disabled?: boolean;
}
interface INodeConfigType {
fill: boolean;
Expand Down
Loading

0 comments on commit ea1b1a4

Please sign in to comment.