This commit is contained in:
gilesb 2023-11-22 22:24:34 +00:00
parent 8e9110e9f6
commit fed0fc019a
1 changed files with 187 additions and 253 deletions

136
index.js
View File

@ -29539,16 +29539,11 @@ const getMin = (number) => {
// myGlobalFields,
parameters,
}) => {
if (parameters.length) {
await external_fs_.promises.appendFile(
fileName,
'#### parameters\n\n',
);
if (!parameters.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} else {
await table_header({
headings: [
['name'],
@ -29584,27 +29579,23 @@ const getMin = (number) => {
myDisplayFields,
display,
}) => {
const referenceObjects = myDisplayFields(display)
.referenceObjects();
if (referenceObjects.length) {
await external_fs_.promises.appendFile(
fileName,
'\n## reference objects\n',
);
const referenceObjects = myDisplayFields(display)
.referenceObjects();
await sequence(
referenceObjects
.map(
(referenceObject) => () => external_fs_.promises.appendFile(
fileName,
`\n### ${
referenceObject.name
}\n\n**${
referenceObject.type
}**\n\n[${
referenceObject.linkBaseObject
}](../globals/${
referenceObject.linkBaseObject.split('.')[0]
}/${
referenceObject.linkBaseObject
`\n### ${referenceObject.name
}\n\n**${referenceObject.type
}**\n\n[${referenceObject.linkBaseObject
}](../globals/${referenceObject.linkBaseObject.split('.')[0]
}/${referenceObject.linkBaseObject
}.md)\n\n`,
).then(
() => parameters({
@ -29614,12 +29605,6 @@ const getMin = (number) => {
),
),
);
if (!referenceObjects.length) {
await external_fs_.promises.appendFile(
fileName,
'\n*[none]*\n',
);
}
});
@ -29632,14 +29617,13 @@ const getMin = (number) => {
myDisplayFields,
display,
}) => {
const references = myDisplayFields(display)
.displayReferences();
if (references.length) {
await external_fs_.promises.appendFile(
fileName,
'\n## display-references\n\n',
);
const references = myDisplayFields(display)
.displayReferences();
if (references.length) {
console.log({ displayRef: fileName });
await sequence(
references
.map(
@ -29649,11 +29633,6 @@ const getMin = (number) => {
),
),
);
} else {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
}
});
@ -29667,11 +29646,11 @@ const getMin = (number) => {
fileName,
animations,
}) => {
if (animations.length) {
await external_fs_.promises.appendFile(
fileName,
'\n#### animations\n\n',
);
if (animations.length) {
await table_header({
fileName,
headings: [
@ -29691,11 +29670,6 @@ const getMin = (number) => {
}),
),
);
} else {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
}
});
@ -29709,11 +29683,11 @@ const getMin = (number) => {
fileName,
connections,
}) => {
if (connections.length) {
await external_fs_.promises.appendFile(
fileName,
'\n#### connections\n\n',
);
if (connections.length) {
await table_header({
fileName,
headings: [
@ -29733,11 +29707,6 @@ const getMin = (number) => {
}),
),
);
} else {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
}
});
@ -29806,11 +29775,6 @@ const findDisplay = (line, link) => {
),
);
}
} else {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
}
});
@ -29824,6 +29788,7 @@ const findDisplay = (line, link) => {
command,
link,
}) => {
if (command) {
await external_fs_.promises.appendFile(
fileName,
'\n#### command\n\n',
@ -29833,6 +29798,7 @@ const findDisplay = (line, link) => {
command,
link,
});
}
});
;// CONCATENATED MODULE: ./src/document/lib/animated/touch.js
@ -29845,6 +29811,7 @@ const findDisplay = (line, link) => {
touch,
link,
}) => {
if (touch) {
await external_fs_.promises.appendFile(
fileName,
'\n#### touch\n\n',
@ -29854,6 +29821,7 @@ const findDisplay = (line, link) => {
command: touch,
link,
});
}
});
;// CONCATENATED MODULE: ./src/document/displays/animateds/index.js
@ -29870,12 +29838,14 @@ const findDisplay = (line, link) => {
display,
xml,
}) => {
const animateds = myDisplayFields(display)
.animated();
if (!animateds.length) {
await external_fs_.promises.appendFile(
fileName,
'\n## animated\n',
);
const animateds = myDisplayFields(display)
.animated();
await sequence(
animateds
.map(
@ -29934,11 +29904,6 @@ const findDisplay = (line, link) => {
),
);
if (!animateds.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
}
});
@ -29953,13 +29918,13 @@ const findDisplay = (line, link) => {
display,
displays,
}) => {
const references = myDisplayFields(display)
.referenceObjectReferences();
if (references.length) {
await external_fs_.promises.appendFile(
fileName,
'\n## reference-object-references\n',
);
const references = myDisplayFields(display)
.referenceObjectReferences();
if (references.length) {
await sequence(
references
.map(
@ -29985,11 +29950,6 @@ const findDisplay = (line, link) => {
),
),
);
} else {
await external_fs_.promises.appendFile(
fileName,
'\n*[none]*\n',
);
}
});
@ -30002,14 +29962,13 @@ const findDisplay = (line, link) => {
myDisplayFields,
display,
}) => {
const references = myDisplayFields(display)
.globalReferences();
if (references.length) {
await external_fs_.promises.appendFile(
fileName,
'\n## global-references\n\n',
);
const references = myDisplayFields(display)
.globalReferences();
if (references.length) {
console.log({global: fileName});
await sequence(
references
.map(
@ -30019,11 +29978,6 @@ const findDisplay = (line, link) => {
),
),
);
} else {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
}
});
@ -30100,16 +30054,11 @@ const findDisplay = (line, link) => {
// myGlobalFields,
object,
}) => {
if (object.parameters.length) {
await external_fs_.promises.appendFile(
fileName,
'\n## parameters\n\n',
);
if (!object.parameters.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
} else {
await table_header({
headings: [
['name'],
@ -30162,16 +30111,11 @@ const findDisplay = (line, link) => {
);
const references = object.references();
if (references.length) {
await external_fs_.promises.appendFile(
fileName,
'\n## references\n\n',
);
if (!references.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n\n',
);
} else {
await sequence(
references
.map(
@ -30207,16 +30151,11 @@ const findDisplay = (line, link) => {
line: objectLine,
file,
}) => {
if (object.animated.length) {
await external_fs_.promises.appendFile(
fileName,
'\n## animated\n',
);
if (!object.animated.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n\n',
);
} else {
await sequence(
object.animated
.map(
@ -30287,18 +30226,19 @@ const findDisplay = (line, link) => {
/* harmony default export */ const objects = (async ({
fileName,
dir,
myObjectFields,
myGlobalFields,
myDisplayFields,
global,
displays,
}) => {
const objects = myGlobalFields(global)
.objects();
if (objects.length) {
await external_fs_.promises.appendFile(
fileName,
'\n## objects\n\n',
);
const objects = myGlobalFields(global)
.objects();
await sequence(
objects
.map(
@ -30352,12 +30292,6 @@ const findDisplay = (line, link) => {
),
),
);
if (!objects.length) {
await external_fs_.promises.appendFile(
fileName,
'*[none]*\n',
);
}
});