Skip to content
Snippets Groups Projects
Commit a2b03c88 authored by Miłosz Grocholewski's avatar Miłosz Grocholewski
Browse files

refactor(vector-map): add support for relativeHeight and relativeWidth for ellipses

parent d2740426
No related branches found
No related tags found
1 merge request!276refactor(vector-map): add support for relativeHeight and relativeWidth for ellipses
Pipeline #96829 passed
import { z } from 'zod';
export const shapeRelAbsRadiusSchema = z.object({
type: z.literal('REL_ABS_RADIUS'),
absoluteX: z.number(),
absoluteY: z.number(),
relativeX: z.number(),
relativeY: z.number(),
});
import { z } from 'zod';
export const shapeRelAbsPointSchema = z.object({
type: z.literal('REL_ABS_POINT'),
export const shapeRelAbsSchema = z.object({
type: z.enum(['REL_ABS_POINT', 'REL_ABS_RADIUS']),
absoluteX: z.number(),
absoluteY: z.number(),
relativeX: z.number(),
......
......@@ -78,6 +78,8 @@ import { layerOvalSchema } from '@/models/layerOvalSchema';
import { layerLineSchema } from '@/models/layerLineSchema';
import { arrowTypeSchema } from '@/models/arrowTypeSchema';
import { arrowSchema } from '@/models/arrowSchema';
import { shapeRelAbsSchema } from '@/models/shapeRelAbsSchema';
import { shapeRelAbsBezierPointSchema } from '@/models/shapeRelAbsBezierPointSchema';
export type Project = z.infer<typeof projectSchema>;
export type OverviewImageView = z.infer<typeof overviewImageView>;
......@@ -100,6 +102,8 @@ const modelElementsSchema = pageableSchema(modelElementSchema);
export type ModelElements = z.infer<typeof modelElementsSchema>;
export type ModelElement = z.infer<typeof modelElementSchema>;
export type Shape = z.infer<typeof shapeSchema>;
export type ShapeRelAbs = z.infer<typeof shapeRelAbsSchema>;
export type ShapeRelAbsBezierPoint = z.infer<typeof shapeRelAbsBezierPointSchema>;
export type Modification = z.infer<typeof modelElementModificationSchema>;
export type MapOverlay = z.infer<typeof mapOverlay>;
export type MapBackground = z.infer<typeof mapBackground>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment