Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
minerva
frontend
Commits
a2b03c88
Commit
a2b03c88
authored
5 months ago
by
Miłosz Grocholewski
Browse files
Options
Downloads
Patches
Plain Diff
refactor(vector-map): add support for relativeHeight and relativeWidth for ellipses
parent
d2740426
No related branches found
No related tags found
1 merge request
!276
refactor(vector-map): add support for relativeHeight and relativeWidth for ellipses
Pipeline
#96829
passed
5 months ago
Changes
23
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/models/shapeRelAbsRadiusSchema.ts
+0
-9
0 additions, 9 deletions
src/models/shapeRelAbsRadiusSchema.ts
src/models/shapeRelAbsSchema.ts
+2
-2
2 additions, 2 deletions
src/models/shapeRelAbsSchema.ts
src/types/models.ts
+4
-0
4 additions, 0 deletions
src/types/models.ts
with
6 additions
and
11 deletions
src/models/shapeRelAbsRadiusSchema.ts
deleted
100644 → 0
+
0
−
9
View file @
d2740426
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
(),
});
This diff is collapsed.
Click to expand it.
src/models/shapeRelAbs
Point
Schema.ts
→
src/models/shapeRelAbsSchema.ts
+
2
−
2
View file @
a2b03c88
import
{
z
}
from
'
zod
'
;
export
const
shapeRelAbs
Point
Schema
=
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
(),
...
...
This diff is collapsed.
Click to expand it.
src/types/models.ts
+
4
−
0
View file @
a2b03c88
...
...
@@ -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
>
;
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment