Skip to content
This repository was archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
Chore: Site to include breadcrumb via site-helpers v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijit945 committed Sep 8, 2019
1 parent 657aa1f commit e0cd189
Show file tree
Hide file tree
Showing 7 changed files with 354 additions and 512 deletions.
2 changes: 1 addition & 1 deletion build/karma/karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = function(config) {
stats: "errors-only"
},
parallelOptions: {
executors: 4,
executors: 3,
shardStrategy: "round-robin"
},
webpack: {
Expand Down
4 changes: 2 additions & 2 deletions dev/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ renderSiteApp(
pathname: "/line/custom-legend-placement",
content: (id) => {
createElementLegendBindTo(id);
renderLineLegendTo(id);
return renderLineLegendTo(id);
},
title: "Custom Legend Placement"
},
Expand Down Expand Up @@ -366,7 +366,7 @@ renderSiteApp(
pathname: "/pie/custom-legend-placement",
content: (id) => {
createElementLegendBindTo(id);
renderPieLegendTo(id);
return renderPieLegendTo(id);
},
title: "Custom Legend Placement"
}
Expand Down
6 changes: 5 additions & 1 deletion dev/app.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

.bindto-container {
display: flex;
align-items: center;
width: 100%;

.legend-bindto-container {
width: 20%;
Expand Down Expand Up @@ -86,3 +86,7 @@
left: 0;
z-index: 1200;
}

.shape-container {
width: 100%;
}
1 change: 1 addition & 0 deletions dev/examples/controls/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { vector } from "../helpers";

export const renderColorsExample = (id) => {
const sect = document.createElement("section");
sect.setAttribute("class", "shape-container");
const svgElement = vector.render(sect, id, "0 0 1080 150");
document.querySelector(`#${id}`).appendChild(sect);
d3.select(svgElement)
Expand Down
4 changes: 4 additions & 0 deletions dev/examples/controls/shapes.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const constructSVGObject = (shape, { posX = 1, posY = 1, scale = 2 }) => {

export const renderShapesSimple = (id) => {
const sect = document.createElement("section");
sect.setAttribute("class", "shape-container");
const svgElement = vector.render(sect, id, viewBoxSize);
document.querySelector(`#${id}`).appendChild(sect);
getShapesSplit(Carbon.helpers.SHAPES.DARK).forEach((s, pos) => {
Expand All @@ -53,6 +54,7 @@ export const renderShapesSimple = (id) => {
};
export const renderCriticalityShapes = (id) => {
const sect = document.createElement("section");
sect.setAttribute("class", "shape-container");
const svgElement = vector.render(sect, id, viewBoxSize);
document.querySelector(`#${id}`).appendChild(sect);
getShapesSplit(Carbon.helpers.SHAPES.DARK).forEach((s, pos) => {
Expand Down Expand Up @@ -97,6 +99,7 @@ export const renderCriticalityShapes = (id) => {
};
export const renderShapesSimpleLight = (id) => {
const sect = document.createElement("section");
sect.setAttribute("class", "shape-container");
const svgElement = vector.render(sect, id, viewBoxSize);
document.querySelector(`#${id}`).appendChild(sect);
getShapesSplit(Carbon.helpers.SHAPES.LIGHT).forEach((s, pos) => {
Expand All @@ -121,6 +124,7 @@ export const renderShapesSimpleLight = (id) => {
};
export const renderCriticalityShapesLight = (id) => {
const sect = document.createElement("section");
sect.setAttribute("class", "shape-container");
const svgElement = vector.render(sect, id, viewBoxSize);
document.querySelector(`#${id}`).appendChild(sect);
getShapesSplit(Carbon.helpers.SHAPES.LIGHT).forEach((s, pos) => {
Expand Down
Loading

0 comments on commit e0cd189

Please sign in to comment.