@spectratools/graphic-designer-cli 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +163 -19
- package/dist/index.d.ts +6 -6
- package/dist/index.js +163 -19
- package/dist/qa.d.ts +1 -1
- package/dist/qa.js +18 -0
- package/dist/renderer.d.ts +1 -1
- package/dist/renderer.js +104 -17
- package/dist/{spec.schema-B_Z-KNqt.d.ts → spec.schema-B6sXTTou.d.ts} +1664 -1314
- package/dist/spec.schema.d.ts +1 -1
- package/dist/spec.schema.js +18 -0
- package/package.json +1 -1
package/dist/spec.schema.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'zod';
|
|
2
|
-
export { A as AnchorHint, e as AutoLayoutConfig, B as BuiltInTheme, f as CardElement, g as CodeBlockElement,
|
|
2
|
+
export { A as AnchorHint, e as AutoLayoutConfig, B as BuiltInTheme, f as CardElement, g as CodeBlockElement, aw as CodeBlockStyle, C as ConnectionElement, h as ConstraintSpec, k as Decorator, l as DesignCardSpec, m as DesignSafeFrame, D as DesignSpec, n as DesignTheme, o as DiagramElement, p as DiagramLayout, q as DiagramSpec, r as DrawArc, s as DrawBadge, t as DrawBezier, u as DrawCircle, b as DrawCommand, v as DrawFontFamily, w as DrawGradientRect, ax as DrawGrid, x as DrawLine, y as DrawPath, z as DrawPoint, E as DrawRect, F as DrawShadow, G as DrawText, H as DrawTextRow, I as DrawTextRowSegment, J as Element, K as FlowNodeElement, ay as FlowNodeShadow, L as Gradient, M as GradientOverlayDecorator, az as GradientStop, P as GridLayoutConfig, Q as ImageElement, U as LayoutConfig, aA as LinearGradient, W as ManualLayoutConfig, aB as RadialGradient, X as RainbowRuleDecorator, _ as ShapeElement, $ as StackLayoutConfig, a0 as TerminalElement, a1 as TextElement, c as Theme, a2 as ThemeInput, a3 as VignetteDecorator, a5 as builtInThemeBackgrounds, a6 as builtInThemes, a8 as connectionElementSchema, a9 as defaultAutoLayout, aa as defaultCanvas, ab as defaultConstraints, ac as defaultGridLayout, ad as defaultLayout, ae as defaultStackLayout, af as defaultTheme, ag as deriveSafeFrame, ah as designSpecSchema, ai as diagramElementSchema, aj as diagramLayoutSchema, ak as diagramSpecSchema, ao as flowNodeElementSchema, ap as inferLayout, ar as parseDesignSpec, as as parseDiagramSpec, au as resolveTheme } from './spec.schema-B6sXTTou.js';
|
|
3
3
|
import '@napi-rs/canvas';
|
package/dist/spec.schema.js
CHANGED
|
@@ -339,6 +339,21 @@ var drawLineSchema = z2.object({
|
|
|
339
339
|
opacity: z2.number().min(0).max(1).default(1),
|
|
340
340
|
shadow: drawShadowSchema.optional()
|
|
341
341
|
}).strict();
|
|
342
|
+
var drawArcSchema = z2.object({
|
|
343
|
+
type: z2.literal("arc"),
|
|
344
|
+
center: z2.object({
|
|
345
|
+
x: z2.number(),
|
|
346
|
+
y: z2.number()
|
|
347
|
+
}).strict(),
|
|
348
|
+
radius: z2.number().positive(),
|
|
349
|
+
startAngle: z2.number(),
|
|
350
|
+
endAngle: z2.number(),
|
|
351
|
+
color: colorHexSchema2.default("#FFFFFF"),
|
|
352
|
+
width: z2.number().min(0.5).max(32).default(2),
|
|
353
|
+
dash: z2.array(z2.number()).max(6).optional(),
|
|
354
|
+
opacity: z2.number().min(0).max(1).default(1),
|
|
355
|
+
shadow: drawShadowSchema.optional()
|
|
356
|
+
}).strict();
|
|
342
357
|
var drawPointSchema = z2.object({
|
|
343
358
|
x: z2.number(),
|
|
344
359
|
y: z2.number()
|
|
@@ -423,6 +438,7 @@ var drawCommandSchema = z2.discriminatedUnion("type", [
|
|
|
423
438
|
drawCircleSchema,
|
|
424
439
|
drawTextSchema,
|
|
425
440
|
drawLineSchema,
|
|
441
|
+
drawArcSchema,
|
|
426
442
|
drawBezierSchema,
|
|
427
443
|
drawPathSchema,
|
|
428
444
|
drawBadgeSchema,
|
|
@@ -559,6 +575,8 @@ var connectionElementSchema = z2.object({
|
|
|
559
575
|
label: z2.string().min(1).max(200).optional(),
|
|
560
576
|
labelPosition: z2.enum(["start", "middle", "end"]).default("middle"),
|
|
561
577
|
color: colorHexSchema2.optional(),
|
|
578
|
+
fromColor: colorHexSchema2.optional(),
|
|
579
|
+
toColor: colorHexSchema2.optional(),
|
|
562
580
|
width: z2.number().min(0.5).max(10).optional(),
|
|
563
581
|
strokeWidth: z2.number().min(0.5).max(10).default(2),
|
|
564
582
|
arrowSize: z2.number().min(4).max(32).optional(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spectratools/graphic-designer-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Deterministic visual content generator — code screenshots, terminal shots, flowcharts, and infographics. No browser dependency.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|