mirror of
https://github.com/dwolfe884/obsidian-x86-flow-graph.git
synced 2026-07-22 07:30:26 +00:00
cleaning up and commenting
This commit is contained in:
parent
f8a37172cf
commit
8e229f8de1
7 changed files with 2110 additions and 2111 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
## What is this?
|
## What is this?
|
||||||
|
|
||||||
This is a plugin for [Obsidian](https://obsidian.md), that converts x86 assembly into a flow diagram using Obsidian Canvases
|
This is a plugin for [Obsidian](https://obsidian.md) that converts x86 assembly into a flow diagram using Obsidian Canvases
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
"name": "X86 Flow Graphing",
|
"name": "X86 Flow Graphing",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"minAppVersion": "1.1.0",
|
"minAppVersion": "1.1.0",
|
||||||
"description": "An Obsidian plugin for converting x86 code blocks into ",
|
"description": "An Obsidian plugin for converting x86 code blocks into flow graphs",
|
||||||
"author": "icebear",
|
"author": "icebear",
|
||||||
"authorUrl": "https://github.com/dwolfe884",
|
"authorUrl": "https://github.com/dwolfe884",
|
||||||
"fundingUrl": {
|
"fundingUrl": {
|
||||||
|
|
|
||||||
4204
node_modules/.package-lock.json
generated
vendored
4204
node_modules/.package-lock.json
generated
vendored
File diff suppressed because it is too large
Load diff
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "obsidian-file-color-plugin",
|
"name": "obsidian-x86-flow-graph-plugin",
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "obsidian-file-color-plugin",
|
"name": "obsidian-x86-flow-graph-plugin",
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "obsidian-file-color-plugin",
|
"name": "obsidian-x86-flow-graph-plugin",
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"description": "An Obsidian (https://obsidian.md) plugin for setting colors on folders and files in the file tree.",
|
"description": "An Obsidian (https://obsidian.md) plugin that converts x86 assembly into a flow diagram using Obsidian Canvases",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node esbuild.config.mjs",
|
"dev": "node esbuild.config.mjs",
|
||||||
|
|
|
||||||
|
|
@ -168,11 +168,13 @@ function MakeNodeFromLineToNextJump(linenum: any, text: any, fromnode: any, edge
|
||||||
else{
|
else{
|
||||||
//Have we visited this location before (0 == no) and is this not the first line of a node?
|
//Have we visited this location before (0 == no) and is this not the first line of a node?
|
||||||
if(visitslocs[line.trim()] == 0 && i != linenum){
|
if(visitslocs[line.trim()] == 0 && i != linenum){
|
||||||
|
//Close the node text and create a node object
|
||||||
currnode = currnode + "```"
|
currnode = currnode + "```"
|
||||||
newnode = {"id":nodeid, "x": workingx*side, "y": workingy, "width": 550,"height": 25*currnode.split("\n").length, "type": "text", "text": currnode, "startline": linenum,"endline": i}
|
newnode = {"id":nodeid, "x": workingx*side, "y": workingy, "width": 550,"height": 25*currnode.split("\n").length, "type": "text", "text": currnode, "startline": linenum,"endline": i}
|
||||||
workingy = workingy + 300
|
workingy = workingy + 300
|
||||||
workingx = workingx + (50*nodeid)
|
workingx = workingx + (50*nodeid)
|
||||||
nodeid = nodeid + 1
|
nodeid = nodeid + 1
|
||||||
|
//Set the jump location to the location name strimming away the command and comments
|
||||||
jmploc = [line.trim().slice(line.trim().indexOf(" ")+1,line.length).split("#")[0].trim()]
|
jmploc = [line.trim().slice(line.trim().indexOf(" ")+1,line.length).split("#")[0].trim()]
|
||||||
//If there is a node before the current one
|
//If there is a node before the current one
|
||||||
if(fromnode != -1){
|
if(fromnode != -1){
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
.x86-instruction {
|
|
||||||
color: red;
|
|
||||||
}
|
|
||||||
Loading…
Reference in a new issue