-
exec/load/graphic.js
From
rswindell@VERT to
CVS commit on Monday, August 31, 2015 13:21:08
exec/load graphic.js 1.38 1.39
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv4997
Modified Files:
graphic.js
Log Message:
Load prerequisite file (sbsdefs.js), needed for BLACK and other color defs.
Fix to parseANSI() method: clear screen ANSI sequence (<ESC>[2J) now
actually clears the screen data.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Monday, August 31, 2015 20:16:16
exec/load graphic.js 1.39 1.40
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv12933
Modified Files:
graphic.js
Log Message:
The beginnings of a Graphic.toANSI() method.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 00:59:29
exec/load graphic.js 1.40 1.41
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv17674
Modified Files:
graphic.js
Log Message:
Clean up the parseANSI function.
These changes should likely be copy/pasted into frame.js where the old code
has been copy/pasted to.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Tuesday, September 01, 2015 01:18:05
exec/load graphic.js 1.41 1.42
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv19219
Modified Files:
graphic.js
Log Message:
Fix a couple of typos with regards to this.attr vs. this.attribute.
I noticed this bug in parseANSI() which had a default attribute value of 0.
Fix non-ANSI cursor positioning control character handling in parseANSI(). Added base64_encode() and base64_decode() methods for experimentation.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 01:50:36
exec/load graphic.js 1.42 1.43
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv19554
Modified Files:
graphic.js
Log Message:
Fix various variable named bits.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Tuesday, September 01, 2015 01:52:41
exec/load graphic.js 1.43 1.44
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv19631
Modified Files:
graphic.js
Log Message:
Fix error in Deuce's commit:
line 327: ReferenceError: i is not defined
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 01:53:54
exec/load graphic.js 1.44 1.45
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv19695
Modified Files:
graphic.js
Log Message:
Fix a type in the type fix with regards to this.attr vs. this.attribute.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 02:01:38
exec/load graphic.js 1.45 1.46
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv19925
Modified Files:
graphic.js
Log Message:
Great is the definition of ECMAScript that this is the global scope here.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 02:03:41
exec/load graphic.js 1.46 1.47
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv19994
Modified Files:
graphic.js
Log Message:
Fix anoyher typo.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 02:31:46
exec/load graphic.js 1.47 1.48
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv20800
Modified Files:
graphic.js
Log Message:
First pass cleanup, add methods to the prototype, not the global namespace. Rename "sector" to "Char".
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 02:37:37
exec/load graphic.js 1.48 1.49
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv20870
Modified Files:
graphic.js
Log Message:
Spread out the functions.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 03:05:29
exec/load graphic.js 1.49 1.50
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv21174
Modified Files:
graphic.js
Log Message:
Un-"fix" an attr->attribute change.
Use binary mode for ANS files.
Support a single string argument to parseANSI() which will be split on the literal "\r\n" string, making everything work as expected.
Add comment regarding b64 stuff possibly being redundant with the file object.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 03:29:34
exec/load graphic.js 1.50 1.51
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv21371
Modified Files:
graphic.js
Log Message:
Clean-up, add semicolons where they should be, remove extra 'var' declarations where they shouldn't.
Since this is a class, return the class (ie: constructor) rather than the namespace. Instead of needing to do this:
var graphic = load({}, "graphic.js");
var g = new graphic.Graphic();
You can do this:
var graphic = load({}. "graphic.js");
var g = new graphic();
Since we're interested in load()ing into separate namespaces, load sbbsdefs.js into Graphic.defs instead of into the global scope and use that one. This will still cause nodedefs.js to be loaded into the global scope, but this usage needs more discussion before we start changing core files.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Tuesday, September 01, 2015 10:54:16
exec/load graphic.js 1.51 1.52
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv18990
Modified Files:
graphic.js
Log Message:
Fxes in parseANSI():
- ESC seqquences were put in the screen buffer
- Handle non-destructive backspace chars
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 16:39:09
exec/load graphic.js 1.52 1.53
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv1309
Modified Files:
graphic.js
Log Message:
Make ANSI and BIN properties with getter/setters.
Remove broken unused stuff like the cursor.
Re-format stuff a bunch.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 16:58:05
exec/load graphic.js 1.53 1.54
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv4143
Modified Files:
graphic.js
Log Message:
Use default parameter when the parameter is a zero-length string as well as when it's undefined.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 17:07:58
exec/load graphic.js 1.54 1.55
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv4242
Modified Files:
graphic.js
Log Message:
Clean up ANSI parsing, scroll as needed to keep the graphic the same size.
New scrolled lines are in the graphic default attribute and char, not the current default one. This is on purpose.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 19:02:59
exec/load graphic.js 1.55 1.56
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv5668
Modified Files:
graphic.js
Log Message:
Rename Char class to Cell.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Tuesday, September 01, 2015 22:58:40
exec/load graphic.js 1.56 1.57
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv8992
Modified Files:
graphic.js
Log Message:
Fx in ANSI setter:
- Parameter validation in 'H' command handler, some ANSI generators put 0 for
x or y coordinate values.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, September 01, 2015 23:02:37
exec/load graphic.js 1.57 1.58
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv9125
Modified Files:
graphic.js
Log Message:
Moar validation fixin's.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Wednesday, September 02, 2015 22:24:37
exec/load graphic.js 1.58 1.59
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv13675
Modified Files:
graphic.js
Log Message:
Fix: BG_BLACK is a special value for the console.ansi() function argument
value and not an actual attribute value. Use 0 instead.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Friday, September 04, 2015 12:19:52
exec/load graphic.js 1.59 1.60
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv11560
Modified Files:
graphic.js
Log Message:
Allow the ANSI property to write to the last column by default (which may cause a line-wrap, extra blank lines, in some terminals).
Decrement width property first to change this behavior.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Friday, September 04, 2015 16:11:31
exec/load graphic.js 1.60 1.61
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv15519
Modified Files:
graphic.js
Log Message:
Added a new read-only property: HTML, which returns the HTML-encoding of the graphic.
Fix the base64_decode() function to not insert \r\n into the array of base64 lines (caused decode failure).
Remove the parseANSI and toANSI functions (using the ANSI property instead).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ
telnet://vert.synchro.net
-
From
rswindell@VERT to
CVS commit on Friday, December 08, 2017 13:56:18
exec/load graphic.js 1.61 1.62
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv1047
Modified Files:
graphic.js
Log Message:
base64_encode() member function now accepts an optional 'max_line_len' argument, in case the caller doesn't want 76 characters per encoded line.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Monday, January 01, 2018 14:46:01
exec/load graphic.js 1.62 1.63
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv6593
Modified Files:
graphic.js
Log Message:
Fix the extra blank-line in the array returned by base64_encode() method.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sunday, January 07, 2018 18:30:23
exec/load graphic.js 1.64 1.65
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv1837
Modified Files:
graphic.js
Log Message:
Use ANSI cursor positioning rather CRLF, so we can draw graphics at columns other than 1.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sunday, January 07, 2018 23:08:25
exec/load graphic.js 1.65 1.66
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv23711
Modified Files:
graphic.js
Log Message:
Graphic.load() now accepts an optional 'offset' parameter, so you can skip
some data to find the graphic you want to 'load'.
Also, limit the read() size (of BIN files) to the width x height x 2.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Monday, January 08, 2018 04:28:43
exec/load graphic.js 1.66 1.67
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv17323
Modified Files:
graphic.js
Log Message:
Added an attr_mask property (optional), used to mask off the blink
attribute (e.g. when drawing iCE colored art for non-iCE terminals)
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Monday, January 08, 2018 14:35:31
exec/load graphic.js 1.67 1.68
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv13459
Modified Files:
graphic.js
Log Message:
When loading data into the ANSI property (e.g. reading from a .ans file)
stop reading the input when encountering a Ctrl-Z (CPM EOF) character.
SAUCE trailers, popular with ANSI art groups, begin with a Ctrl-Z char.
Set graphic.cpm_eof to false to disable this behavior.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Monday, January 08, 2018 18:17:41
exec/load graphic.js 1.68 1.69
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv18243
Modified Files:
graphic.js
Log Message:
Revert to previous ANSI rendering by default (CRLF to end a line).
Set ansi_crlf = false to use the relative cursor-positioning instead
(only works if not at last line already).
A more detailed error when when attempting to draw outside of screen.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Saturday, January 13, 2018 18:46:37
exec/load graphic.js 1.69 1.70
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv15868
Modified Files:
graphic.js
Log Message:
Handle the case where Graphic.load() is passed a file with no extension.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Friday, January 19, 2018 00:03:56
exec/load graphic.js 1.70 1.71
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv21775
Modified Files:
graphic.js
Log Message:
Added a normalize() method: it "fixes" ANSI art that has inverse spaces
and other normally-invisible anamolies that show up when a graphic is
viewed without color (e.g. converted to grey and black). It shouldn't be
used on *all* ANSI artwork, most many convert to grey-scale much better
after being "normalized".
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Saturday, January 20, 2018 20:01:38
exec/load graphic.js 1.71 1.72
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv19536
Modified Files:
graphic.js
Log Message:
Added an "MSG" property which converts between BIN format and Ctrl-A
format. This may allow us to display BIN-style "ANSI graphics" to users
without ANSI terminals (for example) .
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Friday, February 02, 2018 04:26:45
exec/load graphic.js 1.72 1.73
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv16329
Modified Files:
graphic.js
Log Message:
Added a change_colors() method for globally changing the foreground
and/or background colors for an entire "graphic".
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Friday, February 02, 2018 13:09:25
exec/load graphic.js 1.73 1.74
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv25161
Modified Files:
graphic.js
Log Message:
Graphic.draw() now supports 'center' as the value for xpos or ypos for displaying a graphic centered in the terminal window.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tuesday, February 06, 2018 03:12:51
exec/load graphic.js 1.74 1.75
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv4865
Modified Files:
graphic.js
Log Message:
When assigning a string to the BIN property, replace any illegal (ctrl/nul) characters with the 'default' character (e.g. space). We could do this scrubbing in other places, but since we're already walking the string
and arrays here, it made sense. These eight 'character' values cannot be
sent to a terminal without expecting special behavior: any font/glyph corresponding with the font's index position into a character set won't
be displayed - so we need to replace these characters with something
legal and unobtrusive. Space is a good default replacement char, but it
can be overridden (with the 'ch' property).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, February 06, 2018 10:55:30
exec/load graphic.js 1.75 1.76
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv29761
Modified Files:
graphic.js
Log Message:
Add DoorWay mode support.
This moves illegal character handling into the drawing and parsing code.
If doorway_mode is true, generates/parses doorway mode.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tuesday, February 06, 2018 11:00:51
exec/load graphic.js 1.76 1.77
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv30339
Modified Files:
graphic.js
Log Message:
Fixed typo in previous commit.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, February 06, 2018 11:03:03
exec/load graphic.js 1.77 1.78
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv30655/load
Modified Files:
graphic.js
Log Message:
Fix other typo in previous previous commit.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, February 06, 2018 11:09:57
exec/load graphic.js 1.78 1.79
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv31420/load
Modified Files:
graphic.js
Log Message:
Deal with illegal characters in the MSG property too.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
deuce@VERT to
CVS commit on Tuesday, February 06, 2018 11:17:56
exec/load graphic.js 1.79 1.80
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv31835
Modified Files:
graphic.js
Log Message:
Put doorway_mode into the prototype... this allows a lot of flexability...
1) You can set the objects doorway_mode via the constructor or the property...
var g = new Graphic(undefined,undefined,undefined,undefined, true );
g.doorway_mode = false;
If you do this, it will always be whatever you set it to.
2) You can use "the default" by not specifying the mode...
var g = new Graphic();
3) You can change what "the default" is by modifying the prototype:
g.prototype.doorway_mode = true;
When you do #3, *all* instances of the class that use "the default" will
use the new value. So if you have a bunch of Graphic objects, and switch
to doorway mode, you can now change them all to output in doorway mode
with a single assignment.
Whee!
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Tuesday, October 08, 2019 00:59:51
exec/load graphic.js 1.81 1.82
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv5884
Modified Files:
graphic.js
Log Message:
Store the revision of the library in a 'revision' property so consumer
scripts can check it.
The drawfw() method now supports the 'center' value for x/ypos.
The draw() method support for 'center' x/ypos values appeared off-by-one.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Thursday, October 17, 2019 00:47:24
exec/load graphic.js 1.82 1.83
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv14309
Modified Files:
graphic.js
Log Message:
Use Math.ceil() - round up - for vertical 'center' position of draw() and drafx() methods. For consistency with how Minesweeper vertically centers its game board.
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
rswindell@VERT to
CVS commit on Sunday, July 26, 2020 19:37:17
exec/load graphic.js 1.83 1.84
Update of /cvsroot/sbbs/exec/load
In directory cvs:/tmp/cvs-serv23739
Modified Files:
graphic.js
Log Message:
Patch provided by alterego (ALTERANT) to support BLINK in Graphic.set().
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
-
From
Deuc¨@VERT to
Git commit to main/sbbs/master on Saturday, March 26, 2022 21:24:08
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sunday, March 27, 2022 03:08:45
https://gitlab.synchro.net/main/sbbs/-/commit/8905f8474fa98a2aad8087c1
Modified Files:
exec/load/graphic.js
Log Message:
Add auto_extend option
If set to true, when setting the ANSI property, rather than throwing away vertically "scrolled" lines, just keep extending the height to accommodate the new required vertical size (height).
---
þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net