Skip to content

Fixed rendering of mutations nb and nn #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 44 additions & 96 deletions src/locales/nb/interactives/sam/DNA-to-proteins/4-mutations.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
{
"title": "Mutasjoner",
"publicationStatus": "public",
"labEnvironment": "production",
"subtitle": "Utforsk hvordan endringer i DNA-sekvensen kan endre aminosyrene som inngår i et protein.",
"category": "",
"subCategory": "",
"screenshot": "",
"aspectRatio": 1.2,
"fontScale": 0.75,
"helpOnLoad": false,
"about": [
"Mutasjoner er feil i DNA-sekvensen. Bruk **Endre DNA-** knappen for å endre hele sekvensen, eller klikk på et enkelt nukleotid for å gjøre en insettings-, slettings- eller substitusjonsmutasjon. Hva gjør endringen i DNA-sekvensen med det resulterende proteinet?",
"",
"Du kan raskt hoppe mellom DNA-sekvensen og det ferdige proteinet ved å bruke knappene **Vis DNA** og **Vis protein**.",
"",
"Er noen mutasjonstyper mer skadelig enn andre?"
],
"fontScale": 0.75,
"models": [
{
"type": "md2d",
Expand All @@ -30,146 +25,85 @@
"DNAState": "dna"
}
}
],
"propertiesToRetain": [

],
"parameters": [

],
"outputs": [

],
"filteredOutputs": [

],
"helpTips": [

],
"hideExportDataControl": false,
"dataSets": [

],
"components": [
{
"id": "transcribe",
"type": "button",
"id": "transcribe",
"text": "Transkriber",
"action": [
"if (DNAStateAfter('transcription-end'))",
" set('DNAState', 'dna');",
"animateToDNAState('transcription-end');"
],
"text": "Transkriber",
"width": "",
"height": "",
"disabled": false,
"tooltip": ""
]
},
{
"id": "translate",
"type": "button",
"id": "translate",
"text": "Translater",
"action": [
"if (DNAStateBefore('translation:0') || get('DNAState') === 'translation-end')",
" set('DNAState', 'translation:0');",
"animateToDNAState('translation-end');"
],
"text": "Translater",
"width": "",
"height": "",
"disabled": false,
"tooltip": ""
]
},
{
"id": "reset",
"type": "button",
"action": "reloadModel();",
"id": "reset",
"text": "Start på nytt",
"width": "",
"height": "",
"disabled": false,
"tooltip": ""
"action": "reloadModel();"
},
{
"id": "stop",
"type": "button",
"id": "stop",
"text": "Stopp",
"action": [
"if (DNAStateBefore('translation-end')) stopDNAAnimation();",
"else stop();"
],
"text": "Stop",
"width": "",
"height": "",
"disabled": false,
"tooltip": ""
]
},
{
"id": "next-state",
"type": "button",
"action": "animateToNextDNAState();",
"id": "next-state",
"text": "Fortsett et steg",
"width": "",
"height": "",
"disabled": false,
"tooltip": ""
"action": "animateToNextDNAState();"
},
{
"id": "dna-dialog",
"type": "button",
"action": "openDNADialog();",
"id": "dna-dialog",
"text": "Endre DNA",
"width": "",
"height": "",
"disabled": false,
"tooltip": ""
"action": "openDNADialog();"
},
{
"id": "show-protein",
"type": "button",
"action": "set('DNAState', 'translation-end');",
"id": "show-protein",
"text": "Vis protein",
"width": "",
"height": "",
"disabled": false,
"tooltip": ""
"action": "set('DNAState', 'translation-end');"
},
{
"id": "show-dna",
"type": "button",
"action": "set('DNAState', 'dna');",
"id": "show-dna",
"text": "Vis DNA",
"width": "",
"height": "",
"disabled": false,
"tooltip": ""
"action": "set('DNAState', 'dna');"
},
{
"id": "start",
"type": "button",
"id": "start",
"text": "Start/fortsett kjøringen",
"action": [
"if (DNAStateBefore('translation-end')) animateToDNAState('translation-end');",
"else start();"
],
"text": "Start/fortsett kjøringen",
"width": "",
"height": "",
"disabled": false,
"tooltip": ""
]
},
{
"id": "label",
"type": "text",
"text": "Klikk på et nukleotid for å gjøre en mutasjon, eller ",
"width": "auto",
"height": "auto",
"tooltip": ""
"id": "label",
"text": "Klikk på et nukleotid for å gjøre en mutasjon, eller "
},
{
"id": "buffer",
"type": "text",
"text": "|",
"width": "auto",
"height": "auto",
"tooltip": ""
"id": "buffer",
"text": "|"
}
],
"layout": {
Expand All @@ -196,10 +130,24 @@
"template": [
{
"id": "model-bottom",
"left": "model.left",
"left": "interactive.left",
"height": "0.3 * interactive.height",
"top": "model.bottom",
"width": "model.width",
"align": "center"
"left": "interactive.left",
"right": "interactive.right",
"align": "center",
"fontScale": 0.8
},
{
"id": "right-padding-container",
"left": "model.right",
"width": 10
},
{
"id": "model-centering-container",
"top": "interactive.top",
"right": "model.left",
"width": "0.5 * (interactive.width - model.width) - 5"
}
],
"lang": "nb-NO",
Expand Down
Loading