Skip to content

Commit

Permalink
Release v0.0.73
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 13, 2025
1 parent 5ac5336 commit 159f087
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 26 deletions.
4 changes: 2 additions & 2 deletions dist/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.css.map

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43408,8 +43408,8 @@ var SchemaDesignerEntity = class {
columnDiv.classList.add("sd-table-column");
const columnIcon = document.createElement("div");
columnIcon.classList.add("sd-table-column-icon");
if (this._config.icons.dataTypeIcons[column.dataType]) {
columnIcon.style.backgroundImage = `url(${this._config.icons.dataTypeIcons[column.dataType]})`;
if (this._config.icons.dataTypeIcons[column.datatype]) {
columnIcon.style.backgroundImage = `url(${this._config.icons.dataTypeIcons[column.datatype]})`;
} else {
columnIcon.style.backgroundImage = `url(${this._config.icons.customDataTypeIcon})`;
}
Expand Down Expand Up @@ -43494,6 +43494,7 @@ var SchemaDesigner = class {
this._container.style.setProperty("--sd-graph-grid-color", this._config.colors.graphGrid);
this._container.style.setProperty("--sd-border-color", this._config.colors.cellBorder);
this._container.style.setProperty("--sd-cell-html-foreground", this._config.colors.cellForeground);
this._container.style.setProperty("--sd-cell-html-hover-column-background", this._config.colors.cellColumnHover);
this._graph.getStylesheet().getDefaultVertexStyle()["fillColor"] = this._config.colors.cellBackground;
this._graph.getStylesheet().getDefaultEdgeStyle()["strokeColor"] = this._config.colors.edge;
this._graph.getStylesheet().getDefaultVertexStyle()["cellHighlightColor"] = this._config.colors.cellHighlight;
Expand Down Expand Up @@ -43840,17 +43841,17 @@ var SchemaDesigner = class {
schema: "dbo",
columns: [{
name: "Column1",
dataType: "int",
datatype: "int",
isPrimaryKey: true,
isIdentity: true
}, {
name: "Column2",
dataType: "int",
datatype: "int",
isPrimaryKey: false,
isIdentity: false
}, {
name: "Column2",
dataType: "int",
datatype: "int",
isPrimaryKey: false,
isIdentity: false
}]
Expand Down
4 changes: 2 additions & 2 deletions dist/index.js.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions dist/src/ts/schemaDesigner/schemaDesigner.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class SchemaDesigner {
this._container.style.setProperty("--sd-graph-grid-color", this._config.colors.graphGrid);
this._container.style.setProperty("--sd-border-color", this._config.colors.cellBorder);
this._container.style.setProperty("--sd-cell-html-foreground", this._config.colors.cellForeground);
this._container.style.setProperty("--sd-cell-html-hover-column-background", this._config.colors.cellColumnHover);
this._graph.getStylesheet().getDefaultVertexStyle()["fillColor"] = this._config.colors.cellBackground;
this._graph.getStylesheet().getDefaultEdgeStyle()["strokeColor"] = this._config.colors.edge;
this._graph.getStylesheet().getDefaultVertexStyle()['cellHighlightColor'] = this._config.colors.cellHighlight;
Expand Down Expand Up @@ -419,17 +420,17 @@ class SchemaDesigner {
schema: "dbo",
columns: [{
name: "Column1",
dataType: "int",
datatype: "int",
isPrimaryKey: true,
isIdentity: true
}, {
name: "Column2",
dataType: "int",
datatype: "int",
isPrimaryKey: false,
isIdentity: false
}, {
name: "Column2",
dataType: "int",
datatype: "int",
isPrimaryKey: false,
isIdentity: false
}]
Expand Down
4 changes: 2 additions & 2 deletions dist/src/ts/schemaDesigner/schemaDesignerEntity.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ class SchemaDesignerEntity {
columnDiv.classList.add("sd-table-column");
const columnIcon = document.createElement("div");
columnIcon.classList.add("sd-table-column-icon");
if (this._config.icons.dataTypeIcons[column.dataType]) {
columnIcon.style.backgroundImage = `url(${this._config.icons.dataTypeIcons[column.dataType]})`;
if (this._config.icons.dataTypeIcons[column.datatype]) {
columnIcon.style.backgroundImage = `url(${this._config.icons.dataTypeIcons[column.datatype]})`;
}
else {
columnIcon.style.backgroundImage = `url(${this._config.icons.customDataTypeIcon})`;
Expand Down
3 changes: 2 additions & 1 deletion dist/src/ts/schemaDesigner/schemaDesignerInterfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export interface IColumn {
/**
* Data type of the column
*/
dataType: string;
datatype: string;
/**
* Is the column primary key
*/
Expand Down Expand Up @@ -93,6 +93,7 @@ export interface SchemaDesignerConfig {
cellForeground: string;
cellBackground: string;
cellBorder: string;
cellColumnHover: string;
toolbarBackground: string;
toolbarForeground: string;
toolbarHoverBackground: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "azdataGraph",
"description": "azdataGraph is a derivative of mxGraph, which is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.",
"version": "0.0.72",
"version": "0.0.73",
"homepage": "https://github.com/microsoft/azdataGraph",
"author": "Microsoft",
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions src/ts/schemaDesigner/schemaDesigner.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.35), 0px 1px 3px rgba(0, 0, 0, 0.5),
inset 0px 0.5px 0px rgba(255, 255, 255, 0.08),
inset 0px 0px 0.5px rgba(255, 255, 255, 0.3);
background-color: var(--color-graph-outline-background);
background-color: var(--sd-graph-background-color);
width: 200px;
height: 100px;
}
Expand Down Expand Up @@ -148,7 +148,7 @@
}

.sd-table-column:hover{
background-color: var(--color-graph-node-hover);
background-color: var(--sd-cell-html-hover-column-background);
}

.sd-table-column-icon {
Expand Down
7 changes: 4 additions & 3 deletions src/ts/schemaDesigner/schemaDesigner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export class SchemaDesigner {
this._container.style.setProperty("--sd-border-color", this._config.colors.cellBorder);

this._container.style.setProperty("--sd-cell-html-foreground", this._config.colors.cellForeground);
this._container.style.setProperty("--sd-cell-html-hover-column-background", this._config.colors.cellColumnHover);

this._graph.getStylesheet().getDefaultVertexStyle()["fillColor"] = this._config.colors.cellBackground;
this._graph.getStylesheet().getDefaultEdgeStyle()["strokeColor"] = this._config.colors.edge;
Expand Down Expand Up @@ -494,17 +495,17 @@ export class SchemaDesigner {
schema: "dbo",
columns: [{
name: "Column1",
dataType: "int",
datatype: "int",
isPrimaryKey: true,
isIdentity: true
}, {
name: "Column2",
dataType: "int",
datatype: "int",
isPrimaryKey: false,
isIdentity: false
}, {
name: "Column2",
dataType: "int",
datatype: "int",
isPrimaryKey: false,
isIdentity: false
}]
Expand Down
4 changes: 2 additions & 2 deletions src/ts/schemaDesigner/schemaDesignerEntity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export class SchemaDesignerEntity implements IEntity {
columnDiv.classList.add("sd-table-column");
const columnIcon = document.createElement("div");
columnIcon.classList.add("sd-table-column-icon");
if(this._config.icons.dataTypeIcons[column.dataType]){
columnIcon.style.backgroundImage = `url(${this._config.icons.dataTypeIcons[column.dataType]})`;
if(this._config.icons.dataTypeIcons[column.datatype]){
columnIcon.style.backgroundImage = `url(${this._config.icons.dataTypeIcons[column.datatype]})`;
} else {
columnIcon.style.backgroundImage = `url(${this._config.icons.customDataTypeIcon})`;
}
Expand Down
3 changes: 2 additions & 1 deletion src/ts/schemaDesigner/schemaDesignerInterfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface IColumn {
/**
* Data type of the column
*/
dataType: string;
datatype: string;
/**
* Is the column primary key
*/
Expand Down Expand Up @@ -99,6 +99,7 @@ export interface SchemaDesignerConfig {
cellForeground: string;
cellBackground: string;
cellBorder: string;
cellColumnHover: string;

toolbarBackground: string;
toolbarForeground: string;
Expand Down

0 comments on commit 159f087

Please sign in to comment.