Package autocad
autocad #sleela 2.5 (lib/autocad/autocad.sleela)
AutoCadRenderer class
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
walls | String walls | accumulated LINE entities (walls layer) |
dims | String dims | accumulated dimension LINE + measured TEXT entities |
notes | String notes | accumulated TEXT entities (notes layer) |
noteCount | int noteCount | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
begin | void begin(String t, String u) | No description in source. |
grow | void grow(double x, double y) | No description in source. |
num | String num(double v) | No description in source. |
istr | String istr(int v) | No description in source. |
lineEntity | String lineEntity(String lyr, double x1, double y1, double x2, double y2) | No description in source. |
textEntity | String textEntity(String lyr, double x, double y, double height, String value) | No description in source. |
distance | double distance(double x1, double y1, double x2, double y2) | No description in source. |
addWall | void addWall(double x1, double y1, double x2, double y2) | No description in source. |
addRoom | void addRoom(double w, double h) | No description in source. |
addDim | void addDim(double x1, double y1, double x2, double y2) | No description in source. |
addNote | void addNote(double x, double y, String text) | No description in source. |
numberOf | double numberOf(int v) | No description in source. |
applyDirective | void applyDirective(String op, double n1, double n2, double n3, double n4, String text) | Apply one plan directive to the model. |
layer | String layer(String name, int color) | No description in source. |
emit | String emit() | Serialize the whole model to AutoCAD DXF text. |
build | String build() | No description in source. |
main | void main() | No description in source. |
SLCadCommand #sleela 2.5 (lib/autocad/SLCadCommand.sleela)
SLCadCommand class
Defines SLCadCommand -- one recorded, reversible edit the AutoCAD Creator(TM) applied to a document. Every creation (line/text/dim/room) and every alteration (move/reshape/relabel/restyle/delete) is captured as a command so the Creator can keep an audit trail and offer undo: a command remembers its verb, the id of the entity it affected, and the "before" values needed to reverse it (prior endpoints, prior label/layer, prior alive flag). This keeps editing a first-class, inspectable operation rather than an opaque mutation -- which is exactly what makes a creator (as opposed to a one-shot renderer) possible. Family: autocad. SLeeLa owns the edit history; a command is a plain record, replayed/reversed against an SLCadDocument.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
CREATE | static final int CREATE = 0 | Verb ordinals. an entity was created (undo = delete it) |
MOVE | static final int MOVE = 1 | translated by (dx,dy) |
RESHAPE | static final int RESHAPE = 2 | endpoints changed (before stored) |
RELABEL | static final int RELABEL = 3 | text value changed (before stored) |
RESTYLE | static final int RESTYLE = 4 | layer changed (before stored) |
DELETE | static final int DELETE = 5 | tombstoned (undo = restore) |
verb | int verb | No description in source. |
entityId | int entityId | No description in source. |
priorValue | String priorValue | RELABEL prior text |
priorLayer | String priorLayer | RESTYLE prior layer |
seq | int seq | Audit metadata: when the edit was applied (host-supplied) and its order in the session. seq is 1-based; stampedAt is a Julian date (0 = unstamped) and stampLabel its readable form. Stamped by the Creator via stamp(). |
stampedAt | double stampedAt | No description in source. |
stampLabel | String stampLabel | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
stamp | void stamp(int sequence, double whenJulian, String whenText) | Attach the audit stamp (sequence number + host time) to this command. |
getSeq | int getSeq() | No description in source. |
getStampedAt | double getStampedAt() | No description in source. |
getStampLabel | String getStampLabel() | No description in source. |
create | void create(int id) | No description in source. |
move | void move(int id, double ddx, double ddy) | No description in source. |
reshape | void reshape(int id, double ox1, double oy1, double ox2, double oy2) | No description in source. |
relabel | void relabel(int id, String prior) | No description in source. |
restyle | void restyle(int id, String prior) | No description in source. |
deleted | void deleted(int id) | No description in source. |
getVerb | int getVerb() | No description in source. |
getEntityId | int getEntityId() | No description in source. |
undo | boolean undo(SLCadDocument doc) | Reverse this command against `doc`. Returns true when something changed. |
describe | String describe() | A short, human-readable description for a history/log view. |
describeAt | String describeAt() | The same description prefixed with the audit stamp, for a timeline view: "#3 @ 2026-10-13T18:00Z move #7" |
SLCadCreator #sleela 2.5 (lib/autocad/SLCadCreator.sleela)
SLCadCreator class
Defines SLCadCreator -- the AutoCAD Creator(TM): the SLeeLa facade a front end drives to CREATE and ALTER 2D AutoCAD documents and then SAVE them as DXF. It owns an editable SLCadDocument, a current selection (the id a GUI tool acts on), the active layer, and a bounded command history so every create/alter/delete is recorded and undoable. Creation builders (line/wall/room/dim/note) each record a CREATE command; alteration verbs (move/reshape/relabel/restyle/delete) snapshot the prior state before mutating so undo() can reverse them. save() asks the document for the full DXF text. This is the authoritative editing brain; the SleelaUI GUI (autocad/creator) is only a surface that issues these intents and previews the result -- JavaFX never computed geometry here, and neither does SleelaUI. Family: autocad. SLeeLa owns the document, the edits, and the history; a front end selects, creates, alters, and saves through this object.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_HISTORY | static final int MAX_HISTORY = 4096 | No description in source. |
doc | SLCadDocument doc | No description in source. |
selection | int selection | currently selected entity id (-1 = none) |
activeLayer | String activeLayer | layer new geometry lands on by default |
history | SLCadCommand[] history | recorded edits (for undo + audit) |
historyCount | int historyCount | No description in source. |
nowJulian | double nowJulian | ---- clock (host-supplied) ---------------------------------------------- The runtime has no live wall-clock, so the host feeds time in. `nowJulian` is the current time as a Julian date (AutoCAD's $TDCREATE/$TDUPDATE unit) and `nowLabel` a readable form; every edit stamps the document and the command it records. Left at 0/"" (the default), timestamping is inert and output is byte-identical to the pre-timestamp Creator. |
nowLabel | String nowLabel | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
setClock | void setClock(double whenJulian, String whenText) | Advance the Creator's clock. A host calls this before an edit (or once per UI frame) so subsequent edits carry the given time. |
clock | double clock() | No description in source. |
clockLabel | String clockLabel() | No description in source. |
newDocument | void newDocument(String title, String units) | Start a fresh, empty document (no creation timestamp). |
newDocumentAt | void newDocumentAt(String title, String units, double createdJulian, String createdText) | Start a fresh document stamped with a host-supplied creation time. |
document | SLCadDocument document() | No description in source. |
selected | int selected() | No description in source. |
hasSelection | boolean hasSelection() | No description in source. |
select | void select(int id) | No description in source. |
deselect | void deselect() | No description in source. |
layer | String layer() | No description in source. |
setLayer | void setLayer(String lyr) | No description in source. |
setAt | void setAt(double x, double y) | No description in source. |
line | int line(double x1, double y1, double x2, double y2) | No description in source. |
wall | int wall(double x1, double y1, double x2, double y2) | No description in source. |
room | int room(double w, double h, String name) | No description in source. |
dimension | int dimension(double x1, double y1, double x2, double y2) | No description in source. |
note | int note(double x, double y, String text) | No description in source. |
text | int text(double x, double y, String value, double height) | No description in source. |
created | int created(int id) | No description in source. |
move | boolean move(int id, double dx, double dy) | Move the current selection (or a specific id) by (dx,dy). |
moveSelection | boolean moveSelection(double dx, double dy) | No description in source. |
reshape | boolean reshape(int id, double x1, double y1, double x2, double y2) | Re-point a line/dim's endpoints (prior endpoints captured for undo). |
relabel | boolean relabel(int id, String text) | Change a text/dim label (prior value captured for undo). |
restyle | boolean restyle(int id, String layer) | Move an entity onto a different layer (prior layer captured for undo). |
delete | boolean delete(int id) | Delete (tombstone) an entity; clears the selection if it was selected. |
deleteSelection | boolean deleteSelection() | No description in source. |
pickAt | int pickAt(double x, double y, double radius) | Turn a canvas click (model coordinates) into a selection. |
edits | int edits() | No description in source. |
lastCommand | SLCadCommand lastCommand() | No description in source. |
lastDescription | String lastDescription() | No description in source. |
undo | boolean undo() | Reverse the most recent recorded edit. Returns true if one was undone. |
logEdit | void logEdit(SLCadCommand c) | No description in source. |
makeCreate | SLCadCommand makeCreate(int id) | No description in source. |
makeMove | SLCadCommand makeMove(int id, double dx, double dy) | No description in source. |
makeReshape | SLCadCommand makeReshape(int id, double x1, double y1, double x2, double y2) | No description in source. |
makeRelabel | SLCadCommand makeRelabel(int id, String prior) | No description in source. |
makeRestyle | SLCadCommand makeRestyle(int id, String prior) | No description in source. |
makeDelete | SLCadCommand makeDelete(int id) | No description in source. |
inspect | String inspect(int id) | One-line description of an entity by id ("" if there is no such entity). The GUI property strip and any audit view read this to show WHAT a given id is -- its kind, layer, geometry, and label. |
inspectSelection | String inspectSelection() | The currently selected entity, described (or a hint when nothing is picked). |
listEntities | String listEntities() | A newline-separated listing of every entity currently in the document (alive and tombstoned), newest slots last. Suitable for a report pane. |
listHistory | String listHistory() | A newline-separated listing of the recorded edit history, each line carrying its sequence number and timestamp -- the time-ordered audit trail. |
report | String report() | A full inspection report: document metadata (title, units, timestamps, counts) followed by the entity listing and the edit history. This is the "inspect the AutoCAD content" surface a report pane or a headless run dumps. |
stampText | String stampText(String label, double julian) | Render a timestamp for the report: prefer the readable label, fall back to the Julian value, and say "unset" when the host supplied no time. |
applyDirective | void applyDirective(String op, double n1, double n2, double n3, double n4, String text) | Apply one FORMAT.md directive to the document, so a .plan or the GUI's plan editor can seed a drawing the creator then edits. Mirrors the directive vocabulary of lib/autocad/SLCadPlan + autocad/cad/plan.sleela. |
save | String save() | Produce the full AutoCAD DXF for the current document. The GUI's Save action hands this to the host to write to a .dxf file; the runnable build prints it (exactly as the one-shot renderer persists its output). |
summary | String summary() | A one-line status summary for a GUI status bar. |
SLCadDocument #sleela 2.5 (lib/autocad/SLCadDocument.sleela)
SLCadDocument class
Defines SLCadDocument -- the editable 2D AutoCAD document the
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
MAX_ENTITIES | static final int MAX_ENTITIES = 8192 | No description in source. |
title | String title | No description in source. |
units | String units | No description in source. |
items | SLCadEntity[] items | No description in source. |
count | int count | number of slots used (alive + tombstoned) |
nextId | int nextId | monotonic id source |
createdAt | double createdAt | ---- timestamps --------------------------------------------------------- Time is supplied by the host (there is no live wall-clock in the runtime), so the engine stays deterministic. A timestamp is carried as a Julian date (AutoCAD's $TDCREATE/$TDUPDATE unit, group code 40) plus a human-readable label the inspection/report API prints. createdAt is set once at begin(); updatedAt advances on every mutation via touch(). Julian date the document was created (0 = unset) |
updatedAt | double updatedAt | Julian date of the most recent edit (0 = unset) |
createdLabel | String createdLabel | readable creation stamp (e.g. "2026-10-13T18:00Z") |
updatedLabel | String updatedLabel | readable last-update stamp |
writer | SLCadDxf writer | the DXF section wrapper (reused) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
begin | void begin(String t, String u) | No description in source. |
beginAt | void beginAt(String t, String u, double createdJulian, String createdText) | Begin a document and record its creation timestamp (Julian date + label). A zero/empty timestamp means "unset" and no $TDCREATE/$TDUPDATE is emitted, so existing callers of begin() are byte-compatible with the old output. |
getTitle | String getTitle() | No description in source. |
getUnits | String getUnits() | No description in source. |
setTitle | void setTitle(String t) | No description in source. |
setUnits | void setUnits(String u) | No description in source. |
setAt | void setAt(double x, double y) | No description in source. |
getCreatedAt | double getCreatedAt() | No description in source. |
getUpdatedAt | double getUpdatedAt() | No description in source. |
getCreatedLabel | String getCreatedLabel() | No description in source. |
getUpdatedLabel | String getUpdatedLabel() | No description in source. |
touch | void touch(double whenJulian, String whenText) | Record that the document changed at the given host-supplied time. The Creator calls this after each create/alter/delete so $TDUPDATE and the readable label track the last edit. Called with (0, "") it is a no-op, which keeps timestamp-unaware callers unchanged. |
addLine | int addLine(String layer, double x1, double y1, double x2, double y2) | No description in source. |
addText | int addText(String layer, double x, double y, String value, double height) | No description in source. |
addDim | int addDim(String layer, double x1, double y1, double x2, double y2, double height) | No description in source. |
addWall | int addWall(double x1, double y1, double x2, double y2) | A wall is a line on the "walls" layer. |
addNote | int addNote(double x, double y, String text) | A note is text on the "notes" layer at a default height. |
addDimension | int addDimension(double x1, double y1, double x2, double y2) | A dimension on the "dims" layer with the standard label height. |
addRoom | int addRoom(double w, double h, String name) | Expand a room (w x h) at the current insertion point into four walls and a centred label; returns the id of the first (south) wall so a caller can locate the room. |
store | int store(SLCadEntity e) | No description in source. |
size | int size() | No description in source. |
at | SLCadEntity at(int index) | No description in source. |
indexOfId | int indexOfId(int id) | No description in source. |
byId | SLCadEntity byId(int id) | No description in source. |
aliveCount | int aliveCount() | No description in source. |
pick | int pick(double x, double y, double radius) | Hit test: the id of the live entity whose anchor/first point is nearest to (x,y) within `radius`, or -1. Lets a GUI turn a click into a selection. |
dist | double dist(double ax, double ay, double bx, double by) | No description in source. |
sqrtApprox | double sqrtApprox(double v) | A dependency-free square root (Newton's method) so hit testing needs no import beyond this class; converges fast for the magnitudes CAD uses. |
move | boolean move(int id, double dx, double dy) | Move an entity by (dx,dy). Returns true if it existed and is alive. |
reshape | boolean reshape(int id, double x1, double y1, double x2, double y2) | Re-point a line/dim's endpoints. |
moveTo | boolean moveTo(int id, double x, double y) | Move a point-anchored entity (TEXT) or a line's first point. |
relabel | boolean relabel(int id, String text) | No description in source. |
restyle | boolean restyle(int id, String layer) | No description in source. |
remove | boolean remove(int id) | Soft-delete (tombstone) / restore -- ids stay stable across the edit. |
restore | boolean restore(int id) | No description in source. |
minX | double minX() | No description in source. |
maxX | double maxX() | No description in source. |
minY | double minY() | No description in source. |
maxY | double maxY() | No description in source. |
boundX | double boundX(boolean wantMin) | No description in source. |
boundY | double boundY(boolean wantMin) | No description in source. |
fold | double fold(double acc, double v, boolean wantMin, boolean seen) | No description in source. |
toDxf | String toDxf() | Emit the whole document as AutoCAD DXF (R12 text) with the current extents. This is what the Creator's Save produces; a host writes it to a .dxf file (or the runnable `main` prints it, as the renderer does). |
SLCadDxf #sleela 2.5 (lib/autocad/SLCadDxf.sleela)
SLCadDxf class
Defines the SLeeLa standard-library type SLCadDxf used within the autocad library family.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
num | String num(double v) | No description in source. |
istr | String istr(int v) | No description in source. |
julian | String julian(double v) | Format a Julian-date timestamp as a plain fixed-point decimal (6 places), never scientific notation. DXF group-code-40 values must be plain decimals, and a Julian date (~2.46e6) would otherwise print as "2.461e+06", which both loses precision and breaks strict DXF readers. Builds the string from integer + scaled-fraction parts so no stdlib formatting import is needed. |
wholeStr | String wholeStr(double w) | The integer part of a non-negative double as plain decimal digits (never scientific notation, which "" + aDouble would otherwise produce for a Julian date of ~2.46e6). |
pad6 | String pad6(double f) | Zero-pad a 0..999999 fractional count to exactly six decimal digits. |
digitChar | String digitChar(double d) | No description in source. |
layer | String layer(String name, int color) | No description in source. |
header | String header(double minX, double minY, double maxX, double maxY, | Header with drawing extents plus the AutoCAD creation/update timestamps. $TDCREATE / $TDUPDATE are DXF's standard local creation and last-update times, expressed as Julian dates (group code 40). A zero timestamp means "unset" and the record is omitted, so passing (…, 0.0, 0.0) reproduces the pre-timestamp HEADER byte-for-byte. (SLeeLa has no method overloading, so this is the single header entry point; callers always pass the two stamps.) |
tables | String tables() | No description in source. |
document | String document(double minX, double minY, double maxX, double maxY, | Wrap the three accumulated entity strings in a complete DXF document, with the AutoCAD creation/update timestamps embedded in the HEADER. (No method overloading in SLeeLa, so this is the single entry point; pass 0.0/0.0 for the timestamps to emit a HEADER identical to the pre-timestamp output.) |
SLCadEntity #sleela 2.5 (lib/autocad/SLCadEntity.sleela)
SLCadEntity class
Defines SLCadEntity -- a single, individually addressable 2D drawing entity in the editable AutoCAD model. Where SLCadModel accumulates geometry append-only into a DXF string (good for one-shot rendering), an SLCadEntity is a mutable record the AutoCAD Creator(TM) can select, move, re-layer, re-label, and delete after it has been created. Each entity has a stable id, a kind (line / text / dim), a layer, two points (p1,p2 -- the second is unused for a point-anchored TEXT), a text value (for TEXT and the measured label of a DIM) and a text height, plus an "alive" flag so a delete is a soft tombstone that keeps ids stable. This is the atom the editable SLCadDocument stores and the SLCadCanvas paints. Family: autocad. SLeeLa owns the geometry and every edit to it; a front end only issues create/alter/move/delete intents.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
KIND_LINE | static final int KIND_LINE = 0 | Entity-kind ordinals. A front end and the renderer agree on these. a straight segment (walls/dims geometry) |
KIND_TEXT | static final int KIND_TEXT = 1 | a point-anchored text label (notes/title) |
KIND_DIM | static final int KIND_DIM = 2 | a linear dimension: segment + measured label |
id | int id | stable identity, assigned by the document |
kind | int kind | KIND_LINE / KIND_TEXT / KIND_DIM |
layer | String layer | "walls" / "dims" / "notes" |
value | String value | text payload (TEXT content; "" for a bare LINE) |
height | double height | text height (for TEXT / DIM label) |
alive | int alive | 1 = present, 0 = tombstoned (deleted but id reserved) |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
asLine | void asLine(int entityId, String lyr, double ax, double ay, double bx, double by) | Configure as a straight segment on `lyr` from (ax,ay) to (bx,by). |
asText | void asText(int entityId, String lyr, double ax, double ay, String text, double h) | Configure as a text label anchored at (ax,ay) with content `text`. |
asDim | void asDim(int entityId, String lyr, double ax, double ay, double bx, double by, double h) | Configure as a linear dimension between (ax,ay) and (bx,by); the measured label is derived on demand (see measured()). |
getId | int getId() | No description in source. |
getKind | int getKind() | No description in source. |
getLayer | String getLayer() | No description in source. |
isLine | boolean isLine() | No description in source. |
isText | boolean isText() | No description in source. |
isDim | boolean isDim() | No description in source. |
isAlive | boolean isAlive() | No description in source. |
getX1 | double getX1() | No description in source. |
getY1 | double getY1() | No description in source. |
getX2 | double getX2() | No description in source. |
getY2 | double getY2() | No description in source. |
getValue | String getValue() | No description in source. |
getHeight | double getHeight() | No description in source. |
length | double length() | The measured length of a dimension (and the natural label for a DIM). |
label | String label() | The label text for this entity: its value, or the measured length for a DIM with no explicit override. |
midX | double midX() | The midpoint, where a DIM measurement/label sits. |
midY | double midY() | No description in source. |
kindName | String kindName() | The entity kind as a word, for reports and the GUI readout. |
describe | String describe() | A one-line, human-readable summary of this entity's current state, e.g. "#7 line walls (0,0)->(6000,0)" (a wall) "#9 text notes (3000,2000) \"Lobby\"" (a label) "#4 dim dims (0,-600)->(10000,-600) =10000" (a dimension + measure) A tombstoned entity is flagged so an audit sees deletions too. |
translate | void translate(double dx, double dy) | Move the whole entity by (dx,dy). |
setP1 | void setP1(double ax, double ay) | Set the first point (and, for TEXT, keep the second coincident). |
setP2 | void setP2(double bx, double by) | Set the second point (ignored for TEXT, which is point-anchored). |
setEndpoints | void setEndpoints(double ax, double ay, double bx, double by) | Re-point both ends at once. |
setLayer | void setLayer(String lyr) | No description in source. |
setValue | void setValue(String text) | No description in source. |
setHeight | void setHeight(double h) | No description in source. |
kill | void kill() | Soft-delete: keep the id reserved so other entities keep their identity. |
revive | void revive() | No description in source. |
toDxf | String toDxf() | Emit just this entity's DXF group-code/value records (empty when dead). |
lineRecord | String lineRecord(String lyr, double ax, double ay, double bx, double by) | No description in source. |
textRecord | String textRecord(String lyr, double ax, double ay, double h, String text) | No description in source. |
num | String num(double v) | No description in source. |
SLCadModel #sleela 2.5 (lib/autocad/SLCadModel.sleela)
SLCadModel class
Defines the SLeeLa standard-library type SLCadModel used within the autocad library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
noteCount | int noteCount | No description in source. |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
begin | void begin(String t, String u) | No description in source. |
setAt | void setAt(double x, double y) | No description in source. |
grow | void grow(double x, double y) | No description in source. |
num | String num(double v) | No description in source. |
lineEntity | String lineEntity(String lyr, double x1, double y1, double x2, double y2) | No description in source. |
textEntity | String textEntity(String lyr, double x, double y, double height, String value) | No description in source. |
addWall | void addWall(double x1, double y1, double x2, double y2) | No description in source. |
addRoom | void addRoom(double w, double h) | Expand a room into its four wall segments at the current insertion point. |
addDim | void addDim(double x1, double y1, double x2, double y2) | No description in source. |
addNote | void addNote(double x, double y, String text) | No description in source. |
distance | double distance(double x1, double y1, double x2, double y2) | Straight-line distance -- used to compute dimension labels. |
SLCadPlan #sleela 2.5 (lib/autocad/SLCadPlan.sleela)
SLCadPlan class
Defines the SLeeLa standard-library type SLCadPlan used within the autocad library family.
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
kindOf | int kindOf(String op) | Map a directive keyword to its stable kind code so a front end and the renderer agree on the vocabulary: 0 title 1 units 2 at 3 room 4 wall 5 door 6 dim 7 note |
known | boolean known(String op) | No description in source. |
SLCadRenderer #sleela 2.5 (lib/autocad/SLCadRenderer.sleela)
SLCadRenderer class
Defines the SLeeLa standard-library type SLCadRenderer used within the autocad library family.
Fields — the named values this unit stores.
| Field | Declaration | What it holds |
|---|---|---|
title | String title | drawing title |
units | String units | drawing units (e.g. "mm") |
Methods — the actions this unit can perform.
| Method | Signature | What it does |
|---|---|---|
begin | void begin(String t, String u) | No description in source. |
drawingTitle | String drawingTitle() | No description in source. |
drawingUnits | String drawingUnits() | No description in source. |