Skip to content

Commit

Permalink
renames the auxillary item 'clazz' field to 'class'
Browse files Browse the repository at this point in the history
  • Loading branch information
d2fong committed Feb 28, 2017
1 parent 5c9dddc commit 16ca305
Show file tree
Hide file tree
Showing 11 changed files with 89 additions and 89 deletions.
4 changes: 2 additions & 2 deletions src/sbgnmlConverter.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ var sbgnmlConverter = {

if (glyph.className === 'unit of information') {
info.id = glyph.getAttribute('id') || undefined;
info.clazz = glyph.className || undefined;
info.class = glyph.className || undefined;
var label = glyph.querySelector('label');
info.label = {
'text': (label && label.getAttribute('text')) || undefined
Expand All @@ -167,7 +167,7 @@ var sbgnmlConverter = {
unitsOfInformation.push(info);
} else if (glyph.className === 'state variable') {
info.id = glyph.getAttribute('id') || undefined;
info.clazz = glyph.className || undefined;
info.class = glyph.className || undefined;
var state = glyph.querySelector('state');
var value = (state && state.getAttribute('value')) || undefined;
var variable = (state && state.getAttribute('variable')) || undefined;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"unitsOfInformation": [
{
"id": "glyph36a",
"clazz": "unit of information",
"class": "unit of information",
"label": {
"text": "close"
},
Expand Down Expand Up @@ -221,7 +221,7 @@
"stateVariables": [
{
"id": "glyph24a",
"clazz": "state variable",
"class": "state variable",
"state": {
"variable": "T287"
},
Expand All @@ -234,7 +234,7 @@
},
{
"id": "glyph24b",
"clazz": "state variable",
"class": "state variable",
"state": {
"value": "P",
"variable": "S334"
Expand Down Expand Up @@ -421,7 +421,7 @@
"stateVariables": [
{
"id": "glyph23a",
"clazz": "state variable",
"class": "state variable",
"state": {
"variable": "T287"
},
Expand All @@ -434,7 +434,7 @@
},
{
"id": "glyph23b",
"clazz": "state variable",
"class": "state variable",
"state": {
"variable": "S334"
},
Expand Down Expand Up @@ -572,7 +572,7 @@
"stateVariables": [
{
"id": "glyph25a",
"clazz": "state variable",
"class": "state variable",
"state": {
"variable": "T287"
},
Expand All @@ -585,7 +585,7 @@
},
{
"id": "glyph25b",
"clazz": "state variable",
"class": "state variable",
"state": {
"variable": "S334"
},
Expand Down Expand Up @@ -675,7 +675,7 @@
"stateVariables": [
{
"id": "glyph22a",
"clazz": "state variable",
"class": "state variable",
"state": {
"variable": "T287"
},
Expand All @@ -688,7 +688,7 @@
},
{
"id": "glyph22b",
"clazz": "state variable",
"class": "state variable",
"state": {
"variable": "S334"
},
Expand Down Expand Up @@ -950,7 +950,7 @@
"stateVariables": [
{
"id": "glyph33a",
"clazz": "state variable",
"class": "state variable",
"state": {
"variable": "T196"
},
Expand Down Expand Up @@ -1012,7 +1012,7 @@
"stateVariables": [
{
"id": "glyph32a",
"clazz": "state variable",
"class": "state variable",
"state": {},
"bbox": {
"x": -25,
Expand Down Expand Up @@ -1067,7 +1067,7 @@
"stateVariables": [
{
"id": "glyph28a",
"clazz": "state variable",
"class": "state variable",
"state": {
"value": "P"
},
Expand Down Expand Up @@ -1138,7 +1138,7 @@
"stateVariables": [
{
"id": "glyph20a",
"clazz": "state variable",
"class": "state variable",
"state": {
"variable": "T287"
},
Expand All @@ -1151,7 +1151,7 @@
},
{
"id": "glyph20b",
"clazz": "state variable",
"class": "state variable",
"state": {
"value": "P",
"variable": "S334"
Expand Down Expand Up @@ -1318,7 +1318,7 @@
"stateVariables": [
{
"id": "glyph21a",
"clazz": "state variable",
"class": "state variable",
"state": {
"value": "P",
"variable": "T287"
Expand All @@ -1332,7 +1332,7 @@
},
{
"id": "glyph21b",
"clazz": "state variable",
"class": "state variable",
"state": {
"value": "P",
"variable": "S334"
Expand Down Expand Up @@ -1433,7 +1433,7 @@
"stateVariables": [
{
"id": "glyph34a",
"clazz": "state variable",
"class": "state variable",
"state": {
"variable": "T196"
},
Expand Down Expand Up @@ -1571,7 +1571,7 @@
"stateVariables": [
{
"id": "glyph29a",
"clazz": "state variable",
"class": "state variable",
"state": {
"value": "P",
"variable": "T196"
Expand Down Expand Up @@ -1661,7 +1661,7 @@
"unitsOfInformation": [
{
"id": "glyph26a",
"clazz": "unit of information",
"class": "unit of information",
"label": {
"text": "open"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"unitsOfInformation": [
{
"id": "glyph3a",
"clazz": "unit of information",
"class": "unit of information",
"label": {
"text": "ct:mRNA"
},
Expand Down Expand Up @@ -120,7 +120,7 @@
"unitsOfInformation": [
{
"id": "glyph15a",
"clazz": "unit of information",
"class": "unit of information",
"label": {
"text": "mt:prot"
},
Expand Down Expand Up @@ -153,7 +153,7 @@
"unitsOfInformation": [
{
"id": "glyph14a",
"clazz": "unit of information",
"class": "unit of information",
"label": {
"text": "ct:gene"
},
Expand Down Expand Up @@ -222,7 +222,7 @@
"unitsOfInformation": [
{
"id": "glyph10a",
"clazz": "unit of information",
"class": "unit of information",
"label": {
"text": "mt:prot"
},
Expand All @@ -237,7 +237,7 @@
"stateVariables": [
{
"id": "glyph10b",
"clazz": "state variable",
"class": "state variable",
"state": {
"value": "P",
"variable": "Y701"
Expand All @@ -251,7 +251,7 @@
},
{
"id": "glyph10c",
"clazz": "state variable",
"class": "state variable",
"state": {
"value": "P",
"variable": "Y727"
Expand Down Expand Up @@ -284,7 +284,7 @@
"unitsOfInformation": [
{
"id": "glyph12a",
"clazz": "unit of information",
"class": "unit of information",
"label": {
"text": "ct:grr"
},
Expand Down Expand Up @@ -353,7 +353,7 @@
"unitsOfInformation": [
{
"id": "glyph1a",
"clazz": "unit of information",
"class": "unit of information",
"label": {
"text": "mt:prot"
},
Expand All @@ -368,7 +368,7 @@
"stateVariables": [
{
"id": "glyph1b",
"clazz": "state variable",
"class": "state variable",
"state": {
"value": "P",
"variable": "Y701"
Expand All @@ -382,7 +382,7 @@
},
{
"id": "glyph1c",
"clazz": "state variable",
"class": "state variable",
"state": {
"value": "P",
"variable": "Y727"
Expand Down Expand Up @@ -415,7 +415,7 @@
"unitsOfInformation": [
{
"id": "glyph2a",
"clazz": "unit of information",
"class": "unit of information",
"label": {
"text": "ct:grr"
},
Expand Down
Loading

0 comments on commit 16ca305

Please sign in to comment.