-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Watch Face Format (WFF) v2 specification (#17)
* Adds v2 specification * Update links
- Loading branch information
Showing
96 changed files
with
4,977 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
third_party/wff/specification/documents/2/bitmapFontsElement.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2023 Samsung Electronics Co., Ltd All Rights Reserved | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:include schemaLocation="common/attributes/geometricAttributes.xsd"/> | ||
|
||
<xs:complexType name="_bitmapImportDataType"> | ||
<xs:attribute name="name" type="xs:string" use="required"/> | ||
<xs:attribute name="resource" type="xs:string" use="required"/> | ||
<xs:attributeGroup ref="sizeAttributesRequired"/> | ||
<xs:attributeGroup ref="margins"/> | ||
</xs:complexType> | ||
|
||
<xs:element name="BitmapFonts"> | ||
<xs:complexType> | ||
<xs:annotation> | ||
<xs:documentation> | ||
User-defined bitmap fonts can be declared in this scope. | ||
</xs:documentation> | ||
</xs:annotation> | ||
|
||
<xs:choice maxOccurs="unbounded"> | ||
<xs:element name="BitmapFont" minOccurs="1" maxOccurs="unbounded"> | ||
<xs:complexType> | ||
<xs:annotation> | ||
<xs:documentation> | ||
User-defined bitmap font can be declared with this element. | ||
Put the name for the family attribute in the font element. | ||
</xs:documentation> | ||
</xs:annotation> | ||
|
||
<xs:choice minOccurs="1" maxOccurs="unbounded"> | ||
<xs:choice> | ||
<xs:element name="Character" type="_bitmapImportDataType"/> | ||
<xs:element name="Word" type="_bitmapImportDataType"/> | ||
</xs:choice> | ||
</xs:choice> | ||
|
||
<xs:attribute name="name" type="xs:string" use="required"/> | ||
</xs:complexType> | ||
|
||
<xs:unique name="Validation.Unique.BitmapFont.Child.Name"> | ||
<xs:selector xpath="*"/> | ||
<xs:field xpath="@name"/> | ||
</xs:unique> | ||
</xs:element> | ||
</xs:choice> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
53 changes: 53 additions & 0 deletions
53
third_party/wff/specification/documents/2/clock/analogClock.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2023 Samsung Electronics Co., Ltd All Rights Reserved | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:include schemaLocation="../group/renderModeType.xsd"/> | ||
<xs:include schemaLocation="../common/attributes/geometricAttributes.xsd"/> | ||
<xs:include schemaLocation="../common/transform/pivotType.xsd"/> | ||
<xs:include schemaLocation="../common/variant/variantElements.xsd" /> | ||
<xs:include schemaLocation="hourHand.xsd"/> | ||
<xs:include schemaLocation="minuteHand.xsd"/> | ||
<xs:include schemaLocation="secondHand.xsd"/> | ||
|
||
<xs:element name="AnalogClock"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
AnalogClock is a container that represents a traditional clock with | ||
rotating hands. | ||
</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:all> | ||
<xs:element ref="HourHand" minOccurs="0" maxOccurs="2"/> | ||
<xs:element ref="MinuteHand" minOccurs="0" maxOccurs="2"/> | ||
<xs:element ref="SecondHand" minOccurs="0" maxOccurs="2"/> | ||
<xs:element ref="Localization" minOccurs="0" maxOccurs="1"/> | ||
<xs:element ref="Variant" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:all> | ||
|
||
<xs:attributeGroup ref="geometricAttributesRequired"/> | ||
<xs:attributeGroup ref="pivot2D"/> | ||
<xs:attribute name="angle" type="angleType"/> | ||
<xs:attribute ref="alpha"/> | ||
<xs:attribute name="scaleX" type='xs:float'/> | ||
<xs:attribute name="scaleY" type='xs:float'/> | ||
<xs:attribute name="renderMode" type="renderModeType" default="SOURCE"/> | ||
<xs:attribute name="tintColor" type='colorAttributeType'/> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
49 changes: 49 additions & 0 deletions
49
third_party/wff/specification/documents/2/clock/digitalClock.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2023 Samsung Electronics Co., Ltd All Rights Reserved | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:include schemaLocation="../group/renderModeType.xsd"/> | ||
<xs:include schemaLocation="../common/attributes/geometricAttributes.xsd"/> | ||
<xs:include schemaLocation="../common/transform/pivotType.xsd"/> | ||
<xs:include schemaLocation="../userConfiguration/listConfigurationElement.xsd"/> | ||
<xs:include schemaLocation="../common/variant/variantElements.xsd" /> | ||
<xs:include schemaLocation="timeText.xsd"/> | ||
|
||
<xs:element name="DigitalClock"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
DigitalClock is a container for text-based formatted time. | ||
</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:all> | ||
<xs:element ref="Localization" minOccurs="0" maxOccurs="1"/> | ||
<xs:element ref="Variant" minOccurs="0" maxOccurs="unbounded"/> | ||
<xs:element ref="TimeText" minOccurs="1" maxOccurs="unbounded"/> | ||
</xs:all> | ||
|
||
<xs:attributeGroup ref="geometricAttributesRequired"/> | ||
<xs:attributeGroup ref="pivot2D"/> | ||
<xs:attribute name="angle" type="angleType"/> | ||
<xs:attribute ref="alpha"/> | ||
<xs:attribute name="scaleX" type='xs:float'/> | ||
<xs:attribute name="scaleY" type='xs:float'/> | ||
<xs:attribute name="renderMode" type="renderModeType" default="SOURCE"/> | ||
<xs:attribute name="tintColor" type='colorAttributeType'/> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
42 changes: 42 additions & 0 deletions
42
third_party/wff/specification/documents/2/clock/hourHand.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2023 Samsung Electronics Co., Ltd All Rights Reserved | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:include schemaLocation="../common/attributes/geometricAttributes.xsd"/> | ||
<xs:include schemaLocation="../common/transform/pivotType.xsd"/> | ||
<xs:include schemaLocation="../userConfiguration/listConfigurationElement.xsd"/> | ||
<xs:include schemaLocation="../common/variant/variantElements.xsd" /> | ||
|
||
<xs:element name="HourHand"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
A image that represents an hour hand, it rotates 360 degree in 12 hours. | ||
</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:choice maxOccurs="unbounded"> | ||
<xs:element ref="Variant" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:choice> | ||
|
||
<xs:attribute name="resource" type="xs:string" use="required"/> | ||
<xs:attributeGroup ref="geometricAttributesRequired"/> | ||
<xs:attributeGroup ref="pivot2D"/> | ||
<xs:attribute ref="alpha"/> | ||
<xs:attribute name="tintColor" type='colorAttributeType'/> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
42 changes: 42 additions & 0 deletions
42
third_party/wff/specification/documents/2/clock/minuteHand.xsd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2023 Samsung Electronics Co., Ltd All Rights Reserved | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
|
||
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
<xs:include schemaLocation="../common/attributes/geometricAttributes.xsd"/> | ||
<xs:include schemaLocation="../common/transform/pivotType.xsd"/> | ||
<xs:include schemaLocation="../userConfiguration/listConfigurationElement.xsd"/> | ||
<xs:include schemaLocation="../common/variant/variantElements.xsd" /> | ||
|
||
<xs:element name="MinuteHand"> | ||
<xs:annotation> | ||
<xs:documentation> | ||
A image that represent a minute hand, it rotates 360 degree in 1 hour. | ||
</xs:documentation> | ||
</xs:annotation> | ||
<xs:complexType> | ||
<xs:choice maxOccurs="unbounded"> | ||
<xs:element ref="Variant" minOccurs="0" maxOccurs="unbounded"/> | ||
</xs:choice> | ||
|
||
<xs:attribute name="resource" type="xs:string" use="required"/> | ||
<xs:attributeGroup ref="geometricAttributesRequired"/> | ||
<xs:attributeGroup ref="pivot2D"/> | ||
<xs:attribute ref="alpha"/> | ||
<xs:attribute name="tintColor" type='colorAttributeType'/> | ||
</xs:complexType> | ||
</xs:element> | ||
</xs:schema> |
Oops, something went wrong.