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?
|
||||
|
||||
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
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
"name": "X86 Flow Graphing",
|
||||
"version": "1.0.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",
|
||||
"authorUrl": "https://github.com/dwolfe884",
|
||||
"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",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "obsidian-file-color-plugin",
|
||||
"name": "obsidian-x86-flow-graph-plugin",
|
||||
"version": "1.0.2",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "obsidian-file-color-plugin",
|
||||
"name": "obsidian-x86-flow-graph-plugin",
|
||||
"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",
|
||||
"scripts": {
|
||||
"dev": "node esbuild.config.mjs",
|
||||
|
|
|
|||
|
|
@ -168,11 +168,13 @@ function MakeNodeFromLineToNextJump(linenum: any, text: any, fromnode: any, edge
|
|||
else{
|
||||
//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){
|
||||
//Close the node text and create a node object
|
||||
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}
|
||||
workingy = workingy + 300
|
||||
workingx = workingx + (50*nodeid)
|
||||
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()]
|
||||
//If there is a node before the current one
|
||||
if(fromnode != -1){
|
||||
|
|
|
|||
|
|
@ -1,3 +0,0 @@
|
|||
.x86-instruction {
|
||||
color: red;
|
||||
}
|
||||
Loading…
Reference in a new issue