feat: F4.8a the documentation items in model and file, measured against Java's
New oracle DocuRun on Java's JDocuElement. Italic is kept (the model knew only bold), an item keeps its file's size and font size (Swift's 32 x 24 and 8-72 changed Java's files), an item without a colour is Java's light grey. Java's new items, colour lists, font sizes and styles, the drag's smallest sizes and Java's stacking; document commands for the editor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -65,8 +65,7 @@ import {
|
||||
VirtualFileSystem,
|
||||
VirtualFileSystemError,
|
||||
topologyNode,
|
||||
DOCUMENTATION_BLACK,
|
||||
DOCUMENTATION_PALE_YELLOW,
|
||||
DOCUMENTATION_LIGHT_GRAY,
|
||||
type DeviceConfiguration,
|
||||
type DhcpClientConfiguration,
|
||||
type DhcpServerConfiguration,
|
||||
@@ -770,7 +769,8 @@ function importDocumentationItem(
|
||||
const seed = `java-doc|${order}|${item.type}|${item.x}|${item.y}|${item.width}|${item.height}|${text}`;
|
||||
let color;
|
||||
if (item.color === null) {
|
||||
color = kind === 'text' ? DOCUMENTATION_BLACK : DOCUMENTATION_PALE_YELLOW;
|
||||
// Java shows it light grey, either kind (JDocuElement.setColor(null)).
|
||||
color = DOCUMENTATION_LIGHT_GRAY;
|
||||
warnings.push(`documentation item ${order + 1} without a color, given the default`);
|
||||
} else {
|
||||
const [red, green, blue, alpha] = item.color;
|
||||
@@ -785,6 +785,7 @@ function importDocumentationItem(
|
||||
fontName: item.font?.name ?? 'Dialog',
|
||||
fontSize: item.font?.size ?? 12,
|
||||
isBold: ((item.font?.style ?? 0) & 1) === 1,
|
||||
isItalic: ((item.font?.style ?? 0) & 2) === 2,
|
||||
order,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user