mirror of
https://github.com/Telecominfraproject/oopt-gnpy-web-gui.git
synced 2025-11-01 18:47:45 +00:00
Font cleanup and fiber highlight issue fixed
This commit is contained in:
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu4WxKOzY.woff2
vendored
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu4WxKOzY.woff2
vendored
Binary file not shown.
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu5mxKOzY.woff2
vendored
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu5mxKOzY.woff2
vendored
Binary file not shown.
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu72xKOzY.woff2
vendored
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu72xKOzY.woff2
vendored
Binary file not shown.
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu7GxKOzY.woff2
vendored
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu7GxKOzY.woff2
vendored
Binary file not shown.
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu7WxKOzY.woff2
vendored
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu7WxKOzY.woff2
vendored
Binary file not shown.
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu7mxKOzY.woff2
vendored
BIN
css/thirdparty/fonts/KFOmCnqEu92Fr1Mu7mxKOzY.woff2
vendored
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
31
css/thirdparty/oswald-css.css
vendored
31
css/thirdparty/oswald-css.css
vendored
@@ -1,35 +1,4 @@
|
|||||||
/* cyrillic-ext */
|
/* cyrillic-ext */
|
||||||
@font-face {
|
|
||||||
font-family: 'Oswald';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url('fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUtiZTaR.woff2') format('woff2');
|
|
||||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
||||||
}
|
|
||||||
/* cyrillic */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Oswald';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url('fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUJiZTaR.woff2') format('woff2');
|
|
||||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
||||||
}
|
|
||||||
/* vietnamese */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Oswald';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url('fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUliZTaR.woff2') format('woff2');
|
|
||||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
|
||||||
}
|
|
||||||
/* latin-ext */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Oswald';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url('fonts/TK3_WkUHHAIjg75cFRf3bXL8LICs1_FvsUhiZTaR.woff2') format('woff2');
|
|
||||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
||||||
}
|
|
||||||
/* latin */
|
/* latin */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Oswald';
|
font-family: 'Oswald';
|
||||||
|
48
css/thirdparty/roboto-css.css
vendored
48
css/thirdparty/roboto-css.css
vendored
@@ -1,51 +1,4 @@
|
|||||||
/* cyrillic-ext */
|
/* cyrillic-ext */
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url('fonts/KFOmCnqEu92Fr1Mu72xKOzY.woff2') format('woff2');
|
|
||||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
|
||||||
}
|
|
||||||
/* cyrillic */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url('fonts/KFOmCnqEu92Fr1Mu5mxKOzY.woff2') format('woff2');
|
|
||||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
|
||||||
}
|
|
||||||
/* greek-ext */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url('fonts/KFOmCnqEu92Fr1Mu7mxKOzY.woff2') format('woff2');
|
|
||||||
unicode-range: U+1F00-1FFF;
|
|
||||||
}
|
|
||||||
/* greek */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url('fonts/KFOmCnqEu92Fr1Mu4WxKOzY.woff2') format('woff2');
|
|
||||||
unicode-range: U+0370-03FF;
|
|
||||||
}
|
|
||||||
/* vietnamese */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url('fonts/KFOmCnqEu92Fr1Mu7WxKOzY.woff2') format('woff2');
|
|
||||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
|
||||||
}
|
|
||||||
/* latin-ext */
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
src: url('fonts/KFOmCnqEu92Fr1Mu7GxKOzY.woff2') format('woff2');
|
|
||||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
||||||
}
|
|
||||||
/* latin */
|
/* latin */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Roboto';
|
font-family: 'Roboto';
|
||||||
@@ -54,4 +7,3 @@
|
|||||||
src: url('fonts/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
|
src: url('fonts/KFOmCnqEu92Fr1Mu4mxK.woff2') format('woff2');
|
||||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1046,7 +1046,7 @@ function draw(isImport) {
|
|||||||
copyDetails = selectedEdges[selectedEdges.length - 1];
|
copyDetails = selectedEdges[selectedEdges.length - 1];
|
||||||
|
|
||||||
if (copyDetails.component_type != edgeDetails.component_type) {
|
if (copyDetails.component_type != edgeDetails.component_type) {
|
||||||
showMessage(alertType.Error, 'Please select same type of fiber');
|
showMessage(alertType.Error, 'Please select same type of element (Fiber)');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -1085,7 +1085,7 @@ function draw(isImport) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (hEdges.length > 0) {
|
if (hEdges.length > 0) {
|
||||||
showMessage(alertType.Error, 'Please select same type of fiber');
|
showMessage(alertType.Error, 'Please select same type of element (Fiber)');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1392,45 +1392,50 @@ function draw(isImport) {
|
|||||||
if (isCopyPara) {
|
if (isCopyPara) {
|
||||||
if (sNodes.length > 0)
|
if (sNodes.length > 0)
|
||||||
copyDetails = network.body.data.nodes.get(sNodes[sNodes.length - 1].id);
|
copyDetails = network.body.data.nodes.get(sNodes[sNodes.length - 1].id);
|
||||||
else
|
else {
|
||||||
copyDetails = network.body.data.nodes.get(nodeDatas.id);
|
if(nodeDatas)
|
||||||
|
copyDetails = network.body.data.nodes.get(nodeDatas.id);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
copyDetails = network.body.data.nodes.get(sNodes[0].id);
|
copyDetails = network.body.data.nodes.get(sNodes[0].id);
|
||||||
|
|
||||||
type_name = copyDetails.node_type;
|
if (copyDetails) {
|
||||||
if (copyDetails.node_type == amplifierJSON.node_type) {
|
|
||||||
if (copyDetails.amp_category == ramanampJSON.amp_category)
|
type_name = copyDetails.node_type;
|
||||||
type_name = 'Raman Amplifier';
|
if (copyDetails.node_type == amplifierJSON.node_type) {
|
||||||
else
|
if (copyDetails.amp_category == ramanampJSON.amp_category)
|
||||||
type_name = copyDetails.amp_category;
|
type_name = 'Raman Amplifier';
|
||||||
}
|
else
|
||||||
else if (copyDetails.node_type == roadmJSON.node_type)
|
type_name = copyDetails.amp_category;
|
||||||
type_name = copyDetails.node_type.toUpperCase();
|
}
|
||||||
else if (copyDetails.node_type == fusedJSON.node_type)
|
else if (copyDetails.node_type == roadmJSON.node_type)
|
||||||
type_name = "Attenuator";
|
type_name = copyDetails.node_type.toUpperCase();
|
||||||
|
else if (copyDetails.node_type == fusedJSON.node_type)
|
||||||
|
type_name = "Attenuator";
|
||||||
|
|
||||||
|
|
||||||
if (type != copyDetails.node_type) {
|
if (type != copyDetails.node_type) {
|
||||||
|
|
||||||
showMessage(alertType.Error, 'Please select same type of node (' + type_name + ')');
|
showMessage(alertType.Error, 'Please select same type of node (' + type_name + ')');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (type == copyDetails.node_type) {
|
if (type == copyDetails.node_type) {
|
||||||
|
|
||||||
if (type == amplifierJSON.node_type && copyDetails.node_type == amplifierJSON.node_type) {
|
if (type == amplifierJSON.node_type && copyDetails.node_type == amplifierJSON.node_type) {
|
||||||
if (amp_category != copyDetails.amp_category) {
|
if (amp_category != copyDetails.amp_category) {
|
||||||
showMessage(alertType.Error, 'Please select same type of node (' + type_name + ')');
|
showMessage(alertType.Error, 'Please select same type of node (' + type_name + ')');
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$('#toast').toast('hide');
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#toast').toast('hide');
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -1441,7 +1446,7 @@ function draw(isImport) {
|
|||||||
copyDetails = network.body.data.edges.get(edgeDatas.id);
|
copyDetails = network.body.data.edges.get(edgeDatas.id);
|
||||||
if (type != copyDetails.component_type) {
|
if (type != copyDetails.component_type) {
|
||||||
|
|
||||||
showMessage(alertType.Error, 'Please select same type of fiber');
|
showMessage(alertType.Error, 'Please select same type of element (Fiber)');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -1454,7 +1459,7 @@ function draw(isImport) {
|
|||||||
if (nodeDatas != undefined) {
|
if (nodeDatas != undefined) {
|
||||||
|
|
||||||
}
|
}
|
||||||
if (edgeDatas != undefined) {
|
if (!nodeDatas && edgeDatas != undefined) {
|
||||||
network.body.data.edges.update({
|
network.body.data.edges.update({
|
||||||
id: edgeDatas.id, shadow: singleFiberJSON.options.shadow, is_highlight: true
|
id: edgeDatas.id, shadow: singleFiberJSON.options.shadow, is_highlight: true
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user