-
exec/load/graphic.js
From
rswindell@VERT to
CVS commit on Fri Dec 8 18:56:18 2017
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 Mon Jan 1 19:46:01 2018
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 Sun Jan 7 23:30:23 2018
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 Mon Jan 8 04:08:25 2018
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 Mon Jan 8 09:28:43 2018
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 Mon Jan 8 19:35:31 2018
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 Mon Jan 8 23:17:41 2018
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 Sat Jan 13 23:46:37 2018
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 Fri Jan 19 05:03:56 2018
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 Sun Jan 21 01:01:38 2018
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 Fri Feb 2 09:26:45 2018
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 Fri Feb 2 18:09:25 2018
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 Tue Feb 6 08:12:51 2018
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 Tue Feb 6 15:55:30 2018
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 Tue Feb 6 16:00:51 2018
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 Tue Feb 6 16:03:03 2018
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 Tue Feb 6 16:09:57 2018
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 Tue Feb 6 16:17:56 2018
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 Tue Oct 8 04:59:51 2019
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 Thu Oct 17 04:47:24 2019
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 Sun Jul 26 23:37:17 2020
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 Sat Mar 26 21:24:08 2022
-
From
Rob Swindell@VERT to
Git commit to main/sbbs/master on Sun Mar 27 03:08:45 2022
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