Skip to content

Commit

Permalink
Add missing MVC relation member class declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
c9r committed Nov 24, 2021
1 parent ca2cb36 commit 1c92087
Show file tree
Hide file tree
Showing 31 changed files with 40 additions and 24 deletions.
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/chart-area.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/chart-axes.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/chart-bubble.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/chart-controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/chart-labels.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/chart-line.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/chart-ticks.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/chart-tracking.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/gauge-annular.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/gauge-cluster.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/gauge-controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/gauge-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
const updateRate = document.getElementById("updateRate");

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/gauge.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/graph-controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/graph-line.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/pie-controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/pie-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
const updateRate = document.getElementById("updateRate");

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/pie-transit.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
2 changes: 1 addition & 1 deletion swim-js/swim-toolkit-js/examples/pie.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>

//setTimeout(function () {
// swim.ThemeManager.global().setTheme(swim.Theme.light);
// swim.ThemeService.global().setTheme(swim.Theme.light);
//}, 1000);

const bodyView = swim.HtmlView.fromNode(document.body);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export class GeoGridTrait extends GeoLayerTrait {
},
})
override readonly features!: TraitSet<this, GeoTrait>;
static override readonly features: MemberFastenerClass<GeoGridTrait, "features">;

@TraitSet<GeoGridTrait, GeoGridTrait>({
type: GeoGridTrait,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

import {Class, AnyTiming, Timing} from "@swim/util";
import {Affinity} from "@swim/fastener";
import {Affinity, MemberFastenerClass} from "@swim/fastener";
import type {GeoPoint} from "@swim/geo";
import {Look, Mood} from "@swim/theme";
import type {Graphics, IconLayout} from "@swim/graphics";
Expand Down Expand Up @@ -135,4 +135,5 @@ export class GeoIconController extends GeoController {
},
})
readonly geo!: TraitViewRef<this, GeoIconTrait, GeoIconView>;
static readonly geo: MemberFastenerClass<GeoIconController, "geo">;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

import {Class, AnyTiming, Timing} from "@swim/util";
import {Affinity} from "@swim/fastener";
import {Affinity, MemberFastenerClass} from "@swim/fastener";
import type {Length} from "@swim/math";
import type {GeoPath} from "@swim/geo";
import type {Color} from "@swim/style";
Expand Down Expand Up @@ -187,4 +187,5 @@ export class GeoAreaController extends GeoPathController {
},
})
readonly geo!: TraitViewRef<this, GeoAreaTrait, GeoAreaView>;
static readonly geo: MemberFastenerClass<GeoAreaController, "geo">;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

import {Class, AnyTiming, Timing} from "@swim/util";
import {Affinity} from "@swim/fastener";
import {Affinity, MemberFastenerClass} from "@swim/fastener";
import type {Length} from "@swim/math";
import type {GeoPath} from "@swim/geo";
import type {Color} from "@swim/style";
Expand Down Expand Up @@ -151,4 +151,5 @@ export class GeoLineController extends GeoPathController {
},
})
readonly geo!: TraitViewRef<this, GeoLineTrait, GeoLineView>;
static readonly geo: MemberFastenerClass<GeoLineController, "geo">;
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

import type {Class} from "@swim/util";
import type {MemberFastenerClass} from "@swim/fastener";
import type {PositionGestureInput} from "@swim/view";
import {GenericController, TraitViewRef} from "@swim/controller";
import {CellView} from "./CellView";
Expand Down Expand Up @@ -51,6 +52,7 @@ export class CellController extends GenericController {
},
})
readonly cell!: TraitViewRef<this, CellTrait, CellView>;
static readonly cell: MemberFastenerClass<CellController, "cell">;

static fromTrait(cellTrait: CellTrait): CellController {
if (cellTrait instanceof TextCellTrait) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ export class IconCellController extends CellController {
},
})
override readonly cell!: TraitViewRef<this, IconCellTrait, IconCellView>;
static readonly cell: MemberFastenerClass<IconCellController, "cell">;
static override readonly cell: MemberFastenerClass<IconCellController, "cell">;
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class TextCellController extends CellController {
},
})
override readonly cell!: TraitViewRef<this, TextCellTrait, TextCellView>;
static readonly cell: MemberFastenerClass<TextCellController, "cell">;
static override readonly cell: MemberFastenerClass<TextCellController, "cell">;

protected createContentView(content: TextCellContent, cellTrait: TextCellTrait): HtmlView | string | null {
if (typeof content === "function") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
// limitations under the License.

import type {Class} from "@swim/util";
import type {MemberFastenerClass} from "@swim/fastener";
import {GenericController, TraitViewRef} from "@swim/controller";
import {AxisView} from "./AxisView";
import {AxisTrait} from "./AxisTrait";
Expand All @@ -39,4 +40,5 @@ export abstract class AxisController<D = unknown> extends GenericController {
},
})
readonly axis!: TraitViewRef<this, AxisTrait<D>, AxisView<D>>;
static readonly axis: MemberFastenerClass<AxisController, "axis">;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import type {MemberFastenerClass} from "@swim/fastener";
import {TraitViewRef} from "@swim/controller";
import {BottomAxisTrait} from "./BottomAxisTrait";
import {BottomAxisView} from "./BottomAxisView";
Expand All @@ -25,4 +26,5 @@ export class BottomAxisController<X = unknown> extends AxisController<X> {
viewType: BottomAxisView,
})
override readonly axis!: TraitViewRef<this, BottomAxisTrait<X>, BottomAxisView<X>>;
static override readonly axis: MemberFastenerClass<BottomAxisController, "axis">;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import type {MemberFastenerClass} from "@swim/fastener";
import {TraitViewRef} from "@swim/controller";
import {LeftAxisTrait} from "./LeftAxisTrait";
import {LeftAxisView} from "./LeftAxisView";
Expand All @@ -25,4 +26,5 @@ export class LeftAxisController<Y = unknown> extends AxisController<Y> {
viewType: LeftAxisView,
})
override readonly axis!: TraitViewRef<this, LeftAxisTrait<Y>, LeftAxisView<Y>>;
static override readonly axis: MemberFastenerClass<LeftAxisController, "axis">;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import type {MemberFastenerClass} from "@swim/fastener";
import {TraitViewRef} from "@swim/controller";
import {RightAxisTrait} from "./RightAxisTrait";
import {RightAxisView} from "./RightAxisView";
Expand All @@ -25,4 +26,5 @@ export class RightAxisController<Y = unknown> extends AxisController<Y> {
viewType: RightAxisView,
})
override readonly axis!: TraitViewRef<this, RightAxisTrait<Y>, RightAxisView<Y>>;
static override readonly axis: MemberFastenerClass<RightAxisController, "axis">;
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import type {MemberFastenerClass} from "@swim/fastener";
import {TraitViewRef} from "@swim/controller";
import {TopAxisTrait} from "./TopAxisTrait";
import {TopAxisView} from "./TopAxisView";
Expand All @@ -25,4 +26,5 @@ export class TopAxisController<X = unknown> extends AxisController<X> {
viewType: TopAxisView,
})
override readonly axis!: TraitViewRef<this, TopAxisTrait<X>, TopAxisView<X>>;
static override readonly axis: MemberFastenerClass<TopAxisController, "axis">;
}

0 comments on commit 1c92087

Please sign in to comment.