Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove unused keys for blocks

  • Loading branch information...
commit 5cbcb92da9b1f0b6055c64a85f8a83e5331998fa 1 parent 8be2f2b
@schorsch schorsch authored
View
19 schema/v1.0/block.json
@@ -1,5 +1,6 @@
{
- "name": "Block",
+ "title": "Block",
+ "name": "block",
"description":"A block acts as a placeholder in PDF templates. It can hold text, multiline text, images or pdf's. In this file you find the general properties for all block types. See details in the derived block-type schemas.",
"type":"object",
"properties":{
@@ -9,16 +10,10 @@
"maxLength": 125,
"required": true
},
- "subtype": {
- "description": "The block type, one of Text, Image, or PDF",
- "type": "string",
- "enum": ["Text", "Image", "PDF"],
- "required": true
- },
"rect":{
"description": "The block coordinates in DTP points. [ LowerLeftX llY UpperRightX urY] x-increases to the right, y counts upwards, The coordinate system in PDF starts in the lower left corner of a page. Calculation with 72 DPI: 1pt = 1/72inch = 25.4/72 mm = 0.3528 mm",
"type": "array",
- "items":{
+ "properties":{
"type": "number"
},
"minItems": 4,
@@ -47,14 +42,14 @@
"default": "north"
},
"position": {
- "description": "Reference point for content placement. Defaults to lower-left corner[0,0]. Values are [x,y] percentages from the start point. E.G. top-right: [100,100] center: [50,50] bottom-center [50,0]. NOT available for text-flow blocks",
+ "description": "Reference point for content placement. Defaults to lower-left corner[0,0]. Values are [x,y] percentages from the start point. E.G. top-right: [100,100] center: [50,50] bottom-center [50,0]. NOT available for textflow blocks",
"type": "array",
"items":{
- "type": "number"
+ "type": ["number", "string"]
},
- "minItems": 1,
+ "minItems": 2,
"maxItems": 2
- },
+ },
"rotate": {
"description": "Rotation angle(degrees) by which the block will be rotated counter-clockwise. The center of the rotation is the position-value, which defaults to lower-left corner.",
"type": "number",
View
5 schema/v1.0/text_block.json
@@ -33,11 +33,6 @@
"format": "color",
"default": "gray 0"
},
- "textflow":{
- "description": "This setting must be false, as it make the block a text-line box.",
- "type": "boolean",
- "default": "false"
- },
"fitmethod":{
"type": "string",
"enum": ["auto","nofit","clip","meet", "slice", "entire"],
View
6 schema/v1.0/textflow_block.json
@@ -5,12 +5,6 @@
"type":"object",
"extends": "text_block",
"properties":{
- "textflow ":{
- "description": "This setting must be true, as it makes the block a textflow box.",
- "type": "boolean",
- "default": true,
- "required": true
- },
"alignment":{
"description": "Alignment for lines in a paragraph.",
"type": "string",
Please sign in to comment.
Something went wrong with that request. Please try again.